mktime: avoid 'static inline'
[gnulib.git] / ChangeLog
1 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
2
3         mktime: avoid 'static inline'
4         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
5         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
6
7 2012-08-19  Bruno Haible  <bruno@clisp.org>
8
9         gnulib-tool: Improve coding style.
10         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
11         func_emit_lib_Makefile_am.
12         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
13
14 2012-08-19  Bruno Haible  <bruno@clisp.org>
15
16         gnulib-tool: Fix indentation.
17         * gnulib-tool (func_import): Fix indentation.
18
19 2012-08-19  Bruno Haible  <bruno@clisp.org>
20
21         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
22         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
23         on the list of removed files.
24
25 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
26
27         test-parse-datetime: avoid glibc leap-second glitch
28         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
29         with the 2012 rules.  Problem reported by Bruce Dubbs in
30         <http://bugs.gnu.org/12206>.
31
32 2012-08-14  Bruno Haible  <bruno@clisp.org>
33
34         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
35         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
36         from argument.
37         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38
39 2012-08-14  Eric Blake  <eblake@redhat.com>
40
41         ldexp: relax license
42         * modules/ldexp (License): Trivial relax, since the module only
43         provides a permissively licensed m4 file.
44
45 2012-08-13  Bruno Haible  <bruno@clisp.org>
46
47         gnulib-tool: Fix persistence of --witness-c-macro option.
48         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
49         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
50
51 2012-08-11  Eric Blake  <eblake@redhat.com>
52
53         count-leading-zeros: use a lookup table on non-gcc compilers
54         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
55         alternate implementation, suggested by Jim Meyering.
56
57 2012-08-10  Eric Blake  <eblake@redhat.com>
58
59         count-leading-zeros: new module
60         * modules/count-leading-zeros: New module.
61         * m4/count-leading-zeros.m4: New file.
62         * lib/count-leading-zeros.h: Likewise.
63         * modules/count-leading-zeros-tests: New test.
64         * tests/test-count-leading-zeros.c: New file.
65         * MODULES.html.sh (Integer arithmetic functions): Document it.
66
67 2012-08-07  Simon Josefsson  <simon@josefsson.org>
68             Jim Meyering  <meyering@redhat.com>
69
70         maintainer-makefile: Fix syntax error with dash.
71         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
72         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
73
74 2012-08-05  Jim Meyering  <meyering@redhat.com>
75
76         extern-inline: also ignore -Wmissing-declarations
77         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
78         required with gcc-4.8.0-to-be.
79
80         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
81         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
82         for /error ?([^,]*)/.  This avoids false-positives for strings like
83         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
84
85 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
86
87         gnumakefile: better interaction with Automake-NG
88         * modules/gnumakefile [Makefile.am]: The makefiles generated by
89         Automake-NG always contain a definition of VPATH, even in non-VPATH
90         builds (its value being simply '.' in that case).  So, in the
91         'clean-GNUmakefile' rule, to determine whether running under a
92         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
93         '$(VPATH)' expands to the empty string.
94
95 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
96
97         base64: Use extern C scope in header file, for C++.
98         * lib/base64.h: Add C++ namespace protection.
99
100 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
101
102         stat-time, timespec, u64: support naive out-of-dir builds
103         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
104         Use '#include "foo.h"', not '#include <foo.h>', when including
105         one's own interface.  This works better when configuring with
106         out-of-directory builds, since packages need not add an
107         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
108
109 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
110
111         utimens: use extern-inline
112         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
113         * lib/utimens.h: Add copyright notice, since this is now large enough
114         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
115         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
116         * modules/utimens (Depends-on): Add extern-inline.
117
118         u64: use extern-inline
119         * lib/u64.c: New file.
120         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
121         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
122         * modules/u64 (Files): Add lib/u64.c.
123         (Depends-on): Add extern-inline.
124         (configure.ac): No need to require AC_C_INLINE, since extern-inline
125         does that now.
126         (lib_SOURCES): Add u64.c.
127
128         timespec: use extern-inline
129         * lib/timespec.c: New file.
130         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
131         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
132         * modules/timespec (Files): Add lib/timespec.c.
133         (Depends-on): Add extern-inline.
134         (lib_SOURCES): Add timespec.c.
135
136         stat-time: use extern-inline
137         * lib/stat-time.c: New file.
138         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
139         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
140         * modules/stat-time (Files): Add lib/stat-time.c.
141         (Depends-on): Add extern-inline.
142         (lib_SOURCES): Add stat-time.c.
143
144         extern-inline: new module
145         * modules/extern-inline, m4/extern-inline.m4: New files.
146         This is for better support of 'extern inline' a la ISO C99,
147         with a portable alternative on compilers that do not support
148         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
149         of the Emacs executable, when compiled with debugging disabled,
150         which is a typical way that Emacs is built while developing.
151
152 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
153
154         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
155         * build-aux/do-release-commit-and-tag: Move variable definitions
156         together.
157         ($branch): Instead of defaulting to "master", default to the current
158         branch (as gnu-web-doc-update does).
159         (help): Display the current values of the option arguments.
160         * top/maint.mk (release-commit): New.
161         * top/README-release: Simplify the corresponding step.
162
163 2012-07-30  Eric Blake  <eblake@redhat.com>
164
165         passfd: fix comment on recvfd
166         * lib/passfd.c (recvfd): Fix comment.
167         Reported by Jann Horn <jannhorn@googlemail.com>.
168
169 2012-07-30  Jim Meyering  <meyering@redhat.com>
170
171         maint.mk: avoid a sub-shell
172         * top/maint.mk (release-prep): Remove unneeded sub-shell.
173
174 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
175
176         maint.mk: use silent-rules support from Automake
177         * top/maint.mk (news-check, vc-diff-check, announcement)
178         (no-submodule-changes, alpha beta stable, release-prep)
179         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
180
181 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
182
183         maint.mk: provide a web-manual-update target
184         * top/maint.mk: here.
185         * top/README-release: Use it to simplify the web manual update step.
186
187 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
188
189         README-release: shorten the circuit to post a news
190         * top/README-release: Point directly to the news submission form.
191
192 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
193
194         gnu-web-doc-update: fix --help
195         * build-aux/gnu-web-doc-update: The information "top level" was written
196         twice.
197
198 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
199
200         maint.mk: absolute VPATH issue
201         * top/maint.mk (release-prep): Help Git find .git/.
202         From Jim Meyering.
203
204 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
205
206         gitlog-to-changelog: fix previous change
207         * build-aux/gitlog-to-changelog: Fix condition.
208         Add missing ";".
209
210 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
211
212         gitlog-to-changelog: don't expect .git to be in $srcdir
213         Reported by Bruno Haible.
214         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
215         * build-aux/gitlog-to-changelog (&git_dir_option): New.
216         Use it.
217
218 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
219
220         maint.mk: absolute VPATH build fix
221         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
222         $(srcdir) is not a parent of $(builddir).
223
224 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
225
226         clean-temp: Fix memory leak.
227         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
228         'files' members of tmpdir.
229
230 2012-07-27  Jim Meyering  <meyering@redhat.com>
231
232         maint.mk: new rule: refresh-gnulib-patches
233         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
234         Use this rule to refresh them.
235         * top/maint.mk (refresh-gnulib-patches): New rule.
236
237 2012-07-24  Bruno Haible  <bruno@clisp.org>
238
239         gnulib-tool: Fix handling of inctests variable.
240         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
241         Reported by Nick Bowler <nbowler@elliptictech.com>.
242
243 2012-07-22  Bruno Haible  <bruno@clisp.org>
244
245         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
246         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
247         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
248         Remove exemption for getpass.h.
249         Suggested by Eric Blake.
250
251 2012-07-20  Eric Blake  <eblake@redhat.com>
252
253         verify: document conflict with -Wnested-externs
254         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
255
256         maint.mk: forbid exit(-1)
257         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
258
259 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
260
261         fsusage: port back to Solaris
262         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
263         error (fsd not declared) on Solaris 10.  Reported privately by
264         Andrew Borodin.
265
266 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
267
268         gnu-web-doc-update: fix error messages
269         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
270
271         gnu-web-doc-update: check the requirements.
272         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
273         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
274         * build-aux/bootstrap (find_tool): Comment change.
275
276 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
277
278         maint.mk: minor simplication.
279         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
280         for default values.
281
282 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
283
284         gitlog-to-changelog: VPATH build issues
285         If builddir is not a subdirectory of srcdir, running git from it will
286         fail.
287         * build-aux/gitlog-to-changelog (--srcdir): New option.
288
289 2012-07-15  Bruno Haible  <bruno@clisp.org>
290
291         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
292         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
293         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
294         Remove exemption for fpending.h.
295         Suggested by Eric Blake.
296
297 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
298
299         pthread_sigmask: fix bug on FreeBSD 9
300         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
301         Include string.h.
302         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
303         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
304         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
305         but pthread_sigmask (1729, NULL, NULL) returns zero.
306         See <http://bugs.gnu.org/11884>.
307         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
308         by inspecting whether the main call changed the old mask.
309
310 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
311
312         README-release: make it more legible
313         * top/README-release: Improve typography slightly.
314
315 2012-07-15  Jim Meyering  <meyering@redhat.com>
316
317         maint: require that each sc_... command start with "@"
318         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
319         "make sc_maint" helps us avoid this nit.
320
321 2012-07-15  Jim Meyering  <meyering@redhat.com>
322
323         maint.mk: add leading "@" to quiet new "make syntax-check" rule
324         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
325
326 2012-07-13  Eric Blake  <eblake@redhat.com>
327
328         maint.mk: new syntax check for HAVE_DECL checks
329         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
330         * cfg.mk
331         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
332         Exempt some false positives.
333         Based on a report by Karel Zak.
334
335         argp: make HAVE_DECL usage consistent
336         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
337         macros, not whether they are defined.
338         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
339         convention with other declaration checks.
340         Reported by Karel Zak, with suggestions from Paul Eggert.
341
342         stat-time: relax license to LGPLv2+
343         * modules/stat-time (License): Relax, with consent of all authors.
344
345         strndup: fix m4 usage error
346         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
347         defined, to either 0 or 1.
348         Reported by Karel Zak.
349
350 2012-07-11  Jim Meyering  <meyering@redhat.com>
351
352         maint: enable the sc_avoid_if_before_free syntax-check rule
353         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
354         (if_before_free_offenders_): Define.
355         (if_before_free_basename_re_): Define.
356         Exempt current files with useless if-before-free.
357
358 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
359
360         gettext: do not assume '#define ... defined ...' behavior
361         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
362         Do not use '#define FOO ... defined BAR ...', as the C standard says
363         it's not portable to expect that this works after macro expansion.
364         Problem reported for gzip by Steven M. Schweda in
365         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
366
367 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
368
369         getloadavg: clean out old Emacs and Autoconf cruft
370         See Glenn Morris in <http://bugs.gnu.org/11905>.
371         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
372         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
373         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
374         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
375
376 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
377
378         bootstrap: let warn be like tests/init.sh's warn_
379         Reported by Jim Meyering.
380         * build-aux/bootstrap (warn): Remove, replaced by...
381         (warnf_, warn_): these.
382         Adjust callers.
383         Shorten messages that no longer fit in 80 columns.
384
385 2012-07-09  Bruno Haible  <bruno@clisp.org>
386
387         getopt: Simplify after Emacs changed.
388         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
389         (gl_GETOPT_IFELSE): Remove macro.
390
391 2012-07-09  Jim Meyering  <meyering@redhat.com>
392
393         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
394         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
395
396         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
397         Bugs in both of those conspired to make the
398         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
399         _sc_search_regexp's handling of non-empty $in_files would filter
400         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
401         choice of in_files value meant there would be no match in most
402         projects, due to the presence of two or more Makefile.in files.
403         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
404         Fix a bug in how a non-empty $$in_files was processed:
405         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
406         in spite of the name, it's a regexp, not a list of file names.
407
408 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
409
410         getloadavg, getopt: fix commentary re configure.in
411         Autoconf is deprecating the name 'configure.in', so change it to
412         to the new name 'configure.ac' in a couple of places.
413         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
414         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
415         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
416         Emacs has renamed it to configure.ac, and it no longer refers
417         to these macros anyway.
418
419         timespec: mark functions with const attributes
420         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
421         Mark with _GL_ATTRIBUTE_CONST.
422
423 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
424
425         canonicalize[-lgpl]: handle "guessing" values when cross-building
426         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
427         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
428         matches "*yes" instead of just "yes".  Regression introduced in commit
429         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
430
431 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
432             Bruno Haible  <bruno@clisp.org>
433
434         canonicalize: make the right guess when cross-compiling to GNU
435         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
436         determine whether cross-compiling to glibc systems, so as to
437         include GNU/Hurd.
438
439 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
440
441         timespec-sub: avoid duplicate include
442         * lib/timespec-sub.c: Do not include <config.h> twice.
443         Reported by Juanma Barranquero.
444
445 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
446
447         bootstrap: use a more consistent error reporting scheme
448         * build-aux/bootstrap (warn, die): New.
449         Use them.
450
451 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
452
453         sys_time: allow too-wide tv_sec
454         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
455         timeval even if tv_sec is wider than time_t.  This allows
456         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
457         as without this patch gnulib replaces struct timeval
458         and OpenBSD futimes therefore has a type mismatch.
459         * doc/posix-headers/sys_time.texi: Mention this.
460
461         pthread: check for both pthread_create and pthread_join
462         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
463         alter the check so that it tests for both pthread_create and
464         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
465         Suggested by Bruno Haible and Richard Yao in
466         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
467
468         parse-datetime: doc tuneup
469         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
470         spacing issues.
471
472 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
473
474         do-release-commit-and-tag: fix the previous commit
475         * build-aux/do-release-commit-and-tag: Actually the test was right,
476         but the comment and the error message were misleading.
477         Fix comment, and improve error message.
478         Perform check first, so that NEWS is not modified uselessly.
479
480         do-release-commit-and-tag: fix typo
481         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
482         _not_ start with a stub.
483
484 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
485
486         pthread: check for pthread_create, not pthread_join
487         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
488         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
489         pthread_join in libc.  I hope this removes the need for all the
490         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
491         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
492
493 2012-07-04  Jim Meyering  <meyering@redhat.com>
494
495         parse-datetime: fix failure to diagnose invalid input
496         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
497         rather than diagnosing the invalid input.  Now it reports this:
498         date: invalid date '\260'
499         * lib/parse-datetime.y (to_uchar): Define.
500         (yylex): Don't sign-extend "other" bytes.
501         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
502         Thanks to Bruno Haible for the patch to this file.
503         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
504         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
505
506 2012-07-03  Jim Meyering  <meyering@redhat.com>
507
508         bootstrap: do not require now-removed build-aux/missing
509         Now that build-aux/missing is, er, missing, bootstrap would
510         silently fail.
511         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
512         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
513         no longer part of gnulib.
514         Diagnose the failure.
515
516 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
517
518         alloca: add support for HP NonStop TNS/E native
519         * lib/alloca.in.h (alloca): Support the new host.
520         From a suggestion by Joachim Schmitz in
521         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
522
523 2012-07-02  Pádraig Brady  <P@draigBrady.com>
524
525         fsusage: remove code not needed on non GNU/Linux systems.
526
527         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
528         Don't include headers no longer needed in this case.
529         * lib/fsusage.c [STAT_STATVFS &&
530         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
531         STAT_STATFS2_FRSIZE to exclude code not used in this case.
532
533 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
534
535         fsusage: include files needed for glibc 2.6 fallback
536         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
537         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
538         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
539         Problem reported by Ludovic Courtès in
540         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
541
542         fsusage: avoid needless check on GNU/Linux
543         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
544         on GNU/Linux systems, since it can't possibly work.
545
546 2012-07-01  Bruno Haible  <bruno@clisp.org>
547
548         log: Fix an autoconf >= 2.64 warning.
549         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
550         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
551
552 2012-06-28  Bruno Haible  <bruno@clisp.org>
553
554         log10f: Fix possible configuration problem.
555         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
556         $LOGF_LIBM.
557         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
558
559 2012-06-28  Bruno Haible  <bruno@clisp.org>
560
561         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
562         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
563         not gl_cv_func_unlink_works.
564         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
565
566 2012-06-27  Eric Blake  <eblake@redhat.com>
567
568         config: drop scripts that automake says are not independent
569         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
570         * build-aux/elisp-comp: Delete.
571         * build-aux/missing: Likewise.
572         * build-aux/ylwrap: Likewise.
573         * modules/elisp-comp: Likewise.
574         * MODULES.html.sh: Drop mention of elisp-comp.
575         * NEWS: Mention this.
576
577 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
578
579         root-uid: new module
580         This is for portability to Tandem's NonStop Kernel.
581         * lib/root-uid.h, modules/root-uid: New files.
582         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
583         * lib/write-any-file.c, tests/test-sethostname2.c:
584         Include "root-uid.h".
585         * lib/euidaccess.c (euidaccess):
586         * lib/pt_chown.c (main):
587         * lib/unlinkdir.c (cannot_unlink_dir):
588         * lib/write-any-file.c (can_write_any_file):
589         * m4/mknod.m4 (gl_FUNC_MKNOD):
590         * tests/test-sethostname2.c (geteuid, main):
591         Don't assume ROOT_UID == 0.
592         * modules/euidaccess (Depends-on):
593         * modules/pt_chown (Depends-on):
594         * modules/sethostname-tests (Depends-on):
595         * modules/unlinkdir (Depends-on):
596         * modules/write-any-file (Depends-on):
597         Add root-uid.
598
599         regex: use locale-independent comparison for codeset name
600         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
601         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
602         for codeset name.
603         * lib/regex_internal.h: Do not include <strings.h>, since we
604         no longer use strcasecmp.
605         * modules/regex (Depends-on): Remove strcase.
606
607 2012-06-23  Bruno Haible  <bruno@clisp.org>
608
609         getopt-posix: No longer guarantee that option processing is resettable.
610         * doc/posix-functions/getopt.texi: Drop description of problem with
611         internal state. Fix info about mingw and msvc9.
612         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
613         option processing by getopt(). Run three test programs instead of one.
614         Simplify cross-compilation guess.
615         * NEWS: Mention the change.
616         Reported by Rich Felker <dalias@aerifal.cx>.
617
618 2012-06-26  Bruno Haible  <bruno@clisp.org>
619
620         argp, regex: Ensure strcasecmp gets declared.
621         * lib/argp-help.c: Include <strings.h>.
622         * lib/regex_internal.h: Likewise.
623         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
624
625 2012-06-24  Bruno Haible  <bruno@clisp.org>
626
627         ptsname_r: Make it consistent with ptsname on AIX.
628         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
629         implementation as for OSF/1.
630         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
631         a pty master.
632
633         ptsname_r: Make it consistent with ptsname on OSF/1.
634         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
635         OSF/1.
636
637 2012-06-24  Bruno Haible  <bruno@clisp.org>
638
639         ttyname_r: Fix result on OSF/1, Solaris.
640         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
641
642 2012-06-24  Bruno Haible  <bruno@clisp.org>
643
644         ptsname_r: Add support for Solaris.
645         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
646         Solaris.
647
648         ptsname_r: Fix test failure on native Windows.
649         * modules/ptsname_r (Depends-on): Add isatty.
650
651         ptsname_r: Fix test failures on IRIX, Solaris.
652         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
653         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
654         accordingly.
655         * lib/ptsname_r.c: Include <fcntl.h>.
656         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
657         set errno if fd is invalid.
658         * tests/test-isatty.c (main): Update comments.
659
660 2012-06-24  Bruno Haible  <bruno@clisp.org>
661
662         ptsname test: Extend test.
663         * tests/test-ptsname.c: Include <errno.h>.
664         (main): Test behaviour with invalid file descriptor.
665
666 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
667
668         time: fix obsolete comment
669         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
670         reference to HAVE_STRUCT_TIMESPEC in comment.
671
672 2012-06-23  Bruno Haible  <bruno@clisp.org>
673
674         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
675         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
676         does not handle abbreviated long options with equivalent
677         disambiguations, set gl_replace_getopt to yes.
678         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
679
680 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
681
682         time_r: fix typo that always overrode localtime_r decl
683         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
684         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
685         not in a standard include.
686
687 2012-06-22  Bruno Haible  <bruno@clisp.org>
688
689         Write "Mac OS X" instead of "MacOS X".
690         * README: Write "Mac OS X" instead of "MacOS X".
691         * build-aux/bootstrap: Likewise.
692         * build-aux/install-reloc: Likewise.
693         * lib/acl-internal.h: Likewise.
694         * lib/acl_entries.c: Likewise.
695         * lib/argp-ba.c: Likewise.
696         * lib/argp-pv.c: Likewise.
697         * lib/config.charset: Likewise.
698         * lib/copy-acl.c: Likewise.
699         * lib/csharpexec.c: Likewise.
700         * lib/euidaccess.c: Likewise.
701         * lib/fbufmode.c: Likewise.
702         * lib/fflush.c: Likewise.
703         * lib/file-has-acl.c: Likewise.
704         * lib/filemode.h: Likewise.
705         * lib/fpurge.c: Likewise.
706         * lib/freadable.c: Likewise.
707         * lib/freadahead.c: Likewise.
708         * lib/freading.c: Likewise.
709         * lib/freadptr.c: Likewise.
710         * lib/freadseek.c: Likewise.
711         * lib/fseeko.c: Likewise.
712         * lib/fseterr.c: Likewise.
713         * lib/fsusage.c: Likewise.
714         * lib/fwritable.c: Likewise.
715         * lib/fwriting.c: Likewise.
716         * lib/get-rusage-as.c: Likewise.
717         * lib/get-rusage-data.c: Likewise.
718         * lib/getdomainname.c: Likewise.
719         * lib/idpriv-drop.c: Likewise.
720         * lib/idpriv-droptemp.c: Likewise.
721         * lib/localcharset.c: Likewise.
722         * lib/locale.in.h: Likewise.
723         * lib/localename.c: Likewise.
724         * lib/mbsrtowcs-state.c: Likewise.
725         * lib/nproc.c: Likewise.
726         * lib/passfd.c: Likewise.
727         * lib/posix_openpt.c: Likewise.
728         * lib/printf-parse.c: Likewise.
729         * lib/progreloc.c: Likewise.
730         * lib/safe-read.h: Likewise.
731         * lib/safe-write.h: Likewise.
732         * lib/sched.in.h: Likewise.
733         * lib/set-mode-acl.c: Likewise.
734         * lib/signal.in.h: Likewise.
735         * lib/stdint.in.h: Likewise.
736         * lib/stdio-impl.h: Likewise.
737         * lib/stdlib.in.h: Likewise.
738         * lib/strtod.c: Likewise.
739         * lib/sys_select.in.h: Likewise.
740         * lib/tcgetsid.c: Likewise.
741         * lib/unistd.in.h: Likewise.
742         * lib/unlockpt.c: Likewise.
743         * lib/vasnprintf.c: Likewise.
744         * lib/vma-iter.c: Likewise.
745         * lib/wcsrtombs-state.c: Likewise.
746         * m4/acl.m4: Likewise.
747         * m4/acosl.m4: Likewise.
748         * m4/asinl.m4: Likewise.
749         * m4/atanl.m4: Likewise.
750         * m4/c-stack.m4: Likewise.
751         * m4/cosl.m4: Likewise.
752         * m4/expl.m4: Likewise.
753         * m4/extensions.m4: Likewise.
754         * m4/fdatasync.m4: Likewise.
755         * m4/fmal.m4: Likewise.
756         * m4/frexp.m4: Likewise.
757         * m4/frexpf.m4: Likewise.
758         * m4/frexpl.m4: Likewise.
759         * m4/fsusage.m4: Likewise.
760         * m4/getdomainname.m4: Likewise.
761         * m4/getloadavg.m4: Likewise.
762         * m4/getopt.m4: Likewise.
763         * m4/gettext.m4: Likewise.
764         * m4/gnulib-common.m4: Likewise.
765         * m4/intdiv0.m4: Likewise.
766         * m4/intlmacosx.m4: Likewise.
767         * m4/largefile.m4: Likewise.
768         * m4/ldexpl.m4: Likewise.
769         * m4/link-follow.m4: Likewise.
770         * m4/locale-ar.m4: Likewise.
771         * m4/locale-fr.m4: Likewise.
772         * m4/locale-ja.m4: Likewise.
773         * m4/locale-tr.m4: Likewise.
774         * m4/locale-zh.m4: Likewise.
775         * m4/locale_h.m4: Likewise.
776         * m4/lock.m4: Likewise.
777         * m4/logl.m4: Likewise.
778         * m4/mathfunc.m4: Likewise.
779         * m4/minus-zero.m4: Likewise.
780         * m4/mktime.m4: Likewise.
781         * m4/mmap-anon.m4: Likewise.
782         * m4/multiarch.m4: Likewise.
783         * m4/nanosleep.m4: Likewise.
784         * m4/nocrash.m4: Likewise.
785         * m4/poll.m4: Likewise.
786         * m4/printf-frexpl.m4: Likewise.
787         * m4/printf.m4: Likewise.
788         * m4/signbit.m4: Likewise.
789         * m4/sinl.m4: Likewise.
790         * m4/sqrtl.m4: Likewise.
791         * m4/strerror_r.m4: Likewise.
792         * m4/tanl.m4: Likewise.
793         * m4/threadlib.m4: Likewise.
794         * m4/ttyname_r.m4: Likewise.
795         * m4/unlink.m4: Likewise.
796         * m4/visibility.m4: Likewise.
797         * m4/wcwidth.m4: Likewise.
798         * tests/minus-zero.h: Likewise.
799         * tests/test-alloca-opt.c: Likewise.
800         * tests/test-copy-acl.sh: Likewise.
801         * tests/test-copy-file.sh: Likewise.
802         * tests/test-fdatasync.c: Likewise.
803         * tests/test-file-has-acl.sh: Likewise.
804         * tests/test-flock.c: Likewise.
805         * tests/test-fsync.c: Likewise.
806         * tests/test-localename.c: Likewise.
807         * tests/test-malloca.c: Likewise.
808         * tests/test-nonblocking-pipe.h: Likewise.
809         * tests/test-nonblocking-socket.h: Likewise.
810         * tests/test-openpty.c: Likewise.
811         * tests/test-posix_openpt.c: Likewise.
812         * tests/test-ptsname.c: Likewise.
813         * tests/test-ptsname_r.c: Likewise.
814         * tests/test-sameacls.c: Likewise.
815         * tests/test-select.h: Likewise.
816         * tests/test-set-mode-acl.sh: Likewise.
817         * tests/test-snprintf-posix.h: Likewise.
818         * tests/test-sprintf-posix.h: Likewise.
819         * tests/test-strtod.c: Likewise.
820         * tests/test-time.c: Likewise.
821         * tests/test-vasnprintf-posix.c: Likewise.
822         * tests/test-vasprintf-posix.c: Likewise.
823         * doc/acl-resources.txt: Likewise.
824         * doc/**/*.texi: Likewise.
825         Reported by Max Horn <max@quendi.de>.
826
827 2012-06-22  Bruno Haible  <bruno@clisp.org>
828
829         grantpt: Relax requirement regarding invalid file descriptors.
830         * lib/grantpt.c: Don't include <fcntl.h>.
831         (grantpt): Don't verify the validity of the file descriptor.
832         * modules/grantpt (Depends-on): Remove fcntl-h.
833         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
834         file descriptors.
835         * doc/posix-functions/grantpt.texi: Document more platforms on which
836         grantpt succeeds for invalid file descriptors.
837         Reported by Rich Felker <dalias@aerifal.cx>.
838
839 2012-06-22  Bruno Haible  <bruno@clisp.org>
840
841         fbufmode test: Don't test unportable behaviour.
842         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
843         (main): Invoke it three times.
844         Reported by Szabolcs Nagy <nsz@port70.net>
845         and Rich Felker <dalias@aerifal.cx>.
846
847 2012-06-21  Bruno Haible  <bruno@clisp.org>
848
849         gnulib-tool: Refactor inctests variable.
850         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
851         (func_modules_transitive_closure,
852         func_modules_transitive_closure_separately,
853         func_import, func_create_testdir): Update.
854
855         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
856         * gnulib-tool: Accept option --without-tests.
857         (func_usage): Document --without-tests option. Rearrange.
858         (inctests): Normalize according to the mode.
859         * NEWS: Mention the change.
860         Suggested by Simon Josefsson.
861
862 2012-06-21  Bruce Korb  <bkorb@gnu.org>
863
864         parse-duration test: Avoid spurious output.
865         * tests/test-parse-duration.sh: Reindent with leading tabs.
866
867 2012-06-21  Jim Meyering  <meyering@redhat.com>
868
869         maint: disable the strncpy prohibition
870         * cfg.mk: Do not prohibit strncpy here.
871
872 2012-06-21  Bruno Haible  <bruno@clisp.org>
873
874         nonblocking: Avoid compilation error on mingw64.
875         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
876         fscanf.
877         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
878         * modules/vfscanf (configure.ac): Likewise.
879         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
880         definition only if stdio.h has prepared it.
881         Reported by Daniel P. Berrange <berrange@redhat.com>.
882
883 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
884
885         gnulib-tool: Use readlink if it is available.
886         * gnulib-tool (func_readlink): Choose function more appropriately.
887
888 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
889
890         posixtm-tests: port to buggy compiler
891         Problem reported by Simon Josefsson in
892         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
893         * modules/posixtm-tests (Depends-on): Add stdint.
894         * tests/test-posixtm.c (struct posixtm_test.t_expected):
895         Now of type int_least64_t, not int64_t, both because that's
896         what INT64_C returns and because int_least64_t works even
897         on 72-bit hosts.
898         (T): Use INT64_C on constants outside the traditional int range,
899         to work around compiler bug noted by Simon.
900
901         mktime: fix integer overflow in 'configure'-time test
902         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
903         after integer overflow.  Problem reported by Rich Felker in
904         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
905         Also, don't look for further instances of a bug if we've already
906         found one instance; this helps 'configure' run faster.
907
908 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
909
910         tmpfile, clean-temp: Fix invocation of GetVersionEx.
911         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
912         GetVersionEx correctly.
913         * lib/clean-temp.c (supports_delete_on_close): Likewise.
914
915 2012-06-20  Bruno Haible  <bruno@clisp.org>
916
917         fdopen: Allow implementations that don't reject invalid fd arguments.
918         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
919         succeeds.
920         Reported by Rich Felker <dalias@aerifal.cx>.
921
922 2012-06-20  Simon Josefsson  <simon@josefsson.org>
923
924         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
925         bring in LIBINTL.
926
927 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
928
929         init.sh: do not rely on autoupated PWD
930         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
931         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
932         Although Nelson's bug was not necessarily fixed by this patch,
933         it seems wise to make the change for safety.
934         * tests/init.sh (path_prepend_): Do not rely on PWD updating
935         automagically after 'cd'; this is not reliable on older shells.
936         (setup_): Fail if we cannot cd to temporary directory.
937
938 2012-06-19  Bruno Haible  <bruno@clisp.org>
939
940         stat, fstat: Avoid warnings on mingw64.
941         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
942         redefining.
943         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
944         Reported by Daniel P. Berrange <berrange@redhat.com>.
945
946 2012-06-19  Bruno Haible  <bruno@clisp.org>
947
948         stdioext: Add support for musl libc.
949
950         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
951         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
952
953         * m4/fseterr.m4: New file.
954         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
955         function exists.
956         * modules/fseterr (Files): Add m4/fseterr.m4.
957         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
958         __fseterr does not exist.
959         (Makefile.am): Remove fseterr.c from lib_SOURCES.
960
961         * lib/freadable.h: Update comment.
962
963         * lib/fwritable.h: Update comment.
964
965         * lib/freading.h: Update comment.
966
967         * lib/fwriting.h: Update comment.
968
969         * m4/freadahead.m4: New file.
970         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
971         that function exists.
972         * modules/freadahead (Files): Add m4/freadahead.m4.
973         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
974         __freadahead does not exist.
975         (Makefile.am): Remove freadahead.c from lib_SOURCES.
976
977         * m4/freadptr.m4: New file.
978         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
979         function exists.
980         * modules/freadptr (Files): Add m4/freadptr.m4.
981         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
982         __freadptr does not exist.
983         (Makefile.am): Remove freadptr.c from lib_SOURCES.
984
985         * m4/freadseek.m4: New file.
986         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
987         exists.
988         * modules/freadseek (Files): Add m4/freadseek.m4.
989         (configure.ac): Invoke gl_FUNC_FREADSEEK.
990
991         * lib/fpurge.c (fpurge): Update comment.
992
993         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
994
995 2012-06-19  Bruno Haible  <bruno@clisp.org>
996
997         *printf-posix: Put more info into config.log.
998         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
999         exit code into config.log.
1000
1001 2012-06-19  Bruno Haible  <bruno@clisp.org>
1002
1003         getopt-gnu: Fix exit code overflow in autoconf test.
1004         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
1005         to keep them below < 128.
1006
1007 2012-06-17  Jim Meyering  <meyering@redhat.com>
1008
1009         maint.mk: fix typo in code to derive GPG key at release time
1010         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
1011
1012 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
1013
1014         regex: avoid warning when pointers are not long
1015         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
1016         and uintptr_t, not long, for portability to hosts where pointers and
1017         long have different sizes.  Issue noted by Daniel P. Berrange in
1018         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
1019         and fix suggested by Bruno Haible in
1020         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
1021
1022 2012-06-17  Bruno Haible  <bruno@clisp.org>
1023
1024         dummy: Relicense into the public domain.
1025         * modules/dummy (License): Set to "public domain".
1026         Suggested by Reuben Thomas.
1027
1028 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
1029
1030         announce-gen: VPATH issues
1031         * build-aux/announce-gen (--srcdir): New option, used to trim the
1032         $srcdir part of the path from $builddir to NEWS.
1033         * top/maint.mk (announcement): Adjust.
1034
1035 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
1036
1037         gnu-web-doc-update: VPATH builds
1038         * build-aux/gnu-web-doc-update (--builddir): New option.
1039         Revamp the handling of options.
1040         Prefer $(...) to `...`.
1041         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
1042         the template, and it is GNU mktemp specific.
1043         Prefer set -e to long series of &&.
1044         Restore the initial git branch, not "master".
1045         Properly initialize submodules (don't rely only on bootstrap).
1046         Do not reconfigure blindly, use config.status.
1047         * top/README-release: Update instructions for gnu-web-doc-update.
1048
1049 2012-06-11  Jim Meyering  <meyering@redhat.com>
1050
1051         maint.mk: revert most of the previous change re "all these"
1052         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
1053         For rationale, see the discussion at
1054         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
1055
1056 2012-06-10  Karl Berry  <karl@gnu.org>
1057
1058         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
1059
1060         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
1061
1062 2012-06-10  Bruce Korb  <bkorb@gnu.org>
1063
1064         parse-duration: Relicense under LGPLv2+.
1065         * modules/parse-duration (License): Change to LGPLv2+.
1066
1067 2012-06-10  Jim Meyering  <meyering@redhat.com>
1068
1069         maint.mk: prohibit common grammar error: "all these"
1070         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
1071         the list of prohibited word sequences.  It should be "all of these".
1072         * lib/tempname.c (__gen_tempname): Fix one of them.
1073
1074 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
1075
1076         do-release-commit-and-tag: support VPATH builds
1077         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
1078         (noteworthy): Defined earlier to factor its value.
1079         (noteworthy_stub): New.
1080         Use it to factor.
1081         (help_version): Split into...
1082         (help, version): these.
1083         Adjust the option processing part.
1084         Support "--option=value" in addition to "--option value".
1085         (builddir): New.
1086         (--builddir): New option.
1087         * top/README-release: Document this.
1088         Reword slightly so that the reader cannot understand that he
1089         has to do these steps before calling do-release-commit-and-tag.
1090
1091 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
1092
1093         readme-release: also require announce-gen and maintainer-makefile
1094         * modules/readme-release (Depends-on): here.
1095         * modules/announce-gen, modules/do-release-commit-and-tag,
1096         modules/gnu-web-doc-update, modules/maintainer-makefile
1097         (Description): Point to readme-release.
1098
1099 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
1100
1101         maint.mk: fix VPATH issues.
1102         * top/maint.mk (news-check): GNU Make understand $< very well.
1103         (release-prep): NEWS is in $(srcdir).
1104
1105 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
1106
1107         readme-release: require the promoted modules.
1108         * modules/readme-release (Depends-on): Add
1109         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
1110         in this text.
1111
1112 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1113             Bruno Haible  <bruno@clisp.org>
1114
1115         error, strerror-override: Support mingw64 from Fedora 17.
1116         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
1117         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
1118         EINPROGRESS.
1119         * lib/strerror-override.h (strerror_override): Test it.
1120         * lib/strerror-override.c (strerror_override): Likewise.
1121         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
1122
1123 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1124             Bruno Haible  <bruno@clisp.org>
1125
1126         error, strerror-override: Support mingw64 from Fedora 17.
1127         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
1128         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
1129         * lib/strerror-override.h (strerror_override): Test it.
1130         * lib/strerror-override.c (strerror_override): Likewise.
1131
1132 2012-06-03  Bruno Haible  <bruno@clisp.org>
1133
1134         error, strerror-override: Support new errno values from POSIX:2008.
1135         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
1136         ENOTRECOVERABLE.
1137         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
1138         platforms.
1139         * lib/strerror-override.c (strerror_override): Conditionalize the
1140         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
1141         * lib/strerror-override.h (strerror_override): Declare also if
1142         GNULIB_defined_EOWNERDEAD is defined.
1143         * tests/test-errno.c (e130, e131): New variables.
1144         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
1145         ENOTRECOVERABLE.
1146         Reported by Paolo Bonzini.
1147
1148 2012-05-31  Jim Meyering  <meyering@redhat.com>
1149
1150         savewd: add missing dependency on sys_wait module
1151         * modules/savewd (Depends-on): Add sys_wait, needed at least
1152         for MSVC.  Report and suggested change by Michael Goffioul.
1153
1154 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1155
1156         system-quote-tests: port to CentOS 5
1157         Problem reported by Tom G. Christensen in
1158         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
1159         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
1160
1161 2012-05-29  Jim Meyering  <meyering@redhat.com>
1162
1163         maint: fix typos in comments and ChangeLog
1164         Culprits identified and fixed mostly automatically using these commands:
1165         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
1166         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
1167         using http://github.com/lyda/misspell-check
1168         * ChangeLog: Fix typos.
1169         * doc/solaris-versions: Likewise.
1170         * lib/regexec.c (re_search_stub): Likewise.
1171         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
1172
1173 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
1174
1175         manywarnings: remove duplicate -Wmultichar entry
1176         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
1177         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
1178         so keep the entry marked as documented.
1179
1180 2012-05-27  Karl Berry  <karl@gnu.org>
1181
1182         * config/srclist.txt (mktime.c): remove last libc sync,
1183         perhaps just temporarily.
1184
1185 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
1186
1187         regex: don't assume uint64_t or uint32_t
1188         * lib/regcomp.c (init_word_char): Don't assume that the types
1189         uint64_t and uint32_t exist.  The C standard doesn't guarantee
1190         them, and on some 32-bit compilers there is no uint64_t.
1191         Problem reported by Gianluigi Tiesi in
1192         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
1193
1194 2012-05-25  Jim Meyering  <meyering@redhat.com>
1195
1196         maint.mk: add strncpy-prohibiting syntax-check rule
1197         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
1198
1199 2012-05-24  Jim Meyering  <meyering@redhat.com>
1200
1201         maint.mk: compute $(gpg_key_ID) more portably
1202         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
1203         That use of sed is not portable to some fringe systems.
1204         Reported by Paul Eggert in
1205         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
1206
1207 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1208
1209         mktime: sync from glibc
1210         * config/srclist.txt: Uncomment mktime.c.
1211         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
1212         First, indent with tabs, since glibc uses tabs and doesn't want to
1213         change and we'd rather be identical to glibc.  Also, two small
1214         coding changes:
1215         (isdst_differ): Use &&, not &, as && is the usual style.
1216         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
1217         for clarity.
1218
1219 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1220
1221         announce-gen: du -h is more portable than du --human
1222         * build-aux/announce-gen (sizes): Invoke du with -h instead
1223         of --human.  Accept leading white space in its output.
1224
1225 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1226
1227         announce-gen: Improve diagnostics.
1228         * build-aux/announce-gen: When parsing command line options,
1229         prefer "announce-gen: option --release-type requires an argument"
1230         to "Option release-type requires an argument".
1231
1232 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1233
1234         maint.mk: gpg_key_ID: use sed more portably
1235         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
1236         the closing brace.
1237         (refresh-po): Fuse two sed invocations into one.
1238
1239 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
1240
1241         gitlog-to-changelog: support the log message format used in Bison.
1242         * build-aux/gitlog-to-changelog: Support --strip-tab and
1243         --strip-cherry-picked.
1244
1245 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1246
1247         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
1248         the rest of the current time slice to another thread in the current
1249         process. So if the thread that feeds the file decscriptor we're
1250         polling is not in the current process, we get busy-waiting.
1251         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
1252         Patch from Theodore Leblond.
1253         * lib/select.c: Split polling out of the loop that sets the output
1254         fd_sets.  Check for zero result and loop if the wait timeout is
1255         infinite.
1256
1257 2012-05-21  Simon Josefsson  <simon@josefsson.org>
1258
1259         select: Fix build error on IRIX 6.5.
1260         * lib/select.c: Include stddef.h for NULL.
1261
1262 2012-05-21  Simon Josefsson  <simon@josefsson.org>
1263
1264         gc: fix libgcrypt detection on older machines.
1265         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
1266         copyright years because the file has been distributed every year
1267         since it was created.
1268
1269 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
1270
1271         crypto: fix bug in large buffer handling
1272         Problem reported by Serge Belyshev for glibc in
1273         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
1274         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
1275         * lib/md4.c (md4_process_block):
1276         * lib/md5.c (md5_process_block):
1277         * lib/sha1.c (sha1_process_block):
1278         * lib/sha256.c (sha256_process_block):
1279         Don't assume the buffer length is less than 2**32.
1280         * lib/sha512.c (sha512_process_block): Likewise.
1281         Here, the bug is present only in the rare case where the host does
1282         not support uint64_t or where size_t is wider than 64 bits.
1283         Use u64size to work around the problems.
1284         * lib/u64.h (u64size): New macro.
1285
1286 2012-05-15  Pádraig Brady  <P@draigBrady.com>
1287
1288         fsusage: fix block size returned on older Linux 2.6
1289
1290         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
1291         which is available since Linux 2.6.
1292         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
1293         when the member is available so it can be used as a fallback.
1294         * doc/posix-functions/statvfs.texi: Mention the hang issue
1295         on Linux < 2.6.36.
1296
1297 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
1298
1299         bootstrap: suppress stderr chatter
1300         * build-aux/bootstrap (insert_sorted_if_absent, main program):
1301         Omit unnecessary chatter to stderr.  The main program chatter
1302         was there only inadvertantly.
1303
1304         bootstrap: .gitignore files created by autopoint, libtool
1305         I ran into this problem when bootstrapping the latest diffutils.
1306         After './bootstrap', 'git status' reported lots of untracked files
1307         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
1308         autopoint and do not need to be version-controlled.
1309         * build-aux/bootstrap: Put into .gitignore the files that
1310         autopoint and libtool create, by keeping track of files that exist
1311         after but not before these programs are run.
1312         (version_controlled_file): Move up.  2nd arg is now full file
1313         name, not base name; this is more convenient.  Put CVS at the end,
1314         as it's now somewhat deprecated.
1315
1316 2012-05-14  Jim Meyering  <meyering@redhat.com>
1317
1318         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
1319         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
1320         definition.  Reported by Bruno Haible.
1321
1322 2012-05-13  Bruno Haible  <bruno@clisp.org>
1323             Paul Eggert  <eggert@cs.ucla.edu>
1324
1325         binary-io: Define set_binary_mode function.
1326         * lib/binary-io.h (set_binary_mode): New function.
1327         (SET_BINARY): Define in terms of set_binary_mode.
1328         * modules/binary-io (configure.ac): Require AC_C_INLINE.
1329         * tests/test-binary-io.c (main): Accept an argument, and test either
1330         set_binary_mode or SET_BINARY depending on the argument.
1331         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
1332         argument. Clean up also t-bin-out0.tmp.
1333
1334 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
1335
1336         bootstrap: take advantage of POSIX shell features
1337
1338         The 'bootstrap' script offered by Gnulib script already uses POSIX
1339         shell features (like $((...)) arithmetic expansions) that are not
1340         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
1341         means that bootstrap must already be run using a proper POSIX shell,
1342         which will thus provide more features, like ${var#pattern} parameter
1343         expansion or inversion of a command exit status with '!'.  We can
1344         thus use these features to improve the clarity and the performances
1345         of the bootstrap script.
1346
1347         Suggested by Eric Blake.
1348
1349         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
1350         of sed/expr plus command substitutions, to save some forks.  While
1351         we are at it, prefer the POSIX $(...) form of command substitution,
1352         rather than the legacy form `...` (since the former is visually
1353         clearer and interacts better with quoting), and prefer the idiom:
1354           "if ! CMD; then ACTION ..."
1355         over the idiom:
1356           "if CMD; then :; else ACTION ..."
1357         which was required by legacy Bourne shells not supporting '!'.
1358
1359 2012-05-12  Bruno Haible  <bruno@clisp.org>
1360
1361         system-quote: Add more comments.
1362         * lib/system-quote.h: Add more comments about wilcards and limitations.
1363         Suggested by Eli Zaretskii <eliz@gnu.org>.
1364
1365         sh-quote, system-quote: Add comments about wildcards.
1366         * lib/sh-quote.h: Clarify what happens with wildcard characters.
1367         * lib/system-quote.h: Likewise.
1368         Reported by Eli Zaretskii <eliz@gnu.org>.
1369
1370 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1371
1372         fsusage: check for GNU/Linux statvfs problem dynamically
1373         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
1374         Define STAT_STATFS2_BSIZE too, since in this case the code now
1375         checks dynamically whether statvfs is reliable, falling back on
1376         Linux-style statfs otherwise.
1377         (statvfs_works): New function, for dynamically testing statvfs.
1378         (get_fs_usage) [STAT_STATVFS]: Use it.
1379         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
1380         statvfs on GNU/Linux hosts, since it's now done dynamically.
1381
1382 2012-05-10  Bruno Haible  <bruno@clisp.org>
1383
1384         system-quote, execute, spawn-pipe: Escape '?' on Windows.
1385         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
1386         '?' character.
1387         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
1388         * tests/test-system-quote-main.c (check_all): Check also strings like
1389         "??????????".
1390         Reported by Eli Zaretskii <eliz@gnu.org>.
1391
1392 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1393
1394         _Noreturn: port config.h to gcc -Wundef
1395         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
1396         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
1397         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
1398
1399 2012-05-10  Bruno Haible  <bruno@clisp.org>
1400
1401         system-quote: Refactor.
1402         * lib/system-quote.h (system_quote_copy): Fix comment.
1403         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
1404         New functions, extracted from system_quote_copy.
1405         (system_quote_length, system_quote_copy): Use these functions.
1406         Reported by Paul Eggert.
1407
1408 2012-05-08  Bruno Haible  <bruno@clisp.org>
1409
1410         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
1411         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
1412
1413 2012-05-08  Bruno Haible  <bruno@clisp.org>
1414
1415         Tests for module 'system-quote'.
1416         * modules/system-quote-tests: New file.
1417         * tests/test-system-quote.sh: New file.
1418         * tests/test-system-quote-main.c: New file.
1419         * tests/test-system-quote-child.c: New file.
1420
1421         New module 'system-quote'.
1422         * lib/system-quote.h: New file.
1423         * lib/system-quote.c: New file.
1424         * modules/system-quote: New file.
1425
1426 2012-05-08  Bruno Haible  <bruno@clisp.org>
1427
1428         sh-quote: Make C++ safe and allow multiple inclusion.
1429         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
1430         declarations in extern "C".
1431
1432 2012-05-08  Bruno Haible  <bruno@clisp.org>
1433
1434         sh-quote tests: Make tests stricter.
1435         * tests/test-sh-quote.c (check_one): Check the return value of
1436         shell_quote_copy.
1437         (main): Check a string with a CR character. Check a string that
1438         contains UCHAR_MAX.
1439
1440 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
1441
1442         warnings.m4: provide a means to specify the program to compile.
1443         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
1444         (gl_WARN_ADD): here.
1445         Use gl_AS_VAR_APPEND.
1446         Support an argument to specify the program to compile.
1447         (gl_WARN_ADD): Accept an argument to specify the program to compile.
1448         AC_SUBST the WARN_CFLAGS when they are used.
1449         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
1450         leave this to gl_WARN_ADD.
1451
1452 2012-05-08  Eric Blake  <eblake@redhat.com>
1453
1454         doc: recommendations on gettext version
1455         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
1456         choice between versions.
1457         * DEPENDENCIES (gettext): Cover both approaches.
1458
1459 2012-05-08  Jim Meyering  <meyering@redhat.com>
1460
1461         init.sh: explain why EXEEXT support uses aliases rather than functions
1462         * tests/init.sh: Add a comment.
1463
1464         init.sh: don't let bash aliases interfere with tests
1465         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
1466         is bash.  This avoids problems for those who alias standard commands to
1467         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
1468         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
1469
1470 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1471
1472         stdint: be more consistent with glibc, SunOS libc
1473         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
1474         (gl_int_fast16_t, gl_uint_fast16_t)
1475         (gl_int_fast32_t, gl_uint_fast32_t)
1476         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
1477         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
1478         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
1479         Be consistent with glibc by default, and with SunOS 5.10 and later
1480         if __sun is defined.  This lessens the likelihood of clashes if
1481         code compiled for older hosts is combined with code compiled for
1482         newer ones.  Problem reported by Niels Möller in
1483         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
1484
1485 2012-05-07  Eric Blake  <eblake@redhat.com>
1486
1487         isatty: relax license to LGPLv2+
1488         * modules/isatty (License): Relax license.
1489
1490 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
1491
1492         stat-size: comment fix
1493         * lib/stat-size.h: Remove obsolete comment about indenting.
1494
1495 2012-05-06  Bruno Haible  <bruno@clisp.org>
1496
1497         Tests for module 'sh-quote'.
1498         * modules/sh-quote-tests: New file.
1499         * tests/test-sh-quote.c: New file.
1500
1501 2012-05-06  Bruno Haible  <bruno@clisp.org>
1502
1503         sh-quote: Improve shell_quote_argv's signature.
1504         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
1505         * lib/sh-quote.c (shell_quote_argv): Likewise.
1506
1507 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
1508
1509         stdint: document issues with int_fast8_t etc.
1510         * doc/posix-headers/stdint.texi (stdint.h): Say that other
1511         stdint.h substitutes may define these types differently.  See
1512         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
1513
1514 2012-05-05  Bruno Haible  <bruno@clisp.org>
1515
1516         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
1517         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
1518         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
1519         or 'guessing no (mishandles large arguments)'.
1520
1521 2012-05-05  Bruno Haible  <bruno@clisp.org>
1522
1523         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
1524         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
1525         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
1526         set gl_cv_func_link_follows_symlink to "guessing no".
1527
1528 2012-05-05  Bruno Haible  <bruno@clisp.org>
1529
1530         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
1531         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
1532         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
1533         "guessing no".
1534         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
1535
1536 2012-05-05  Bruno Haible  <bruno@clisp.org>
1537
1538         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
1539         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
1540         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
1541         set gl_cv_struct_dirent_d_ino to "guessing yes".
1542
1543 2012-05-05  Bruno Haible  <bruno@clisp.org>
1544
1545         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
1546         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
1547         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
1548         "guessing yes".
1549
1550 2012-05-05  Bruno Haible  <bruno@clisp.org>
1551
1552         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
1553         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
1554         compiling to a glibc system, set gl_cv_func_signbit and
1555         gl_cv_func_signbit_gcc to "guessing yes".
1556
1557 2012-05-05  Bruno Haible  <bruno@clisp.org>
1558
1559         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
1560         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
1561         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
1562         to "guessing yes".
1563         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
1564         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
1565
1566 2012-05-05  Bruno Haible  <bruno@clisp.org>
1567
1568         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
1569         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
1570         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
1571         gl_cv_func_realpath_works to "guessing yes".
1572
1573 2012-05-05  Bruno Haible  <bruno@clisp.org>
1574
1575         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
1576         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
1577         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
1578
1579 2012-05-04  Bruno Haible  <bruno@clisp.org>
1580
1581         Tweak last commit.
1582         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
1583         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1584
1585 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
1586
1587         unistd_h: make it easier to avoid sys_types_h
1588         This is useful for Emacs, which has its own method of porting to
1589         Windows, and which therefore does not need the sys_types_h module.
1590         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
1591         code moved here from gl_SYS_TYPES_H.
1592         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
1593         using the code directly.
1594         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
1595         gl_SYS_TYPES_H.
1596         * modules/sys_types (Files):
1597         * modules/unistd (Files): Add m4/off_t.m4.
1598
1599 2012-05-03  Bruno Haible  <bruno@clisp.org>
1600
1601         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
1602         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
1603         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
1604         "guessing yes" or "guessing no".
1605         (gl_FUNC_LSTAT): Update.
1606         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
1607         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
1608         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
1609
1610 2012-05-03  Bruno Haible  <bruno@clisp.org>
1611
1612         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
1613         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
1614         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
1615         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
1616         cross-compiling, choose the first alternative on glibc systems.
1617         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
1618
1619 2012-05-03  Bruno Haible  <bruno@clisp.org>
1620
1621         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
1622         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
1623         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
1624
1625 2012-05-03  Bruno Haible  <bruno@clisp.org>
1626
1627         chown: Avoid "guessing no" when cross-compiling to glibc systems.
1628         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
1629
1630 2012-05-03  Bruno Haible  <bruno@clisp.org>
1631
1632         Avoid "guessing no" guesses when cross-compiling to glibc systems.
1633         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
1634         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
1635         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
1636         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
1637         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
1638         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
1639         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
1640         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
1641         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
1642         compiling to glibc systems, set gl_cv_func_chown_slash_works,
1643         gl_cv_func_chown_ctime_works to "guessing yes".
1644         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
1645         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
1646         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
1647         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
1648         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
1649         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
1650         compiling to glibc systems, set gl_cv_func_open_directory_works to
1651         "guessing yes".
1652         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
1653         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
1654         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
1655         "guessing yes".
1656         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
1657         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
1658         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
1659         compiling to glibc systems, set gl_cv_func_floorf_ieee to
1660         "guessing yes".
1661         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
1662         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
1663         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
1664         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
1665         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
1666         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
1667         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
1668         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
1669         "guessing yes".
1670         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
1671         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
1672         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
1673         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
1674         "guessing yes".
1675         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
1676         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
1677         "guessing yes".
1678         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
1679         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
1680         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
1681         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
1682         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
1683         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
1684         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
1685         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
1686         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
1687         compiling to glibc systems, set gl_cv_func_log10f_ieee to
1688         "guessing yes".
1689         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
1690         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
1691         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
1692         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
1693         "guessing yes".
1694         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
1695         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
1696         "guessing yes".
1697         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
1698         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
1699         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
1700         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
1701         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
1702         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
1703         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
1704         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
1705         compiling to glibc systems, set gl_cv_func_mkfifo_works to
1706         "guessing yes".
1707         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
1708         compiling to glibc systems, set gl_cv_func_mknod_works to
1709         "guessing yes".
1710         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
1711         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
1712         "guessing yes".
1713         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
1714         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
1715         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
1716         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
1717         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
1718         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
1719         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
1720         compiling to glibc systems, set gl_cv_func_svid_putenv to
1721         "guessing yes".
1722         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
1723         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
1724         "guessing yes".
1725         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
1726         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
1727         "guessing yes".
1728         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
1729         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
1730         to "guessing yes".
1731         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
1732         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
1733         to "guessing yes".
1734         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
1735         compiling to glibc systems, set gl_cv_func_rmdir_works to
1736         "guessing yes".
1737         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
1738         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
1739         gl_cv_func_unlink_parent_fails to "guessing yes".
1740         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
1741         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
1742         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
1743         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
1744         gl_cv_func_rename_dest_works to "guessing yes".
1745         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
1746         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
1747         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
1748         compiling to glibc systems, set gl_cv_func_roundf_ieee to
1749         "guessing yes".
1750         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
1751         compiling to glibc systems, set gl_cv_func_roundl_ieee to
1752         "guessing yes".
1753         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
1754         compiling to glibc systems, set gl_cv_func_setenv_works to
1755         "guessing yes".
1756         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
1757         compiling to glibc systems, set gl_cv_func_unsetenv_works to
1758         "guessing yes".
1759         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
1760         compiling to glibc systems, set gl_cv_func_sleep_works to
1761         "guessing yes".
1762         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
1763         compiling to glibc systems, set gl_cv_func_stat_file_slash to
1764         "guessing yes".
1765         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
1766         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
1767         "guessing yes".
1768         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
1769         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
1770         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
1771         compiling to glibc systems, set gl_cv_func_truncf_ieee to
1772         "guessing yes".
1773         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
1774         compiling to glibc systems, set gl_cv_func_truncl_ieee to
1775         "guessing yes".
1776         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
1777         compiling to glibc systems, set gl_cv_func_usleep_works to
1778         "guessing yes".
1779         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
1780         compiling to glibc systems, set gl_cv_func_futimesat_works to
1781         "guessing yes".
1782
1783 2012-05-03  Bruno Haible  <bruno@clisp.org>
1784
1785         Say "guessing yes" or "guessing no" when cross-compiling.
1786         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
1787         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
1788         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
1789         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
1790         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
1791         am_cv_func_working_getline to "guessing yes" or "guessing no".
1792         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
1793         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
1794         (gl_FUNC_MEMMEM): When cross-compiling, set
1795         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
1796         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
1797         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
1798         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
1799         set gl_cv_func_strcasestr_works_always to "guessing yes" or
1800         "guessing no".
1801         (gl_FUNC_STRCASESTR): When cross-compiling, set
1802         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
1803         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
1804         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
1805         (gl_FUNC_STRSTR): When cross-compiling, set
1806         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
1807         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
1808         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
1809         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
1810         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
1811
1812 2012-05-01  Bruno Haible  <bruno@clisp.org>
1813
1814         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
1815         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
1816         * build-aux/reloc-ldflags: Likewise.
1817         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
1818
1819 2012-05-01  Bruno Haible  <bruno@clisp.org>
1820
1821         gnulib-tool: Remove transitional code.
1822         * gnulib-tool: Don't warn about --import with 0 arguments any more.
1823         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1824
1825 2012-05-01  Bruno Haible  <bruno@clisp.org>
1826
1827         getcwd: Fix misindentation.
1828         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
1829
1830 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1831
1832         exclude: process exclude and include directives in order
1833         This restores the pre-2009 behavior, and is part of a fix of a
1834         grep bug reported by Quentin Arce in
1835         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
1836         * lib/exclude.c (struct exclude): Remove 'tail' member.
1837         (new_exclude_segment): Prepend the new segment instead of appending.
1838         Return void, since that's now more convenient.
1839         (file_pattern_matches): Renamed from excluded_file_pattern_p.
1840         (file_name_matches): Renamed from excluded_file_name_p.
1841         (file_pattern_matches, file_name_matches):
1842         Return true if the pattern matches, not if it excludes.
1843         All callers changed.
1844         (excluded_file_name): Process the list in reverse order;
1845         since the list is now reversed this restores the pre-2009 behavior.
1846         (add_exclude): Adjust to new reversed-order list.  Use local var
1847         rather than macro, for clarity.
1848         * tests/test-exclude7.sh: Adjust to corrected behavior.
1849
1850         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
1851         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
1852         it's not possible here.  Handle the case of \ at end of pattern
1853         without dumping core.
1854         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
1855
1856         _Noreturn: future-proof non-GNU and non-MSVC compilers
1857         * build-aux/snippet/_Noreturn.h (_Noreturn):
1858         * m4/gnulib-common.m4 (gl_COMMON_BODY):
1859         Do not define _Noreturn if __STDC_VERSION__ indicates this is
1860         C11 or later.  This is more likely to work with random future C
1861         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
1862         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
1863
1864         exclude: handle wildcards with FNM_EXTMATCH
1865         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
1866         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
1867         comment that "has wildcards" really means "has or may have
1868         wildcards".  Simplify by avoiding the need to call strcspn.
1869
1870 2012-04-29  Bruno Haible  <bruno@clisp.org>
1871
1872         gnulib-tool: Fix list of authors.
1873         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
1874
1875 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
1876
1877         bootstrap: support Automake-NG in $buildreq
1878         * bootstrap (check_versions): Handle automake and aclocal from
1879         Automake-NG specially.  They can be specified as respectively
1880         the "automake-ng" and "aclocal-ng" requirements.
1881
1882 2012-04-25  Eric Blake  <eblake@redhat.com>
1883
1884         bootstrap: only force latest Makefile.in.in for gettext module
1885         * build-aux/bootstrap (with_gettext): Only install latest
1886         Makefile.in.in for projects requesting bleeding edge gettext.
1887
1888 2012-04-22  Bruno Haible  <bruno@clisp.org>
1889
1890         doc: Mention reason for replacement on glibc/Linux systems.
1891         * doc/posix-functions/dprintf.texi: Mention the problem with special
1892         'long double' values.
1893         * doc/posix-functions/fprintf.texi: Likewise.
1894         * doc/posix-functions/printf.texi: Likewise.
1895         * doc/posix-functions/snprintf.texi: Likewise.
1896         * doc/posix-functions/sprintf.texi: Likewise.
1897         * doc/posix-functions/vdprintf.texi: Likewise.
1898         * doc/posix-functions/vfprintf.texi: Likewise.
1899         * doc/posix-functions/vprintf.texi: Likewise.
1900         * doc/posix-functions/vsnprintf.texi: Likewise.
1901         * doc/posix-functions/vsprintf.texi: Likewise.
1902         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
1903         platforms with F_DUPFD_CLOEXEC problems.
1904         * doc/posix-functions/glob.texi: Mention which platforms are affected
1905         by the problem with symbolic links.
1906         * doc/posix-functions/linkat.texi: Mention the problem with
1907         AT_SYMLINK_FOLLOW on Linux.
1908
1909 2012-04-22  Bruno Haible  <bruno@clisp.org>
1910
1911         pwrite: Don't replace on all platforms.
1912         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
1913
1914 2012-04-22  Bruno Haible  <bruno@clisp.org>
1915
1916         rint* tests: Avoid gcc warnings.
1917         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
1918         * tests/test-rintf.c (INFINITY, NAN): Likewise.
1919         * tests/test-rintl.c (INFINITY, NAN): Likewise.
1920
1921 2012-04-21  Bruno Haible  <bruno@clisp.org>
1922
1923         users.txt: Update.
1924         * users.txt: Add freedink, wdiff. Update URLs for projects that have
1925         switched from CVS to git, bzr, or svn.
1926
1927 2012-04-21  Bruno Haible  <bruno@clisp.org>
1928
1929         Large File Support for native Windows platforms.
1930
1931         * m4/largefile.m4 (gl_LARGEFILE): New macro.
1932         * modules/largefile (configure.ac): Require gl_LARGEFILE.
1933
1934         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
1935         type.
1936         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
1937         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
1938         * doc/posix-headers/sys_types.texi: Mention the effect of the
1939         'largefile' module.
1940
1941         * lib/fcntl.in.h: Add comments about off_t.
1942         * modules/fcntl-h (Depends-on): Add sys_types.
1943
1944         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
1945         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
1946         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
1947         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
1948         * modules/unistd (Depends-on): Add sys_types.
1949         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
1950
1951         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
1952         instead of lseek.
1953         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
1954         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
1955         * modules/lseek (Depends-on): Add sys_types.
1956
1957         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
1958         msvc-nothrow.h.
1959         (SetFileSize): New function.
1960         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
1961         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
1962         if Large File Support is requested.
1963         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
1964         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
1965
1966         * lib/stdio.in.h: Add comments about off_t.
1967         * modules/stdio (Depends-on): Add sys_types.
1968
1969         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
1970         instead of ftello.
1971         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
1972         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
1973         (gl_PREREQ_FTELLO): New macro.
1974         * modules/ftello (Depends-on): Add sys_types.
1975         (configure.ac): Incoke gl_PREREQ_FTELLO.
1976
1977         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
1978         instead of fseeko.
1979         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
1980         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
1981         (gl_PREREQ_FSEEKO): New macro.
1982         * modules/fseeko (Depends-on): Add sys_types.
1983         (configure.ac): Invoke gl_PREREQ_FSEEKO.
1984
1985         * lib/sys_stat.in.h: Add comments about off_t.
1986         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
1987         64-bit integer for st_size in 'struct stat'.
1988         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
1989         Define _GL_WINDOWS_64_BIT_ST_SIZE.
1990         * modules/sys_stat (Depends-on): Add sys_types.
1991         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
1992
1993         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
1994         instead of stat or _stat.
1995
1996         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
1997         'struct _stati64' instead of fstat and 'struct stat'.
1998         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
1999         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
2000
2001         Reported by Ray Satiro <raysatiro@yahoo.com>.
2002
2003 2012-04-19  Eric Blake  <eblake@redhat.com>
2004
2005         bootstrap: accommodate older libtool
2006         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
2007         Reported by Daniel P. Berrange.
2008
2009 2012-04-19  Jim Meyering  <meyering@redhat.com>
2010
2011         announce-gen: avoid failure due to lack of Digest::SHA1
2012         Even with the preferred Digest::SHA available, this script
2013         would fail when the backup module, Digest::SHA1, was not installed.
2014         * build-aux/announce-gen: Quote the conditional use of "use".
2015         Reported by Reuben Thomas in:
2016         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
2017
2018         bootstrap: don't let a user's CDPATH setting affect this script
2019         When CDPATH is set, cd will sometimes generate output.
2020         When "cd" is run in a subshell whose output matters, that
2021         surprising-to-some output can cause malfunction.
2022         Unsetting CDPATH turns off this shell "feature."
2023         * build-aux/bootstrap (CDPATH): Unset.
2024         Reported by Reuben Thomas in:
2025         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
2026         and inspired by his patch here:
2027         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
2028
2029 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
2030         and Jim Meyering  <meyering@redhat.com>
2031
2032         maint.mk: catch "see @xref{}" and similar
2033         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
2034         prohibit "See also @xref{", "Also see @pxref{", and similar.
2035
2036 2012-04-16  Jim Meyering  <meyering@redhat.com>
2037
2038         bootstrap: really use gnulib's po/Makefile.in.in
2039         * build-aux/bootstrap: Correct the source file name in previous change.
2040         Reported by Akim Demaille.
2041
2042         configmake: correct minor inconsistency in Makefile rule
2043         * modules/configmake (Makefile.am): All other rules like this one
2044         run the final "mv -f ..." in the same backslash-continued command
2045         as the one that does everything else.  This one put the mv -f ...
2046         command on a separate, non-backslash-continued line.
2047         Make it like the others.
2048
2049         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
2050         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
2051         the one from gettext.  Reported by Akim Demaille.
2052
2053 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
2054
2055         Fix recursion of install-* into po directories.
2056         Bison's install-pdf bug reported by Hans Aberg at
2057         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
2058         * build-aux/po/Makefile.in.in (install-dvi, install-html)
2059         (install-info, install-pdf, install-ps): New targets.
2060
2061 2012-04-16  Jim Meyering  <meyering@redhat.com>
2062
2063         maint: avoid spurious "make sc_maint" failure
2064         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
2065         exempt all *.class file names, for lib/javaversion.class.
2066
2067 2012-04-15  Bruno Haible  <bruno@clisp.org>
2068
2069         lseek: Make configure test independent of environment.
2070         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
2071         Windows, we know that lseek() on pipes is broken; skip the runtime
2072         test.
2073
2074 2012-04-14  Bruno Haible  <bruno@clisp.org>
2075
2076         stat: Bypass buggy override in mingw64.
2077         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
2078         * lib/stat.c (stat) [mingw64]: Define to _stat.
2079         * doc/posix-functions/stat.texi: Mention mingw64 bug.
2080
2081 2012-04-14  Bruno Haible  <bruno@clisp.org>
2082
2083         pathmax: Fix compilation error on MSVC 9.
2084         * modules/pathmax (Depends-on): Add unistd.
2085
2086 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
2087
2088         README: document pointer comparison assumption
2089         * README (Portability guidelines): Document assumption about
2090         pointer comparisons, in response to a recent bug-gnulib comment by
2091         Jeffrey Kegler.
2092
2093 2012-04-12  Bruno Haible  <bruno@clisp.org>
2094
2095         Tests for module 'getrusage'.
2096         * modules/getrusage-tests: New file.
2097         * tests/test-getrusage.c: New file.
2098
2099         New module 'getrusage'.
2100         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
2101         warn-on-use.h.
2102         (getrusage): New declaration.
2103         * lib/getrusage.c: New file.
2104         * m4/getrusage.m4: New file.
2105         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
2106         is declared.
2107         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
2108         HAVE_GETRUSAGE.
2109         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
2110         snippet/c++defs, snippet/warn-on-use.
2111         (Makefile.am): Update generation of sys/resource.h. Substitute
2112         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
2113         * modules/getrusage: New file.
2114         * doc/posix-functions/getrusage.texi: Mention the new module.
2115
2116 2012-04-12  Bruno Haible  <bruno@clisp.org>
2117
2118         Tests for module 'sys_resource'.
2119         * modules/sys_resource-tests: New file.
2120         * tests/test-sys_resource.c: New file.
2121
2122         New module 'sys_resource'.
2123         * lib/sys_resource.in.h: New file.
2124         * m4/sys_resource_h.m4: New file.
2125         * modules/sys_resource: New file.
2126         * doc/posix-headers/sys_resource.texi: Mention the new module.
2127
2128 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
2129
2130         ioctl: Fix compilation error on mingw.
2131         * lib/ioctl.c: Include <windows.h>.
2132         Also reported by Ray Satiro <raysatiro@yahoo.com>.
2133
2134 2012-04-04  Jim Meyering  <meyering@redhat.com>
2135
2136         regex: correct #pragma guard expression
2137         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
2138         not 4.3.  Correct its cpp guard expression.
2139
2140 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
2141
2142         regex: remove unnecessary type punning
2143         Problem reported by Vladimir Serbinenko in
2144         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
2145         * lib/regex.h (struct re_pattern_buffer): Change the type of
2146         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
2147         Fix comment to match code.
2148         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
2149         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
2150         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
2151         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
2152         (set_regs):
2153         Omit no-longer-necessary casts.
2154
2155 2012-04-03  Bruno Haible  <bruno@clisp.org>
2156
2157         Tests for module 'ilogbl'.
2158         * modules/ilogbl-tests: New file.
2159         * tests/test-ilogbl.c: New file.
2160
2161         New module 'ilogbl'.
2162         * lib/math.in.h (ilogbl): New declaration.
2163         * lib/ilogbl.c: New file.
2164         * m4/ilogbl.m4: New file.
2165         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
2166         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
2167         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
2168         Split sed invocation, to avoid the limit of 100 substitutions of
2169         HP-UX 'sed'.
2170         * modules/ilogbl: New file.
2171         * tests/test-math-c++.cc: Check the declaration of ilogbl.
2172         * doc/posix-functions/ilogbl.texi: Mention the new module.
2173
2174 2012-04-03  Bruno Haible  <bruno@clisp.org>
2175
2176         Tests for module 'ilogbf'.
2177         * modules/ilogbf-tests: New file.
2178         * tests/test-ilogbf.c: New file.
2179
2180         New module 'ilogbf'.
2181         * lib/math.in.h (ilogbf): New declaration.
2182         * lib/ilogbf.c: New file.
2183         * m4/ilogbf.m4: New file.
2184         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
2185         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
2186         REPLACE_ILOGBF.
2187         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
2188         REPLACE_ILOGBF.
2189         * modules/ilogbf: New file.
2190         * tests/test-math-c++.cc: Check the declaration of ilogbf.
2191         * doc/posix-functions/ilogbf.texi: Mention the new module.
2192
2193 2012-04-03  Bruno Haible  <bruno@clisp.org>
2194
2195         Tests for module 'ilogb'.
2196         * modules/ilogb-tests: New file.
2197         * tests/test-ilogb.c: New file.
2198         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
2199         tests/test-logb-ieee.h.
2200
2201         New module 'ilogb'.
2202         * lib/math.in.h (ilogb): New declaration.
2203         * lib/ilogb.c: New file.
2204         * m4/ilogb.m4: New file.
2205         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
2206         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
2207         REPLACE_ILOGB.
2208         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
2209         REPLACE_ILOGB.
2210         * modules/ilogb: New file.
2211         * tests/test-math-c++.cc: Check the declaration of ilogb.
2212         * doc/posix-functions/ilogb.texi: Mention the new module.
2213
2214 2012-04-03  Bruno Haible  <bruno@clisp.org>
2215
2216         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
2217         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
2218         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
2219         (main): Check their values.
2220         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
2221         problem.
2222
2223 2012-04-03  Bruno Haible  <bruno@clisp.org>
2224
2225         Tests for module 'logbl-ieee'.
2226         * modules/logbl-ieee-tests: New file.
2227         * tests/test-logbl-ieee.c: New file.
2228
2229         New module 'logbl-ieee'.
2230         * modules/logbl-ieee: New file.
2231
2232         Tests for module 'logb-ieee'.
2233         * modules/logb-ieee-tests: New file.
2234         * tests/test-logb-ieee.c: New file.
2235
2236         New module 'logb-ieee'.
2237         * modules/logb-ieee: New file.
2238
2239         Tests for module 'logbf-ieee'.
2240         * modules/logbf-ieee-tests: New file.
2241         * tests/test-logbf-ieee.c: New file.
2242         * tests/test-logb-ieee.h: New file.
2243
2244         New module 'logbf-ieee'.
2245         * modules/logbf-ieee: New file.
2246
2247 2012-04-03  Bruno Haible  <bruno@clisp.org>
2248
2249         Tests for module 'logbl'.
2250         * modules/logbl-tests: New file.
2251         * tests/test-logbl.c: New file.
2252
2253         New module 'logbl'.
2254         * lib/math.in.h (logbl): New declaration.
2255         * lib/logbl.c: New file.
2256         * m4/logbl.m4: New file.
2257         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
2258         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
2259         REPLACE_LOGBL.
2260         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
2261         REPLACE_LOGBL.
2262         * modules/logbl: New file.
2263         * tests/test-math-c++.cc: Check the declaration of logbl.
2264         * doc/posix-functions/logbl.texi: Mention the new module.
2265
2266 2012-04-02  Bruno Haible  <bruno@clisp.org>
2267
2268         Tests for module 'logbf'.
2269         * modules/logbf-tests: New file.
2270         * tests/test-logbf.c: New file.
2271
2272         New module 'logbf'.
2273         * lib/math.in.h (logbf): New declaration.
2274         * lib/logbf.c: New file.
2275         * m4/logbf.m4: New file.
2276         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
2277         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
2278         REPLACE_LOGBF.
2279         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
2280         REPLACE_LOGBF.
2281         * modules/logbf: New file.
2282         * tests/test-math-c++.cc: Check the declaration of logbf.
2283         * doc/posix-functions/logbf.texi: Mention the new module.
2284
2285 2012-04-02  Bruno Haible  <bruno@clisp.org>
2286
2287         logb tests: More tests.
2288         * tests/test-logb.h: New file, based on tests/test-logb.c and
2289         tests/test-frexp.h.
2290         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
2291         (main): Just invoke test_function.
2292         * modules/logb-tests (Files): Add tests/test-logb.h,
2293         tests/minus-zero.h, tests/randomd.c.
2294         (Makefile.am): Add randomd.c to test_logb_SOURCES.
2295
2296         logb: Provide replacement and workarounds.
2297         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
2298         is 1.
2299         * lib/logb.c: New file.
2300         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
2301         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
2302         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
2303         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
2304         * modules/logb (Files): Add lib/logb.c.
2305         (Depends-on): Add isfinite, frexp, isnand.
2306         (configure.ac): Compile the replacement code logb.c if needed.
2307         * tests/test-math-c++.cc: Check the declaration of logb.
2308         * doc/posix-functions/logb.texi: Mention the replacement and the bug
2309         with subnormal numbers.
2310
2311 2012-04-02  Bruno Haible  <bruno@clisp.org>
2312
2313         log10* tests: Speed up.
2314         * tests/test-log10.h (test_function): Reduce amount of random numbers
2315         to test.
2316
2317 2012-04-01  Bruno Haible  <bruno@clisp.org>
2318
2319         logf-ieee: Fix test whether logf works.
2320         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
2321
2322 2012-04-01  Bruno Haible  <bruno@clisp.org>
2323
2324         log10l: Work around log10l-ieee test failure on IRIX 6.5.
2325         * lib/log10l.c: Include <float.h>
2326         (log10l): On IRIX, normalize the +Infinity value.
2327         * modules/log10l (Depends-on): Add 'float'.
2328         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
2329         +Infinity.
2330
2331         log10f-ieee: Work around test failure on NetBSD 5.1.
2332         * m4/log10f-ieee.m4: New file.
2333         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
2334         test whether log10f works with a negative argument. Replace it if not.
2335         * lib/log10f.c (log10f): For negative arguments, return NaN.
2336         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
2337         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
2338         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
2339
2340         log10f-ieee: Work around test failure on Solaris 9.
2341         * modules/log10f-ieee (Depends-on): Add log10-ieee.
2342         (configure.ac): Require gl_FUNC_LOG10F.
2343
2344         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
2345         * m4/log10-ieee.m4: New file.
2346         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
2347         whether log10 works with a negative argument. Replace it if not.
2348         * lib/log10.c (log10): For negative arguments, return NaN.
2349         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
2350         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
2351         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
2352
2353         Tests for module 'log10l-ieee'.
2354         * modules/log10l-ieee-tests: New file.
2355         * tests/test-log10l-ieee.c: New file.
2356
2357         New module 'log10l-ieee'.
2358         * modules/log10l-ieee: New file.
2359
2360         Tests for module 'log10-ieee'.
2361         * modules/log10-ieee-tests: New file.
2362         * tests/test-log10-ieee.c: New file.
2363
2364         New module 'log10-ieee'.
2365         * modules/log10-ieee: New file.
2366
2367         Tests for module 'log10f-ieee'.
2368         * modules/log10f-ieee-tests: New file.
2369         * tests/test-log10f-ieee.c: New file.
2370         * tests/test-log10-ieee.h: New file.
2371
2372         New module 'log10f-ieee'.
2373         * modules/log10f-ieee: New file.
2374
2375 2012-04-01  Bruno Haible  <bruno@clisp.org>
2376
2377         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
2378         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
2379         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
2380         workaround.
2381         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
2382         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
2383         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
2384         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
2385         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
2386         (Depends-on): Update conditions.
2387         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
2388         IRIX 6.5, OSF/1 5.1 problems.
2389
2390 2012-04-01  Bruno Haible  <bruno@clisp.org>
2391
2392         log10f: Work around OSF/1 5.1 bug.
2393         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
2394         * lib/log10f.c (log10f): If logf exists, use it and provide just the
2395         workaround.
2396         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
2397         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
2398         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
2399         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
2400         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
2401         (Depends-on): Update conditions.
2402         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
2403
2404 2012-04-01  Bruno Haible  <bruno@clisp.org>
2405
2406         log10: Work around OSF/1 5.1 bug.
2407         * lib/math.in.h (log10): New declaration.
2408         * lib/log10.c: New file.
2409         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
2410         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
2411         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
2412         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
2413         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
2414         * modules/log10 (Files): Add lib/log10.c.
2415         (Depends-on): Add math.
2416         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
2417         * tests/test-math-c++.cc: Check the declaration of log10.
2418         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
2419
2420 2012-03-31  Bruno Haible  <bruno@clisp.org>
2421
2422         log10l tests: More tests.
2423         * modules/log10l-tests (Files): Add tests/test-log10l.h,
2424         tests/minus-zero.h, tests/randoml.c.
2425         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
2426         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
2427         (main): Invoke test_function.
2428
2429         log10f tests: More tests.
2430         * modules/log10f-tests (Files): Add tests/test-log10.h,
2431         tests/minus-zero.h, tests/randomf.c.
2432         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
2433         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
2434         (main): Invoke test_function.
2435
2436         log10 tests: More tests.
2437         * tests/test-log10.h: New file.
2438         * modules/log10-tests (Files): Add tests/test-log10.h,
2439         tests/minus-zero.h, tests/randomd.c.
2440         (Makefile.am): Add randomd.c to test_log10_SOURCES.
2441         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
2442         (main): Invoke test_function.
2443
2444 2012-03-31  Simon Josefsson  <simon@josefsson.org>
2445
2446         fflush: Fix syntax error.
2447         * lib/fflush.c: Include unused-parameter.h, needed for
2448         _GL_UNUSED_PARAMETER.
2449         * modules/fflush (Depends-on): Add snippet/unused-parameter.
2450
2451 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
2452
2453         regex: pacify GCC when compiling GRUB
2454         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
2455         a diagnostic.  Reported by Vladimir Serbinenko in
2456         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
2457
2458 2012-03-29  Eric Blake  <eblake@redhat.com>
2459
2460         stdio: don't assume gets any more
2461         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
2462         support.
2463         * modules/stdio (Makefile.am): Likewise.
2464         * lib/stdio-read.c (gets): Likewise.
2465         * tests/test-stdio-c++.cc: Likewise.
2466         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
2467         * lib/stdio.in.h (gets): Make warning occur in more places.
2468         * doc/posix-functions/gets.texi (gets): Update documentation.
2469         Reported by Christer Solskogen.
2470
2471         maint.mk: fix syntax checks without exclusions
2472         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
2473         Reported by Daniel P. Berrange.
2474
2475         strerror_r: avoid compiler warning
2476         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
2477         level.
2478
2479         fflush: avoid compiler warning
2480         * lib/fflush.c (update_fpos_cache): Mark variables that are
2481         potentially unused.
2482
2483 2012-03-25  Bruno Haible  <bruno@clisp.org>
2484
2485         Tests for module 'localeconv'.
2486         * modules/localeconv-tests: New file.
2487         * tests/test-localeconv.c: New file.
2488
2489         New module 'localeconv'.
2490         * lib/locale.in.h (localeconv): New declaration.
2491         * lib/localeconv.c: New file.
2492         * m4/localeconv.m4: New file.
2493         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
2494         REPLACE_LOCALECONV.
2495         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
2496         REPLACE_LOCALECONV.
2497         * modules/localeconv: New file.
2498         * modules/nl_langinfo (Depends-on): Add localeconv.
2499         * modules/human (Depends-on): Likewise.
2500         * doc/posix-functions/localeconv.texi: Mention the new module.
2501
2502 2012-03-25  Bruno Haible  <bruno@clisp.org>
2503
2504         locale: Provide a complete 'struct lconv'.
2505         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
2506         'struct lconv' does not contain int_p_cs_precedes.
2507         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
2508         * doc/posix-headers/locale.texi: Update.
2509
2510         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
2511         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
2512         * doc/posix-headers/locale.texi: Update.
2513
2514         locale: Provide a working 'struct lconv'.
2515         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
2516         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
2517         'struct lconv' does not even contain decimal_point.
2518         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
2519         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
2520         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
2521         * doc/posix-headers/locale.texi: Mention the problems with
2522         'struct lconv'.
2523         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
2524
2525 2012-03-24  Bruno Haible  <bruno@clisp.org>
2526
2527         Enable common subexpression optimization in GCC.
2528         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
2529         macros.
2530         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
2531         GCC attribute 'const'.
2532         (uc_locale_language): Declare with GCC attribute 'pure'.
2533         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
2534         with GCC attribute 'const'.
2535         * lib/unictype.in.h (uc_is_general_category_withtable,
2536         uc_combining_class, uc_combining_class_name,
2537         uc_combining_class_long_name, uc_bidi_class_name,
2538         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
2539         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
2540         uc_decimal_value, uc_digit_value, uc_numeric_value,
2541         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
2542         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
2543         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
2544         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
2545         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
2546         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
2547         Declare with GCC attribute 'const'.
2548         (uc_general_category_name, uc_general_category_long_name,
2549         uc_general_category_byname, uc_general_category,
2550         uc_is_general_category, uc_combining_class_byname,
2551         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
2552         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
2553         Declare with GCC attribute 'pure'.
2554         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
2555         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
2556         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
2557         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
2558         with GCC attribute 'pure'.
2559         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
2560         'const'.
2561         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
2562         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
2563         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
2564         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
2565         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
2566         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
2567         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
2568         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
2569         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
2570         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
2571         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
2572         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
2573         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
2574         GCC attribute 'pure'.
2575         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
2576         'const'.
2577         * lib/uniwidth.in.h (uc_width): Simplify declaration.
2578         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
2579         u32_strwidth): Declare with GCC attribute 'pure'.
2580
2581         Enable common subexpression optimization in GCC.
2582         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2583         (alphasort): Declare with GCC attribute 'pure'.
2584         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2585         (atoll): Declare with GCC attribute 'pure'.
2586         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
2587         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
2588         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
2589         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2590         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
2591         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
2592         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
2593
2594 2012-03-24  Bruno Haible  <bruno@clisp.org>
2595
2596         gnulib-tool: Avoid unintended error output from 'cmp'.
2597         * gnulib-tool (func_add_file, func_update_file, func_import): Use
2598         "cmp -s", not "cmp > /dev/null".
2599
2600 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
2601
2602         gnulib-tool: fix imprecise comments w.r.t. an automake bug
2603
2604         It's not just Automake versions < 1.9b that creates an empty
2605         pkgdatadir at installation time if pkgdata_DATA is specified
2606         to empty; modern automake versions do this as well, at least
2607         until automake 1.11.4 (not yet released at the moment of writing,
2608         but soon to appear).  That behaviour was generally considered a
2609         feature rather than a bug, at least until this discussion:
2610         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
2611
2612         See also automake bugs #10997 and #11030.
2613
2614         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
2615         reference to relevant automake bug numbers.
2616         (func_emit_tests_Makefile_am): Likewise.
2617
2618 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
2619
2620         announce-gen: use Digest::SHA when possible
2621         * build-aux/announce-gen: Use Digest::SHA when possible, falling
2622         back to Digest::SHA1 if necessary.
2623
2624 2012-03-20  Jim Meyering  <meyering@redhat.com>
2625
2626         tests: avoid gcc warnings about argv vs. const initializers
2627         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
2628         warnings about discarding 'const' qualifier from pointer target type.
2629         * tests/test-posix_spawn2.c (main): Likewise.
2630
2631 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
2632
2633         README-release: simplify slightly
2634         * top/README-release: Run "git checkout master" only once.
2635
2636 2012-03-15  Mark Wielaard  <mark@klomp.org>
2637
2638         git-merge-changelog: add specific example on how to use with hg.
2639         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
2640
2641 2012-03-18  Mark Wielaard  <mark@klomp.org>
2642
2643         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
2644
2645 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
2646
2647         git-version-gen: don't let "prefix" envvar cause trouble
2648         * build-aux/git-version-gen (prefix): Initialize properly,
2649         so as not to use a value specified via the environment.
2650         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
2651
2652 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2653
2654         regex: diagnose too-large repeat counts in EREs
2655         Previously, the code did not diagnose the too-large repeat count
2656         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
2657         as if it were 'b\{1000000000}', which is unexpected.
2658         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
2659         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
2660         is a reasonable one for this problem.  Another option would be to
2661         create a new REG_OVERFLOW error for repeat counts that are too large.
2662         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
2663         count is too large, so that the caller can distinguish the two cases.
2664         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
2665         "Too large" return code, and that repeat counts are one example of this.
2666
2667 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2668
2669         doc: some glibc x32 integer width issues
2670         * doc/posix-headers/sys_types.texi (sys/types.h):
2671         * doc/posix-headers/time.texi (time.h):
2672         Mention that glibc x32 does not conform to POSIX in a couple of
2673         areas related to integer widths.
2674
2675 2012-03-15  Bruno Haible  <bruno@clisp.org>
2676
2677         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
2678         * lib/fma.c (VOLATILE): New macro.
2679         (FUNC): Use it to work around a GCC compiler bug.
2680
2681 2012-03-13  Bruno Haible  <bruno@clisp.org>
2682
2683         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2684         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
2685         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
2686         REPLACE_HYPOTL to 1.
2687         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
2688
2689 2012-03-13  Bruno Haible  <bruno@clisp.org>
2690
2691         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2692         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
2693         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
2694         REPLACE_REMAINDERL to 1.
2695         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
2696         bug.
2697
2698 2012-03-13  Bruno Haible  <bruno@clisp.org>
2699
2700         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2701         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
2702         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
2703         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
2704         too big rounding errors.
2705         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
2706         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
2707         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
2708         (Depends-on): Update conditions.
2709         * tests/test-sqrtl.c (my_ldexpl): New function.
2710         (main): Add test of a particular value.
2711         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2712
2713 2012-03-13  Pádraig Brady  <P@draigBrady.com>
2714
2715         doc: Update timer_* platform portability notes.
2716         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
2717         that always return ENOSYS.
2718         * doc/posix-functions/timer_delete.texi: Likewise.
2719         * doc/posix-functions/timer_gettime.texi: Likewise.
2720         * doc/posix-functions/timer_settime.texi: Likewise.
2721
2722 2012-03-13  Bruno Haible  <bruno@clisp.org>
2723
2724         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2725         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
2726         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
2727         REPLACE_CBRTL to 1.
2728         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2729
2730 2012-03-13  Bruno Haible  <bruno@clisp.org>
2731
2732         remainderl: Avoid compilation error on AIX >= 5.2.
2733         * lib/math.in.h (remainderl): Undefine macro from the system header.
2734
2735 2012-03-13  Bruno Haible  <bruno@clisp.org>
2736
2737         Avoid compilation errors with MSVC option -fp:strict.
2738         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
2739         * lib/cbrtf.c: Likewise.
2740         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2741
2742 2012-03-12  Bruno Haible  <bruno@clisp.org>
2743
2744         uninorm: Don't crash in out-of-memory conditions.
2745         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
2746         gracefully.
2747         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
2748         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
2749
2750 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
2751
2752         quote: fix syntax-check
2753         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
2754         also exports quote_quoting_options.
2755
2756 2012-03-12  Simon Josefsson  <simon@josefsson.org>
2757
2758         Collapse list of copyright years to ranges.  See
2759         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
2760         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
2761         build-aux/csharpexec.sh.in, build-aux/gnupload,
2762         build-aux/install-reloc, build-aux/javacomp.sh.in,
2763         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
2764         build-aux/move-if-change, build-aux/reloc-ldflags,
2765         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
2766
2767 2012-03-11  Bruno Haible  <bruno@clisp.org>
2768
2769         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2770         * m4/log2f-ieee.m4: New file.
2771         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
2772         whether log2f works with a minus zero argument. Replace it if not.
2773         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
2774         (Depends-on): Add log2-ieee.
2775         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
2776         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
2777
2778         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2779         * m4/log2-ieee.m4: New file.
2780         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
2781         whether log2 works with a minus zero argument. Replace it if not.
2782         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
2783         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
2784         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
2785
2786         Tests for module 'log2l-ieee'.
2787         * modules/log2l-ieee-tests: New file.
2788         * tests/test-log2l-ieee.c: New file.
2789
2790         New module 'log2l-ieee'.
2791         * modules/log2l-ieee: New file.
2792
2793         Tests for module 'log2-ieee'.
2794         * modules/log2-ieee-tests: New file.
2795         * tests/test-log2-ieee.c: New file.
2796
2797         New module 'log2-ieee'.
2798         * modules/log2-ieee: New file.
2799
2800         Tests for module 'log2f-ieee'.
2801         * modules/log2f-ieee-tests: New file.
2802         * tests/test-log2f-ieee.c: New file.
2803         * tests/test-log2-ieee.h: New file.
2804
2805         New module 'log2f-ieee'.
2806         * modules/log2f-ieee: New file.
2807
2808 2012-03-11  Bruno Haible  <bruno@clisp.org>
2809
2810         Tests for module 'log2l'.
2811         * modules/log2l-tests: New file.
2812         * tests/test-log2l.c: New file.
2813
2814         New module 'log2l'.
2815         * lib/math.in.h (log2l): New declaration.
2816         * lib/log2l.c: New file.
2817         * m4/log2l.m4: New file.
2818         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
2819         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
2820         REPLACE_LOG2L.
2821         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
2822         REPLACE_LOG2L.
2823         * modules/log2l: New file.
2824         * tests/test-math-c++.cc: Check the declaration of log2l.
2825         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
2826         and OSF/1 problems.
2827
2828 2012-03-11  Bruno Haible  <bruno@clisp.org>
2829
2830         Tests for module 'log2f'.
2831         * modules/log2f-tests: New file.
2832         * tests/test-log2f.c: New file.
2833
2834         New module 'log2f'.
2835         * lib/math.in.h (log2f): New declaration.
2836         * lib/log2f.c: New file.
2837         * m4/log2f.m4: New file.
2838         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
2839         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
2840         REPLACE_LOG2F.
2841         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
2842         REPLACE_LOG2F.
2843         * modules/log2f: New file.
2844         * tests/test-math-c++.cc: Check the declaration of log2f.
2845         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
2846         and OSF/1 and Cygwin problems.
2847
2848 2012-03-11  Bruno Haible  <bruno@clisp.org>
2849
2850         Tests for module 'log2'.
2851         * modules/log2-tests: New file.
2852         * tests/test-log2.c: New file.
2853         * tests/test-log2.h: New file.
2854
2855         New module 'log2'.
2856         * lib/math.in.h (log2): New declaration.
2857         * lib/log2.c: New file.
2858         * m4/log2.m4: New file.
2859         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
2860         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
2861         REPLACE_LOG2.
2862         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
2863         REPLACE_LOG2.
2864         * modules/log2: New file.
2865         * tests/test-math-c++.cc: Check the declaration of log2.
2866         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
2867         and OSF/1 and Cygwin problems.
2868
2869 2012-03-11  Bruno Haible  <bruno@clisp.org>
2870
2871         exp2* tests: More tests.
2872         * tests/test-exp2.h (test_function): Test all integral arguments that
2873         don't need to overflow or denormalized numbers.
2874         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
2875         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
2876         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
2877
2878 2012-03-10  Bruno Haible  <bruno@clisp.org>
2879
2880         log1pl-ieee: Work around test failure on AIX 7.1.
2881         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
2882
2883         log1pl-ieee: Work around test failure on IRIX 6.5.
2884         * m4/log1pl-ieee.m4: New file.
2885         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
2886         test whether log1pl works with a minus zero argument. Replace it if
2887         not.
2888         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
2889         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
2890         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
2891         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
2892         (Depends-on): Update conditions.
2893         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2894         m4/signbit.m4.
2895         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
2896         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
2897
2898         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
2899         * m4/log1pf-ieee.m4: New file.
2900         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
2901         test whether log1pf works with a minus zero argument. Replace it if
2902         not.
2903         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
2904         m4/signbit.m4.
2905         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
2906         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
2907
2908         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
2909         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
2910         (configure.ac): Require gl_FUNC_LOG1PF.
2911
2912         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
2913         * m4/log1p-ieee.m4: New file.
2914         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
2915         whether log1p works with a minus zero argument. Replace it if not.
2916         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
2917         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
2918         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
2919         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
2920         (Depends-on): Update conditions.
2921         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2922         m4/signbit.m4.
2923         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
2924         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
2925
2926         Tests for module 'log1pl-ieee'.
2927         * modules/log1pl-ieee-tests: New file.
2928         * tests/test-log1pl-ieee.c: New file.
2929
2930         New module 'log1pl-ieee'.
2931         * modules/log1pl-ieee: New file.
2932
2933         Tests for module 'log1p-ieee'.
2934         * modules/log1p-ieee-tests: New file.
2935         * tests/test-log1p-ieee.c: New file.
2936
2937         New module 'log1p-ieee'.
2938         * modules/log1p-ieee: New file.
2939
2940         Tests for module 'log1pf-ieee'.
2941         * modules/log1pf-ieee-tests: New file.
2942         * tests/test-log1pf-ieee.c: New file.
2943         * tests/test-log1p-ieee.h: New file.
2944
2945         New module 'log1pf-ieee'.
2946         * modules/log1pf-ieee: New file.
2947
2948 2012-03-10  Bruno Haible  <bruno@clisp.org>
2949
2950         Tests for module 'log1pl'.
2951         * modules/log1pl-tests: New file.
2952         * tests/test-log1pl.c: New file.
2953
2954         New module 'log1pl'.
2955         * lib/math.in.h (log1pl): New declaration.
2956         * lib/log1pl.c: New file.
2957         * m4/log1pl.m4: New file.
2958         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
2959         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
2960         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
2961         * modules/log1pl: New file.
2962         * tests/test-math-c++.cc: Check the declaration of log1pl.
2963         * doc/posix-functions/log1pl.texi: Mention the new module.
2964
2965 2012-03-10  Bruno Haible  <bruno@clisp.org>
2966
2967         Tests for module 'log1pf'.
2968         * modules/log1pf-tests: New file.
2969         * tests/test-log1pf.c: New file.
2970
2971         New module 'log1pf'.
2972         * lib/math.in.h (log1pf): New declaration.
2973         * lib/log1pf.c: New file.
2974         * m4/log1pf.m4: New file.
2975         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
2976         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
2977         REPLACE_LOG1PF.
2978         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
2979         REPLACE_LOG1PF.
2980         * modules/log1pf: New file.
2981         * tests/test-math-c++.cc: Check the declaration of log1pf.
2982         * doc/posix-functions/log1pf.texi: Mention the new module.
2983
2984 2012-03-10  Bruno Haible  <bruno@clisp.org>
2985
2986         log1p tests: More tests.
2987         * tests/test-log1p.h: New file.
2988         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
2989         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
2990         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
2991         (main): Invoke test_function.
2992
2993         log1p: Provide replacement for Minix and MSVC.
2994         * lib/math.in.h (log1p): New declaration.
2995         * lib/log1p.c: New file.
2996         * m4/log1p.m4: New file.
2997         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
2998         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
2999         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
3000         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
3001         (Depends-on): Add math, isnand, log, round.
3002         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
3003         HAVE_LOG1P is 0.
3004         * tests/test-math-c++.cc: Check the declaration of log1p.
3005         * doc/posix-functions/log1p.texi: Mention the replacement.
3006
3007 2012-03-10  Bruno Haible  <bruno@clisp.org>
3008
3009         math tests: Small simplification.
3010         * tests/test-exp.h (test_function): Use the same err_bound for
3011         'double' on platforms with sizeof (long double) == sizeof (double)
3012         than on platforms with sizeof (long double) > sizeof (double).
3013         * tests/test-exp2.h (test_function): Likewise.
3014         * tests/test-expm1.h (test_function): Likewise.
3015         * tests/test-log.h (test_function): Likewise.
3016
3017 2012-03-10  Bruno Haible  <bruno@clisp.org>
3018
3019         Fix some comments.
3020         * lib/expl.c: Fix an ambiguous comment.
3021         * lib/expm1.c: Likewise.
3022         * lib/expm1l.c: Likewise.
3023         * lib/exp2.c: Likewise.
3024         * lib/exp2l.c: Likewise.
3025
3026 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
3027
3028         regex: allow inclusion of <regex.h> before <limits.h>
3029         Without this patch, portable programs had to include <limits.h> before
3030         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
3031         I ran into this problem with a test version of GNU grep on Solaris 8.
3032         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
3033         This is done conditionally so that this change can be merged
3034         back to glibc.
3035         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
3036         using the included regex.
3037
3038         fts: depend on fdopendir
3039         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
3040         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
3041         problem was introduced when fdopendir was split out.
3042
3043 2012-03-10  Bruno Haible  <bruno@clisp.org>
3044
3045         Remove unused variables.
3046         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
3047         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
3048
3049 2012-03-10  Bruno Haible  <bruno@clisp.org>
3050
3051         isnanf-nolibm: Fix last commit.
3052         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
3053
3054         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
3055         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
3056
3057 2012-03-10  Bruno Haible  <bruno@clisp.org>
3058
3059         logf-ieee: Work around test failure on NetBSD 5.1.
3060         * m4/logf-ieee.m4: New file.
3061         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
3062         whether logf works with a negative argument. Replace it if not.
3063         * lib/logf.c (logf): For negative arguments, return NaN.
3064         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
3065         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
3066         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
3067
3068         logf-ieee: Work around test failure on Solaris 9.
3069         * modules/logf-ieee (Depends-on): Add log-ieee.
3070         (configure.ac): Require gl_FUNC_LOGF.
3071
3072         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
3073         * m4/log-ieee.m4: New file.
3074         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
3075         log works with a negative argument. Replace it if not.
3076         * lib/log.c (log): For negative arguments, return NaN.
3077         * modules/log-ieee (Files): Add m4/log-ieee.m4.
3078         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
3079         * doc/posix-functions/log.texi: Mention the log-ieee module.
3080
3081         Tests for module 'logl-ieee'.
3082         * modules/logl-ieee-tests: New file.
3083         * tests/test-logl-ieee.c: New file.
3084
3085         New module 'logl-ieee'.
3086         * modules/logl-ieee: New file.
3087
3088         Tests for module 'log-ieee'.
3089         * modules/log-ieee-tests: New file.
3090         * tests/test-log-ieee.c: New file.
3091
3092         New module 'log-ieee'.
3093         * modules/log-ieee: New file.
3094
3095         Tests for module 'logf-ieee'.
3096         * modules/logf-ieee-tests: New file.
3097         * tests/test-logf-ieee.c: New file.
3098         * tests/test-log-ieee.h: New file.
3099
3100         New module 'logf-ieee'.
3101         * modules/logf-ieee: New file.
3102
3103 2012-03-10  Bruno Haible  <bruno@clisp.org>
3104
3105         log: Fix bug introduced on 2012-03-09.
3106         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
3107
3108 2012-03-10  Pádraig Brady  <P@draigBrady.com>
3109
3110         timer-time: link explicitly with pthreads on glibc
3111         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3112         to support static linking, when newer glibc is
3113         detected, as that contains pthread emulation of
3114         POSIX timer functions where required.
3115         * modules/timer-time: Depend on threadlib to
3116         pull in the appropriate library to link.
3117
3118 2012-03-10  Bruno Haible  <bruno@clisp.org>
3119
3120         log* tests: More tests.
3121         * tests/test-log.h: New file.
3122         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
3123         (main): Invoke test_function.
3124         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
3125         (main): Invoke test_function.
3126         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
3127         (main): Invoke test_function.
3128         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3129         tests/randomd.c.
3130         (Makefile.am): Add randomd.c to test_log_SOURCES.
3131         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3132         tests/randomf.c.
3133         (Makefile.am): Add randomf.c to test_logf_SOURCES.
3134         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3135         tests/randoml.c.
3136         (Depends-on): Add 'float'.
3137         (Makefile.am): Add randoml.c to test_logl_SOURCES.
3138
3139 2012-03-09  Bruno Haible  <bruno@clisp.org>
3140
3141         logl: Work around OSF/1 5.1 bug.
3142         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
3143         * lib/logl.c (logl): If logl exists, use it and provide just the
3144         workaround.
3145         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
3146         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
3147         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
3148         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
3149         * modules/logl (configure.ac): Consider REPLACE_LOGL.
3150         (Depends-on): Update conditions.
3151         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
3152
3153 2012-03-09  Bruno Haible  <bruno@clisp.org>
3154
3155         logf: Work around OSF/1 5.1 bug.
3156         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
3157         * lib/logf.c (logf): If logf exists, use it and provide just the
3158         workaround.
3159         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
3160         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
3161         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
3162         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
3163         * modules/logf (configure.ac): Consider REPLACE_LOGF.
3164         (Depends-on): Update conditions.
3165         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
3166
3167 2012-03-09  Bruno Haible  <bruno@clisp.org>
3168
3169         log: Work around OSF/1 5.1 bug.
3170         * lib/math.in.h (log): New declaration.
3171         * lib/log.c: New file.
3172         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
3173         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
3174         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
3175         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
3176         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
3177         * modules/log (Files): Add lib/log.c.
3178         (Depends-on): Add math.
3179         (configure.ac): If REPLACE_LOG is 1, compile an override.
3180         * tests/test-math-c++.cc: Check the declaration of log.
3181         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
3182
3183 2012-03-09  Jim Meyering  <meyering@redhat.com>
3184
3185         readtokens.c: adjust wording in a comment
3186         * lib/readtokens.c: Insert omitted "that" in a comment.
3187
3188 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
3189
3190         modechange: add notations +40, 00440, etc.
3191         * lib/modechange.c (mode_compile): Support new notations
3192         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
3193
3194 2012-03-08  Bruno Haible  <bruno@clisp.org>
3195
3196         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
3197         * m4/exp2l-ieee.m4: New file.
3198         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
3199         test whether exp2l works with a NaN argument and with a negative
3200         infinity argument. Replace it if not.
3201         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
3202         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
3203         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
3204         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
3205         (Depends-on): Update conditions.
3206         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
3207         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
3208         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
3209
3210         Tests for module 'exp2l-ieee'.
3211         * modules/exp2l-ieee-tests: New file.
3212         * tests/test-exp2l-ieee.c: New file.
3213
3214         New module 'exp2l-ieee'.
3215         * modules/exp2l-ieee: New file.
3216
3217         Tests for module 'exp2-ieee'.
3218         * modules/exp2-ieee-tests: New file.
3219         * tests/test-exp2-ieee.c: New file.
3220
3221         New module 'exp2-ieee'.
3222         * modules/exp2-ieee: New file.
3223
3224         Tests for module 'exp2f-ieee'.
3225         * modules/exp2f-ieee-tests: New file.
3226         * tests/test-exp2f-ieee.c: New file.
3227         * tests/test-exp2-ieee.h: New file.
3228
3229         New module 'exp2f-ieee'.
3230         * modules/exp2f-ieee: New file.
3231
3232 2012-03-08  Bruno Haible  <bruno@clisp.org>
3233
3234         Tests for module 'exp2l'.
3235         * modules/exp2l-tests: New file.
3236         * tests/test-exp2l.c: New file.
3237
3238         New module 'exp2l'.
3239         * lib/math.in.h (exp2l): New declaration.
3240         * lib/exp2l.c: New file.
3241         * lib/expl-table.c: New file, extracted from lib/expl.c.
3242         * lib/expl.c (gl_expl_table): New declaration.
3243         (expl): Remove expl_table. Update reference.
3244         * m4/exp2l.m4: New file.
3245         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
3246         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
3247         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
3248         * modules/exp2l: New file.
3249         * modules/expl (Files): Add lib/expl-table.c.
3250         (configure.ac): Compile also expl-table.c.
3251         * tests/test-math-c++.cc: Check the declaration of exp2l.
3252         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
3253         problem.
3254
3255 2012-03-08  Bruno Haible  <bruno@clisp.org>
3256
3257         Tests for module 'exp2f'.
3258         * modules/exp2f-tests: New file.
3259         * tests/test-exp2f.c: New file.
3260
3261         New module 'exp2f'.
3262         * lib/math.in.h (exp2f): New declaration.
3263         * lib/exp2f.c: New file.
3264         * m4/exp2f.m4: New file.
3265         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
3266         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
3267         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
3268         * modules/exp2f: New file.
3269         * tests/test-math-c++.cc: Check the declaration of exp2f.
3270         * doc/posix-functions/exp2f.texi: Mention the new module and the
3271         IRIX problem.
3272
3273 2012-03-08  Bruno Haible  <bruno@clisp.org>
3274
3275         Tests for module 'exp2'.
3276         * modules/exp2-tests: New file.
3277         * tests/test-exp2.c: New file.
3278         * tests/test-exp2.h: New file.
3279
3280         New module 'exp2'.
3281         * lib/math.in.h (exp2): New declaration.
3282         * lib/exp2.c: New file.
3283         * m4/exp2.m4: New file.
3284         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
3285         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
3286         REPLACE_EXP2.
3287         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
3288         REPLACE_EXP2.
3289         * modules/exp2: New file.
3290         * tests/test-math-c++.cc: Check the declaration of exp2.
3291         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
3292         and OpenBSD problems.
3293
3294 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
3295
3296         savedir: fix comment typo
3297         * lib/savedir.c (savedirstream): Fix typo in comment.
3298
3299 2012-03-08  Bruno Haible  <bruno@clisp.org>
3300
3301         test-readtokens.c: use const; remove unwarranted cast
3302         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
3303
3304 2012-03-08  Bruno Haible  <bruno@clisp.org>
3305
3306         fmal: Avoid compilation error on AIX.
3307         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
3308         AIX 5.2..7.1.
3309
3310 2012-03-08  Bruno Haible  <bruno@clisp.org>
3311
3312         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
3313         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
3314         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
3315         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
3316         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
3317         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
3318         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
3319
3320 2012-03-08  Bruno Haible  <bruno@clisp.org>
3321
3322         remainderf: Override buggy system function on IRIX 6.5.
3323         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
3324         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
3325         when it exists.
3326         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
3327
3328 2012-03-08  Jim Meyering  <meyering@redhat.com>
3329
3330         test-readtokens.c: avoid const-related compilation warnings
3331         * tests/test-readtokens.c: Avoid const-related compilation warnings.
3332
3333 2012-03-07  Jim Meyering  <meyering@redhat.com>
3334             Bruno Haible  <bruno@clisp.org>
3335
3336         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
3337         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
3338         tests/randomd.c.
3339         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
3340         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
3341         tests/randoml.c.
3342         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
3343
3344 2012-03-07  Bruno Haible  <bruno@clisp.org>
3345
3346         expm1l: Avoid compilation error on AIX.
3347         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
3348         AIX 5.2..7.1.
3349
3350 2012-03-07  Bruno Haible  <bruno@clisp.org>
3351
3352         expm1l: Don't override undeclared system function on IRIX 6.5.
3353         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
3354         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
3355         it exists. Set HAVE_DECL_EXPM1L.
3356         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
3357         HAVE_EXPM1L.
3358         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
3359         HAVE_EXPM1L.
3360         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
3361
3362 2012-03-07  Bruno Haible  <bruno@clisp.org>
3363
3364         remainderl: Don't override undeclared system function on IRIX 6.5.
3365         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
3366         HAVE_REMAINDERL.
3367         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
3368         declared when it exists. Set HAVE_DECL_REMAINDERL.
3369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
3370         not HAVE_REMAINDERL.
3371         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
3372         HAVE_REMAINDERL.
3373         * doc/posix-functions/remainderl.texi: Mention missing declaration
3374         problem.
3375
3376 2012-03-07  Bruno Haible  <bruno@clisp.org>
3377
3378         rintf: Don't override undeclared system function on IRIX 6.5.
3379         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
3380         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
3381         exists. Set HAVE_DECL_RINTF.
3382         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
3383         HAVE_RINTF.
3384         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
3385         HAVE_RINTF.
3386         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
3387
3388 2012-03-07  Bruno Haible  <bruno@clisp.org>
3389
3390         roundl: Avoid compilation error on AIX.
3391         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
3392         AIX 5.2..7.1.
3393
3394 2012-03-07  Bruno Haible  <bruno@clisp.org>
3395
3396         roundl: Don't override undeclared system function on IRIX 6.5.
3397         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
3398         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
3399         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
3400         * modules/roundl (configure.ac): For replacement code, test
3401         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
3402         (Depends-on): Update conditions.
3403         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
3404
3405 2012-03-07  Bruno Haible  <bruno@clisp.org>
3406
3407         roundf: Don't override undeclared system function on IRIX 6.5.
3408         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
3409         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
3410         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
3411         * modules/roundf (configure.ac): For replacement code, test
3412         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
3413         (Depends-on): Update conditions.
3414         * modules/roundf-ieee (Depends-on): Update conditions.
3415         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
3416
3417 2012-03-07  Bruno Haible  <bruno@clisp.org>
3418
3419         round: Don't override undeclared system function on IRIX 6.5.
3420         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
3421         argument.
3422         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
3423         also when it is not declared. Set HAVE_ROUND. For replacement code,
3424         test HAVE_ROUND, not HAVE_DECL_ROUND.
3425         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
3426         not HAVE_DECL_ROUND.
3427         (Depends-on): Update conditions.
3428         * modules/round-ieee (Depends-on): Update conditions.
3429         * doc/posix-functions/round.texi: Mention the IRIX problem.
3430
3431 2012-03-07  Bruno Haible  <bruno@clisp.org>
3432
3433         copysignf: Don't override undeclared system function on IRIX 6.5.
3434         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
3435         HAVE_COPYSIGNF.
3436         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
3437         declared when it exists. Set HAVE_DECL_COPYSIGNF.
3438         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
3439         not HAVE_COPYSIGNF.
3440         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
3441         HAVE_COPYSIGNF.
3442         * doc/posix-functions/copysignf.texi: Mention missing declaration
3443         problem.
3444
3445 2012-03-07  Jim Meyering  <meyering@redhat.com>
3446
3447         readtokens: add tests
3448         * modules/readtokens-tests: New file.
3449         * tests/test-readtokens.c: New file.
3450
3451 2012-03-07  Jim Meyering  <meyering@redhat.com>
3452
3453         quotearg: the module must now include quote.h
3454         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
3455         So must the module.
3456         * modules/quotearg (Files): Add quote.h.
3457
3458 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
3459
3460         readtokens: avoid core dumps with unusual calling patterns
3461         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
3462         * lib/readtokens.c: Include limits.h.
3463         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
3464         (readtoken): Don't cache the delimiters; the cache code was buggy
3465         if !delim && saved_delim, or if the new n_delim differs from the old.
3466         Also, it wasn't thread-safe.
3467
3468 2012-03-07  Bruno Haible  <bruno@clisp.org>
3469
3470         quote: Adhere to common module description layout.
3471         * modules/quote (Makefile.am): Add back empty section.
3472
3473 2012-03-06  Akim Demaille  <demaille@gostai.com>
3474
3475         quote: fuse into quotearg
3476         This patch is made for the benefit of Bison.
3477         quote does not leave the choice of the quoting style to the user.
3478         quoting_style provides poor customizability, yet quoting_options,
3479         which is very rich, is hidden inside quotearg.c.  So in order to
3480         allow quote customization, move its implementation to quotearg.c.
3481         * lib/quote.c: Remove.
3482         * modules/quote: Adjust.
3483         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
3484         warning: provide all the members of literal structs.
3485         (quote_quoting_options): New.
3486         (quote, quote_n): Import implementation from quote.c.
3487         * lib/quote.h: Import the comments from quote.c.
3488         (quote_quoting_options): New.
3489
3490 2012-03-06  Bruno Haible  <bruno@clisp.org>
3491
3492         Tests for module 'expm1l-ieee'.
3493         * modules/expm1l-ieee-tests: New file.
3494         * tests/test-expm1l-ieee.c: New file.
3495
3496         New module 'expm1l-ieee'.
3497         * modules/expm1l-ieee: New file.
3498
3499         Tests for module 'expm1f-ieee'.
3500         * modules/expm1f-ieee-tests: New file.
3501         * tests/test-expm1f-ieee.c: New file.
3502
3503         New module 'expm1f-ieee'.
3504         * modules/expm1f-ieee: New file.
3505
3506         Tests for module 'expm1-ieee'.
3507         * modules/expm1-ieee-tests: New file.
3508         * tests/test-expm1-ieee.c: New file.
3509         * tests/test-expm1-ieee.h: New file.
3510
3511         New module 'expm1-ieee'.
3512         * modules/expm1-ieee: New file.
3513         * m4/expm1-ieee.m4: New file.
3514         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
3515         whether expm1 works with a minus zero argument. Replace it if not.
3516         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
3517         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
3518         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
3519         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
3520         (Depends-on): Update conditions.
3521         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
3522         AIX problem.
3523
3524 2012-03-06  Bruno Haible  <bruno@clisp.org>
3525
3526         Work around expm1f bug on IRIX 6.5.
3527         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
3528         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
3529         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
3530         not work.
3531         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
3532         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
3533         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
3534         (Depends-on): Update conditions.
3535         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
3536
3537 2012-03-06  Bruno Haible  <bruno@clisp.org>
3538
3539         Tests for module 'expm1l'.
3540         * modules/expm1l-tests: New file.
3541         * tests/test-expm1l.c: New file.
3542
3543         New module 'expm1l'.
3544         * lib/math.in.h (expm1l): New declaration.
3545         * lib/expm1l.c: New file.
3546         * m4/expm1l.m4: New file.
3547         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
3548         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
3549         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
3550         * modules/expm1l: New file.
3551         * tests/test-math-c++.cc: Check the declaration of expm1l.
3552         * doc/posix-functions/expm1l.texi: Mention the new module.
3553
3554 2012-03-06  Bruno Haible  <bruno@clisp.org>
3555
3556         Tests for module 'expm1f'.
3557         * modules/expm1f-tests: New file.
3558         * tests/test-expm1f.c: New file.
3559
3560         New module 'expm1f'.
3561         * lib/math.in.h (expm1f): New declaration.
3562         * lib/expm1f.c: New file.
3563         * m4/expm1f.m4: New file.
3564         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
3565         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
3566         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
3567         * modules/expm1f: New file.
3568         * tests/test-math-c++.cc: Check the declaration of expm1f.
3569         * doc/posix-functions/expm1f.texi: Mention the new module.
3570
3571 2012-03-06  Bruno Haible  <bruno@clisp.org>
3572
3573         Tests for module 'expm1'.
3574         * modules/expm1-tests: New file.
3575         * tests/test-expm1.c: New file.
3576         * tests/test-expm1.h: New file.
3577
3578         New module 'expm1'.
3579         * lib/math.in.h (expm1): New declaration.
3580         * lib/expm1.c: New file.
3581         * m4/expm1.m4: New file.
3582         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
3583         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
3584         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
3585         * modules/expm1: New file.
3586         * tests/test-math-c++.cc: Check the declaration of expm1.
3587         * doc/posix-functions/expm1.texi: Mention the new module.
3588
3589 2012-03-06  Bruno Haible  <bruno@clisp.org>
3590
3591         math: Ensure declarations of math functions.
3592         * modules/acosf (Depends-on): Add 'extensions'.
3593         * modules/asinf (Depends-on): Likewise.
3594         * modules/atan2f (Depends-on): Likewise.
3595         * modules/atanf (Depends-on): Likewise.
3596         * modules/cbrt (Depends-on): Likewise.
3597         * modules/cbrtf (Depends-on): Likewise.
3598         * modules/cbrtl (Depends-on): Likewise.
3599         * modules/copysignf (Depends-on): Likewise.
3600         * modules/copysignl (Depends-on): Likewise.
3601         * modules/cosf (Depends-on): Likewise.
3602         * modules/coshf (Depends-on): Likewise.
3603         * modules/expf (Depends-on): Likewise.
3604         * modules/fabsf (Depends-on): Likewise.
3605         * modules/fabsl (Depends-on): Likewise.
3606         * modules/fmaf (Depends-on): Likewise.
3607         * modules/fmal (Depends-on): Likewise.
3608         * modules/fmodf (Depends-on): Likewise.
3609         * modules/fmodl (Depends-on): Likewise.
3610         * modules/frexpf (Depends-on): Likewise.
3611         * modules/frexpl (Depends-on): Likewise.
3612         * modules/hypot (Depends-on): Likewise.
3613         * modules/hypotf (Depends-on): Likewise.
3614         * modules/hypotl (Depends-on): Likewise.
3615         * modules/ldexpf (Depends-on): Likewise.
3616         * modules/ldexpl (Depends-on): Likewise.
3617         * modules/log10f (Depends-on): Likewise.
3618         * modules/log10l (Depends-on): Likewise.
3619         * modules/log1p (Depends-on): Likewise.
3620         * modules/logb (Depends-on): Likewise.
3621         * modules/logf (Depends-on): Likewise.
3622         * modules/modff (Depends-on): Likewise.
3623         * modules/modfl (Depends-on): Likewise.
3624         * modules/powf (Depends-on): Likewise.
3625         * modules/remainderf (Depends-on): Likewise.
3626         * modules/remainderl (Depends-on): Likewise.
3627         * modules/rintf (Depends-on): Likewise.
3628         * modules/rintl (Depends-on): Likewise.
3629         * modules/sinf (Depends-on): Likewise.
3630         * modules/sinhf (Depends-on): Likewise.
3631         * modules/sqrtf (Depends-on): Likewise.
3632         * modules/tanf (Depends-on): Likewise.
3633         * modules/tanhf (Depends-on): Likewise.
3634         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
3635         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
3636         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
3637         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
3638         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
3639         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
3640         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
3641         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
3642         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
3643         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
3644         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
3645         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
3646         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
3647         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
3648         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
3649         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
3650         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
3651         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3652         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
3653         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
3654         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
3655         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
3656         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
3657         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
3658         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3659         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
3660         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
3661         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3662         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
3663         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
3664         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3665         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
3666         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
3667         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3668         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
3669         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
3670         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
3671         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
3672         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
3673         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
3674         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
3675
3676 2012-03-06  Bruno Haible  <bruno@clisp.org>
3677
3678         math: Update module names in warnings.
3679         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3680         tanl): Use specific module name in warn-on-use warning.
3681
3682 2012-03-06  Bruno Haible  <bruno@clisp.org>
3683
3684         expl: Simplify computation.
3685         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
3686
3687 2012-03-05  Bruno Haible  <bruno@clisp.org>
3688
3689         exp* tests: More tests.
3690         * tests/test-exp.h: New file.
3691         * tests/test-exp.c: Include <float.h> and test-exp.h.
3692         (main): Invoke test_function.
3693         * tests/test-expf.c: Include <float.h> and test-exp.h.
3694         (main): Invoke test_function.
3695         * tests/test-expl.c: Include <float.h> and test-exp.h.
3696         (main): Invoke test_function.
3697         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
3698         (Makefile.am): Add randomd.c to test_exp_SOURCES.
3699         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
3700         (Makefile.am): Add randomf.c to test_expf_SOURCES.
3701         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
3702         (Depends-on): Add 'float'.
3703         (Makefile.am): Add randoml.c to test_expl_SOURCES.
3704
3705         expl: Fix precision of computed result.
3706         * lib/expl.c: Completely rewritten.
3707         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
3708         (Maintainer): Add me.
3709         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
3710
3711 2012-03-05  Bruno Haible  <bruno@clisp.org>
3712
3713         cbrt* tests: More tests.
3714         * tests/test-cbrt.h: New file.
3715         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
3716         (main): Invoke test_function.
3717         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
3718         (main): Invoke test_function.
3719         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
3720         (main): Invoke test_function.
3721         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
3722         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
3723         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
3724         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
3725         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
3726         (Depends-on): Add 'float'.
3727         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
3728
3729 2012-03-05  Bruno Haible  <bruno@clisp.org>
3730
3731         hypot* tests: More tests.
3732         * tests/test-hypot.h: New file, partially extracted from
3733         tests/test-hypotl.c.
3734         * tests/test-hypot.c: Include test-hypot.h.
3735         (main): Invoke test_function.
3736         * tests/test-hypotf.c: Include test-hypot.h.
3737         (main): Invoke test_function.
3738         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
3739         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
3740         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
3741         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
3742         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
3743         tests/randomf.c.
3744         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
3745         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
3746         tests/randoml.c.
3747         (Depends-on): Add 'fpucw', 'float'.
3748         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
3749
3750 2012-03-05  Bruno Haible  <bruno@clisp.org>
3751
3752         fpucw: Doc about FreeBSD.
3753         * lib/fpucw.h: Mention FreeBSD in comments.
3754
3755 2012-03-04  Bruno Haible  <bruno@clisp.org>
3756
3757         sqrt* tests: More tests.
3758         * tests/test-sqrt.h: New file.
3759         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
3760         (main): Invoke test_function.
3761         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
3762         (main): Invoke test_function.
3763         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
3764         (main): Invoke test_function.
3765         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
3766         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
3767         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
3768         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
3769         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
3770         (Depends-on): Add 'float'.
3771         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
3772
3773 2012-03-04  Bruno Haible  <bruno@clisp.org>
3774
3775         remainder* tests: More tests.
3776         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
3777         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
3778         (main): Invoke test_function.
3779         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
3780         (main): Invoke test_function.
3781         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
3782         (main): Invoke test_function.
3783         * modules/remainder-tests (Files): Add tests/test-remainder.h,
3784         tests/randomd.c.
3785         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
3786         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
3787         tests/randomf.c.
3788         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
3789         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
3790         tests/randoml.c.
3791         (Depends-on): Add 'float'.
3792         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
3793
3794 2012-03-04  Bruno Haible  <bruno@clisp.org>
3795
3796         remainder, remainderf, remainderl: Fix computation for large quotients.
3797         * lib/remainder.c: Completely rewritten.
3798         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
3799         USE_FLOAT.
3800         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
3801         USE_LONG_DOUBLE.
3802         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
3803         isnand, isinf. Remove round, fma.
3804         * modules/remainderf (Files): Add lib/remainder.c.
3805         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
3806         Remove roundf, fmaf.
3807         * modules/remainderl (Files): Add lib/remainder.c.
3808         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
3809         isinf. Remove roundl, fmal.
3810         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
3811         REMAINDER_LIBM.
3812         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
3813         REMAINDERF_LIBM.
3814         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
3815         REMAINDERL_LIBM.
3816
3817 2012-03-04  Bruno Haible  <bruno@clisp.org>
3818
3819         fmod* tests: More tests.
3820         * tests/test-fmod.h (my_ldexp): New function.
3821         (test_function): Reduce amount of random numbers to test. Add tests
3822         of very large quotients x / y.
3823         * tests/test-fmod.c (MAX_EXP): New macro.
3824         * tests/test-fmodf.c (MAX_EXP): Likewise.
3825         * tests/test-fmodl.c (MAX_EXP): Likewise.
3826
3827 2012-03-04  Bruno Haible  <bruno@clisp.org>
3828
3829         fmod, fmodl: Fix computation for large quotients x / y.
3830         * lib/fmod.c: Completely rewritten.
3831         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
3832         USE_LONG_DOUBLE.
3833         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
3834         isnand. Remove fma.
3835         * modules/fmodl (Files): Add lib/fmod.c.
3836         (Depends-on): Add float, isfinite, signbit, fabsl,
3837         frexpl, ldexpl, isnanl. Remove fma.
3838         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
3839         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
3840
3841 2012-03-03  Bruno Haible  <bruno@clisp.org>
3842
3843         fmod* tests: More tests.
3844         * tests/test-fmod.h: New file.
3845         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
3846         (main): Invoke test_function.
3847         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
3848         (main): Invoke test_function.
3849         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
3850         (main): Invoke test_function.
3851         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
3852         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
3853         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
3854         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
3855         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
3856         (Depends-on): Add 'float'.
3857         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
3858
3859 2012-03-03  Bruno Haible  <bruno@clisp.org>
3860
3861         rint* tests: More tests.
3862         * tests/test-rint.h: New file, partially extracted from
3863         tests/test-rintl.c.
3864         * tests/test-rint.c: Include test-rint.h.
3865         (main): Invoke test_function.
3866         * tests/test-rintf.c: Include test-rint.h.
3867         (main): Invoke test_function.
3868         * tests/test-rintl.c: Include test-rint.h.
3869         (main): Invoke test_function.
3870         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
3871         (Makefile.am): Add randomd.c to test_rint_SOURCES.
3872         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
3873         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
3874         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
3875         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
3876
3877 2012-03-03  Bruno Haible  <bruno@clisp.org>
3878
3879         modf* tests: More tests.
3880         * tests/test-modf.h: New file.
3881         * tests/test-modf.c: Include <float.h> and test-modf.h.
3882         (main): Invoke test_function.
3883         * tests/test-modff.c: Include <float.h> and test-modf.h.
3884         (main): Invoke test_function.
3885         * tests/test-modfl.c: Include <float.h> and test-modf.h.
3886         (main): Invoke test_function.
3887         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
3888         (Makefile.am): Add randomd.c to test_modf_SOURCES.
3889         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
3890         (Makefile.am): Add randomf.c to test_modff_SOURCES.
3891         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
3892         (Depends-on): Add 'float'.
3893         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
3894
3895 2012-03-03  Bruno Haible  <bruno@clisp.org>
3896
3897         fabs* tests: More tests.
3898         * tests/test-fabs.h: New file, partially extracted from
3899         tests/test-fabsl.c.
3900         * tests/test-fabs.c (RANDOM): New macro.
3901         * tests/test-fabsf.c (RANDOM): New macro.
3902         * tests/test-fabsl.c (RANDOM): New macro.
3903         * modules/fabs-tests (Files): Add tests/randomd.c.
3904         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
3905         * modules/fabsf-tests (Files): Add tests/randomf.c.
3906         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
3907         * modules/fabsl-tests (Files): Add tests/randoml.c.
3908         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
3909
3910 2012-03-03  Bruno Haible  <bruno@clisp.org>
3911
3912         ldexp* tests: More tests.
3913         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
3914         * tests/test-ldexp.c (RANDOM): New macro.
3915         * tests/test-ldexpf.c (RANDOM): New macro.
3916         * tests/test-ldexpl.c (RANDOM): New macro.
3917         * modules/ldexp-tests (Files): Add tests/randomd.c.
3918         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
3919         * modules/ldexpf-tests (Files): Add tests/randomf.c.
3920         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
3921         * modules/ldexpl-tests (Files): Add tests/randoml.c.
3922         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
3923
3924 2012-03-03  Bruno Haible  <bruno@clisp.org>
3925
3926         frexp* tests: More tests.
3927         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
3928         * tests/test-frexp.c (RANDOM): New macro.
3929         * tests/test-frexpf.c (RANDOM): New macro.
3930         * tests/test-frexpl.c (RANDOM): New macro.
3931         * modules/frexp-tests (Files): Add tests/randomd.c.
3932         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
3933         * modules/frexpf-tests (Files): Add tests/randomf.c.
3934         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
3935         * modules/frexpl-tests (Files): Add tests/randoml.c.
3936         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
3937
3938 2012-03-03  Bruno Haible  <bruno@clisp.org>
3939
3940         Support for pseudo-random numbers in tests.
3941         * tests/randomf.c: New file.
3942         * tests/randomd.c: New file.
3943         * tests/randoml.c: New file.
3944         * tests/macros.h (randomf, randomd, randoml): New declarations.
3945
3946 2012-03-03  Bruno Haible  <bruno@clisp.org>
3947
3948         frexp* tests: Refactor.
3949         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
3950         * tests/test-frexp.c: Include and use it.
3951         * tests/test-frexpf.c: Likewise.
3952         * tests/test-frexpl.c: Likewise.
3953         * modules/frexp-tests (Files): Add tests/test-frexp.h.
3954         * modules/frexpf-tests (Files): Likewise.
3955         * modules/frexpl-tests (Files): Likewise.
3956
3957 2012-03-02  Jim Meyering  <meyering@redhat.com>
3958
3959         maint: don't specify XZ_OPT=-9ev in dist-related rule
3960         Using xz's -9 option is warranted only if you have a very large
3961         tarball (see xz's documentation for the sizes vs. presets), and
3962         requires 64MiB of memory at decompression time.
3963         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
3964         Automake's default of just "-e" is fine.  Override on a
3965         per-package basis by setting XZ_OPT e.g., in cfg.mk.
3966
3967 2012-03-01  Eric Blake  <eblake@redhat.com>
3968
3969         maint.mk: allow announcement for non-gnulib project
3970         * maint.mk (announcement): Skip gnulib version if not used.
3971
3972 2012-03-01  Jim Meyering  <meyering@redhat.com>
3973
3974         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
3975         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
3976         envvar settings cannot interfere.  Otherwise, setting envvars like
3977         prohibit=foo require=bar, etc. would cause spurious test failures.
3978
3979 2012-03-01  Eric Blake  <eblake@redhat.com>
3980
3981         maint.mk: add per-line exclusions to prohibitions
3982         * maint.mk (_sc_search_regexp): Add $exclude parameter.
3983         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3984         (sc_const_long_option): Use it.
3985
3986 2012-03-01  Bruno Haible  <bruno@clisp.org>
3987
3988         Tests for module 'expl-ieee'.
3989         * modules/expl-ieee-tests: New file.
3990         * tests/test-expl-ieee.c: New file.
3991
3992         New module 'expl-ieee'.
3993         * modules/expl-ieee: New file.
3994
3995         Tests for module 'exp-ieee'.
3996         * modules/exp-ieee-tests: New file.
3997         * tests/test-exp-ieee.c: New file.
3998
3999         New module 'exp-ieee'.
4000         * modules/exp-ieee: New file.
4001
4002         Tests for module 'expf-ieee'.
4003         * modules/expf-ieee-tests: New file.
4004         * tests/test-expf-ieee.c: New file.
4005         * tests/test-exp-ieee.h: New file.
4006
4007         New module 'expf-ieee'.
4008         * modules/expf-ieee: New file.
4009
4010 2012-02-29  Bruno Haible  <bruno@clisp.org>
4011
4012         cbrtl-ieee: Work around test failure on IRIX 6.5.
4013         * m4/cbrtl-ieee.m4: New file.
4014         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
4015         test whether cbrtl works with a minus zero argument. Replace it if not.
4016         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
4017         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
4018         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
4019         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
4020         (Depends-on): Update conditions.
4021         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
4022         m4/signbit.m4.
4023         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
4024         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
4025         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
4026
4027         Tests for module 'cbrtl-ieee'.
4028         * modules/cbrtl-ieee-tests: New file.
4029         * tests/test-cbrtl-ieee.c: New file.
4030
4031         New module 'cbrtl-ieee'.
4032         * modules/cbrtl-ieee: New file.
4033
4034         Tests for module 'cbrt-ieee'.
4035         * modules/cbrt-ieee-tests: New file.
4036         * tests/test-cbrt-ieee.c: New file.
4037
4038         New module 'cbrt-ieee'.
4039         * modules/cbrt-ieee: New file.
4040
4041         Tests for module 'cbrtf-ieee'.
4042         * modules/cbrtf-ieee-tests: New file.
4043         * tests/test-cbrtf-ieee.c: New file.
4044         * tests/test-cbrt-ieee.h: New file.
4045
4046         New module 'cbrtf-ieee'.
4047         * modules/cbrtf-ieee: New file.
4048
4049 2012-02-29  Bruno Haible  <bruno@clisp.org>
4050
4051         cbrtf: Work around bug in IRIX 6.5 system function.
4052         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
4053         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
4054         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
4055         work.
4056         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
4057         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
4058         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
4059         (Depends-on): Update conditions.
4060         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
4061
4062 2012-02-29  Bruno Haible  <bruno@clisp.org>
4063
4064         Tests for module 'cbrtl'.
4065         * modules/cbrtl-tests: New file.
4066         * tests/test-cbrtl.c: New file.
4067
4068         New module 'cbrtl'.
4069         * lib/math.in.h (cbrtl): New declaration.
4070         * lib/cbrtl.c: New file.
4071         * m4/cbrtl.m4: New file.
4072         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
4073         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
4074         HAVE_DECL_CBRTL.
4075         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
4076         HAVE_DECL_CBRTL.
4077         * modules/cbrtl: New file.
4078         * tests/test-math-c++.cc: Check the declaration of cbrtl.
4079         * doc/posix-functions/cbrtl.texi: Mention the new module.
4080
4081 2012-02-29  Bruno Haible  <bruno@clisp.org>
4082
4083         Tests for module 'cbrtf'.
4084         * modules/cbrtf-tests: New file.
4085         * tests/test-cbrtf.c: New file.
4086
4087         New module 'cbrtf'.
4088         * lib/math.in.h (cbrtf): New declaration.
4089         * lib/cbrtf.c: New file.
4090         * m4/cbrtf.m4: New file.
4091         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
4092         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
4093         HAVE_DECL_CBRTF.
4094         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
4095         HAVE_DECL_CBRTF.
4096         * modules/cbrtf: New file.
4097         * tests/test-math-c++.cc: Check the declaration of cbrtf.
4098         * doc/posix-functions/cbrtf.texi: Mention the new module.
4099
4100 2012-02-29  Bruno Haible  <bruno@clisp.org>
4101
4102         cbrt: Provide replacement on MSVC and Minix.
4103         * lib/math.in.h (cbrt): New declaration.
4104         * lib/cbrt.c: New file.
4105         * m4/cbrt.m4: New file.
4106         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
4107         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
4108         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
4109         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
4110         (Depends-on): Add dependencies.
4111         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
4112         * tests/test-math-c++.cc: Check the declaration of cbrt.
4113         * doc/posix-functions/cbrt.texi: Mention that the module provides a
4114         replacement.
4115
4116 2012-02-29  Bruno Haible  <bruno@clisp.org>
4117
4118         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
4119         * m4/hypotl-ieee.m4: New file.
4120         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
4121         test whether hypotl works with mixed NaN and Infinity arguments.
4122         Replace it if not.
4123         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
4124         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
4125         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
4126         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
4127         (Depends-on): Update conditions.
4128         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
4129         (Depends-on): Add hypot-ieee.
4130         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
4131         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
4132
4133         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
4134         * m4/hypotf-ieee.m4: New file.
4135         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
4136         test whether hypotf works with mixed NaN and Infinity arguments.
4137         Replace it if not.
4138         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
4139         (Depends-on): Add hypot-ieee.
4140         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
4141         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
4142
4143         hypot-ieee: Work around test failure on OSF/1 and native Windows.
4144         * lib/math.in.h (hypot): New declaration.
4145         * lib/hypot.c: New file.
4146         * m4/hypot-ieee.m4: New file.
4147         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
4148         whether hypot works with mixed NaN and Infinity arguments. Replace it
4149         if not.
4150         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
4151         REPLACE_HYPOT.
4152         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
4153         * modules/hypot (Files): Add lib/hypot.c.
4154         (Depends-on): Add dependencies.
4155         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
4156         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
4157         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
4158         * tests/test-math-c++.cc: Check the declaration of hypot.
4159         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
4160
4161         Tests for module 'hypotl-ieee'.
4162         * modules/hypotl-ieee-tests: New file.
4163         * tests/test-hypotl-ieee.c: New file.
4164
4165         New module 'hypotl-ieee'.
4166         * modules/hypotl-ieee: New file.
4167
4168         Tests for module 'hypot-ieee'.
4169         * modules/hypot-ieee-tests: New file.
4170         * tests/test-hypot-ieee.c: New file.
4171
4172         New module 'hypot-ieee'.
4173         * modules/hypot-ieee: New file.
4174
4175         Tests for module 'hypotf-ieee'.
4176         * modules/hypotf-ieee-tests: New file.
4177         * tests/test-hypotf-ieee.c: New file.
4178         * tests/test-hypot-ieee.h: New file.
4179
4180         New module 'hypotf-ieee'.
4181         * modules/hypotf-ieee: New file.
4182
4183 2012-02-29  Bruno Haible  <bruno@clisp.org>
4184
4185         Remove unused variables.
4186         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
4187         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
4188         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
4189         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
4190
4191 2012-02-29  Eric Blake  <eblake@redhat.com>
4192
4193         termios: fix pid_t always, not just for tcgetsid
4194         * doc/posix-headers/termios.texi (termios.h): Mention problem.
4195         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
4196         just when building tcgetsid.
4197
4198 2012-02-29  Bruno Haible  <bruno@clisp.org>
4199
4200         Tests for module 'hypotl'.
4201         * modules/hypotl-tests: New file.
4202         * tests/test-hypotl.c: New file.
4203
4204         New module 'hypotl'.
4205         * lib/math.in.h (hypotl): New declaration.
4206         * lib/hypotl.c: New file.
4207         * m4/hypotl.m4: New file.
4208         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
4209         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
4210         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
4211         * modules/hypotl: New file.
4212         * tests/test-math-c++.cc: Check the hypotl declaration.
4213         * doc/posix-functions/hypotl.texi: Mention the new module.
4214
4215 2012-02-29  Eric Blake  <eblake@redhat.com>
4216
4217         tcgetsid: fix cygwin header bug
4218         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
4219
4220         docs: update cygwin progress
4221         * doc/posix-functions/llround.texi (llround): Added in cygwin
4222         1.7.8.
4223         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
4224         * doc/glibc-functions/program_invocation_name.texi
4225         (program_invocation_name): Likewise.
4226         * doc/glibc-functions/program_invocation_short_name.texi
4227         (program_invocation_short_name): Likewise.
4228         * doc/glibc-functions/madvise.texi (madvise): Likewise.
4229         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
4230         Likewise.
4231         * doc/posix-functions/pthread_spin_destroy.texi
4232         (pthread_spin_destroy): Added in cygwin 1.7.10.
4233         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
4234         Likewise.
4235         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
4236         Likewise.
4237         * doc/posix-functions/pthread_spin_trylock.texi
4238         (pthread_spin_trylock): Likewise.
4239         * doc/posix-functions/pthread_spin_unlock.texi
4240         (pthread_spin_unlock): Likewise.
4241         * doc/posix-functions/pthread_setschedprio.texi
4242         (pthread_setschedprio): Likewise.
4243         * doc/posix-functions/pthread_attr_getstack.texi
4244         (pthread_attr_getstack): Likewise.
4245         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
4246         (pthread_attr_getstackaddr): Likewise.
4247         * doc/glibc-functions/pthread_getattr_np.texi
4248         (pthread_getattr_np): Likewise.
4249         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
4250         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
4251         * doc/posix-functions/clock_settime.texi (clock_settime):
4252         Likewise.
4253         * doc/posix-functions/pthread_attr_getguardsize.texi
4254         (pthread_attr_getguardsize): Likewise.
4255         * doc/posix-functions/pthread_attr_setguardsize.texi
4256         (pthread_attr_setguardsize): Likewise.
4257         * doc/posix-functions/pthread_attr_setstack.texi
4258         (pthread_attr_setstack): Likewise.
4259         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
4260         (pthread_attr_setstackaddr): Likewise.
4261         * doc/posix-functions/clock_getcpuclockid.texi
4262         (clock_getcpuclockid): Likewise.
4263         * doc/posix-functions/pthread_getcpuclockid.texi
4264         (pthread_getcpuclockid): Likewise.
4265         * doc/glibc-functions/error.texi (error): Likewise.
4266         * doc/glibc-functions/error_at_line.texi (error_at_line):
4267         Likewise.
4268         * doc/glibc-functions/error_message_count.texi
4269         (error_message_count): Likewise.
4270         * doc/glibc-functions/error_one_per_line.texi
4271         (error_one_per_line): Likewise.
4272         * doc/glibc-functions/error_print_progname.texi
4273         (error_print_progname): Likewise.
4274         * doc/posix-functions/pthread_condattr_getclock.texi
4275         (pthread_condattr_getclock): Likewise.
4276         * doc/posix-functions/pthread_condattr_setclock.texi
4277         (pthread_condattr_setclock): Likewise.
4278         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
4279         Likewise.
4280         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
4281         * doc/glibc-functions/getpt.texi (getpt): Likewise.
4282         * doc/glibc-functions/get_current_dir_name.texi
4283         (get_current_dir_name): Likewise.
4284         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
4285         Likewise.
4286         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
4287         wrong return type.
4288         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
4289         1.7.11.
4290
4291 2012-02-29  Bruno Haible  <bruno@clisp.org>
4292
4293         Tests for module 'hypotf'.
4294         * modules/hypotf-tests: New file.
4295         * tests/test-hypotf.c: New file.
4296
4297         New module 'hypotf'.
4298         * lib/math.in.h (hypotf): New declaration.
4299         * lib/hypotf.c: New file.
4300         * m4/hypotf.m4: New file.
4301         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
4302         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
4303         REPLACE_HYPOTF.
4304         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
4305         REPLACE_HYPOTF.
4306         * modules/hypotf: New file.
4307         * tests/test-math-c++.cc: Check the hypotf declaration.
4308         * doc/posix-functions/hypotf.texi: Mention the new module.
4309
4310         hypot: Prepare for hypotf module.
4311         * m4/hypot.m4: New file.
4312         * modules/hypot (Files): Add m4/hypot.m4.
4313         (configure.ac): Invoke gl_FUNC_HYPOT.
4314
4315 2012-02-29  Bruno Haible  <bruno@clisp.org>
4316
4317         hypot tests: More tests.
4318         * tests/test-hypot.c: Include <float.h>.
4319         (main): Add tests about overflow and underflow.
4320
4321 2012-02-29  Bruno Haible  <bruno@clisp.org>
4322
4323         math code: Add comments.
4324         * lib/acosl.c: Add comment about related glibc source files.
4325         * lib/asinl.c: Likewise.
4326         * lib/atanl.c: Likewise.
4327         * lib/expl.c: Likewise.
4328         * lib/logl.c: Likewise.
4329         * lib/sincosl.c: Likewise.
4330         * lib/sinl.c: Likewise.
4331         * lib/tanl.c: Likewise.
4332         * lib/trigl.c: Likewise.
4333         * lib/cosl.c: Likewise. Fix comments.
4334
4335 2012-02-28  Bruno Haible  <bruno@clisp.org>
4336
4337         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
4338         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
4339         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
4340         HUGE_VALL are defined.
4341         (numeric_equald): Renamed from numeric_equal.
4342         (numeric_equalf, numeric_equall): New functions.
4343         (main): Check also HUGE_VALF, HUGE_VALL.
4344         * modules/math-tests (Files): Add tests/macros.h.
4345         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
4346         HUGE_VALL.
4347
4348 2012-02-28  Bruno Haible  <bruno@clisp.org>
4349
4350         doc: Move ISO C11 feature notes into POSIX chapters.
4351         * doc/posix-functions/aligned_alloc.texi: Renamed from
4352         doc/glibc-functions/aligned_alloc.texi.
4353         * doc/posix-functions/quick_exit.texi: Renamed from
4354         doc/glibc-functions/quick_exit.texi.
4355         * doc/posix-headers/uchar.texi: Renamed from
4356         doc/glibc-headers/uchar.texi.
4357         * doc/posix-functions/c16rtomb.texi: Renamed from
4358         doc/glibc-functions/c16rtomb.texi.
4359         * doc/posix-functions/c32rtomb.texi: Renamed from
4360         doc/glibc-functions/c32rtomb.texi.
4361         * doc/posix-functions/mbrtoc16.texi: Renamed from
4362         doc/glibc-functions/mbrtoc16.texi.
4363         * doc/posix-functions/mbrtoc32.texi: Renamed from
4364         doc/glibc-functions/mbrtoc32.texi.
4365         * doc/gnulib.texi: Update.
4366         (Glibc uchar.h): Remove section.
4367         Suggested by Eric Blake.
4368
4369 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
4370
4371         stdnoreturn: port to MSVC better
4372         MSVC standard headers use __declspec(noreturn), so #define noreturn
4373         to empty on that platform.  Reported by Bruno Haible in
4374         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
4375         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
4376         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
4377
4378 2012-02-28  Bruno Haible  <bruno@clisp.org>
4379
4380         doc: Mention new glibc headers and functions.
4381         * doc/glibc-headers/uchar.texi: New file.
4382         * doc/glibc-functions/aligned_alloc.texi: New file.
4383         * doc/glibc-functions/c16rtomb.texi: New file.
4384         * doc/glibc-functions/c32rtomb.texi: New file.
4385         * doc/glibc-functions/clock_adjtime.texi: New file.
4386         * doc/glibc-functions/fanotify_init.texi: New file.
4387         * doc/glibc-functions/fanotify_mark.texi: New file.
4388         * doc/glibc-functions/inet6_opt_append.texi: New file.
4389         * doc/glibc-functions/inet6_opt_find.texi: New file.
4390         * doc/glibc-functions/inet6_opt_finish.texi: New file.
4391         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
4392         * doc/glibc-functions/inet6_opt_init.texi: New file.
4393         * doc/glibc-functions/inet6_opt_next.texi: New file.
4394         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
4395         * doc/glibc-functions/inet6_rth_add.texi: New file.
4396         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
4397         * doc/glibc-functions/inet6_rth_init.texi: New file.
4398         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
4399         * doc/glibc-functions/inet6_rth_segments.texi: New file.
4400         * doc/glibc-functions/inet6_rth_space.texi: New file.
4401         * doc/glibc-functions/login.texi: New file.
4402         * doc/glibc-functions/mbrtoc16.texi: New file.
4403         * doc/glibc-functions/mbrtoc32.texi: New file.
4404         * doc/glibc-functions/name_to_handle_at.texi: New file.
4405         * doc/glibc-functions/ntp_gettimex.texi: New file.
4406         * doc/glibc-functions/open_by_handle_at.texi: New file.
4407         * doc/glibc-functions/prlimit.texi: New file.
4408         * doc/glibc-functions/process_vm_readv.texi: New file.
4409         * doc/glibc-functions/process_vm_writev.texi: New file.
4410         * doc/glibc-functions/recvmmsg.texi: New file.
4411         * doc/glibc-functions/scandirat.texi: New file.
4412         * doc/glibc-functions/sendmmsg.texi: New file.
4413         * doc/glibc-functions/setns.texi: New file.
4414         * doc/glibc-functions/timespec_get.texi: New file.
4415         * doc/gnulib.texi: Include them.
4416         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
4417         sections.
4418         Reported by Eric Blake.
4419
4420 2012-02-28  Bruno Haible  <bruno@clisp.org>
4421
4422         Avoid compilation errors with MSVC option -fp:strict.
4423         * lib/floor.c: Use MSVC specific pragma fenv_access.
4424         * lib/ceil.c: Likewise.
4425         * lib/trunc.c: Likewise.
4426         * lib/round.c: Likewise.
4427         * lib/rint.c: Likewise.
4428         * lib/fma.c: Likewise.
4429         * lib/integer_length.c: Likewise.
4430         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4431         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4432         * tests/test-floor2.c: Likewise.
4433         * tests/test-floorf2.c: Likewise.
4434         * tests/test-ceil2.c: Likewise.
4435         * tests/test-ceilf2.c: Likewise.
4436         * tests/test-trunc2.c: Likewise.
4437         * tests/test-truncf2.c: Likewise.
4438         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4439
4440 2012-02-27  Bruno Haible  <bruno@clisp.org>
4441
4442         Tests for module 'sqrtl-ieee'.
4443         * modules/sqrtl-ieee-tests: New file.
4444         * tests/test-sqrtl-ieee.c: New file.
4445
4446         New module 'sqrtl-ieee'.
4447         * modules/sqrtl-ieee: New file.
4448
4449         Tests for module 'sqrt-ieee'.
4450         * modules/sqrt-ieee-tests: New file.
4451         * tests/test-sqrt-ieee.c: New file.
4452
4453         New module 'sqrt-ieee'.
4454         * modules/sqrt-ieee: New file.
4455
4456         Tests for module 'sqrtf-ieee'.
4457         * modules/sqrtf-ieee-tests: New file.
4458         * tests/test-sqrtf-ieee.c: New file.
4459         * tests/test-sqrt-ieee.h: New file.
4460
4461         New module 'sqrtf-ieee'.
4462         * modules/sqrtf-ieee: New file.
4463
4464 2012-02-27  Bruno Haible  <bruno@clisp.org>
4465
4466         remainderl-ieee: Work around test failure on OSF/1.
4467         * m4/remainderl-ieee.m4: New file.
4468         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
4469         present, test whether remainderl works with a zero second argument.
4470         Replace it if not.
4471         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
4472         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
4473         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
4474         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
4475         (Depends-on): Update conditions.
4476         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
4477         (Depends-on): Add remainder-ieee.
4478         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
4479         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
4480         module.
4481
4482         remainderf-ieee: Work around test failure on OSF/1.
4483         * m4/remainderf-ieee.m4: New file.
4484         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
4485         present, test whether remainderf works with a zero second argument.
4486         Replace it if not.
4487         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
4488         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
4489         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
4490         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
4491         (Depends-on): Update conditions.
4492         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
4493         (Depends-on): Add remainder-ieee.
4494         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
4495         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
4496         module.
4497
4498         remainder-ieee: Work around test failure on OSF/1.
4499         * m4/remainder-ieee.m4: New file.
4500         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
4501         present, test whether remainder works with a zero second argument.
4502         Replace it if not.
4503         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
4504         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
4505         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
4506         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
4507         (Depends-on): Update dependencies.
4508         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
4509         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
4510         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
4511
4512         Tests for module 'remainderl-ieee'.
4513         * modules/remainderl-ieee-tests: New file.
4514         * tests/test-remainderl-ieee.c: New file.
4515
4516         New module 'remainderl-ieee'.
4517         * modules/remainderl-ieee: New file.
4518
4519         Tests for module 'remainder-ieee'.
4520         * modules/remainder-ieee-tests: New file.
4521         * tests/test-remainder-ieee.c: New file.
4522
4523         New module 'remainder-ieee'.
4524         * modules/remainder-ieee: New file.
4525
4526         Tests for module 'remainderf-ieee'.
4527         * modules/remainderf-ieee-tests: New file.
4528         * tests/test-remainderf-ieee.c: New file.
4529         * tests/test-remainder-ieee.h: New file.
4530
4531         New module 'remainderf-ieee'.
4532         * modules/remainderf-ieee: New file.
4533
4534 2012-02-27  Bruno Haible  <bruno@clisp.org>
4535
4536         modff, modfl: Fix configure syntax error.
4537         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
4538         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4539
4540 2012-02-27  Bruno Haible  <bruno@clisp.org>
4541
4542         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
4543         * m4/fmodl-ieee.m4: New file.
4544         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
4545         whether fmodl works with zero arguments. Replace it if not.
4546         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
4547         (Depends-on): Add fmod-ieee.
4548         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
4549         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
4550
4551         fmodf-ieee: Work around test failure on OSF/1.
4552         * m4/fmodf-ieee.m4: New file.
4553         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
4554         whether fmodf works with zero arguments. Replace it if not.
4555         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
4556         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
4557         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
4558         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
4559         (Depends-on): Update dependencies.
4560         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
4561         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
4562         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
4563
4564         fmodf-ieee: Work around test failure on MSVC 9.
4565         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
4566         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
4567
4568         fmod-ieee: Work around test failures on OSF/1, mingw.
4569         * m4/fmod-ieee.m4: New file.
4570         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
4571         whether fmod works with zero arguments. Replace it if not.
4572         * lib/math.in.h (fmod): New declaration.
4573         * lib/fmod.c: New file.
4574         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
4575         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
4576         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
4577         * modules/fmod (Files): Add lib/fmod.c.
4578         (Depends-on): Add math, isinf, trunc, fma.
4579         (configure.ac): Arrange to compile lib/fmod.c if needed.
4580         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
4581         m4/signbit.m4.
4582         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
4583         * tests/test-math-c++.cc: Check the declaration of fmod.
4584         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
4585
4586         fmodl-ieee: Fix test failures.
4587         * lib/fmodl.c (fmodl): Treat Inf specially.
4588         * modules/fmodl (Depends-on): Add isinf.
4589
4590         Tests for module 'fmodl-ieee'.
4591         * modules/fmodl-ieee-tests: New file.
4592         * tests/test-fmodl-ieee.c: New file.
4593
4594         New module 'fmodl-ieee'.
4595         * modules/fmodl-ieee: New file.
4596
4597         Tests for module 'fmod-ieee'.
4598         * modules/fmod-ieee-tests: New file.
4599         * tests/test-fmod-ieee.c: New file.
4600
4601         New module 'fmod-ieee'.
4602         * modules/fmod-ieee: New file.
4603
4604         Tests for module 'fmodf-ieee'.
4605         * modules/fmodf-ieee-tests: New file.
4606         * tests/test-fmodf-ieee.c: New file.
4607         * tests/test-fmod-ieee.h: New file.
4608
4609         New module 'fmodf-ieee'.
4610         * modules/fmodf-ieee: New file.
4611
4612 2012-02-27  Bruno Haible  <bruno@clisp.org>
4613
4614         Tests for module 'rintl-ieee'.
4615         * modules/rintl-ieee-tests: New file.
4616         * tests/test-rintl-ieee.c: New file.
4617
4618         New module 'rintl-ieee'.
4619         * modules/rintl-ieee: New file.
4620
4621         Tests for module 'rint-ieee'.
4622         * modules/rint-ieee-tests: New file.
4623         * tests/test-rint-ieee.c: New file.
4624
4625         New module 'rint-ieee'.
4626         * modules/rint-ieee: New file.
4627
4628         Tests for module 'rintf-ieee'.
4629         * modules/rintf-ieee-tests: New file.
4630         * tests/test-rintf-ieee.c: New file.
4631         * tests/test-rint-ieee.h: New file.
4632
4633         New module 'rintf-ieee'.
4634         * modules/rintf-ieee: New file.
4635
4636 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
4637
4638         regex: re_search etc. should return -2 when memory exhausted
4639         This bug was uncovered when testing 'grep'.  Without the fix,
4640         re_search and friends return -1 when memory is exhausted, but -1
4641         means no match, and this causes grep to falsely report no-match
4642         instead of memory-exhaustion.  See
4643         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
4644         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
4645         trouble; this can occur if re_search_internal ran out of memory.
4646
4647 2012-02-26  Bruno Haible  <bruno@clisp.org>
4648
4649         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
4650         * m4/modfl-ieee.m4: New file.
4651         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
4652         whether modfl works with Inf. Replace it if not.
4653         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
4654         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
4655         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
4656         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
4657         (Depends-on): Update dependencies.
4658         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
4659         m4/signbit.m4.
4660         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
4661         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
4662
4663         modfl-ieee: Fix dependencies.
4664         * modules/modfl-ieee (Depends-on): Add modf-ieee.
4665
4666         modfl-ieee: Fix test failures.
4667         * lib/modfl.c (modfl): Treat NaN and Inf specially.
4668         * modules/modfl (Depends-on): Add isfinite, isinf.
4669
4670         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
4671         * m4/modff-ieee.m4: New file.
4672         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
4673         whether modff works with NaN and Inf. Replace it if not.
4674         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
4675         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
4676         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
4677         * modules/modff (configure.ac): Consider REPLACE_MODFF.
4678         (Depends-on): Update dependencies.
4679         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
4680         m4/signbit.m4.
4681         (Depends-on): Add modf-ieee.
4682         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
4683         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
4684
4685         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
4686         * m4/modf-ieee.m4: New file.
4687         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
4688         whether modf works with NaN and Inf. Replace it if not.
4689         * lib/math.in.h (modf): New declaration.
4690         * lib/modf.c: New file.
4691         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
4692         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
4693         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
4694         * modules/modf (Files): Add lib/modf.c.
4695         (Depends-on): Add math, isfinite, trunc, isinf.
4696         (configure.ac): Addrange to compile lib/modf.c if needed.
4697         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
4698         m4/signbit.m4.
4699         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
4700         * tests/test-math-c++.cc: Check the declaration of modf.
4701         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
4702
4703         Tests for module 'modfl-ieee'.
4704         * modules/modfl-ieee-tests: New file.
4705         * tests/test-modfl-ieee.c: New file.
4706
4707         New module 'modfl-ieee'.
4708         * modules/modfl-ieee: New file.
4709
4710         Tests for module 'modf-ieee'.
4711         * modules/modf-ieee-tests: New file.
4712         * tests/test-modf-ieee.c: New file.
4713
4714         New module 'modf-ieee'.
4715         * modules/modf-ieee: New file.
4716
4717         Tests for module 'modff-ieee'.
4718         * modules/modff-ieee-tests: New file.
4719         * tests/test-modff-ieee.c: New file.
4720         * tests/test-modf-ieee.h: New file.
4721
4722         New module 'modff-ieee'.
4723         * modules/modff-ieee: New file.
4724
4725 2012-02-26  Bruno Haible  <bruno@clisp.org>
4726
4727         Tests for module 'fabsl-ieee'.
4728         * modules/fabsl-ieee-tests: New file.
4729         * tests/test-fabsl-ieee.c: New file.
4730
4731         New module 'fabsl-ieee'.
4732         * modules/fabsl-ieee: New file.
4733
4734         Tests for module 'fabs-ieee'.
4735         * modules/fabs-ieee-tests: New file.
4736         * tests/test-fabs-ieee.c: New file.
4737
4738         New module 'fabs-ieee'.
4739         * modules/fabs-ieee: New file.
4740
4741         Tests for module 'fabsf-ieee'.
4742         * modules/fabsf-ieee-tests: New file.
4743         * tests/test-fabsf-ieee.c: New file.
4744         * tests/test-fabs-ieee.h: New file.
4745
4746         New module 'fabsf-ieee'.
4747         * modules/fabsf-ieee: New file.
4748
4749 2012-02-26  Bruno Haible  <bruno@clisp.org>
4750
4751         Tests for module 'fmal-ieee'.
4752         * modules/fmal-ieee-tests: New file.
4753         * tests/test-fmal-ieee.c: New file.
4754
4755         New module 'fmal-ieee'.
4756         * modules/fmal-ieee: New file.
4757
4758         Tests for module 'fma-ieee'.
4759         * modules/fma-ieee-tests: New file.
4760         * tests/test-fma-ieee.c: New file.
4761
4762         New module 'fma-ieee'.
4763         * modules/fma-ieee: New file.
4764
4765         Tests for module 'fmaf-ieee'.
4766         * modules/fmaf-ieee-tests: New file.
4767         * tests/test-fmaf-ieee.c: New file.
4768         * tests/test-fma-ieee.h: New file.
4769
4770         New module 'fmaf-ieee'.
4771         * modules/fmaf-ieee: New file.
4772
4773 2012-02-26  Bruno Haible  <bruno@clisp.org>
4774
4775         Tests for module 'ldexpl-ieee'.
4776         * modules/ldexpl-ieee-tests: New file.
4777         * tests/test-ldexpl-ieee.c: New file.
4778
4779         New module 'ldexpl-ieee'.
4780         * modules/ldexpl-ieee: New file.
4781
4782         Tests for module 'ldexp-ieee'.
4783         * modules/ldexp-ieee-tests: New file.
4784         * tests/test-ldexp-ieee.c: New file.
4785
4786         New module 'ldexp-ieee'.
4787         * modules/ldexp-ieee: New file.
4788
4789         Tests for module 'ldexpf-ieee'.
4790         * modules/ldexpf-ieee-tests: New file.
4791         * tests/test-ldexpf-ieee.c: New file.
4792         * tests/test-ldexp-ieee.h: New file.
4793
4794         New module 'ldexpf-ieee'.
4795         * modules/ldexpf-ieee: New file.
4796
4797 2012-02-26  Bruno Haible  <bruno@clisp.org>
4798
4799         Refactor frexp*-ieee tests.
4800         * tests/test-frexp-ieee.h: New file.
4801         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
4802         (main): Just call test_function.
4803         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
4804         (main): Just call test_function.
4805         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
4806         (main): Just call test_function.
4807         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
4808         * modules/frexp-ieee-tests (Files): Likewise.
4809         * modules/frexpl-ieee-tests (Files): Likewise.
4810
4811         Tests for module 'frexpl-ieee'.
4812         * modules/frexpl-ieee-tests: New file.
4813         * tests/test-frexpl-ieee.c: New file.
4814
4815         New module 'frexpl-ieee'.
4816         * modules/frexpl-ieee: New file.
4817
4818         Tests for module 'frexp-ieee'.
4819         * modules/frexp-ieee-tests: New file.
4820         * tests/test-frexp-ieee.c: New file.
4821
4822         New module 'frexp-ieee'.
4823         * modules/frexp-ieee: New file.
4824
4825         Tests for module 'frexpf-ieee'.
4826         * modules/frexpf-ieee-tests: New file.
4827         * tests/test-frexpf-ieee.c: New file.
4828
4829         New module 'frexpf-ieee'.
4830         * modules/frexpf-ieee: New file.
4831
4832 2012-02-26  Bruno Haible  <bruno@clisp.org>
4833
4834         roundl-ieee tests: More tests.
4835         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4836         (main): Add tests for [MX] shaded specification in POSIX.
4837         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4838         (Depends-on): Add isnanl-nolibm.
4839
4840         round-ieee tests: More tests.
4841         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4842         (main): Add tests for [MX] shaded specification in POSIX.
4843         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4844         (Depends-on): Add isnand-nolibm.
4845
4846         roundf-ieee tests: More tests.
4847         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4848         (main): Add tests for [MX] shaded specification in POSIX.
4849         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4850         (Depends-on): Add isnanf-nolibm.
4851
4852         truncl-ieee tests: More tests.
4853         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4854         (main): Add tests for [MX] shaded specification in POSIX.
4855         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4856         (Depends-on): Add isnanl-nolibm.
4857
4858         trunc-ieee tests: More tests.
4859         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4860         (main): Add tests for [MX] shaded specification in POSIX.
4861         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4862         (Depends-on): Add isnand-nolibm.
4863
4864         truncf-ieee tests: More tests.
4865         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4866         (main): Add tests for [MX] shaded specification in POSIX.
4867         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4868         (Depends-on): Add isnanf-nolibm.
4869
4870         ceill-ieee tests: More tests.
4871         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4872         (main): Add tests for [MX] shaded specification in POSIX.
4873         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4874         (Depends-on): Add isnanl-nolibm.
4875
4876         ceil-ieee tests: More tests.
4877         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4878         (main): Add tests for [MX] shaded specification in POSIX.
4879         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4880         (Depends-on): Add isnand-nolibm.
4881
4882         ceilf-ieee tests: More tests.
4883         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4884         (main): Add tests for [MX] shaded specification in POSIX.
4885         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4886         (Depends-on): Add isnanf-nolibm.
4887
4888         floorl-ieee tests: More tests.
4889         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4890         (main): Add tests for [MX] shaded specification in POSIX.
4891         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4892         (Depends-on): Add isnanl-nolibm.
4893
4894         floor-ieee tests: More tests.
4895         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4896         (main): Add tests for [MX] shaded specification in POSIX.
4897         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4898         (Depends-on): Add isnand-nolibm.
4899
4900         floorf-ieee tests: More tests.
4901         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4902         (main): Add tests for [MX] shaded specification in POSIX.
4903         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4904         (Depends-on): Add isnanf-nolibm.
4905
4906 2012-02-26  Bruno Haible  <bruno@clisp.org>
4907
4908         fpieee: More comments.
4909         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
4910
4911 2012-02-25  Bruno Haible  <bruno@clisp.org>
4912
4913         Tests for module 'log10l'.
4914         * modules/log10l-tests: New file.
4915         * tests/test-log10l.c: New file.
4916         * tests/test-math-c++.cc: Check the declaration of log10l.
4917
4918         New module 'log10l'.
4919         * lib/math.in.h (log10l): New declaration.
4920         * lib/log10l.c: New file.
4921         * m4/log10l.m4: New file.
4922         * modules/log10l: New file.
4923         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
4924         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
4925         HAVE_DECL_LOG10L.
4926         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
4927         HAVE_DECL_LOG10L.
4928         * doc/posix-functions/log10l.texi: Mention the new module.
4929
4930 2012-02-25  Bruno Haible  <bruno@clisp.org>
4931
4932         fmodl, remainder*: Avoid wrong results due to rounding errors.
4933         * lib/fmodl.c (fmodl): Correct the result if it is not within the
4934         expected bounds.
4935         * lib/remainderf.c (remainderf): Likewise.
4936         * lib/remainder.c (remainder): Likewise.
4937         * lib/remainderl.c (remainderl): Likewise.
4938
4939 2012-02-25  Bruno Haible  <bruno@clisp.org>
4940
4941         Tests for module 'remainderl'.
4942         * modules/remainderl-tests: New file.
4943         * tests/test-remainderl.c: New file.
4944         * tests/test-math-c++.cc: Check the declaration of remainderl.
4945
4946         New module 'remainderl'.
4947         * lib/math.in.h (remainderl): New declaration.
4948         * lib/remainderl.c: New file.
4949         * m4/remainderl.m4: New file.
4950         * modules/remainderl: New file.
4951         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
4952         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
4953         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
4954         HAVE_REMAINDERL.
4955         * doc/posix-functions/remainderl.texi: Mention the new module.
4956
4957 2012-02-25  Bruno Haible  <bruno@clisp.org>
4958
4959         Tests for module 'remainderf'.
4960         * modules/remainderf-tests: New file.
4961         * tests/test-remainderf.c: New file.
4962         * tests/test-math-c++.cc: Check the declaration of remainderf.
4963
4964         New module 'remainderf'.
4965         * lib/math.in.h (remainderf): New declaration.
4966         * lib/remainderf.c: New file.
4967         * m4/remainderf.m4: New file.
4968         * modules/remainderf: New file.
4969         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
4970         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
4971         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
4972         HAVE_REMAINDERF.
4973         * doc/posix-functions/remainderf.texi: Mention the new module.
4974
4975 2012-02-25  Bruno Haible  <bruno@clisp.org>
4976
4977         remainder: Support for MSVC.
4978         * lib/math.in.h (remainder): New declaration.
4979         * lib/remainder.c: New file.
4980         * m4/remainder.m4: New file.
4981         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
4982         (Depends-on): Add math, round, fma.
4983         (configure.ac): Use results of gl_FUNC_REMAINDER.
4984         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
4985         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
4986         HAVE_DECL_REMAINDER.
4987         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
4988         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
4989         * tests/test-math-c++.cc: Check the declaration of remainder.
4990         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
4991         problems are fixed.
4992
4993 2012-02-25  Bruno Haible  <bruno@clisp.org>
4994
4995         Tests for module 'fmodl'.
4996         * modules/fmodl-tests: New file.
4997         * tests/test-fmodl.c: New file.
4998         * tests/test-math-c++.cc: Check the declaration of fmodl.
4999
5000         New module 'fmodl'.
5001         * lib/math.in.h (fmodl): New declaration.
5002         * lib/fmodl.c: New file.
5003         * m4/fmodl.m4: New file.
5004         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
5005         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
5006         REPLACE_FMODL.
5007         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
5008         REPLACE_FMODL.
5009         * modules/fmodl: New file.
5010         * doc/posix-functions/fmodl.texi: Mention the new module.
5011
5012 2012-02-25  Bruno Haible  <bruno@clisp.org>
5013
5014         Tests for module 'modfl'.
5015         * modules/modfl-tests: New file.
5016         * tests/test-modfl.c: New file.
5017         * tests/test-math-c++.cc: Check the declaration of modfl.
5018
5019         New module 'modfl'.
5020         * lib/math.in.h (modfl): New declaration.
5021         * lib/modfl.c: New file.
5022         * m4/modfl.m4: New file.
5023         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
5024         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
5025         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
5026         * modules/modfl: New file.
5027         * doc/posix-functions/modfl.texi: Mention the new module.
5028
5029 2012-02-25  Bruno Haible  <bruno@clisp.org>
5030
5031         Tests for module 'fabsl'.
5032         * modules/fabsl-tests: New file.
5033         * tests/test-fabsl.c: New file.
5034         * tests/test-math-c++.cc: Check the declaration of fabsl.
5035
5036         New module 'fabsl'.
5037         * lib/math.in.h (fabsl): New declaration.
5038         * lib/fabsl.c: New file.
5039         * m4/fabsl.m4: New file.
5040         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
5041         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
5042         REPLACE_FABSL.
5043         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
5044         REPLACE_FABSL.
5045         * modules/fabsl: New file.
5046         * doc/posix-functions/fabsl.texi: Mention the new module.
5047
5048 2012-02-25  Bruno Haible  <bruno@clisp.org>
5049
5050         fabs tests: More tests.
5051         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
5052         (zero): New variable.
5053         (main): Add tests for signed zero.
5054         * modules/fabs-tests (Files): Add tests/minus-zero.h.
5055
5056         fabsf tests: More tests.
5057         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
5058         (zero): New variable.
5059         (main): Add tests for signed zero.
5060         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
5061
5062 2012-02-24  Bruno Haible  <bruno@clisp.org>
5063
5064         atanl: Provide function definition on MSVC.
5065         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
5066         function pointer.
5067         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
5068
5069 2012-02-24  Bruno Haible  <bruno@clisp.org>
5070
5071         acosl: Provide function definition on MSVC.
5072         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
5073         function pointer.
5074         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
5075
5076 2012-02-24  Bruno Haible  <bruno@clisp.org>
5077
5078         asinl: Provide function definition on MSVC.
5079         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
5080         function pointer.
5081         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
5082
5083 2012-02-24  Bruno Haible  <bruno@clisp.org>
5084
5085         tanl: Provide function definition on MSVC.
5086         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
5087         function pointer.
5088         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
5089
5090 2012-02-24  Bruno Haible  <bruno@clisp.org>
5091
5092         cosl: Provide function definition on MSVC.
5093         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
5094         function pointer.
5095         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
5096
5097 2012-02-24  Bruno Haible  <bruno@clisp.org>
5098
5099         sinl: Provide function definition on MSVC.
5100         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
5101         function pointer.
5102         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
5103
5104 2012-02-24  Bruno Haible  <bruno@clisp.org>
5105
5106         logl: Provide function definition on MSVC.
5107         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
5108         function pointer.
5109         * lib/math.in.h (logl): Undefine if it does not exist as a function.
5110
5111 2012-02-24  Bruno Haible  <bruno@clisp.org>
5112
5113         expl: Provide function definition on MSVC.
5114         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
5115         function pointer.
5116         * lib/math.in.h (expl): Undefine if it does not exist as a function.
5117
5118 2012-02-24  Bruno Haible  <bruno@clisp.org>
5119
5120         sqrtl: Provide function definition on MSVC.
5121         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
5122         a function pointer.
5123         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
5124
5125 2012-02-24  Bruno Haible  <bruno@clisp.org>
5126
5127         ceill: Provide function definition on MSVC.
5128         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
5129         used as a function pointer.
5130         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
5131
5132 2012-02-24  Bruno Haible  <bruno@clisp.org>
5133
5134         floorl: Provide function definition on MSVC.
5135         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
5136         used as a function pointer.
5137         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
5138
5139 2012-02-24  Bruno Haible  <bruno@clisp.org>
5140
5141         ceilf: Provide function definition on MSVC.
5142         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
5143         used as a function pointer.
5144         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
5145
5146 2012-02-24  Bruno Haible  <bruno@clisp.org>
5147
5148         floorf: Provide function definition on MSVC.
5149         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
5150         used as a function pointer.
5151         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
5152
5153 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5154
5155         stdnoreturn: new module
5156         This implements a replacement for C11's <stdnoreturn.h>.
5157         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
5158         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
5159         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5160         * tests/test-stdnoreturn.c: New files.
5161
5162 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
5163
5164         regex: fix false multibyte matches in some regular expressions
5165         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
5166         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
5167         * lib/regex_internal.c (re_string_skip_chars):
5168         Fix miscomputation of remain_len that may cause incomplete
5169         multi-byte character and false match.
5170
5171 2012-02-24  Jim Meyering  <meyering@redhat.com>
5172
5173         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
5174         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
5175         uses with "==" *before* the call, e.g., 0 == strcmp (...)
5176         Remove now-unnecessary str''cmp obfuscation.
5177         Suggested by Akim Demaille.
5178
5179 2012-02-24  Bruno Haible  <bruno@clisp.org>
5180
5181         streq: Rename macro.
5182         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
5183         * NEWS: Mention the change.
5184         * lib/mbrtowc.c (mbrtowc): Update.
5185         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
5186         * lib/wcwidth.c (wcwidth): Update.
5187         Suggested by Akim Demaille and Jim Meyering.
5188
5189 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
5190
5191         regex: fix typo in definition of MIN
5192         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
5193         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
5194
5195 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
5196             Bruno Haible  <bruno@clisp.org>
5197
5198         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
5199         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
5200         entries into a stack-allocated buffer directly.
5201         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
5202
5203 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
5204             Bruno Haible  <bruno@clisp.org>
5205
5206         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
5207
5208          - There were several instances of this pattern:
5209
5210              for (;;) {
5211                n = acl (f, GETACLCNT, 0, NULL);
5212                [ allocate an array A of size N ]
5213                if (acl (f, GETACL, n, a) == n)
5214                  break;
5215              }
5216
5217            This loop might never terminate if some other process is constantly
5218            manipulating the file's ACL.  The loop should be rewritten to
5219            terminate.
5220
5221          - The acl (... GETACLNT ...) call is merely an optimization; its value
5222            is merely a hint as to how big to make the array.  A better
5223            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
5224            and just guess a reasonably-big size, growing the size and trying
5225            again if it's not large enough.  This guarantees termination, and
5226            saves a system call.
5227
5228         * lib/acl-internal.h: Include <limits.h>.
5229         (MIN, SIZE_MAX): New macros.
5230         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
5231         a stack-allocated buffer, and use malloc if it does not fit. Don't
5232         use GETACLCNT.
5233         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
5234
5235 2012-02-19  Bruno Haible  <bruno@clisp.org>
5236
5237         acl: Fix endless loop on Solaris with vxfs.
5238         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
5239         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
5240         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
5241         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
5242         * tests/test-sameacls.c (main)[Solaris]: Likewise.
5243         Reported by Bill Jones in
5244         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
5245
5246 2012-02-19  Bruno Haible  <bruno@clisp.org>
5247
5248         acl: Fix copy-acl test failure on Solaris 11 2011-11.
5249         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
5250         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
5251         that this function returns 0 in some more cases.
5252
5253 2012-02-19  Bruno Haible  <bruno@clisp.org>
5254
5255         acl: Update doc references.
5256         * doc/acl-resources.txt: Update links to Solaris documentation.
5257
5258 2012-02-19  Bruno Haible  <bruno@clisp.org>
5259
5260         Fix test failure in many locales on Solaris 11.
5261         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
5262         'tr' arguments.
5263         * tests/test-pipe-filter-ii1.c (main): Likewise.
5264         * build-aux/bootstrap (check_versions): Run 'tr' command with range
5265         expressions in the C locale.
5266         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
5267         * m4/host-os.m4 (gl_HOST_OS): Likewise.
5268
5269 2012-02-19  Bruno Haible  <bruno@clisp.org>
5270
5271         gnulib-tool: Improve usage message.
5272         * gnulib-tool (func_usage): Move doc of --help and --version to the
5273         section "Operation modes".
5274
5275 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
5276
5277         README-release: make it easier to execute commands
5278         * top/README-release: break commands out on to separate lines.
5279
5280 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
5281
5282         GNUmakefile: simplify detection of unconfigured trees
5283         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
5284         whether the tree make is being run from is already configured or
5285         not.  Related simplifications.
5286
5287 2012-02-13  Simon Josefsson  <simon@josefsson.org>
5288
5289         * gnulib-tool (func_usage): Document --help and --version.
5290
5291 2012-02-11  Jim Meyering  <meyering@redhat.com>
5292
5293         bootstrap: don't exit 0 upon gnulib-tool failure
5294         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
5295         its exit status, not 0.
5296
5297 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
5298
5299         README-release: various improvements
5300         * top/README-release: Give a command to push changes for the
5301         release.  Add "distcheck" to list of other pre-release checks.
5302         Fix instance of "make stable" which should be "make TYPE".
5303
5304 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5305
5306         maint: replace FSF snail-mail addresses with URLs
5307         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
5308         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
5309         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
5310         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
5311         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
5312         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
5313         * lib/check-version.c, lib/check-version.h, lib/config.charset:
5314         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
5315         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
5316         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
5317         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
5318         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
5319         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
5320         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
5321         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
5322         * lib/glthread/thread.c, lib/glthread/thread.h:
5323         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
5324         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
5325         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
5326         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
5327         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
5328         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
5329         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
5330         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
5331         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
5332         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
5333         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
5334         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
5335         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
5336         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
5337         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
5338         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
5339         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
5340         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
5341         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
5342         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
5343         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
5344         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
5345         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
5346         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
5347         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
5348         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
5349         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
5350         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
5351         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
5352         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
5353         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
5354         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
5355         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
5356         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
5357         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
5358         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
5359         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
5360         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
5361         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
5362         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
5363         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
5364         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
5365         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
5366         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
5367         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
5368         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
5369         * tests/test-poll.c, tests/test-quotearg-simple.c:
5370         * tests/test-quotearg.c, tests/test-quotearg.h:
5371         * tests/test-round-ieee.c, tests/test-round1.c:
5372         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
5373         * tests/test-roundl-ieee.c, tests/test-roundl.c:
5374         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
5375         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
5376         * tests/test-strerror.c, tests/test-strerror_r.c:
5377         * tests/test-strsignal.c, tests/test-strverscmp.c:
5378         * tests/test-xmemdup0.c:
5379         Replace FSF snail mail addresses with URLs, as per GNU coding
5380         standards.  See glibc bug
5381         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
5382
5383 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5384
5385         README-release: capitalize a word and split a line
5386         * top/README-release: Fix punctuation and spacing.
5387
5388 2012-02-08  Akim Demaille  <demaille@gostai.com>
5389
5390         fatal-signal: use C prototypes (with explicit void).
5391         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
5392         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
5393
5394 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5395
5396         regex: spelling fix
5397         * lib/regexec.c: spelling fix
5398
5399         regex: rely on stdint.h for SIZE_MAX
5400         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
5401
5402 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5403
5404         regex: merge glibc changes
5405
5406         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
5407         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
5408         (init_word_char): Work even if bitset words are not exactly 32 or
5409         64 bits wide.  Don't assume there are no padding bits.
5410         * lib/regex.c [_LIBC]: Do not include <config.h>.
5411         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
5412         and -Wtype-limits.
5413         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
5414         needless disagreement with glibc.  All uses changed.  Define it to
5415         1 only if _GNU_SOURCE, to match glibc.
5416         (_REG_RM_NAME): Remove; no longer needed, since the names in
5417         question are now all protected by __USE_GNU.
5418         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
5419         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
5420         * lib/regex_internal.h (MIN): New macro.
5421
5422         2012-01-03 Ulrich Drepper <drepper@gmail.com>
5423         * lib/regcomp.c (init_word_char): Optimize regex a bit.
5424
5425         2011-12-30 Jakub Jelinek <jakub@redhat.com>
5426         * lib/regex_internal.c (re_string_fetch_byte_case):
5427         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
5428         is miscompiled, and it turns out it is because of an incorrect
5429         attribute on re_string_fetch_byte_case.  Unlike
5430         re_string_peek_byte_case, this one is really not pure, it modifies
5431         memory (increments pstr->cur_idx), and with the pure attribute GCC
5432         assumed it doesn't and it cached the presumed value of
5433         regexp->cur_idx in a variable across the
5434          for (;; ++i)
5435            {
5436              if (i >= BRACKET_NAME_BUF_SIZE)
5437                return REG_EBRACK;
5438              if (token->type == OP_OPEN_CHAR_CLASS)
5439                ch = re_string_fetch_byte_case (regexp);
5440              else
5441                ch = re_string_fetch_byte (regexp);
5442              if (re_string_eoi(regexp))
5443                return REG_EBRACK;
5444              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
5445                break;
5446              elem->opr.name[i] = ch;
5447            }
5448
5449         2011-11-29 Andreas Schwab <schwab@redhat.com>
5450         * lib/regcomp.c (build_equiv_class):
5451         Fix access after end of search string in regex matcher.
5452
5453         2011-11-12 Ulrich Drepper <drepper@redhat.com>
5454         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
5455
5456         2011-10-12 Ulrich Drepper <drepper@redhat.com>
5457         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
5458
5459         2011-10-11 Ulrich Drepper <drepper@redhat.com>
5460         * lib/regcomp.c (parse_branch, parse_sub_exp):
5461         More regex memory leak fixes and tests.
5462         (parse_sub_exp, parse_bracket_exp):
5463         Fix memory leak for some invalid regular expressions.
5464
5465         2011-05-28 Ulrich Drepper <drepper@gmail.com>
5466         * lib/regex_internal.c, lib/regexec.c:
5467         Fix unnecessary overallocation due to incomplete character.  When
5468         incomplete characters are found at the end of a string the code
5469         ran amok and allocated lots of memory.  Stricter limits are now in
5470         place.
5471
5472         2011-05-20 Reuben Thomas <rrt@sc3d.org>
5473         * lib/regex.h: Update documentation.
5474
5475         2011-05-16 Aharon Robbins <arnold@skeeve.com>
5476         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
5477
5478         2010-05-05 Andreas Schwab <schwab@redhat.com>
5479         * lib/regexec.c (find_collation_sequence_value):
5480         Fix lookup of collation sequence value during regexp matching.
5481
5482         2010-01-22 Ulrich Drepper <drepper@redhat.com>
5483         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
5484
5485         2008-01-16 Ulrich Drepper <drepper@redhat.com>
5486         * lib/regex.h: Cleanup namespace.
5487
5488         2007-11-26 Ulrich Drepper <drepper@redhat.com>
5489         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
5490
5491         2007-08-26 Ulrich Drepper <drepper@redhat.com>
5492         * lib/regex_internal.h: Prevent some declarations and definitions
5493         to be seen when used in tests.
5494
5495         2005-05-06 Ulrich Drepper <drepper@redhat.com>
5496         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
5497         __libc_lock_* macros if not _LIBC.
5498         (struct re_dfa_t): Add lock.
5499
5500 2012-02-07  Eric Blake  <eblake@redhat.com>
5501
5502         maint.mk: also prohibit lower-case @var@
5503         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
5504         lower case, like @top_srcdir@.
5505
5506 2012-02-04  Eric Blake  <eblake@redhat.com>
5507
5508         canonicalize: avoid uninitialized memory use
5509         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
5510         random '/' left in dest.
5511         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
5512
5513 2012-02-04  Bruno Haible  <bruno@clisp.org>
5514
5515         isatty: Fix test failure of ptsname_r on native Windows.
5516         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
5517         and don't set errno.
5518         (isatty): Test first whether fd is valid. Set errno when returning 0.
5519
5520 2012-02-04  Bruno Haible  <bruno@clisp.org>
5521
5522         spawn-pipe tests: Fix a NULL program name in a diagnostic.
5523         * tests/test-spawn-pipe-main.c: Include progname.h.
5524         (main): Invoke set_program_name.
5525         * modules/spawn-pipe-tests (Depends-on): Add progname.
5526
5527         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
5528         * tests/test-nonblocking-socket-main.c: Include progname.h.
5529         (main): Invoke set_program_name.
5530         * modules/nonblocking-socket-tests (Depends-on): Add progname.
5531
5532         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
5533         * tests/test-nonblocking-pipe-main.c: Include progname.h.
5534         (main): Invoke set_program_name.
5535         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
5536
5537 2012-02-04  Eric Blake  <eblake@redhat.com>
5538
5539         canonicalize-lgpl: fix // handling
5540         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
5541
5542         canonicalize: fix // handling
5543         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
5544         /// to //, since only // is special.
5545
5546 2012-02-04  Bruno Haible  <bruno@clisp.org>
5547
5548         ioctl: Fix test failure on native Windows.
5549         * lib/ioctl.c: Include msvc-nothrow.h.
5550         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
5551
5552 2012-02-04  Bruno Haible  <bruno@clisp.org>
5553
5554         fsync: Avoid test failure on native Windows.
5555         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
5556         read-only.
5557
5558 2012-02-04  Bruno Haible  <bruno@clisp.org>
5559
5560         sys_select: Avoid syntax error on OpenBSD 5.0.
5561         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
5562         currently being included, just include the system's <sys/select.h>.
5563
5564 2012-02-04  Bruno Haible  <bruno@clisp.org>
5565
5566         sys_select: Avoid syntax error on OpenBSD 5.0.
5567         * lib/sys_select.in.h: Include <signal.h> only after the include_next
5568         <sys/select.h>, not before.
5569         Reported by Jiri B <jirib@devio.us>.
5570
5571 2012-02-04  Bruno Haible  <bruno@clisp.org>
5572
5573         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
5574         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
5575         global variables.
5576         * tests/test-get-rusage-data.c (main): Likewise.
5577         Reported by Jim Meyering.
5578
5579 2012-02-04  Bruno Haible  <bruno@clisp.org>
5580
5581         stdioext: Fix last commit.
5582         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
5583
5584 2012-02-03  Bruno Haible  <bruno@clisp.org>
5585
5586         stdioext: Add tentative support for Plan9.
5587         * lib/stdio-impl.h: Include <errno.h>.
5588         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
5589         * lib/freadable.c (freadable): Likewise.
5590         * lib/fwritable.c (fwritable): Likewise.
5591         * lib/fbufmode.c (fbufmode): Likewise.
5592         * lib/freading.c (freading): Likewise.
5593         * lib/fwriting.c (fwriting): Likewise.
5594         * lib/freadptr.c (freadptr): Likewise.
5595         * lib/freadseek.c (freadptrinc): Likewise.
5596         * lib/freadahead.c (freadahead): Likewise.
5597         * lib/fpurge.c (fpurge): Likewise.
5598         * lib/fseeko.c (rpl_fseeko): Likewise.
5599         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
5600         Reported by Jens Staal <staal1978@gmail.com>.
5601
5602 2012-02-02  Jim Meyering  <meyering@redhat.com>
5603
5604         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
5605         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
5606         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
5607         not even to try to add the attribute.  Instead, add a pragma to suppress
5608         the suggestion/warning.
5609
5610 2012-01-31  Karl Berry  <karl@gnu.org>
5611
5612         setstate doc: typo.
5613         * doc/posix-functions/setstate.texi (setstate): { not (.
5614
5615 2012-01-31  Bruno Haible  <bruno@clisp.org>
5616
5617         popen: Make more robust on Windows.
5618         * lib/popen.c: On native Windows, use the _popen based code even if
5619         HAVE_POPEN is set.
5620         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
5621         environment variable on native Windows.
5622
5623 2012-01-30  Bruno Haible  <bruno@clisp.org>
5624
5625         pclose: Fix typo.
5626         * lib/stdio.in.h (pclose): Fix typo in warning message.
5627
5628 2012-01-30  Bruno Haible  <bruno@clisp.org>
5629
5630         doc about getlogin_r, setstate.
5631         * doc/posix-functions/getlogin_r.texi: List the incompatible
5632         declaration problem under "not fixed by gnulib".
5633         * doc/posix-functions/setstate.texi: Mention incompatible declaration
5634         problem on Solaris 11 and other platforms.
5635
5636 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
5637             Bruno Haible  <bruno@clisp.org>
5638
5639         poll tests: Make test more robust.
5640         * tests/test-poll.c: Include macros.h.
5641         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
5642         return value of various I/O operations.
5643         * modules/poll-tests (Files): Add tests/macros.h.
5644
5645 2012-01-30  Bruno Haible  <bruno@clisp.org>
5646
5647         sys_stat: Fix support for mingw64 and MSVC.
5648         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
5649         header files already do it.
5650         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
5651         stat itself.
5652         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5653
5654 2012-01-30  Bruno Haible  <bruno@clisp.org>
5655
5656         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
5657         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
5658         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
5659
5660 2012-01-29  Bruno Haible  <bruno@clisp.org>
5661
5662         quotearg: Fix test failure on MacOS X 10.5.
5663         * tests/test-quotearg-simple.c: Include localcharset.h.
5664         (main): If the locale encoding is not ASCII, bypass the tests of
5665         locale_quoting_style and clocale_quoting_style.
5666         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
5667
5668 2012-01-29  Jim Meyering  <meyering@redhat.com>
5669
5670         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
5671         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
5672         detect uses of canonicalize_file_name.
5673
5674 2012-01-28  Bruno Haible  <bruno@clisp.org>
5675
5676         test-framework-sh: Fix test failure with AIX 7.1 diff.
5677         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
5678         in column 1, like 'diff -c' does.
5679         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
5680         whether 'diff -u' is used. Instead, test whether the output contains
5681         some '@' character.
5682
5683 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5684
5685         strtoimax: eliminate need for stdint.h, inttypes.h checks
5686         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
5687         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
5688         the prerequisites for a recently-introduced strtoimax test.
5689         I guess this might cause strtoimax to be replaced when not
5690         strictly necessary on older hosts, but this shouldn't introduce
5691         any bugs and it should make Emacs 'configure' faster on typical
5692         modern hosts.  Problem discovered when importing the latest gnulib
5693         to an Emacs test version.
5694         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
5695
5696 2012-01-28  Bruno Haible  <bruno@clisp.org>
5697
5698         sys_time: Override 'struct timeval' on some native Windows platforms.
5699         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
5700         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
5701         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
5702         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
5703         needs to be overridden.
5704         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
5705         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
5706         * tests/test-sys_select.c: Check that the tv_sec member has the same
5707         size as a 'time_t'.
5708         * tests/test-sys_time.c: Likewise.
5709         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
5710         is set, set also REPLACE_GETTIMEOFDAY.
5711         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
5712         convert the resulting 'struct timeval' before returning.
5713         * lib/select.c: Include <sys/time.h>.
5714         (select, timeval): Undefine at the right place.
5715         * modules/select (Depends-on): Add sys_time.
5716         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
5717         some Windows platforms.
5718         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5719
5720 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5721
5722         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
5723         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
5724         an integer.
5725         * lib/fcntl.c (dupfd): Likewise.
5726         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
5727
5728 2012-01-28  Bruno Haible  <bruno@clisp.org>
5729
5730         fcntl: Avoid compilation error on native Windows.
5731         * modules/fcntl (Depends-on): Add 'close'.
5732
5733 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5734
5735         select, poll, isatty: Avoid warnings on x86_64 mingw64.
5736         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
5737         pointer to an integer.
5738         * lib/poll.c (IsConsoleHandle): Likewise.
5739         * lib/isatty.c (IsConsoleHandle): Likewise.
5740
5741 2012-01-28  Jim Meyering  <meyering@redhat.com>
5742
5743         doc: clarify README-release
5744         * top/README-release: Clarify: you should make a point to have
5745         the latest stable versions of build tools in your PATH, and the
5746         reference to buildreq is solely for its list of tool names, not
5747         for its minimal-functional version numbers.
5748         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
5749
5750         maint.mk: use more readable (yet functionally equivalent) quoting
5751         It is common to quote a single quote in a single quoted string like
5752         this:  '...'\''...'.  Unless you know the idiom, that looks like
5753         gibberish, so prefer to double-quote the string when possible.
5754         Then you can use a more readable, lone single quote: "...'..."
5755         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
5756         "don't" is more readable than the equivalent 'don'\''t'.
5757         (sc_cast_of_x_alloc_return_value): Likewise.
5758         (sc_cast_of_alloca_return_value): Likewise.
5759         (sc_makefile_path_separator_check): Similar: use ":" in '...',
5760         rather than '\'':'\''.
5761
5762 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5763
5764         stdalign: relax _Alignof and tighten _Alignas test
5765         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
5766         as it was too strict: alignof must divide offsetof, but it need
5767         not equal offsetof.  Inspired by Joseph S. Myers's comment
5768         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
5769         Conversely, tighten the _Alignas test a bit, as the resulting
5770         alignment must be exactly 8.
5771
5772 2012-01-27  Bruno Haible  <bruno@clisp.org>
5773
5774         stdalign: Document the last change.
5775         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
5776
5777 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5778
5779         stdalign: check that alignof and offsetof are consistent
5780         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
5781         Problem reported for gnulib by Richard W.M. Jones in
5782         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
5783
5784 2012-01-27  Jim Meyering  <meyering@redhat.com>
5785
5786         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
5787         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
5788         convert a sequence with gaps to the minimal containing range.
5789         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
5790         * tests/test-update-copyright.sh: Test for this.
5791         The FSF confirmed it is ok to do this, assuming there is at
5792         least one significant change per year in the affected range:
5793         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
5794
5795 2012-01-26  Bruno Haible  <bruno@clisp.org>
5796
5797         pipe2: refine doc about thread-safety
5798         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
5799         multithread-safety problem.
5800         * doc/glibc-functions/accept4.texi: Likewise.
5801
5802 2012-01-26  Bruno Haible  <bruno@clisp.org>
5803
5804         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
5805         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
5806         In the test program, include <fcntl.h>, for O_RDONLY.
5807
5808 2012-01-26  Eric Blake  <eblake@redhat.com>
5809
5810         pipe2: document lack of thread-safety in replacement
5811         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
5812         issue in replacement.
5813         * doc/glibc-functions/accept4.texi (accept4): Likewise.
5814         Based on a report by Eric Wong.
5815
5816 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5817             Bruno Haible  <bruno@clisp.org>
5818
5819         malloca: Avoid warnings on x86_64 mingw64.
5820         * lib/malloca.c: Include <stdint.h>.
5821         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
5822         * modules/malloca (Depends-on): Add stdint.
5823         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
5824
5825 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
5826
5827         obstack: remove __STDC__ conditionals
5828         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
5829         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
5830         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
5831         m4/include_next.m4 as the only gnulib-maintained places that still
5832         refer to __STDC__.
5833
5834 2012-01-24  Bruno Haible  <bruno@clisp.org>
5835
5836         havelib: Modern quoting.
5837         * build-aux/config.rpath: Quote 'like this', not `like this', as per
5838         the recent change to the GNU coding standards.
5839
5840 2012-01-24  Bruno Haible  <bruno@clisp.org>
5841
5842         stdint: Improve support for Android.
5843         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
5844         Reported by Simon Josefsson <simon@josefsson.org>.
5845
5846 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5847
5848         doc: omit trailing empty lines from INSTALL etc.
5849         * doc/Makefile (INSTALL): Omit trailing empty lines.
5850         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
5851         omit trailing empty lines.  This simplifies the build procedure.
5852
5853 2012-01-23  Jim Meyering  <meyering@redhat.com>
5854
5855         tests: avoid spurious warnings about gl_sockets_startup
5856         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
5857         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
5858         reporting a "statement with no effect".
5859         * tests/test-accept.c (main): Mark as "(void)".
5860         * tests/test-accept4.c (main): Likewise.
5861         * tests/test-bind.c (main): Likewise.
5862         * tests/test-connect.c (main): Likewise.
5863         * tests/test-getpeername.c (main): Likewise.
5864         * tests/test-getsockname.c (main): Likewise.
5865         * tests/test-getsockopt.c (main): Likewise.
5866         * tests/test-listen.c (main): Likewise.
5867         * tests/test-recv.c (main): Likewise.
5868         * tests/test-recvfrom.c (main): Likewise.
5869         * tests/test-send.c (main): Likewise.
5870         * tests/test-sendto.c (main): Likewise.
5871         * tests/test-setsockopt.c (main): Likewise.
5872         * tests/test-shutdown.c (main): Likewise.
5873
5874 2012-01-21  Bruno Haible  <bruno@clisp.org>
5875
5876         locale-fr.m4: Fix for Android.
5877         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
5878         failure of the test program on Bionic libc.
5879
5880 2012-01-21  Jim Meyering  <meyering@redhat.com>
5881
5882         bootstrap: fail when bootstrap_post_import_hook fails
5883         Otherwise, it's far too easy to miss diagnostics emitted
5884         between gnulib-tool's output and that of running configure.
5885         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
5886
5887 2012-01-17  Jim Meyering  <meyering@redhat.com>
5888
5889         maint: enable sc_trailing_blank
5890         * build-aux/pmccabe.css: Remove trailing blanks.
5891         * doc/acl-cygwin.txt: Likewise.
5892         * doc/gnu-oids.texi: Likewise
5893         * cfg.mk: Enable sc_trailing_blank.
5894         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
5895
5896 2012-01-17  Jim Meyering  <meyering@redhat.com>
5897
5898         maint: enable sc_prohibit_openat_without_use
5899         * cfg.mk: Enable sc_prohibit_openat_without_use.
5900         Exempt lib/selinux-at.c.
5901
5902 2012-01-17  Jim Meyering  <meyering@redhat.com>
5903
5904         maint: enable sc_prohibit_cloexec_without_use
5905         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
5906         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
5907
5908 2012-01-17  Jim Meyering  <meyering@redhat.com>
5909
5910         maint: enable sc_prohibit_intprops_without_use
5911         * cfg.mk: Enable sc_prohibit_intprops_without_use
5912         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
5913
5914 2012-01-17  Jim Meyering  <meyering@redhat.com>
5915
5916         maint: enable sc_prohibit_hash_pjw_without_use
5917         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
5918         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
5919         to match any use of \<hash_pjw\>, i.e., not necessarily with a
5920         following " (".
5921
5922 2012-01-17  Jim Meyering  <meyering@redhat.com>
5923
5924         maint: enable double-word-prohibiting rule
5925         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
5926         Exempt three files.
5927
5928 2012-01-17  Jim Meyering  <meyering@redhat.com>
5929
5930         maint: remove empty lines at EOF, but excluding modules/*
5931         Apply syntax rules at home as well as abroad.  Most changes
5932         were induced by running this:
5933           make srcdir=. _build-aux=build-aux -f top/maint.mk \
5934             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
5935             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
5936         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
5937         Exempt modules/* and two binary files.
5938         Also exempt doc/INSTALL*, per request from Bruno Haible.
5939         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
5940         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
5941         * doc/Copyright/request-assign.future: Likewise.
5942         * doc/Copyright/request-disclaim.changes: Likewise.
5943         * doc/INSTALL: Likewise.
5944         * doc/INSTALL.ISO: Likewise.
5945         * doc/INSTALL.UTF-8: Likewise.
5946         * doc/acl-cygwin.txt: Likewise.
5947         * doc/acl-resources.txt: Likewise.
5948         * doc/fdl-1.2.texi: Likewise.
5949         * doc/fdl-1.3.texi: Likewise.
5950         * doc/fdl.texi: Likewise.
5951         * lib/argp-pin.c: Likewise.
5952         * lib/round.c: Likewise.
5953         * lib/unicase/u16-totitle.c: Likewise.
5954         * lib/unictype/block_test.c: Likewise.
5955         * lib/uninorm/canonical-decomposition.c: Likewise.
5956         * m4/README: Likewise.
5957         * m4/relocatable-lib.m4: Likewise.
5958         * tests/test-isnand-nolibm.c: Likewise.
5959         * tests/test-isnand.c: Likewise.
5960         * tests/uninorm/NormalizationTest.txt: Likewise.
5961
5962 2012-01-17  Jim Meyering  <meyering@redhat.com>
5963
5964         maint: add framework to run syntax-check rules against gnulib sources
5965         * cfg.mk: New file, to disable all currently-failing tests.
5966         We'll enable them one by one, as they are made to pass.
5967         * Makefile (sc_maint): New rule.
5968
5969 2012-01-21  Bruno Haible  <bruno@clisp.org>
5970
5971         stdint: Add support for Android.
5972         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
5973         include the system's <stdint.h>.
5974         Reported by Simon Josefsson <simon@josefsson.org>.
5975
5976 2012-01-19  Jim Meyering  <meyering@redhat.com>
5977
5978         bootstrap: add bootstrap_post_import_hook
5979         Bison does still need something like the gnulib_mk_hook whose
5980         invocation I had to remove along with slurp in commit 767ccd40.
5981         Technically, we could get along without it, but doing so would
5982         have required living with a warning and a mandatory post-bootstrap
5983         automake rerun.
5984         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
5985         (bootstrap_post_import_hook): New function.
5986         Invoke it after gnulib-tool --import and before autoreconf.
5987
5988 2012-01-18  Jim Meyering  <meyering@redhat.com>
5989
5990         gitlog-to-changelog: don't use "no_"-prefixed variable name
5991         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
5992         to enable both --cluster and --no-cluster.  Change variable name,
5993         s/\$no_cluster/$cluster/, and reverse usage to match.
5994
5995         gitlog-to-changelog: use "||", not "or" in expressions
5996         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
5997         expressions.
5998
5999 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
6000
6001         gitlog-to-changelog: new option --no-cluster
6002         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
6003         clustering of adjacent commit messages.
6004
6005 2012-01-17  Jim Meyering  <meyering@redhat.com>
6006
6007         maint: spell file systems with two words, not one
6008         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
6009         two words, not one.
6010
6011 2012-01-16  Jim Meyering  <meyering@redhat.com>
6012
6013         bootstrap: add a FIXME comment to ensure we eventually remove the hack
6014         * build-aux/bootstrap (gnulib_tool_options): Add comment.
6015
6016 2012-01-16  Eric Blake  <eblake@redhat.com>
6017
6018         bootstrap: cater to autoconf 2.59
6019         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
6020         is not available.
6021
6022         bootstrap: properly check for libtool
6023         * build-aux/bootstrap (libtoolize): Also run libtool when older
6024         usage is detected.
6025
6026 2012-01-15  Bruno Haible  <bruno@clisp.org>
6027
6028         Improve support for MSVC 9.
6029         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
6030         clashes on MSVC.
6031         * lib/fcntl.in.h: Likewise.
6032         * lib/stdlib.in.h: Likewise.
6033         * lib/sys_stat.in.h: Likewise.
6034
6035 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
6036
6037         gnupload: we hold the master copy of this script now
6038         For motivation and more information, see:
6039         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
6040         * build-aux/gnupload: Make it clear in the heading comments that the
6041         master copy of this file is maintained by gnulib.  Since we are at
6042         it, bump its copyright year and ...
6043         ($scriptversion): ... the date in its version.
6044         ($usage): Patches and bug reports should be sent to the gnulib list,
6045         not the automake one.
6046         * config/srclist.txt: Don't try to sync 'gnupload' from automake
6047         anymore.
6048
6049 2012-01-15  Bruno Haible  <bruno@clisp.org>
6050
6051         Fix module 'random'.
6052         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
6053         initstate, setstate are declared.
6054
6055 2012-01-14  Bruno Haible  <bruno@clisp.org>
6056
6057         Tests for module 'random'.
6058         * modules/random-tests: New file.
6059         * tests/test-random.c: New file, based on tests/test-random_r.c.
6060
6061         New module 'random'.
6062         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
6063         declarations.
6064         * lib/random.c: New file, based on glibc/stdlib/random.c.
6065         * m4/random.m4: New file.
6066         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
6067         HAVE_RANDOM.
6068         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
6069         * modules/random: New file.
6070         * config/srclist.txt: Add an entry for random.c.
6071         * doc/posix-functions/random.texi: Mention the 'random' module.
6072         * doc/posix-functions/initstate.texi: Likewise.
6073         * doc/posix-functions/setstate.texi: Likewise.
6074         * doc/posix-functions/srandom.texi: Likewise.
6075
6076 2012-01-12  Bruno Haible  <bruno@clisp.org>
6077
6078         random_r: Use common idioms.
6079         * lib/random_r.c: Include <stdlib.h> first.
6080
6081         random_r: Override incompatible API on AIX, OSF/1.
6082         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
6083         Override the system function if REPLACE_RANDOM_R is 1.
6084         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
6085         and OSF/1, set REPLACE_RANDOM_R.
6086         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
6087         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
6088         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
6089         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
6090         * doc/glibc-functions/random_r.texi: Likewise.
6091         * doc/glibc-functions/setstate_r.texi: Likewise.
6092
6093         random_r: Support for MSVC 9.
6094         * lib/random_r.c: Include stdint.h, not inttypes.h.
6095
6096 2012-01-12  Eric Blake  <eblake@redhat.com>
6097
6098         inet_ntop: guard extra work by IF_LINT
6099         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
6100         better code generation when not checking for warnings.
6101         Suggested by Paul Eggert and Jim Meyering.
6102
6103         strptime: fix regression on mingw
6104         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
6105         Fix regression.  Reported by Bruno Haible.
6106
6107 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
6108             Bruno Haible  <bruno@clisp.org>
6109
6110         copy-file: add error-code-returning variant.
6111         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
6112         (qcopy_file_preserving): New declaration.
6113         * lib/copy-file.c (qcopy_file_preserving): Renamed from
6114         copy_file_preserving. Change return type to 'int'. Don't emit an error
6115         message here.
6116         (copy_file_preserving): New function.
6117         * tests/test-copy-file.c: Include <stdlib.h>.
6118         (main): Test qcopy_file_preserving if the environment variable
6119         NO_STDERR_OUTPUT is set.
6120         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
6121         with NO_STDERR_OUTPUT
6122         * tests/test-copy-file-2.sh: Likewise.
6123
6124 2012-01-10  Bruno Haible  <bruno@clisp.org>
6125
6126         copy-file: Use 'quote' module consistently.
6127         * lib/copy-file.c (copy_file_preserving): Use quote().
6128
6129         copy-file: Refactor.
6130         * lib/copy-file.c: Include quote.h.
6131         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
6132         message here.
6133         * modules/copy-file (Depends-on): Add quote.
6134
6135         acl: Export qcopy_acl.
6136         * lib/acl.h (qcopy_acl): New declaration.
6137         * lib/copy-acl.c (qcopy_acl): Make non-static.
6138
6139         acl: Rename a local variable.
6140         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
6141
6142         acl: Align return values of copy_acl and qcopy_acl.
6143         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
6144         maybe < -1.
6145
6146 2012-01-11  Eric Blake  <eblake@redhat.com>
6147
6148         strptime: silence gcc warnings
6149         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
6150         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
6151         Reported by Daniel P. Berrange.
6152
6153         inet_ntop: silence gcc warning
6154         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
6155         Reported by Daniel P. Berrange.
6156
6157 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
6158
6159         getloadavg test: skip the test on GNU/Linux without /proc mounted
6160         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
6161         file.  When /proc is not mounted, it always fails with ENOENT.
6162         * tests/test-getloadavg.c (main): Treat ENOENT return code from
6163         getloadavg(3) the same way as ENOSYS and ENOTSUP.
6164
6165 2012-01-10  Bruno Haible  <bruno@clisp.org>
6166
6167         regex: Avoid link error on MSVC 9.
6168         * modules/regex (Depends-on): Add wctype.
6169
6170 2012-01-10  Bruno Haible  <bruno@clisp.org>
6171
6172         doc: Mention --with-tests option.
6173         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
6174         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
6175         --with-tests.
6176         Reported by Reuben Thomas.
6177
6178 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
6179
6180         users.txt: order package names lexicographically.
6181         * users.txt: Order package names lexicographically.
6182
6183 2012-01-10  Jim Meyering  <meyering@redhat.com>
6184
6185         maint.mk: fix description in comment
6186         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
6187
6188         ignore-value: remove deprecated ignore_ptr function
6189         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
6190         * NEWS: Note this.
6191
6192 2012-01-09  Jim Meyering  <meyering@redhat.com>
6193
6194         test-init.sh: avoid a subshell
6195         * tests/test-init.sh: Remove protective subshell.
6196         Suggested by Bernhard Voelker.  While a subshell is normally
6197         required to protect against older shells (Solaris, FreeBSD) that
6198         warn about a missing program before performing redirection, the
6199         shell-selection tests performed by init.sh probably exclude any
6200         offending shell.
6201
6202 2012-01-08  Bruno Haible  <bruno@clisp.org>
6203
6204         setlocale tests: Avoid test failure on Solaris 11 2011-11.
6205         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
6206         variable.
6207
6208 2012-01-08  Bruno Haible  <bruno@clisp.org>
6209
6210         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
6211         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6212         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
6213         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
6214         macro.
6215         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
6216         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
6217         * lib/spawn_faction_addopen.c: Add workaround implementation if
6218         HAVE_WORKING_POSIX_SPAWN.
6219         * modules/spawn (Makefile): Substitute
6220         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
6221         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
6222         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
6223         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
6224         (Depends-on): Update conditions.
6225         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
6226         the Solaris 11 bug.
6227
6228 2012-01-08  Bruno Haible  <bruno@clisp.org>
6229
6230         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
6231         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6232         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
6233         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
6234         macro.
6235         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
6236         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
6237         * lib/spawn_faction_adddup2.c: Add workaround implementation if
6238         HAVE_WORKING_POSIX_SPAWN.
6239         * modules/spawn (Makefile): Substitute
6240         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
6241         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
6242         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
6243         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
6244         (Depends-on): Update conditions.
6245         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
6246         the Solaris 11 bug.
6247
6248 2012-01-08  Bruno Haible  <bruno@clisp.org>
6249
6250         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
6251         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6252         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
6253         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
6254         HAVE_WORKING_POSIX_SPAWN.
6255         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
6256         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
6257         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
6258         * lib/spawn_faction_addclose.c: Add workaround implementation if
6259         HAVE_WORKING_POSIX_SPAWN.
6260         * modules/spawn (Makefile): Substitute
6261         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
6262         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
6263         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
6264         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
6265         (Depends-on): Update conditions.
6266         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
6267         the Solaris 11 bug.
6268
6269 2012-01-08  Bruno Haible  <bruno@clisp.org>
6270
6271         doc: Update for Solaris 11 2011-11.
6272         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
6273         * m4/printf.m4: Update comments.
6274
6275 2012-01-08  Bruno Haible  <bruno@clisp.org>
6276
6277         mktime: Avoid compilation error on Solaris 11.
6278         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
6279
6280 2012-01-08  Bruno Haible  <bruno@clisp.org>
6281
6282         doc: Small fix.
6283         * doc/posix-headers/nl_types.texi: Correct platforms list.
6284
6285 2012-01-08  Simon Josefsson  <simon@josefsson.org>
6286
6287         Add lgpl-3.0 module.
6288         * MODULES.html.sh (Support for building documentation): Add
6289         lgpl-3.0.
6290         * modules/lgpl-3.0: New file.
6291
6292 2012-01-08  Jim Meyering  <meyering@redhat.com>
6293
6294         select.c: indent with spaces, not TABs
6295         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
6296
6297 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6298
6299         quotearg: do not use grave accent for left quote
6300         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
6301         locale_quoting_style.
6302         (quotearg_buffer_restyled): Fix example.
6303         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
6304
6305 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6306
6307         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
6308         Most programs do not have translation catalogs for English and much
6309         less separate catalogs for British and American English.  Drop the
6310         suggestion to translators about these two, and provide it
6311         automatically for Unicode locales.  Like most programs, even those
6312         using American English, we use single quotation marks.  This conflicts
6313         with the American typographic convention, but works better when you
6314         cite the entire error message within double quotes.  It also tries not
6315         to clash with established practice and with what non-gnulib programs
6316         will usually do.
6317         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
6318         using an UTF-8 or GB-18030 locale.  The list of other locales with
6319         quotes was provided by Bruno Haible.
6320         (quotearg_buffer_restyled): Adjust instructions to translators.
6321         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
6322         text, since this would be wrong when using Unicode.
6323         * modules/quotearg: Depend on c-strcaseeq.
6324
6325 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6326
6327         quotearg: fix Wikipedia link
6328         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
6329
6330 2012-01-07  Simon Josefsson  <simon@josefsson.org>
6331
6332         Fix for mingw with MSVC9.
6333         * m4/ld-version-script.m4: Check that compiler rejects version
6334         scripts with syntax errors.  Reported by Bruno Haible
6335         <bruno@clisp.org>.
6336
6337 2012-01-06  Bruno Haible  <bruno@clisp.org>
6338
6339         Talk about "native Windows API", not "Woe32".
6340         * lib/accept4.c: Update comments to mention native Windows.
6341         * lib/execute.c: Likewise.
6342         * lib/fatal-signal.c: Likewise.
6343         * lib/localcharset.c: Likewise.
6344         * lib/nanosleep.c: Likewise.
6345         * lib/nl_langinfo.c: Likewise.
6346         * lib/pclose.c: Likewise.
6347         * lib/pipe-filter-gi.c: Likewise.
6348         * lib/pipe-filter-ii.c: Likewise.
6349         * lib/pipe.c: Likewise.
6350         * lib/pipe2.c: Likewise.
6351         * lib/popen.c: Likewise.
6352         * lib/progreloc.c: Likewise.
6353         * lib/relocatable.c: Likewise.
6354         * lib/sigaction.c: Likewise.
6355         * lib/sigprocmask.c: Likewise.
6356         * lib/spawn-pipe.h: Likewise.
6357         * lib/spawn-pipe.c: Likewise.
6358         * lib/spawni.c: Likewise.
6359         * lib/stat-time.h: Likewise.
6360         * lib/w32spawn.h: Likewise.
6361         * tests/test-isatty.c: Likewise.
6362         * lib/config.charset: More comments.
6363         * doc/gnulib-intro.texi: Mention native Windows.
6364         * doc/posix-functions/_Exit_C99.texi: Likewise.
6365         * doc/posix-headers/fcntl.texi: Likewise.
6366
6367 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
6368
6369         argp: Avoid crash if translator uses % characters in a translation.
6370         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
6371         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
6372
6373 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
6374
6375         doc: C11 and C++11 are now official
6376         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
6377         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
6378         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
6379         * modules/stdalign:
6380         Replace references to draft C1X to C11, and to draft C++0X to C++11.
6381
6382 2012-01-06  Bruno Haible  <bruno@clisp.org>
6383
6384         uc-is-grapheme-break tests: Tweak.
6385         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
6386         message.
6387
6388 2012-01-06  Bruno Haible  <bruno@clisp.org>
6389
6390         test-init.sh: correct the test for diff -u
6391         * tests/test-init.sh: Also redirect stdout to /dev/null.
6392
6393 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
6394
6395         Use ', not `, for quoting output.
6396         * build-aux/announce-gen (usage, sizes, print_news_deltas)
6397         (print_changelog_deltas, get_tool_versions, main program):
6398         * build-aux/git-version-gen:
6399         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
6400         * build-aux/move-if-change (help):
6401         * build-aux/useless-if-before-free (usage, main program):
6402         * check-module (parse_module_file, usage)
6403         (find_included_lib_files, check_module):
6404         * lib/argmatch.c (main) [TEST]:
6405         * lib/argp-help.c (_help):
6406         * lib/getopt1.c (main) [TEST]:
6407         * lib/git-merge-changelog.c (usage):
6408         * lib/xstrtol-error.c (xstrtol_error):
6409         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
6410         * m4/argz.m4 (gl_FUNC_ARGZ):
6411         * m4/bison.m4 (gl_BISON):
6412         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
6413         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
6414         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
6415         * m4/fpending.m4 (gl_PREREQ_FPENDING):
6416         * m4/gc-random.m4 (gl_GC_RANDOM):
6417         * m4/intl.m4 (gt_CHECK_DECL):
6418         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
6419         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
6420         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
6421         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
6422         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
6423         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
6424         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
6425         * tests/test-dirname.c (main):
6426         * tests/test-getpass.c (main):
6427         * tests/test-iconvme.c (main):
6428         * tests/test-parse-datetime.c (LOG):
6429         * tests/test-xstrtoimax.sh:
6430         * tests/test-xstrtol.sh:
6431         * tests/test-xstrtoll.sh:
6432         * tests/test-xstrtoumax.sh:
6433         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
6434         * top/GNUmakefile (abort-due-to-no-makefile):
6435         Quote 'like this', not `like this', as per the recent change to
6436         the GNU coding standards.
6437
6438 2012-01-05  Bruno Haible  <bruno@clisp.org>
6439
6440         strtoimax: Don't force a replacement on systems where intmax_t is int.
6441         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
6442         'intmax_t' is not larger than 'int'.
6443         Reported by Pádraig Brady <P@draigBrady.com>.
6444
6445 2012-01-05  Bruno Haible  <bruno@clisp.org>
6446
6447         doc: Mention NetBSD bugs.
6448         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
6449         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
6450
6451 2012-01-05  Bruno Haible  <bruno@clisp.org>
6452
6453         strtoumax tests: Enhance tests.
6454         * tests/test-strtoumax.c (main): Add tests for large values.
6455
6456 2012-01-05  Bruno Haible  <bruno@clisp.org>
6457
6458         strtoimax: Work around AIX 5.1 bug.
6459         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
6460         definition.
6461         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
6462         Set HAVE_STRTOIMAX.
6463         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
6464         REPLACE_STRTOIMAX.
6465         * modules/inttypes-incomplete (Makefile.am): Substitute
6466         REPLACE_STRTOIMAX.
6467         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
6468         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
6469         (Depends-on): Update conditions.
6470         * tests/test-strtoimax.c (main): Add tests for large values.
6471         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
6472
6473 2012-01-05  Bruno Haible  <bruno@clisp.org>
6474
6475         inttypes: Modernize.
6476         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
6477         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
6478         (Makefile.am): Update inttypes.h rule.
6479
6480 2012-01-05  Jim Meyering  <meyering@redhat.com>
6481
6482         init.sh: don't waste a subshell just to redirect stderr
6483         * tests/init.sh: In testing for diff -u and diff -c, use a
6484         stderr-redirecting exec inside `...` rather than a subshell.
6485
6486         test-init.sh: avoid failure on HP-UX 11.00
6487         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
6488         resolves to diff -c or cmp.  Reported by Bruno Haible.
6489
6490 2012-01-05  Bruno Haible  <bruno@clisp.org>
6491
6492         Tests for module 'strtoull'.
6493         * modules/strtoull-tests: New file.
6494         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
6495
6496 2012-01-05  Bruno Haible  <bruno@clisp.org>
6497
6498         Tests for module 'strtoll'.
6499         * modules/strtoll-tests: New file.
6500         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
6501
6502 2012-01-05  Bruno Haible  <bruno@clisp.org>
6503
6504         Tests for module 'strtoul'.
6505         * modules/strtoul-tests: New file.
6506         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
6507
6508 2012-01-05  Bruno Haible  <bruno@clisp.org>
6509
6510         Tests for module 'strtol'.
6511         * modules/strtol-tests: New file.
6512         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
6513
6514 2012-01-04  Jim Meyering  <meyering@redhat.com>
6515
6516         test-init.sh: accommodate Solaris 5.10's different diff -u output
6517         * tests/test-init.sh: Also exempt @@ lines from the comparison
6518         of diff output, since Solaris 5.10 and GNU diff formats differ.
6519         Reported by Stefano Lattarini.
6520
6521 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
6522
6523         test-posixtm: don't assume signed integer wraparound
6524         * tests/test-posixtm.c (main): Don't assume wraparound semantics
6525         after signed integer overflow.  Inspired by (though it may not
6526         fix) Bruno Haible's bug report in
6527         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
6528
6529         Spell out "Windows 9x" and "Windows XP".
6530         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
6531         "Windows 9x" and "WinXP" with "Windows XP".
6532
6533 2012-01-04  Jim Meyering  <meyering@redhat.com>
6534
6535         test-vc-list-files-cvs.sh: remove obsolete comment
6536         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
6537         double exit.  Now that's all encapsulated via skip_ and Exit.
6538
6539 2012-01-04  Bruno Haible  <bruno@clisp.org>
6540
6541         Talk about "native Windows API", not "Win32".
6542         * lib/classpath.c: Update comments to mention native Windows.
6543         * lib/csharpexec.c: Likewise.
6544         * lib/dup2.c: Likewise.
6545         * lib/error.c: Likewise.
6546         * lib/fcntl.c: Likewise.
6547         * lib/filename.h: Likewise.
6548         * lib/findprog.c: Likewise.
6549         * lib/get-rusage-as.c: Likewise.
6550         * lib/get-rusage-data.c: Likewise.
6551         * lib/getpagesize.c: Likewise.
6552         * lib/javaexec.c: Likewise.
6553         * lib/msvc-inval.c: Likewise.
6554         * lib/msvc-nothrow.c: Likewise.
6555         * lib/nanosleep.c: Likewise.
6556         * lib/nonblocking.c: Likewise.
6557         * lib/printf-parse.c: Likewise.
6558         * lib/setlocale.c: Likewise.
6559         * lib/sigaction.c: Likewise.
6560         * lib/strerror_r.c: Likewise.
6561         * lib/tmpdir.c: Likewise.
6562         * lib/vasnprintf.c: Likewise.
6563         * lib/w32spawn.h: Likewise.
6564         * lib/waitpid.c: Likewise.
6565         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
6566         * m4/locale-ar.m4: Likewise.
6567         * m4/locale-fr.m4: Likewise.
6568         * m4/locale-ja.m4: Likewise.
6569         * m4/locale-tr.m4: Likewise.
6570         * m4/locale-zh.m4: Likewise.
6571         * m4/printf.m4: Likewise.
6572         * tests/test-cloexec.c: Likewise.
6573         * tests/test-copy-acl.sh: Likewise.
6574         * tests/test-copy-file.sh: Likewise.
6575         * tests/test-file-has-acl.sh: Likewise.
6576         * tests/test-set-mode-acl.sh: Likewise.
6577         * tests/test-dup-safer.c: Likewise.
6578         * tests/test-dup2.c: Likewise.
6579         * tests/test-dup3.c: Likewise.
6580         * tests/test-fcntl.c: Likewise.
6581         * tests/test-nonblocking-pipe.h: Likewise.
6582         * tests/test-nonblocking-socket.h: Likewise.
6583         * tests/test-pipe.c: Likewise.
6584         * tests/test-pipe2.c: Likewise.
6585         * tests/test-spawn-pipe-child.c: Likewise.
6586         * doc/acl-resources.txt: Likewise.
6587         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6588         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
6589         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
6590         * lib/localcharset.c: Update comments to mention native Windows.
6591         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6592         * lib/localename.c: Likewise.
6593         * lib/progreloc.c: Likewise.
6594         * lib/relocatable.c: Likewise.
6595         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6596         (windows_compute_revents): Renamed from win32_compute_revents.
6597         (windows_compute_revents_socket): Renamed from
6598         win32_compute_revents_socket.
6599         * lib/select.c: Update comments to mention native Windows.
6600         (windows_poll_handle): Renamed from win32_poll_handle.
6601         * m4/threadlib.m4: Update comments to mention native Windows.
6602         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
6603         --enable-threads=windows instead of --enable-threads=win32. Set
6604         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
6605         * lib/glthread/lock.h: Update comments to mention native Windows.
6606         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
6607         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
6608         USE_WIN32_THREADS.
6609         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
6610         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
6611         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
6612         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
6613         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
6614         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
6615         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
6616         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
6617         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
6618         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
6619         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
6620         * tests/test-tls.c: Likewise.
6621         Rationale:
6622         Microsoft renamed the "Win32 API" to "Windows API", as it is available
6623         on both 32-bit and 64-bit Windows systems.
6624         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
6625         line of distinction is between "native Windows" on one side and Unix/
6626         POSIX systems on the other side. More details in
6627         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
6628         Suggested by Paul Eggert.
6629
6630 2012-01-03  Bruno Haible  <bruno@clisp.org>
6631
6632         isatty: Support for MSVC 9.
6633         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
6634         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
6635         (_isatty_nothrow): New function.
6636         (isatty): Use it instead of _isatty.
6637         (IsConsoleHandle): Add comment, from Paolo Bonzini.
6638         * lib/poll.c (IsConsoleHandle): Likewise.
6639         * lib/select.c (IsConsoleHandle): Likewise.
6640         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
6641         (gl_PREREQ_ISATTY): New macro.
6642         * modules/isatty (Depends-on): Add msvc-inval.
6643         (configure.ac): Invoke gl_PREREQ_ISATTY.
6644
6645 2012-01-03  Jim Meyering  <meyering@redhat.com>
6646
6647         maint.mk: remove temporary transition aid from over 1.5 years ago
6648         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
6649         purpose was to aid in the transition (avoiding silent malfunction)
6650         from that old name to the new _sc_search_regexp.  This shim was
6651         added by commit 219c504b.
6652
6653         init.sh: do not try to accommodate compare arguments starting with "-"
6654         * tests/init.sh (compare_dev_null_): Do not try to accommodate
6655         compare arguments that start with "-".  Besides, we do not worry
6656         about this when invoking diff or cmp; why start now with sed?
6657         Using "--" to separate options from argument would trigger sed
6658         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
6659         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
6660
6661 2012-01-02  Bruno Haible  <bruno@clisp.org>
6662
6663         Enhance tests for module 'isatty'.
6664         * modules/isatty-tests (Depends-on): Add pipe-posix.
6665         * tests/test-isatty.c: Include <fcntl.h>.
6666         (DEV_NULL): New macro.
6667         (main): Test the resut of isatty() also on regular files, pipes, and
6668         /dev/null.
6669
6670         New module 'isatty'.
6671         * lib/unistd.in.h (isatty): New declaration.
6672         * lib/isatty.c: New file, based on an idea of
6673         Bastien Roucariès <roucaries.bastien@gmail.com>.
6674         * m4/isatty.m4: New file.
6675         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
6676         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
6677         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
6678         REPLACE_ISATTY.
6679         * modules/isatty: New file.
6680         * doc/posix-functions/isatty.texi: Mention the new module.
6681         Suggested by Paolo Bonzini.
6682
6683 2012-01-02  Bruno Haible  <bruno@clisp.org>
6684
6685         canonicalize: Tweak 2011-12-29 commit.
6686         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
6687         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
6688
6689 2012-01-02  Jim Meyering  <meyering@redhat.com>
6690
6691         gitlog-to-changelog: describe input syntax in --help output
6692         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
6693
6694         gitlog-to-changelog: fix typo in --help: show backslash before email @
6695         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
6696         in sources, but not in actual output.
6697
6698 2011-12-30  Jim Meyering  <meyering@redhat.com>
6699
6700         gitlog-to-changelog: don't malfunction when name contains %-directive
6701         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
6702         in a name string cause trouble.  E.g., with a user name of "%s",
6703         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
6704
6705 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
6706
6707         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
6708         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
6709         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
6710         the "  (tiny change)" notation that is appended to the standard
6711         ChangeLog "date  name  email" header line.
6712
6713 2012-01-01  Jim Meyering  <meyering@redhat.com>
6714
6715         test-framework-sh: init.sh: fix "make dist" failure
6716         When using gnulib-tool's --with-tests option and any module that
6717         depends on test-framework-sh, "make dist" would fail due to the
6718         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
6719         in the gltests directory, and not in the gllib/ directory.
6720         One way to work around that is to move the EXTRA_DIST += init.sh
6721         from the primary module to the -tests one:
6722         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
6723         * modules/test-framework-sh (Makefile.am): ...not here.
6724         Reported by Tom G. Christensen in
6725         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
6726
6727         version-etc: update copyright year reported by --version
6728         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
6729
6730 2011-12-31  Pádraig Brady  <P@draigBrady.com>
6731
6732         canonicalize: only stat() if required
6733         * lib/canonicalize.c (canonicalize_filename_mode):
6734         Avoid calling l?stat() when both CAN_MISSING,
6735         and CAN_NOLINKS are set, as we neither need
6736         to resolve symlinks or test component existence.
6737
6738 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
6739
6740         doc: cover st_ino issues once; add OpenVMS etc.
6741         * doc/posix-functions/stat.texi (stat):
6742         * doc/posix-functions/lstat.texi (lstat):
6743         * doc/posix-functions/fstatat.texi (fstatat):
6744         * doc/posix-functions/fstat.texi (fstat):
6745         Move general 'struct stat' stuff to sys_stat.texi,
6746         leaving behind a pointer.
6747         * doc/posix-headers/sys_stat.texi (sys/stat.h):
6748         Merge duplicate info about 'struct stat' problems into here.
6749         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
6750         and suggest partial workarounds.
6751
6752         same-inode: port to OpenVMS
6753         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
6754         three st_ino values.
6755
6756 2011-12-30  Pádraig Brady  <P@draigBrady.com>
6757
6758         canonicalize: fix references to stat() and lstat()
6759         * lib/canonicalize.c (canonicalize_filename_mode):
6760         Ensure references always resolve to a replacement
6761         function if required (even via a macro).
6762
6763 2011-12-30  Jim Meyering  <meyering@redhat.com>
6764
6765         gitlog-to-changelog: remove a little duplication
6766         * build-aux/gitlog-to-changelog (main): Grep @lines once,
6767         rather than twice.
6768
6769 2011-12-29  Pádraig Brady  <P@draigBrady.com>
6770
6771         canonicalize: add support for not resolving symlinks
6772         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
6773         indicate we don't want to follow symlinks.  Also
6774         provide CAN_MODE_MASK to aid setting these existing
6775         mutually exclusive values.
6776         * lib/canonicalize.c (canonicalize_filename_mode):
6777         Extract the flags from can_mode parameter, which
6778         are currently just used to select between stat()
6779         and lstat().  Also ensure that mutually exclusive
6780         values are flagged immediately as invalid.
6781         * tests/test-canonicalize.c: Verify symlinks are
6782         not followed, and that invalid flag combinations
6783         are diagnosed.
6784
6785 2011-12-25  Jim Meyering  <meyering@redhat.com>
6786
6787         gitlog-to-changelog: do not clump multi-paragraph entries
6788         Identical header lines (date,name,email+coauthors) are suppressed,
6789         thus putting all entries with those same characteristics under
6790         a single header.  However, when a log entry consists of two or
6791         more paragraphs, it may not be clear where it starts and ends.
6792         This change makes it so that such an entry is always separated
6793         from others by a header line, even when that header would
6794         otherwise be suppressed.
6795         * build-aux/gitlog-to-changelog: Implement the above.
6796         Inspired by a related request from Stefano Lattarini in
6797         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
6798
6799 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6800
6801         announce-gen: fix `cmd' typo in diagnostic
6802         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
6803         diagnostic: a missing '$' meant that the command was not output.
6804
6805 2011-12-23  Jim Meyering  <meyering@redhat.com>
6806
6807         test-framework-sh: distribute init.sh
6808         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
6809         Otherwise, "make -C gnulib-tests check" (at least in grep) would
6810         fail due to the lack of init.sh.
6811
6812         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
6813         * modules/atexit-tests: Rather than listing tests/init.sh,
6814         now that there's a module for it, simply depend on that new module.
6815         * modules/closein-tests: Likewise.
6816         * modules/exclude-tests: Likewise.
6817         * modules/getcwd-tests: Likewise.
6818         * modules/perror-tests: Likewise.
6819         * modules/pread-tests: Likewise.
6820         * modules/pwrite-tests: Likewise.
6821         * modules/vc-list-files-tests: Likewise.
6822         * modules/verify-tests: Likewise.
6823         * modules/xalloc-die-tests: Likewise.
6824         * modules/xstrtoimax-tests: Likewise.
6825         * modules/xstrtol-tests: Likewise.
6826         * modules/xstrtoll-tests: Likewise.
6827         * modules/xstrtoumax-tests: Likewise.
6828         * modules/yesno-tests: Likewise.
6829
6830 2011-12-22  Jim Meyering  <meyering@redhat.com>
6831
6832         test-framework-sh: add minimal tests of init.sh's compare function
6833         * modules/test-framework-sh-tests: New file.
6834         * tests/test-init.sh: New file.
6835
6836         test-framework-sh: new module
6837         * modules/test-framework-sh: New file.
6838         * MODULES.html.sh (Support for maintaining and releasing projects):
6839         List it.
6840
6841         init.sh: do not emit simulated diff output to stderr
6842         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
6843
6844 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6845
6846         .gitignore: ignore gnulib.dvi and regex.info
6847         * doc/.gitignore:add gnulib.dvi and regex.info
6848
6849 2011-12-22  Jim Meyering  <meyering@redhat.com>
6850
6851         init.sh: correct previous change
6852         * tests/init.sh (compare): My previous change was wrong.
6853         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
6854
6855         init.sh: avoid unwarranted test failure when using "set -e"
6856         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
6857         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
6858         a use like "compare exp out" would get evoke an unconditional failure.
6859
6860 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
6861
6862         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
6863         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
6864         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
6865         autoreconf that did not.
6866         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
6867         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
6868
6869 2011-12-17  Jim Meyering  <meyering@redhat.com>
6870
6871         bootstrap: remove some now-unneeded code
6872         This script arose back when gnulib-tool was young.
6873         Since then, it has seen improvements that render much of this
6874         script unnecessary.  In particular, it can now make symlinks
6875         to the files it uses.  Also, I no longer see as much value in
6876         marking files as read-only via comments.
6877         If you relied on the symlink-creation feature of the preceding
6878         version of this script, you can get most of that functionality
6879         by adding the --symlink option to the definition of
6880         gnulib_tool_option_extras in your bootstrap.conf file.
6881         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
6882         Run autopoint and libtoolize *before* gnulib-tool.
6883         After it, run an abbreviated autoreconf, rather than a loop around
6884         all tools.
6885         (slirp, bt_mark_as_generated): Remove functions.
6886
6887 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6888
6889         ftoastr: fix typo
6890         * lib/ftoastr.h: Fix misspelling in comment.
6891
6892 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
6893
6894         * top/README-release: fix punctuation.
6895
6896 2011-12-17  Jim Meyering  <meyering@redhat.com>
6897
6898         bootstrap: correct the recent buildreq change
6899         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
6900         had no effect.
6901         * build-aux/bootstrap (buildreq): Bracket each search term with
6902         "*...*", so that the shell "case" statement works as intended.
6903         Add comments.
6904
6905 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
6906
6907         build: let bootstrap resort to wget when downloading .po files
6908         * build-aux/bootstrap (download_po_files): Fallback to wget when
6909         downloading the .po files via rsync fails.  This is necessary to
6910         bootstrap from behind a strict firewall.
6911
6912 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6913
6914         stdint: don't assume C++11 when compiling with g++
6915         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
6916         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
6917         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
6918         work also in C++ before C++11, as that improperly inhibits
6919         generating a substitute stdint.h for that case.
6920
6921 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6922
6923         alloca: protect comment from gnulib-tool
6924         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
6925         that gnulib-tool doesn't think it's a license, and munge it to
6926         say "GCC version 3".
6927
6928 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
6929
6930         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
6931         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
6932         $(abs_top_builddir) instead of $(top_builddir).
6933
6934 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
6935
6936         strftime-tests: also test nanoseconds
6937         * tests/test-strftime.c (T): Add a test of %N.
6938
6939 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
6940
6941         inttypes, stdint: add C++11 support
6942         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
6943         when including inttypes.h and stdint.h.  Support this change to
6944         the standard.
6945         * doc/posix-headers/inttypes.texi (inttypes.h):
6946         * doc/posix-headers/stdint.texi (stdint.h): Document this.
6947         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
6948         Define if not defined already, for the benefit of pre-C++11 hosts.
6949         Define the standard format macros (e.g., PRId8) always.
6950         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
6951         Likewise, if __cpluspus.  Define the standard constant and limit
6952         macros (e.g., INT8_C, INT8_MAX) always.
6953         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
6954         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
6955         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
6956         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
6957         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
6958         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
6959         Likewise.
6960
6961 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6962
6963         nonblocking tests: Fix test failure on Linux/PPC.
6964         Suggested by Prerna Saxena in
6965         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
6966         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
6967         Set to 1100000.
6968
6969 2011-12-12  Jim Meyering  <meyering@redhat.com>
6970
6971         argmatch: don't hard-code `' when listing valid option arguments
6972         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
6973         use the quote function to add quotes.  Use fputs rather than
6974         fprintf for the format string with no format directive.
6975
6976 2011-12-07  Eric Blake  <eblake@redhat.com>
6977
6978         bootstrap: detect tools required by gnulib-tool
6979         * build-aux/bootstrap (buildreq): Provide minimum implicit
6980         dependencies.
6981         * DEPENDENCIES: Mention patch as a prereq.
6982
6983 2011-12-04  Bruno Haible  <bruno@clisp.org>
6984
6985         sethostname: Port to Windows platforms.
6986         * lib/sethostname.c: Provide an alternate implementation for Windows
6987         platforms.
6988         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
6989         (main): Skip the test if sethostname() fails with EPERM. On Windows
6990         platforms, don't check the result of gethostname().
6991
6992 2011-12-04  Bruno Haible  <bruno@clisp.org>
6993             Jim Meyering  <meyering@redhat.com>
6994
6995         tests: Avoid spurious error message on platforms without mktemp program.
6996         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
6997
6998 2011-12-04  Bruno Haible  <bruno@clisp.org>
6999
7000         sethostname: Fix documentation.
7001         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
7002         "not fixed" section.
7003
7004 2011-12-03  Bruno Haible  <bruno@clisp.org>
7005
7006         gnulib-tool: Verify that the License field is present and non-empty.
7007         * gnulib-tool (func_get_license_raw): New function, extracted from
7008         func_get_license.
7009         (func_get_license): Use it. Warn if the module is not a test module and
7010         has no license.
7011         Suggested by Jim Meyering.
7012
7013 2011-12-03  Bruno Haible  <bruno@clisp.org>
7014
7015         sethostname tests: Fix link error on mingw.
7016         * tests/test-sethostname1.c: New file, extracted from
7017         tests/test-sethostname.c.
7018         * tests/test-sethostname2.c: New file, extracted from
7019         tests/test-sethostname.c.
7020         * tests/test-sethostname.c: Remove file.
7021         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
7022         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
7023         (Depends-on): Add gethostname.
7024         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
7025         Link the latter with $(GETHOSTNAME_LIB).
7026
7027         sethostname tests: Fix compilation error on mingw.
7028         * tests/test-sethostname.c: Don't include <sys/types.h>.
7029         (geteuid): Use a dummy value without uid_t.
7030         * modules/sethostname-tests (Depends-on): Remove sys_types.
7031
7032         sethostname tests: Avoid a gcc warning.
7033         * tests/test-sethostname.c (main): Remove an unused variable.
7034
7035         Tweak last commit.
7036         * modules/sethostname-tests (Files): Sort by decreasing importance.
7037         (configure.ac): Check for geteuid.
7038         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
7039         the test when there's nothing to test. Drop an unnecessary cast.
7040         Improve an error message. Verify that the final sethostname() call
7041         succeeds.
7042
7043 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7044
7045         Add a test suite for the sethostname module.
7046         * modules/sethostname-tests: New file.  A test program
7047         for the sethostname module.
7048         * tests/test-sethostname.c: Likewise.
7049
7050 2011-12-03  Bruno Haible  <bruno@clisp.org>
7051
7052         Tweak last commit.
7053         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
7054         Fix preprocessor directives indentation. Fix typos.
7055         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
7056         * modules/unistd (Makefile): Likewise.
7057
7058 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7059
7060         Integrate the sethostname module into unistd.
7061         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
7062         into the unistd.h header.
7063         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
7064         preprocessor directives.
7065         * modules/unistd: Setup the Makefile substitutions of the
7066         SETHOSTNAME preprocessor directives.
7067
7068 2011-12-03  Bruno Haible  <bruno@clisp.org>
7069
7070         Tweak last commit.
7071         * lib/sethostname.c: Don't include <string.h>.
7072         (sethostname): No need to copy the argument string to the stack. Don't
7073         call clearerr. Preserve errno when fprintf failed.
7074         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
7075         Don't invoke AC_REPLACE_FUNCS.
7076         * modules/sethostname (Link): Remove empty section.
7077         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
7078         failure problem.
7079
7080 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7081
7082         New module 'sethostname'.
7083         * lib/sethostname.c (sethostname): New file.  Provide sethostname
7084         for systems that lack it.
7085         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
7086         sethostname declaration and function.
7087         * modules/sethostname: New file.  Define the sethostname module.
7088
7089 2011-12-03  Bruno Haible  <bruno@clisp.org>
7090
7091         Tweak last commit.
7092         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
7093
7094 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7095
7096         Split the HOST_NAME_MAX detection into a separate m4 macro.
7097         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
7098         macro so it can be used by the pending sethostname module.
7099
7100 2011-12-03  Bruno Haible  <bruno@clisp.org>
7101
7102         Fix module descriptions syntax.
7103         * modules/argv-iter (License): Fix syntax.
7104         * modules/di-set (License): Likewise.
7105         * modules/ino-map (License): Likewise.
7106         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
7107
7108 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
7109
7110         stdalign: port to Clang 3.0
7111         Problem reported by Simon Josefsson in
7112         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
7113         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
7114         which has <stdalign.h> but which does not define alignof.
7115         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
7116
7117 2011-12-01  Eric Blake  <eblake@redhat.com>
7118
7119         mktempd: silence dd usage
7120         * build-aux/mktempd (rand_bytes): Silence dd.
7121
7122 2011-11-30  Simon Josefsson  <simon@josefsson.org>
7123
7124         manywarnings: Don't mention gcc version in docstring.
7125         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
7126         Jim Meyering <meyering@redhat.com>.
7127
7128 2011-11-30  Jim Meyering  <meyering@redhat.com>
7129
7130         hash: mark a few floating point constants with "f" suffix
7131         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
7132         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
7133         floating point constants with "f", since they're destined to be
7134         saved/used as "float"s.
7135
7136 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
7137
7138         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
7139         * tests/test-float.c (test_long_double): Correct and re-enable the
7140         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
7141
7142 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
7143
7144         Avoid subtracting two pointers that don't point into the same block.
7145         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
7146         only pointers into the same memory block are subtracted. We cannot
7147         assume that sizeof (ptrdiff_t) == sizeof (void *).
7148
7149 2011-11-29  Eric Blake  <eblake@redhat.com>
7150
7151         maint.mk: add syntax check for use of compare from init.sh
7152         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
7153         moved here from coreutils.
7154
7155         manywarnings: drop -Wunsuffixed-float-constants
7156         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
7157         '1.0D', which is the only way to silence this warning for 'double'.
7158
7159 2011-11-29  Jim Meyering  <meyering@redhat.com>
7160
7161         hash: mark compute_bucket_size with the pure attribute
7162         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
7163
7164         quotearg, propername: correct pragma guard expression
7165         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
7166         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
7167
7168 2011-11-28  Jim Meyering  <meyering@redhat.com>
7169
7170         propername: do not mark proper_name with the const attribute
7171         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
7172         since it examines data pointed to by its parameter.
7173         * lib/propername.c (proper_name): Instead, add a pragma to suppress
7174         the suggestion from -Wsuggest-attribute=const.
7175
7176         propername: mark one more function as const
7177         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
7178
7179 2011-11-27  Jim Meyering  <meyering@redhat.com>
7180
7181         mark functions with const and pure attributes
7182
7183         Mark functions per suggestions from gcc-4.6 when using these options:
7184         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
7185         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
7186         Follow these guidelines: when possible, apply the attribute to
7187         an extern declaration, not to its definition.  Apply it to the
7188         definition only when the definition is static.
7189         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
7190         * lib/argv-iter.h (argv_iter_n_args): Likewise.
7191         * lib/base64.h (isbase64): Likewise.
7192         * lib/basename-lgpl.c (last_component, base_len): Likewise.
7193         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
7194         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
7195         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
7196         (c_tolower, c_toupper): Likewise.
7197         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
7198         * lib/chdir-long.c (find_non_slash): Likewise.
7199         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
7200         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
7201         * lib/file-type.h (file_type): Likewise.
7202         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
7203         * lib/filevercmp.c (verrevcmp): Likewise.
7204         * lib/freadahead.h (freadahead): Likewise.
7205         * lib/fts.c (fts_maxarglen): Likewise.
7206         * lib/hash-pjw.h (hash_pjw): Likewise.
7207         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
7208         * lib/hash.c (is_prime, next_prime): Likewise.
7209         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
7210         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
7211         (hash_table_ok, hash_get_first, hash_string): Likewise.
7212         (compute_bucket_size): Likewise.
7213         * lib/i-ring.h (i_ring_empty): Likewise.
7214         * lib/isnan.c (isnanl): Likewise.
7215         * lib/math.h (isnanl, rpl_isnanl): Likewise.
7216         * lib/memcasecmp.h (memcasecmp): Likewise.
7217         * lib/memchr2.h (memchr2): Likewise.
7218         * lib/memcmp2.h (memcmp2): Likewise.
7219         * lib/parse-datetime.y (lookup_zone): Likewise.
7220         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
7221         [!WINDOWS_SOCKETS]: Likewise.
7222         * lib/strnlen1.h (strnlen1): Likewise.
7223         * lib/uniwidth.in.h (uc_width): Likewise.
7224         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
7225         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
7226         (quoting_options_from_style): Add a comment.
7227         * lib/propername.h (proper_name): Add a comment.
7228
7229 2011-11-27  Bruno Haible  <bruno@clisp.org>
7230
7231         Remove unused macros from !_LIBC code in glibc-borrowed files.
7232         * lib/fnmatch.c (STRCOLL): Remove macro.
7233         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
7234         * lib/glob.c (__stat, __readdir64): Remove macros.
7235         * lib/tempname.c (__open64, __xstat64): Remove macros.
7236         Suggested by Paul Eggert.
7237
7238 2011-11-27  Bruno Haible  <bruno@clisp.org>
7239
7240         getcwd: Fix link error on MSVC 9.
7241         * modules/getcwd (Depends-on): Add readdir, rewinddir.
7242
7243 2011-11-27  Bruno Haible  <bruno@clisp.org>
7244
7245         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
7246         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
7247         HAVE_OPENDIR is 0.
7248         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
7249         HAVE_CLOSEDIR is 0.
7250         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
7251         is 0.
7252         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
7253
7254 2011-11-27  Bruno Haible  <bruno@clisp.org>
7255
7256         getcwd: Fix bug from 2011-08-17.
7257         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
7258         platforms that need it.
7259         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
7260         code of 4 to be a failure, not a success. This ensures that
7261         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
7262
7263 2011-11-27  Bruno Haible  <bruno@clisp.org>
7264
7265         binary-io tests: Avoid test failure on mingw when libtool is used.
7266         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
7267         Don't verify the size of t-bin-out1.tmp here.
7268         * tests/test-binary-io.sh: Verify it here.
7269         Reported by Simon Josefsson.
7270
7271 2011-11-26  Bruno Haible  <bruno@clisp.org>
7272
7273         Fix conflict between two instantiations of module 'unistd'.
7274         * gnulib-tool (func_emit_autoconf_snippet): Substitute
7275         ${include_guard_prefix} also in the autoconf snippet.
7276         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
7277         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
7278         GNULIB_UNISTD_H_GETOPT.
7279         * modules/getopt-posix (configure.ac): Set the
7280         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
7281         * modules/getopt-gnu (configure.ac): Likewise.
7282         * modules/unistd (Makefile.am): Change the substitution value of
7283         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
7284         Reported by Simon Josefsson.
7285
7286 2011-11-25  Bruno Haible  <bruno@clisp.org>
7287
7288         pagealign_alloc: Doc and comments.
7289         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
7290         module.
7291         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
7292
7293 2011-11-25  Jim Meyering  <meyering@redhat.com>
7294
7295         test-update-copyright.sh: avoid false-positive failure
7296         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
7297         around false positive failure on Cygwin/Windows.  The latter was
7298         matching erroneously-created files with names like
7299         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
7300
7301 2011-11-25  Simon Josefsson  <simon@josefsson.org>
7302
7303         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
7304         * m4/valgrind-tests.m4: Check that the parameters that will be
7305         used works, not just a subset of them.  Reported by Bruno Haible
7306         <bruno@clisp.org>.
7307
7308 2011-11-24  Jim Meyering  <meyering@redhat.com>
7309
7310         test-stdalign.c: comment out long double tests
7311         * tests/test-stdalign.c: Don't try to reduce alignment of long double
7312         variables.  That provokes errors like this from gcc-4.7.0 20111124:
7313         error: '_Alignas' specifiers cannot reduce alignment of \
7314         'static_longdouble_alignas'.
7315
7316 2011-11-22  Jim Meyering  <meyering@redhat.com>
7317
7318         init.sh: make "compare /dev/null FILE" output more readable
7319         * tests/init.sh (compare_): Document the preferred order of arguments.
7320         (emit_diff_u_header_): New function.
7321         (compare_dev_null_): Emit a simulated diff, rather than just the
7322         contents of the unexpected file.  Suggestion from Bruno Haible.
7323
7324 2011-11-21  Jim Meyering  <meyering@redhat.com>
7325             Eric Blake  <eblake@redhat.com>
7326
7327         init.sh: work around OSF/1 5.1's mishandling of /dev/null
7328         * tests/init.sh: Make our compare function slightly more portable.
7329         Reported by Bruno Haible in
7330         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
7331
7332 2011-11-21  Simon Josefsson  <simon@josefsson.org>
7333
7334         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
7335         before using it, in code that ends up in config.h.
7336
7337 2011-11-20  Bruno Haible  <bruno@clisp.org>
7338
7339         getcwd: Work around getcwd bug on AIX 5..7.
7340         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
7341         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
7342         Use a different value for gl_cv_func_getcwd_path_max. Move the
7343         definition of HAVE_PARTLY_WORKING_GETCWD from here...
7344         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
7345         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
7346         Define HAVE_MINIMALLY_WORKING_GETCWD.
7347         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
7348         where it is not even minimally working, that is, on AIX.
7349         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
7350         m4/getcwd-path-max.m4.
7351         (main): Update exit code computation.
7352         * doc/posix-functions/getcwd.texi: Mention list of platforms where
7353         getcwd does not handle long file names.
7354
7355 2011-11-20  Bruno Haible  <bruno@clisp.org>
7356
7357         getcwd: Fix bug from 2009-09-10.
7358         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
7359         like "no".
7360
7361 2011-11-20  Simon Josefsson  <simon@josefsson.org>
7362
7363         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
7364
7365 2011-11-20  Bruno Haible  <bruno@clisp.org>
7366
7367         fma tests: Avoid shadowing local variables.
7368         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
7369         expected.
7370
7371 2011-11-20  Bruno Haible  <bruno@clisp.org>
7372
7373         copysignf tests: Fix.
7374         * tests/test-copysignf.c: Fix signature check.
7375
7376 2011-11-20  Bruno Haible  <bruno@clisp.org>
7377
7378         fma: Remove unused code.
7379         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
7380         unused macros.
7381
7382 2011-11-20  Bruno Haible  <bruno@clisp.org>
7383
7384         sethostname: Fix doc about AIX.
7385         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
7386         sethostname; it has it.
7387
7388         sethostname: Mention more portability problems.
7389         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
7390         problem.
7391         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
7392
7393 2011-11-19  Bruno Haible  <bruno@clisp.org>
7394
7395         Depend on module fcntl-h when AT_FDCWD is used.
7396         * modules/utimens (Depends-on): Add fcntl-h.
7397         * modules/areadlinkat (Depends-on): Likewise.
7398         * modules/areadlinkat-with-size (Depends-on): Likewise.
7399         * modules/faccessat (Depends-on): Likewise.
7400         * modules/fchmodat (Depends-on): Likewise.
7401         * modules/fchownat (Depends-on): Likewise.
7402         * modules/getcwd (Depends-on): Likewise.
7403         * modules/mkdirat (Depends-on): Likewise.
7404         * modules/mkfifoat (Depends-on): Likewise.
7405         * modules/readlinkat (Depends-on): Likewise.
7406         * modules/symlinkat (Depends-on): Likewise.
7407         * modules/dup2-tests (Depends-on): Likewise.
7408         * modules/fdutimensat-tests (Depends-on): Likewise.
7409         * modules/futimens-tests (Depends-on): Likewise.
7410
7411 2011-11-19  Bruno Haible  <bruno@clisp.org>
7412
7413         euidaccess: Update a comment.
7414         * lib/euidaccess.c: Update comment about platforms with faccessat.
7415
7416 2011-11-19  Bruno Haible  <bruno@clisp.org>
7417
7418         openat: Fix file list.
7419         * modules/openat (Files): Remove lib/at-func.c.
7420
7421 2011-11-19  Bruno Haible  <bruno@clisp.org>
7422
7423         fstatat: Simplify.
7424         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
7425         gnulib should define rpl_fstatat, there is a
7426         "#define fstatat rpl_fstatat" in <sys/stat.h>.
7427
7428 2011-11-19  Bruno Haible  <bruno@clisp.org>
7429
7430         Ensure 'inline' can be used in tests/test-utimens-common.h.
7431         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
7432         * modules/futimens-tests (configure.ac): Likewise.
7433         * modules/utimens-tests (configure.ac): Likewise.
7434         * modules/utimensat-tests (configure.ac): Likewise.
7435
7436 2011-11-19  Simon Josefsson  <simon@josefsson.org>
7437
7438         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
7439         not hash_insert0.
7440         (hash_insert_if_absent): Doc fix.
7441
7442 2011-11-19  Simon Josefsson  <simon@josefsson.org>
7443
7444         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
7445
7446 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7447
7448         test-getcwd: disambiguate exit status
7449         * tests/test-getcwd.c (test_long_name): Return 0..7.
7450         (main): Exit with an unambiguous exit status.  The old
7451         code yielded a mysterious mixture of two failure codes.
7452
7453         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
7454         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
7455         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
7456         rpl_fstatat or fstatat.  This should fix the other problem
7457         reported by Kai Habel in
7458         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
7459         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
7460         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
7461         and I reproduced it on a Solaris 8 host we still have in production.
7462
7463 2011-11-18  Jim Meyering  <meyering@redhat.com>
7464
7465         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
7466         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
7467         Add a sentence to the comment.
7468         (hash_insert0): New function that simply calls hash_insert_if_absent.
7469         * lib/hash.h (hash_insert_if_absent): Declare it.
7470         (hash_insert0): Add deprecation attribute.
7471         (_GL_ATTRIBUTE_DEPRECATED): Define.
7472         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
7473         not hash_insert0.
7474         * NEWS: Mention it, even though it's not really an incompatible change.
7475
7476 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
7477
7478         openat: avoid compilation failure due to lack of <errno.h> inclusion
7479         * lib/openat.c: Include <errno.h>.
7480
7481 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
7482
7483         * modules/getcwd (Depends-on): Add fdopendir.
7484         This fixes one of the two problems reported by Kai Habel in
7485         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
7486
7487         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
7488         stdalign problem reported by Ian Beckwith in
7489         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
7490         * modules/crypto/gc-arcfour (Depends-on):
7491         Depend conditionally on crypto/arcfour.
7492         * modules/crypto/gc-arctwo (Depends-on):
7493         Depend conditionally on crypto/arctwo.
7494         * modules/crypto/gc-des (Depends-on):
7495         Depend conditionally on crypto/des.
7496         * modules/crypto/gc-hmac-md5 (Depends-on):
7497         Depend conditionally on crypto/hmac-md5.
7498         * modules/crypto/gc-hmac-sha1 (Depends-on):
7499         Depend conditionally on crypto/hmac-sha1.
7500         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
7501         * modules/crypto/gc-md4 (Depends-on):
7502         Depend conditionally on crypto/md4.
7503         * modules/crypto/gc-md5 (Depends-on):
7504         Depend conditionally on crypto/md5.
7505         * modules/crypto/gc-rijndael (Depends-on):
7506         Depend conditionally on crypto/rijndael.
7507         * modules/crypto/gc-sha1 (Depends-on):
7508         Depend conditionally on crypto/sha1.
7509         * modules/crypto/gc-arcfour:
7510         * modules/crypto/gc-arctwo:
7511         * modules/crypto/gc-des:
7512         * modules/crypto/gc-hmac-md5:
7513         * modules/crypto/gc-hmac-sha1:
7514         * modules/crypto/gc-md2:
7515         * modules/crypto/gc-md4:
7516         * modules/crypto/gc-md5:
7517         * modules/crypto/gc-rijndael:
7518         * modules/crypto/gc-sha1:
7519         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
7520         now that the conditional dependencies do the work for us.
7521
7522 2011-11-17  Jim Meyering  <meyering@redhat.com>
7523
7524         tests: factor st_ctime-comparison out of two headers
7525         * tests/test-utimens-common.h (ctime_compare): Define.
7526         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
7527         * tests/test-lutimens.h (test_lutimens): Likewise.
7528         * tests/test-utimens.h (test_utimens): Likewise.
7529
7530         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
7531         Invoke the test program via an init.sh-using wrapper.
7532         * tests/test-getcwd.sh: New file.
7533         * modules/getcwd-tests (Files): Add it.
7534         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
7535
7536 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
7537
7538         gitlog-to-changelog: support multi-author commits.
7539         The FSF cares about keeping track of all authors of patches to its
7540         projects, but Git doesn't provide obvious support for multi-author
7541         changesets. Consensus seems to be forming around the use of extra
7542         Signed-off-by inspired lines in the log message formatted as
7543         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
7544         multi-author commits between version control systems.
7545         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
7546         log message and output in standard ChangeLog multi-author format.
7547         Reported by Peter Rosin <peda@lysator.liu.se>
7548
7549 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
7550             Bruno Haible  <bruno@clisp.org>
7551
7552         Fix some modules' file list.
7553         * modules/fstatat (Files): Add m4/lstat.m4.
7554         * modules/openat (Files): Likewise.
7555         * modules/unlinkat (Files): Likewise.
7556
7557 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
7558
7559         maint.mk: fix tight-scope.mk generation in VPATH builds.
7560         * top/maint.mk (tight-scope.mk): Make sure to prefix file
7561         reference with $(srcdir) so that the file is found correctly even
7562         when running `make syntax-check' in a VPATH build.
7563
7564 2011-11-13  Bruno Haible  <bruno@clisp.org>
7565             Jim Meyering  <meyering@redhat.com>
7566
7567         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
7568         * tests/init.sh (compare): Remove "No differences encountered" or
7569         synonymous output from the 'diff' program.
7570
7571 2011-11-13  Bruno Haible  <bruno@clisp.org>
7572
7573         Makefile: Tweak indentation.
7574         * Makefile: Use tab as first character in every line that contains rule
7575         commands.
7576
7577 2011-11-13  Bruno Haible  <bruno@clisp.org>
7578
7579         Syntax check for copyright statements.
7580         * check-copyright: New file.
7581         * Makefile (sc_check_copyright): New rule.
7582
7583 2011-11-13  Simon Josefsson  <simon@josefsson.org>
7584
7585         * build-aux/git-version-gen: Add --prefix to configure the tag
7586         match string.
7587
7588 2011-11-13  Simon Josefsson  <simon@josefsson.org>
7589
7590         * build-aux/git-version-gen: Add --help and --version.
7591
7592 2011-11-12  Jim Meyering  <meyering@redhat.com>
7593
7594         revamp the other test-exclude?.sh scripts to use init.sh, too
7595         * tests/test-exclude1.sh: Use init.sh.
7596         * tests/test-exclude2.sh: Likewise.
7597         * tests/test-exclude3.sh: Likewise.
7598         * tests/test-exclude4.sh: Likewise.
7599         * tests/test-exclude5.sh: Likewise.
7600         * tests/test-exclude6.sh: Likewise.
7601         * tests/test-exclude7.sh: Likewise.
7602         * tests/test-exclude8.sh: Likewise.
7603         * modules/exclude-tests (Files): List init.sh.
7604
7605         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
7606         These shell scripts ignored failure of the binary test-exclude,
7607         so making the latter return 77 didn't cause them to be skipped.
7608         * tests/test-exclude5.sh: Exit with test-exclude's error status
7609         when that program fails.  Revamp to use init.sh.
7610         * tests/test-exclude2.sh: Likewise.
7611
7612         test-exclude: fix a typo
7613         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
7614
7615 2011-11-11  Bruno Haible  <bruno@clisp.org>
7616
7617         obstack: Fix compilation error on MSVC 9.
7618         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
7619
7620 2011-11-11  Jim Meyering  <meyering@redhat.com>
7621
7622         test-exclude: skip tests rather than failing on deficient systems
7623         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
7624         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
7625         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
7626         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
7627
7628 2011-11-10  Bruno Haible  <bruno@clisp.org>
7629
7630         ptsname_r test: Avoid gcc warning on glibc systems.
7631         * tests/test-ptsname_r.c (null_ptr): New function.
7632         (test_errors): Use it.
7633
7634 2011-11-10  Bruno Haible  <bruno@clisp.org>
7635
7636         ptsname_r: Avoid compilation error on OSF/1 5.1.
7637         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
7638         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
7639         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
7640         function is not declared or incompatibly declared.
7641         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
7642         * modules/ptsname_r (Depends-on, configure.ac): Update.
7643         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
7644
7645 2011-11-10  Bruno Haible  <bruno@clisp.org>
7646
7647         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
7648         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
7649         When cross-compiling, guess yes on all platforms except AIX.
7650         Reported by Ludovic Courtès <ludo@gnu.org>.
7651
7652 2011-11-09  Bruno Haible  <bruno@clisp.org>
7653
7654         ptsname_r tests: Fix bugs.
7655         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
7656         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
7657
7658 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
7659
7660         fstatat: work with cross-compilation
7661         Problem reported by Ludovic Courtès in
7662         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
7663         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
7664         "cross-compiling" and assume the bug is present.  Replace
7665         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
7666         an inverted sense, to be more conservative about our assumptions.
7667         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
7668
7669 2011-11-09  Bruno Haible  <bruno@clisp.org>
7670
7671         Improve MODULES.html output.
7672         * modules/mkfifoat (Description): Use the word "function".
7673         * modules/readlinkat (Description): Likewise.
7674         * modules/symlinkat (Description): Likewise.
7675
7676 2011-11-09  Eric Blake  <eblake@redhat.com>
7677
7678         ptsname_r-tests: new test module
7679         * modules/ptsname_r-tests: New module.
7680         * tests/test-ptsname_r.c: New file.
7681
7682         ptsname_r: new module
7683         * modules/ptsname_r: New module.
7684         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
7685         * lib/ptsname.c (__ptsname_r): Split...
7686         * lib/ptsname_r.c: ...into new file.
7687         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7688         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
7689         * modules/stdlib (Makefile.am): Substitute witnesses.
7690         * lib/stdlib.in.h (ptsname_r): Declare it.
7691         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
7692         * MODULES.html.sh (Misc): Likewise.
7693         * modules/ptsname (Depends-on): Alter dependency.
7694         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
7695
7696 2011-11-09  Jim Meyering  <meyering@redhat.com>
7697
7698         announce-gen: be more concise when there's only one URL+tarball
7699         * build-aux/announce-gen (get_tool_versions): When you distribute
7700         only one type of tarball, combine the first two "Here are..."
7701         sections and make the key-checking grammar independent of
7702         how many tarballs there are.
7703
7704 2011-11-09  Eric Blake  <eblake@redhat.com>
7705
7706         openpty: provide a stub on mingw
7707         * lib/pty.in.h (includes): Provide forward declarations.
7708         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
7709
7710         raise: fix mingw handling of SIGPIPE
7711         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
7712
7713 2011-11-08  Bruno Haible  <bruno@clisp.org>
7714
7715         More conditional dependencies.
7716         * modules/faccessat (Depends-on): Add conditions.
7717         * modules/fchmodat (Depends-on): Likewise.
7718         * modules/fchownat (Depends-on): Likewise.
7719         * modules/fstatat (Depends-on): Likewise.
7720         * modules/mkfifoat (Depends-on): Likewise.
7721         * modules/readlinkat (Depends-on): Likewise.
7722         * modules/symlinkat (Depends-on): Likewise.
7723         * modules/unlinkat (Depends-on): Likewise.
7724         * modules/utimensat (Depends-on): Likewise.
7725         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
7726         * modules/linkat (Depends-on): Refine the conditions.
7727         * modules/renameat (Depends-on): Likewise.
7728
7729 2011-11-08  Bruno Haible  <bruno@clisp.org>
7730
7731         faccessat: Move AC_LIBOBJ invocation to module description.
7732         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
7733         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
7734         invocation from here...
7735         * modules/faccessat (configure.ac): ... to here. Invoke
7736         gl_PREREQ_FACCESSAT.
7737
7738 2011-11-08  Bruno Haible  <bruno@clisp.org>
7739
7740         faccessat: Simplify autoconf macro.
7741         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
7742         gl_FUNC_EUIDACCESS.
7743
7744 2011-11-08  Bruno Haible  <bruno@clisp.org>
7745
7746         renameat: Fix dependencies.
7747         * modules/renameat (Depends-on): Add stdbool.
7748
7749 2011-11-08  Bruno Haible  <bruno@clisp.org>
7750
7751         mkfifoat: Fix module description.
7752         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
7753         not gl_UNISTD_MODULE_INDICATOR.
7754
7755 2011-11-08  Bruno Haible  <bruno@clisp.org>
7756
7757         fstatat: Remove unused dependency.
7758         * modules/fstatat (Depends-on): Remove fstat.
7759
7760 2011-11-08  Simon Josefsson  <simon@josefsson.org>
7761
7762         GNUmakefile: behave when Makefile is missing.
7763         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
7764
7765 2011-11-08  Bruno Haible  <bruno@clisp.org>
7766
7767         openat: Conditionalize dependencies.
7768         * lib/openat.c: Reduce the scope of some #includes.
7769         * modules/openat (Depends-on): Add conditions.
7770
7771 2011-11-07  Jim Meyering  <meyering@redhat.com>
7772
7773         maint.mk: extract GPG key ID without using a temporary file
7774         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
7775         without using a temporary file.  Based on a suggestion from Werner Koch
7776         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
7777
7778 2011-11-07  Eric Blake  <eblake@redhat.com>
7779
7780         grantpt: fix typo
7781         * lib/stdlib.in.h (grantpt): Check correct function.
7782
7783         maint.mk: silence new syntax check
7784         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
7785
7786 2011-11-06  Bruno Haible  <bruno@clisp.org>
7787
7788         Doc about floating-point and math API.
7789         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
7790         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
7791
7792 2011-11-06  Bruno Haible  <bruno@clisp.org>
7793
7794         stdalign tests: Skip the test when compiled by Sun C.
7795         * tests/test-stdalign.c (main): Skip the test on Sun C.
7796
7797 2011-11-06  Bruno Haible  <bruno@clisp.org>
7798
7799         ansi-c++-opt: Complete the 2011-06-05 change.
7800         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
7801         does not support namespaces, set the variable to "no", not to ":".
7802
7803 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
7804
7805         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
7806
7807 2011-11-06  Bruno Haible  <bruno@clisp.org>
7808
7809         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
7810         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
7811         (minus_zerol) [HP-UX]: New macro.
7812         (unary_minus) [HP-UX]: New function.
7813         (copysignl) [HP-UX]: Use unary_minus function.
7814
7815 2011-11-06  Bruno Haible  <bruno@clisp.org>
7816
7817         ldexp, ldexpf, ldexpl: Enhance tests.
7818         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
7819         and tests/test-ldexpl.c.
7820         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
7821         LDEXP, MIN_EXP, MAX_EXP): New macros.
7822         Include test-ldexp.h.
7823         (main): Just call test_function.
7824         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
7825         infinity.h, nan.h.
7826         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7827         MAX_EXP): New macros.
7828         Include test-ldexp.h.
7829         (x, y): Remove variables.
7830         (main): Just call test_function.
7831         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
7832         infinity.h, nan.h.
7833         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7834         MAX_EXP): New macros.
7835         Include test-ldexp.h.
7836         (x, y): Remove variables.
7837         (main): Just call test_function.
7838         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
7839         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
7840         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7841         (Depends-on): Add isnand-nolibm, signbit, float.
7842         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
7843         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7844         (Depends-on): Add isnanf-nolibm, signbit, float.
7845
7846 2011-11-06  Bruno Haible  <bruno@clisp.org>
7847
7848         math tests: Cosmetics.
7849         * tests/test-math-c++.cc: Reorder declarations.
7850
7851 2011-11-05  Bruno Haible  <bruno@clisp.org>
7852
7853         fma*: Simplify test.
7854         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
7855         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
7856
7857         Tests for module 'fmal'.
7858         * modules/fmal-tests: New file.
7859         * tests/test-fmal1.c: New file.
7860         * tests/test-fmal2.c: New file.
7861
7862         New module 'fmal'.
7863         * lib/math.in.h (fmal): New declaration.
7864         * lib/fmal.c: New file.
7865         * m4/fmal.m4: New file.
7866         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
7867         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
7868         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
7869         REPLACE_FMAL.
7870         * modules/fmal: New file.
7871         * doc/posix-functions/fmal.texi: Mention the new module and the various
7872         bugs.
7873
7874         Tests for module 'fmaf'.
7875         * modules/fmaf-tests: New file.
7876         * tests/test-fmaf1.c: New file.
7877         * tests/test-fmaf2.c: New file.
7878
7879         New module 'fmaf'.
7880         * lib/math.in.h (fmaf): New declaration.
7881         * lib/fmaf.c: New file.
7882         * m4/fmaf.m4: New file.
7883         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
7884         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
7885         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
7886         REPLACE_FMAF.
7887         * modules/fmaf: New file.
7888         * doc/posix-functions/fmaf.texi: Mention the new module and the various
7889         bugs.
7890
7891         Tests for module 'fma'.
7892         * modules/fma-tests: New file.
7893         * tests/test-fma1.c: New file.
7894         * tests/test-fma1.h: New file.
7895         * tests/test-fma2.c: New file.
7896         * tests/test-fma2.h: New file.
7897
7898         New module 'fma'.
7899         * lib/math.in.h (fma): New declaration.
7900         * lib/fma.c: New file.
7901         * m4/fma.m4: New file.
7902         * m4/fegetround.m4: New file.
7903         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
7904         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
7905         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
7906         REPLACE_FMA.
7907         * modules/fma: New file.
7908         * doc/posix-functions/fma.texi: Mention the new module and the various
7909         bugs.
7910
7911         Extend gl_MATHFUNC.
7912         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
7913         Support 'void' as argument type.
7914         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
7915
7916 2011-11-05  Jim Meyering  <meyering@redhat.com>
7917
7918         maint.mk: also prohibit inclusion of dirent.h without use
7919         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
7920
7921 2011-11-05  Bruno Haible  <bruno@clisp.org>
7922
7923         ldexpl tests: Avoid test failure on MSVC 9.
7924         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
7925         value. Needed in order to enforce the conversion from a value greater
7926         than LDBL_MAX to Infinity.
7927
7928 2011-11-05  Bruno Haible  <bruno@clisp.org>
7929
7930         New modules 'at-internal', 'openat-h', split off from module 'openat'.
7931         * modules/at-internal: New file, extracted from modules/openat.
7932         * modules/openat-h: New file.
7933         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
7934         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
7935         * modules/openat (Description): Add reference to POSIX function.
7936         (Files): Remove lib/openat.h, lib/openat-proc.c.
7937         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
7938         intprops, unistd.
7939         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
7940         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
7941         gl_FCNTL_MODULE_INDICATOR.
7942         (Include): Remove unistd.h, openat.h.
7943         * modules/areadlinkat (Files): Add lib/at-func.c.
7944         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7945         openat-die, openat-h, save-cwd.
7946         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
7947         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7948         openat-die, openat-h, save-cwd, unistd.
7949         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
7950         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7951         openat-h, save-cwd. Remove fcntl-h, openat.
7952         * modules/fchmodat (Files): Remove lib/openat.h.
7953         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7954         openat, stdbool, unistd.
7955         * modules/fchownat (Files): Remove lib/openat.h.
7956         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7957         openat, stdbool, sys_stat.
7958         * modules/fdopendir (Files): Remove lib/openat-priv.h,
7959         lib/openat-proc.c.
7960         (Depends-on): Add at-internal.
7961         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
7962         * modules/fstatat (Files): Remove lib/openat.h.
7963         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7964         stdbool, unistd.
7965         * modules/fts (Depends-on): Add openat-h.
7966         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
7967         openat.
7968         * modules/mkdirat (Files): Remove lib/openat.h.
7969         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7970         openat, stdbool, sys_stat.
7971         * modules/mkfifoat (Files): Add lib/at-func.c.
7972         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7973         openat-h, save-cwd. Remove fcntl-h, openat.
7974         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
7975         * modules/readlinkat (Files): Add lib/at-func.c.
7976         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7977         openat-h, save-cwd. Remove fcntl-h, openat.
7978         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
7979         openat.
7980         * modules/selinux-at (Files): Add lib/at-func.c.
7981         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7982         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
7983         * modules/symlinkat (Files): Add lib/at-func.c.
7984         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7985         openat-h, save-cwd. Remove fcntl-h, openat.
7986         * modules/unlinkat (Files): Remove lib/openat.h.
7987         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7988         stdbool.
7989         * modules/utimensat (Files): Add lib/at-func.c.
7990         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
7991         openat-die, openat-h, save-cwd.
7992         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
7993         * modules/fdutimensat-tests (Depends-on): Add openat.
7994         * modules/fstatat-tests (Depends-on): Add openat-h.
7995         * modules/readlinkat-tests (Depends-on): Add openat.
7996         * modules/symlinkat-tests (Depends-on): Add openat.
7997
7998 2011-11-05  Bruno Haible  <bruno@clisp.org>
7999
8000         openat: Include <stdbool.h>.
8001         * lib/openat.c: Include <stdbool.h>.
8002
8003 2011-11-04  Bruno Haible  <bruno@clisp.org>
8004
8005         fchownat, renameat, unlinkat: Fix dependencies.
8006         * modules/fchownat (Depends-on): Add fstatat.
8007         * modules/renameat (Depends-on): Likewise.
8008         * modules/unlinkat (Depends-on): Likewise.
8009
8010 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
8011
8012         openat: remove direct dependency on dirent
8013         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
8014         and hasn't been needed ever since fdopendir was split into its own
8015         module on 2009-08-31.
8016         * modules/openat (Depends-on): Remove dirent.
8017
8018 2011-11-04  Bruno Haible  <bruno@clisp.org>
8019
8020         renameat: Optimize code size.
8021         * modules/renameat (configure.ac): Don't compile at-func2.c if
8022         REPLACE_RENAMEAT is 1.
8023
8024 2011-11-04  Bruno Haible  <bruno@clisp.org>
8025
8026         openat tests: Fix file list.
8027         * modules/openat-tests (Files): Add tests/test-open.h.
8028
8029 2011-11-04  Bruno Haible  <bruno@clisp.org>
8030
8031         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
8032         * modules/fchmodat (Depends-on): Add openat-die.
8033         * modules/fchownat (Depends-on): Likewise.
8034         * modules/linkat (Depends-on): Likewise.
8035         * modules/renameat (Depends-on): Likewise.
8036         * modules/openat (Depends-on): Add dirent.
8037
8038 2011-11-04  Jim Meyering  <meyering@redhat.com>
8039
8040         at-func*.c: fix comments
8041         * lib/at-func2.c: Correct/improve first-line comment.
8042         * lib/at-func.c: Correct grammar in first-line comment.
8043
8044 2011-11-04  Bruno Haible  <bruno@clisp.org>
8045
8046         New module 'mkdirat', split off from module 'openat'.
8047         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
8048         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
8049         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
8050         * modules/mkdirat: New file, extracted from modules/openat.
8051         * modules/openat (Files): Remove lib/mkdirat.c.
8052         (Depends-on): Remove mkdir.
8053         (configure.ac): Remove AC_LIBOBJ of mkdirat.
8054         (Include): Remove <sys/stat.h>.
8055         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
8056         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
8057         tests/test-mkdir.h.
8058         (Depends-on): Remove ignore-value.
8059         (Makefile.am): Remove rules for test-mkdirat.
8060         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
8061         of module 'openat'.
8062         * NEWS: Mention the change.
8063
8064 2011-11-04  Bruno Haible  <bruno@clisp.org>
8065
8066         closedir: Avoid warning on mingw.
8067         * lib/closedir.c: Include <unistd.h>.
8068
8069 2011-11-04  Bruno Haible  <bruno@clisp.org>
8070
8071         New module 'fstatat', split off from module 'openat'.
8072         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
8073         defined.
8074         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
8075         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
8076         gl_FUNC_FSTATAT.
8077         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
8078         * modules/fstatat: New file, extracted from modules/openat.
8079         * modules/openat (Files): Remove lib/fstatat.c.
8080         (Depends-on): Remove lstat.
8081         (configure.ac): Remove AC_LIBOBJ of fstatat.
8082         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
8083         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
8084         tests/test-lstat.h, tests/test-stat.h.
8085         (Depends-on): Remove getcwd-lgpl.
8086         (Makefile.am): Remove rules for test-fstatat.
8087         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
8088         of module 'openat'.
8089         * NEWS: Mention the change.
8090         * modules/getcwd (Depends-on): Add fstatat.
8091         * modules/linkat (Depends-on): Likewise.
8092         * modules/mkfifoat-tests (Depends-on): Likewise.
8093         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
8094
8095 2011-11-03  Bruno Haible  <bruno@clisp.org>
8096
8097         New module 'unlinkat', split off from module 'openat'.
8098         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
8099         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
8100         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
8101         * modules/unlinkat: New file, extracted from modules/openat. Correct
8102         the dependency conditions.
8103         * modules/openat (Files): Remove lib/unlinkat.c.
8104         (Depends-on): Remove rmdir, unlink.
8105         (configure.ac): Remove AC_LIBOBJ of unlinkat.
8106         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
8107         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
8108         tests/test-rmdir.h, tests/test-unlink.h.
8109         (Depends-on): Remove unlinkdir.
8110         (Makefile.am): Remove rules for test-unlinkat.
8111         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
8112         of module 'openat'.
8113         * NEWS: Mention the change.
8114         * modules/linkat-tests (Depends-on): Add unlinkat.
8115         * modules/mkfifoat-tests (Depends-on): Likewise.
8116         * modules/readlinkat-tests (Depends-on): Likewise.
8117
8118 2011-11-02  Bruno Haible  <bruno@clisp.org>
8119
8120         New module 'fchmodat', split off from module 'openat'.
8121         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
8122         defined.
8123         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
8124         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
8125         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
8126         * modules/fchmodat: New file, extracted from modules/openat.
8127         * modules/openat (Files): Remove lib/fchmodat.c.
8128         (configure.ac): Remove AC_LIBOBJ of fchmodat.
8129         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
8130         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
8131         (Makefile.am): Remove rules for test-fchmodat.
8132         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
8133         of module 'openat'.
8134         * NEWS: Mention the change.
8135
8136 2011-11-02  Jim Meyering  <meyering@redhat.com>
8137
8138         putenv: indent #definition of "environ" to placate cppi
8139         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
8140
8141         gitlog-to-changelog: provide a ChangeLog-repair mechanism
8142         Git logs are often treated as immutable, because editing them
8143         changes the SHA1 checksums of all descendants.  Thus, errors in
8144         git logs tend to stay there forever.  However, when we generate
8145         a ChangeLog file -- typically for distribution -- from that git log,
8146         we can actually make corrections in the generated file.  The key
8147         lies in recording in machine-readable/applicable form the desired
8148         corrections.  See --help for description and an example.
8149         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
8150         (usage): Describe it; alphabetize option descriptions.
8151         (main): Honor the new option, carefully.
8152
8153 2011-11-01  Jim Meyering  <meyering@redhat.com>
8154
8155         gitlog-to-changelog: avoid an infloop
8156         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
8157         that ends up being empty.
8158
8159 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8160
8161         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
8162         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
8163         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
8164         contains (possibly-quoted) backslashes.  This should avoid
8165         all-too-common shell bugs if COMPLICATED contains backslashes in
8166         the "wrong" places.  Reported by David Evans in
8167         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
8168         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
8169         because we want ASCII ranges.  Is there some reason we don't use
8170         the C locale everywhere in this script?
8171         (func_module, top level): Avoid unwanted pathname expansion when
8172         $repo_url_prefix or $repo_url_suffix_repl contain shell
8173         metacharacters like '?' and '*'.
8174
8175 2011-11-01  Bruno Haible  <bruno@clisp.org>
8176
8177         fchownat: Improve description.
8178         * modules/fchownat (Description): Add link to function.
8179
8180 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8181
8182         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
8183         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
8184         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
8185         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
8186
8187 2011-11-01  Bruno Haible  <bruno@clisp.org>
8188
8189         alignof: Avoid collision with stdalign module.
8190         * lib/alignof.h (alignof): Remove macro.
8191         * NEWS: Mention the change.
8192         Reported by Paul Eggert.
8193
8194 2011-11-01  Bruno Haible  <bruno@clisp.org>
8195
8196         New module 'fchownat', split off from module 'openat'.
8197         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
8198         defined.
8199         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
8200         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
8201         invoke gl_FUNC_FCHOWNAT.
8202         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
8203         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
8204         * modules/fchownat: New file, extracted from modules/openat.
8205         * modules/openat (Files): Remove lib/fchownat.c.
8206         (Depends-on): Remove lchown.
8207         (configure.ac): Remove AC_LIBOBJ of fchownat.
8208         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
8209         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
8210         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
8211         (Depends-on): Remove mgetgroups, usleep, stat-time.
8212         (configure.ac): Remove test for getegid.
8213         (Makefile.am): Remove rules for test-fchownat.
8214         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
8215         of module 'openat'.
8216         * NEWS: Mention the change.
8217
8218 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
8219
8220         stdalign: port better to MSVC and to Sun C 5.11
8221         This fixes some of the problems reported by Bruno Haible in
8222         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
8223         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
8224         shortcomings of MSVC and of Sun C 5.11.
8225         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
8226         around __declspec arg.
8227         * modules/stdalign-tests (Files): Add tests/macros.h.
8228         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
8229         Include macros.h, for ASSERT.
8230         (DECLARE_ALIGNED): Remove.
8231         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
8232         to catch bug), and to 1 if not (simplifies the rest of the code).
8233         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
8234         (CHECK_AUTO): Remove.
8235         (CHECK_ALIGNED): Check only the alignment of the static vars,
8236         since auto var alignment isn't supported by Sun C 5.11.
8237         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
8238         ASSERT failures are easier to diagnose.
8239
8240 2011-10-31  Bruno Haible  <bruno@clisp.org>
8241
8242         doc about some IRIX 5.3 problems.
8243         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
8244         on IRIX 5.3.
8245         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
8246         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
8247         5.3.
8248         * doc/posix-functions/grantpt.texi: Likewise.
8249         * doc/posix-functions/unlockpt.texi: Likewise.
8250         * doc/posix-functions/lgamma.texi: Likewise.
8251         * doc/posix-functions/nextafter.texi: Likewise.
8252         * doc/posix-functions/remainder.texi: Likewise.
8253         * doc/posix-functions/select.texi: Mention misplaced declaration on
8254         IRIX 5.3.
8255         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8256
8257 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
8258
8259         gitlog-to-changelog: fix git-log invocation.
8260         git-log mishandles date strings before 1970-01-01 UTC, and there is
8261         no use to specify --since=1970-01-01 by default anyway.
8262         * build-aux/gitlog-to-changelog: By default, when no --since option
8263         was given, do not specify explicit --since option to git-log.
8264
8265 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
8266
8267         gitlog-to-changelog: new option --append-dot.
8268         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
8269         first non-blank line of each commit message terminated with a dot.
8270
8271 2011-10-30  Bruno Haible  <bruno@clisp.org>
8272
8273         ffsl, ffsll: Avoid compilation error due to 'restrict'.
8274         * lib/ffsl.h: Include <config.h>.
8275         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
8276
8277 2011-10-30  Jim Meyering  <meyering@redhat.com>
8278
8279         GNUmakefile: reenable "make syntax-check" for most projects
8280         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
8281         build-aux variable", "syntax-check" would do nothing but succeed with
8282         the "No version control files detected..." diagnostic (unless you
8283         happened to override _build-aux via cfg.mk).
8284         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
8285         to precede inclusion of maint.mk.  Otherwise, these variables would
8286         be used undefined in any project that does not override the default.
8287
8288 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
8289
8290         gitlog-to-changelog: treat a message with only blank lines as empty.
8291         * build-aux/gitlog-to-changelog: Move the code that removes leading and
8292         trailing blank lines before the code that issues a warning about an
8293         empty commit message.
8294
8295 2011-10-30  Jim Meyering  <meyering@redhat.com>
8296
8297         test-parse-datetime.c: avoid new DST-related false positive test failure
8298         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
8299         based on the time/date we'll convert, not the current time.
8300         Otherwise, the moment we cross a DST boundary like today's in
8301         Europe, (CEST to CET), that offset ends up being one hour off.
8302
8303 2011-10-27  Bruno Haible  <bruno@clisp.org>
8304
8305         fstat: Tweak documentation.
8306         * modules/fstat (Description): More precise description.
8307
8308 2011-10-27  Bruno Haible  <bruno@clisp.org>
8309
8310         Update documentation regarding 'largefile' module.
8311         * doc/posix-functions/fstat.texi: Tweak wording.
8312         * doc/posix-functions/opendir.texi: Mention that the module fixes the
8313         problems with huge directories and/or small ino_t types.
8314         * doc/posix-functions/readdir.texi: Likewise.
8315         * doc/posix-functions/rewinddir.texi: Likewise.
8316
8317 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
8318
8319         maint.mk: don't maintain a second build-aux variable.
8320         * maint.mk (build_aux): Removed.  The maintainer-makefile module
8321         depends on GNUmakefile, which already maintains a cfg.mk
8322         overridable $(_build-aux) for projects with a non-standard
8323         build-aux directory location, although without the $(srcdir)
8324         prefix.  Use that variable consistently instead of introducing a
8325         second one.  Adjust all call sites.
8326
8327 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
8328
8329         Add stdalign module and use it in other modules.
8330         This is based on a previous proposal by Bruno Haible
8331         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
8332
8333         stdalign: new module
8334         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
8335         * modules/stdalign: New files.
8336         * MODULES.html.sh (c1x_core_properties): Add stdalign.
8337         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
8338
8339         stdalign-tests: new module
8340         * modules/stdalign-tests, tests/test-stdalign.c: New files.
8341
8342         argp: use stdalign
8343         * lib/argp-parse.c: Include <stdalign.h>.
8344         (alignof): Remove.
8345         * modules/argp (Depends-on): Add stdalign.
8346
8347         crypto libraries: use stdalign
8348         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
8349         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
8350         Do not include <stdlib.h> twice, in md4.c.
8351         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
8352         because we are accessing a pointer's bit-pattern, not a size.
8353         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
8354         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
8355         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
8356         * modules/crypto/sha512: Likewise.
8357
8358         sys_socket: use stdalign, not alignof
8359         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
8360         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
8361
8362 2011-10-27  Bruno Haible  <bruno@clisp.org>
8363
8364         raise test: Avoid a test failure on Linux/MIPS.
8365         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
8366         because 99 is a valid signal on Linux/MIPS.
8367
8368 2011-10-27  Bruno Haible  <bruno@clisp.org>
8369
8370         nonblocking tests: Fix test failure on Linux/MIPS.
8371         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
8372         Set to 270000.
8373
8374 2011-10-27  Bruno Haible  <bruno@clisp.org>
8375
8376         utimensat: Work around problem on Linux/hppa.
8377         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
8378         values.
8379         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
8380
8381 2011-10-25  Jim Meyering  <meyering@redhat.com>
8382
8383         maint.mk: fix a bug in sc_prohibit_stddef_without_use
8384         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
8385         after symbols like NULL, size_t, etc.
8386         Reported by Alfred M. Szmidt.
8387
8388         maint.mk: exempt ENODATA from a syntax-check rule
8389         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
8390         from the sc_prohibit_always-defined_macros syntax-check rule.
8391         Add a comment.  See this for more details:
8392         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
8393
8394 2011-10-23  Jim Meyering  <meyering@redhat.com>
8395
8396         fts: close parent dir FD before returning from post-traversal fts_read
8397         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
8398         unlink A, even though an FD open on A remained.  This is suboptimal
8399         (holding a file descriptor open longer than needed), but otherwise not
8400         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
8401         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
8402         that represents a real problem: it causes the removal of A to fail
8403         with e.g., "rm: cannot remove `A': Device or resource busy"
8404
8405         fts visits each directory twice and keeps a cache (fts_fd_ring) of
8406         directory file descriptors.  After completing the final, FTS_DP,
8407         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
8408         cache, but then proceeded to add a new FD to it via the subsequent
8409         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
8410         final file descriptor would be closed only via fts_close's call to
8411         fd_ring_clear.  Now, it is usually closed earlier, via the final
8412         FTS_DP-returning fts_read call.
8413         * lib/fts.c (restore_initial_cwd): New function, converted from
8414         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
8415         Update callers.
8416         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
8417         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
8418
8419 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
8420             Bruno Haible  <bruno@clisp.org>
8421             Jim Meyering  <jim@meyering.net>
8422
8423         readme-release: improve safety of release prep instructions.
8424         * README-release: Don't git pull all branches when only master
8425         is needed for the release process.
8426         Run make maintainer-clean before changing trees and merging.
8427         Don't try to run ./configure right after git pull in case files
8428         that influence the bootstrap process have changed, move the
8429         ./configure step to after running ./bootstrap.
8430         Don't bootstrap "one last time"... it's the first time!
8431
8432 2011-10-22  Bruno Haible  <bruno@clisp.org>
8433
8434         errno, strerror-override: Support for MSVC 10.
8435         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
8436         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
8437         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
8438         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
8439         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
8440         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
8441         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
8442         Assign values compatible with MSVC 10.
8443         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
8444         New macros.
8445         (GNULIB_defined_EWINSOCK): New macro.
8446         * lib/strerror-override.c (strerror_override): Update accordingly.
8447         * lib/strerror-override.h: Likewise.
8448         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
8449         longer equal to the corresponding errno value.
8450         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8451
8452 2011-10-22  Bruno Haible  <bruno@clisp.org>
8453
8454         perror: Recognize when test program crashes.
8455         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
8456         strerror, set gl_cv_func_perror_works to no.
8457         Reported by Daniel Richard G. <skunk@iskunk.org>.
8458
8459         perror: Fix indentation.
8460         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
8461
8462 2011-10-22  Bruno Haible  <bruno@clisp.org>
8463
8464         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
8465         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
8466         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
8467         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
8468         functions, not as a macro.
8469         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
8470         macros.
8471         (isfinite, isinf, isnan, signbit): Check overloaded functions and
8472         absence of macro.
8473         Suggested by Eric Blake.
8474         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8475
8476 2011-10-21  Bruno Haible  <bruno@clisp.org>
8477
8478         relocatable-prog-wrapper: Don't leave object files behind.
8479         * build-aux/install-reloc: Re-synchronize list of .o files to be
8480         removed with list of compilation units.
8481
8482 2011-10-20  Bruno Haible  <bruno@clisp.org>
8483
8484         openpty, posix_openpt: Remove code duplication.
8485         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
8486         * lib/openpty.c: Include <stdlib.h>.
8487         (openpty): Use posix_openpt on all platforms except IRIX.
8488         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
8489
8490 2011-10-20  Bruno Haible  <bruno@clisp.org>
8491
8492         unlockpt: Detect invalid argument.
8493         * lib/unlockpt.c: Include <fcntl.h>.
8494         (unlockpt): Check whether fd is valid, using fcntl().
8495         * modules/unlockpt (Depends-on): Add fcntl-h.
8496
8497 2011-10-20  Bruno Haible  <bruno@clisp.org>
8498
8499         openpty: Avoid compilation error on AIX 6.1.
8500         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
8501
8502 2011-10-20  Bruno Haible  <bruno@clisp.org>
8503
8504         posix_openpt: Support for OpenBSD.
8505         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
8506         (posix_openpt) [OpenBSD]: New code.
8507         * lib/grantpt.c: Include <fcntl.h>.
8508         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
8509         * modules/grantpt (Depends-on): Add fcntl-h.
8510
8511 2011-10-20  Bruno Haible  <bruno@clisp.org>
8512
8513         posix_openpt test: Coding style.
8514         * tests/test-posix_openpt.c: Use GNU coding style.
8515
8516 2011-10-20  Bruno Haible  <bruno@clisp.org>
8517
8518         grantpt: Support --avoid=pt_chown.
8519         * modules/grantpt (Files): Add lib/pty-private.h.
8520
8521 2011-10-20  Bruno Haible  <bruno@clisp.org>
8522
8523         posix_openpt: Fix autoconf macro.
8524         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
8525         unneeded check for _getpty.
8526
8527 2011-10-20  Bruno Haible  <bruno@clisp.org>
8528
8529         openpty: Update comments.
8530         * lib/openpty.c: Add comments about Minix.
8531
8532 2011-10-19  Eric Blake  <eblake@redhat.com>
8533
8534         openpty: relax license
8535         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
8536
8537         pt_chown: use configmake to simplify build
8538         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
8539
8540         ptsname and others: relax license
8541         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
8542         * modules/unlockpt (License): Likewise.
8543         * modules/pt_chown (License): Likewise.
8544         * modules/ptsname (License): Likewise.
8545         * modules/ttyname_r (License): Likewise.
8546
8547 2011-10-19  Jim Meyering  <meyering@redhat.com>
8548
8549         posix_openpt: remove spurious #endif
8550         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
8551
8552 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
8553
8554         maint.mk: Respect $(build_aux) in web-manual rule.
8555         * top/maint.mk (web-manual): Find gen-announce script in user's
8556         $(build_aux) directory instead of hard-coding 'build-aux'.
8557
8558 2011-10-19  Bruno Haible  <bruno@clisp.org>
8559
8560         posix_openpt: Fix compilation error.
8561         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
8562         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
8563         Mention the openpty module as an alternative.
8564
8565 2011-10-19  Bruno Haible  <bruno@clisp.org>
8566
8567         Support for old NeXTstep 3.3 frexp().
8568         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
8569         execution time of the test to 5 seconds.
8570         Reported by Daniel Richard G. <skunk@iskunk.org>.
8571
8572 2011-10-19  Bruno Haible  <bruno@clisp.org>
8573
8574         Support for old NeXTstep 3.3 sed.
8575         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
8576         part, use /.../, not \|...|. Escape periods in the header file name.
8577         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
8578         Reported by Daniel Richard G. <skunk@iskunk.org>.
8579
8580 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8581
8582         Support for old NeXTstep 3.3 gcc.
8583         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
8584         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
8585         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
8586         * lib/spawn.in.h (_Restrict_arr_): Likewise.
8587         * lib/regex.h (_Restrict_arr_): Likewise.
8588         * lib/regex_internal.h (re_token_t): Likewise.
8589         * lib/regexec.c (check_node_accept_bytes): Likewise.
8590         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
8591
8592 2011-10-18  Eric Blake  <eblake@redhat.com>
8593
8594         posix_openpt: new module
8595         * modules/posix_openpt: New module.
8596         * m4/posix_openpt.m4: New file.
8597         * lib/posix_openpt.c: Likewise.
8598         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
8599         (gl_STDLIB_H_DEFAULTS): Set defaults.
8600         * modules/stdlib (Makefile.am): Substitute macros.
8601         * lib/stdlib.in.h (posix_openpt): Declare.
8602         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
8603         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
8604         * modules/posix_openpt-tests: New test module.
8605         * tests/test-posix_openpt.c: New test.
8606
8607 2011-10-15  Bruno Haible  <bruno@clisp.org>
8608
8609         xstrtoll: Fix compilation failure.
8610         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
8611         from lib/strtol.c.
8612         * doc/posix-headers/limits.texi: Mention missing numerical limits on
8613         some platforms.
8614         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8615
8616 2011-10-15  Bruno Haible  <bruno@clisp.org>
8617
8618         vasnprintf: Optimize bit search operation.
8619         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
8620         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
8621         gl_DOUBLE_EXPONENT_LOCATION.
8622         * modules/vasnprintf (Files): Add m4/exponentd.m4.
8623         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8624         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8625         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8626         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8627         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8628         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8629         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8630         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
8631
8632 2011-10-15  Bruno Haible  <bruno@clisp.org>
8633
8634         vasnprintf: Fix comments.
8635         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
8636
8637 2011-10-14  Bruno Haible  <bruno@clisp.org>
8638
8639         Tests for module 'integer_length_ll'.
8640         * modules/integer_length_ll-tests: New file.
8641         * tests/test-integer_length_ll.c: New file.
8642
8643         New module 'integer_length_ll'.
8644         * lib/integer_length_ll.c: New file.
8645         * modules/integer_length_ll: New file.
8646
8647 2011-10-14  Bruno Haible  <bruno@clisp.org>
8648
8649         Tests for module 'integer_length_l'.
8650         * modules/integer_length_l-tests: New file.
8651         * tests/test-integer_length_l.c: New file.
8652
8653         New module 'integer_length_l'.
8654         * lib/integer_length_l.c: New file.
8655         * modules/integer_length_l: New file.
8656
8657 2011-10-14  Bruno Haible  <bruno@clisp.org>
8658
8659         Tests for module 'integer_length'.
8660         * modules/integer_length-tests: New file.
8661         * tests/test-integer_length.c: New file.
8662
8663         New module 'integer_length'.
8664         * lib/integer_length.h: New file.
8665         * lib/integer_length.c: New file.
8666         * modules/integer_length: New file.
8667
8668 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8669
8670         popen: Fix dependency conditions.
8671         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
8672
8673 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8674
8675         perror: Fix autoconf test.
8676         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
8677         <stdlib.h> and <string.h>.
8678
8679 2011-10-14  Bruno Haible  <bruno@clisp.org>
8680
8681         ffsl: Optimize on 64-bit platforms.
8682         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
8683         unrolling.
8684
8685 2011-10-13  Bruno Haible  <bruno@clisp.org>
8686
8687         ffsl: Optimize on 32-bit platforms.
8688         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
8689         use ffs() without a loop.
8690
8691         ffsl, ffsll: Optimize for GCC.
8692         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
8693         * lib/ffsl.c (GCC_BUILTIN): New macro.
8694         * lib/ffsll.c (GCC_BUILTIN): Likewise.
8695
8696 2011-10-13  Bruno Haible  <bruno@clisp.org>
8697
8698         ffs, bcopy, memset: Support symbol renaming via config.h.
8699         * lib/ffs.c: Include <config.h>.
8700         * lib/bcopy.c: Likewise.
8701         * lib/memset.c: Likewise.
8702
8703 2011-10-10  Bruno Haible  <bruno@clisp.org>
8704
8705         atanl: Simplify for platforms where 'long double' == 'double'.
8706         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8707         alternative implementation.
8708         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8709         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8710         * modules/atanl (Depends-on): Add atan. Update conditions.
8711
8712 2011-10-10  Bruno Haible  <bruno@clisp.org>
8713
8714         acosl: Simplify for platforms where 'long double' == 'double'.
8715         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8716         alternative implementation.
8717         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8718         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8719         * modules/acosl (Depends-on): Add acos. Update conditions.
8720
8721 2011-10-10  Bruno Haible  <bruno@clisp.org>
8722
8723         asinl: Simplify for platforms where 'long double' == 'double'.
8724         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8725         alternative implementation.
8726         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8727         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8728         * modules/asinl (Depends-on): Add asin. Update conditions.
8729
8730 2011-10-10  Bruno Haible  <bruno@clisp.org>
8731
8732         tanl: Simplify for platforms where 'long double' == 'double'.
8733         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8734         implementation.
8735         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8736         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8737         * modules/tanl (Depends-on): Add tan. Update conditions.
8738         (configure.ac): Don't compile trigl.c if
8739         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8740
8741 2011-10-10  Bruno Haible  <bruno@clisp.org>
8742
8743         cosl: Simplify for platforms where 'long double' == 'double'.
8744         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8745         implementation.
8746         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8747         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8748         * modules/cosl (Depends-on): Add cos. Update conditions.
8749         (configure.ac): Don't compile sincosl.c and trigl.c if
8750         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8751
8752 2011-10-10  Bruno Haible  <bruno@clisp.org>
8753
8754         sinl: Simplify for platforms where 'long double' == 'double'.
8755         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8756         implementation.
8757         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8758         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8759         * modules/sinl (Depends-on): Add sin. Update conditions.
8760         (configure.ac): Don't compile sincosl.c and trigl.c if
8761         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8762
8763 2011-10-10  Bruno Haible  <bruno@clisp.org>
8764
8765         logl: Simplify for platforms where 'long double' == 'double'.
8766         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8767         implementation.
8768         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8769         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8770         * modules/logl (Depends-on): Add log. Update conditions.
8771
8772 2011-10-10  Bruno Haible  <bruno@clisp.org>
8773
8774         expl: Simplify for platforms where 'long double' == 'double'.
8775         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8776         implementation.
8777         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8778         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8779         * modules/expl (Depends-on): Add exp. Update conditions.
8780
8781 2011-10-10  Bruno Haible  <bruno@clisp.org>
8782
8783         sqrtl: Simplify for platforms where 'long double' == 'double'.
8784         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8785         alternative implementation.
8786         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8787         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8788         * modules/sqrtl (Depends-on): Update conditions.
8789
8790 2011-10-10  Bruno Haible  <bruno@clisp.org>
8791
8792         ldexpl: Simplify for platforms where 'long double' == 'double'.
8793         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8794         alternative implementation.
8795         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8796         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8797         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
8798
8799 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
8800
8801         ffsll: set correct witness
8802         * modules/ffsll (configure.ac): Fix typo.
8803
8804 2011-10-10  Bruno Haible  <bruno@clisp.org>
8805
8806         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
8807         * lib/printf-frexpl.c: Include <config.h>.
8808         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8809         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
8810         second time.
8811         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
8812         gl_LONG_DOUBLE_VS_DOUBLE.
8813         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
8814         conditions.
8815
8816 2011-10-10  Bruno Haible  <bruno@clisp.org>
8817
8818         frexpl: Simplify for platforms where 'long double' == 'double'.
8819         * lib/frexpl.c: Include <config.h>.
8820         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8821         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8822         time.
8823         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8824         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8825         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
8826         * modules/frexpl (Depends-on): Add frexp. Update conditions.
8827         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
8828         conditions.
8829
8830 2011-10-10  Jim Meyering  <meyering@redhat.com>
8831
8832         test-renameat: don't leave behind a temporary file
8833         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
8834           ERROR: files left in build directory after distclean:
8835           ./gltests/test-renameat.too
8836           make[1]: *** [distcleancheck] Error 1
8837         Reported by Tom G. Christensen.
8838
8839 2011-10-09  Bruno Haible  <bruno@clisp.org>
8840
8841         rint: Determine RINT_LIBM correctly on AIX 7.
8842         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
8843         directly, not only through a function pointer. Also accept an optional
8844         4th argument with extra code.
8845         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
8846         rintf() call by gcc when optimizing.
8847
8848         mathfunc.m4: Refactor.
8849         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
8850         m4 variable.
8851
8852 2011-10-09  Bruno Haible  <bruno@clisp.org>
8853
8854         rintl: Simplify for platforms where 'long double' == 'double'.
8855         * lib/rintl.c: Include <config.h>.
8856         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8857         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8858         time.
8859         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8860         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8861         * modules/rintl (Depends-on): Add rint. Update conditions.
8862
8863 2011-10-09  Bruno Haible  <bruno@clisp.org>
8864
8865         roundl: Simplify for platforms where 'long double' == 'double'.
8866         * lib/roundl.c: Include <config.h>.
8867         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8868         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8869         time.
8870         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8871         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8872         * modules/roundl (Depends-on): Add round. Update conditions.
8873
8874 2011-10-09  Bruno Haible  <bruno@clisp.org>
8875
8876         truncl: Simplify for platforms where 'long double' == 'double'.
8877         * lib/truncl.c: Include <config.h>.
8878         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8879         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8880         time.
8881         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8882         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8883         * modules/truncl (Depends-on): Add trunc. Update conditions.
8884
8885 2011-10-09  Bruno Haible  <bruno@clisp.org>
8886
8887         ceill: Simplify for platforms where 'long double' == 'double'.
8888         * lib/ceill.c: Include <config.h>.
8889         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8890         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8891         time.
8892         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8893         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8894         * modules/ceill (Depends-on): Add ceil. Update conditions.
8895
8896 2011-10-09  Bruno Haible  <bruno@clisp.org>
8897
8898         floorl: Simplify for platforms where 'long double' == 'double'.
8899         * lib/floorl.c: Include <config.h>.
8900         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8901         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8902         time.
8903         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8904         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8905         * modules/floorl (Depends-on): Add floor. Update conditions.
8906
8907 2011-10-09  Bruno Haible  <bruno@clisp.org>
8908
8909         rint: Fix ordering constraints.
8910         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
8911         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
8912         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
8913
8914 2011-10-09  Bruno Haible  <bruno@clisp.org>
8915
8916         copysignl: Simplify for platforms where 'long double' == 'double'.
8917         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8918         alternative.
8919         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8920         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8921         * modules/copysignl (Depends-on): Add copysign. Update conditions.
8922
8923 2011-10-09  Bruno Haible  <bruno@clisp.org>
8924
8925         Tests for module 'rintl'.
8926         * modules/rintl-tests: New file.
8927         * tests/test-rintl.c: New file.
8928
8929         New module 'rintl'.
8930         * lib/math.in.h (rintl): New declaration.
8931         * lib/rintl.c: New file.
8932         * m4/rintl.m4: New file.
8933         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
8934         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
8935         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
8936         * modules/rintl: New file.
8937         * tests/test-math-c++.cc: Check the declaration of rintl.
8938         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8939         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
8940         * doc/posix-functions/rintl.texi: Mention the new module.
8941
8942 2011-10-09  Bruno Haible  <bruno@clisp.org>
8943
8944         Tests for module 'rintf'.
8945         * modules/rintf-tests: New file.
8946         * tests/test-rintf.c: New file.
8947
8948         New module 'rintf'.
8949         * lib/math.in.h (rintf): New declaration.
8950         * lib/rintf.c: New file.
8951         * m4/rintf.m4: New file.
8952         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
8953         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
8954         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
8955         * modules/rintf: New file.
8956         * tests/test-math-c++.cc: Check the declaration of rintf.
8957         * doc/posix-functions/rintf.texi: Mention the new module.
8958
8959 2011-10-09  Bruno Haible  <bruno@clisp.org>
8960
8961         rint: Support for MSVC.
8962         * lib/math.in.h (rint): New declaration.
8963         * lib/rint.c: New file.
8964         * m4/rint.m4: New file.
8965         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
8966         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
8967         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
8968         * modules/rint (Description): Fix.
8969         (Files): Add lib/rint.c, m4/rint.m4.
8970         (Depends-on): Add math.
8971         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
8972         gl_MATH_MODULE_INDICATOR.
8973         * tests/test-math-c++.cc: Check the declaration of rint.
8974         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8975         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
8976         * doc/posix-functions/rint.texi: Mention the replacement provided by
8977         the module.
8978
8979         rint tests: More tests.
8980         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
8981         minus-zero.h, infinity.h, nan.h.
8982         (main): Skip the test if the current rounding mode is not standard. Add
8983         tests for negative numbers, minus zero, infinity, NaN.
8984         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
8985         tests/nan.h.
8986         (Depends-on): Add isnand-nolibm.
8987
8988 2011-10-09  Bruno Haible  <bruno@clisp.org>
8989
8990         Tests for module 'copysignl'.
8991         * modules/copysignl-tests: New file.
8992         * tests/test-copysignl.c: New file.
8993
8994         New module 'copysignl'.
8995         * lib/math.in.h (copysignl): New declaration.
8996         * lib/copysignl.c: New file.
8997         * m4/copysignl.m4: New file.
8998         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
8999         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
9000         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
9001         HAVE_COPYSIGNL.
9002         * modules/copysignl: New file.
9003         * tests/test-math-c++.cc: Check the declaration of copysignl.
9004         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
9005         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
9006         * doc/posix-functions/copysignl.texi: Mention the new module.
9007
9008 2011-10-09  Bruno Haible  <bruno@clisp.org>
9009
9010         Tests for module 'copysignf'.
9011         * modules/copysignf-tests: New file.
9012         * tests/test-copysignf.c: New file.
9013
9014         New module 'copysignf'.
9015         * lib/math.in.h (copysignf): New declaration.
9016         * lib/copysignf.c: New file.
9017         * m4/copysignf.m4: New file.
9018         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
9019         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
9020         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
9021         HAVE_COPYSIGNF.
9022         * modules/copysignf: New file.
9023         * tests/test-math-c++.cc: Check the declaration of copysignf.
9024         * doc/posix-functions/copysignf.texi: Mention the new module.
9025
9026 2011-10-09  Bruno Haible  <bruno@clisp.org>
9027
9028         Ensure that HAVE_* variables are set to 1 before they are set to 0.
9029         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
9030         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
9031         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9032         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
9033         gl_SIGNAL_H_DEFAULTS.
9034
9035 2011-10-09  Bruno Haible  <bruno@clisp.org>
9036
9037         poll: Make macro safer.
9038         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
9039         ac_cv_header_poll_h is not set.
9040
9041 2011-10-09  Bruno Haible  <bruno@clisp.org>
9042
9043         copysign: Provide replacement.
9044         * lib/math.in.h (copysign): New declaration.
9045         * lib/copysign.c: New file.
9046         * m4/copysign.m4: New file.
9047         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
9048         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
9049         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
9050         HAVE_COPYSIGN.
9051         * modules/copysign (Description): Clarify.
9052         (Files): Add lib/copysign.c, m4/copysign.m4.
9053         (Depends-on): Add math, signbit.
9054         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
9055         gl_MATH_MODULE_INDICATOR.
9056         * tests/test-math-c++.cc: Check the declaration of copysign.
9057         * doc/posix-functions/copysign.texi: Mention the effects of the module
9058         on Minix and MSVC.
9059
9060 2011-10-09  Bruno Haible  <bruno@clisp.org>
9061
9062         isinf: Ensure macro on AIX 5.1.
9063         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
9064         macro.
9065         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
9066
9067 2011-10-09  Bruno Haible  <bruno@clisp.org>
9068
9069         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
9070         * modules/snprintf-posix-tests (configure.ac): Require
9071         gl_LONG_DOUBLE_VS_DOUBLE.
9072         * modules/sprintf-posix-tests (configure.ac): Likewise.
9073         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
9074         * modules/vasprintf-posix-tests (configure.ac): Likewise.
9075         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
9076         * modules/vsprintf-posix-tests (configure.ac): Likewise.
9077         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
9078         tests on platforms where 'long double' is the same as 'double'.
9079         * tests/test-sprintf-posix.h (test_function): Likewise.
9080         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9081         * tests/test-vasprintf-posix.c (test_function): Likewise.
9082
9083         *printf: Fix for platforms where 'long double' == 'double'.
9084         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
9085         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
9086         * modules/dprintf-posix (Files): Add m4/math_h.m4.
9087         * modules/fprintf-posix (Files): Likewise.
9088         * modules/obstack-printf-posix (Files): Likewise.
9089         * modules/snprintf-posix (Files): Likewise.
9090         * modules/sprintf-posix (Files): Likewise.
9091         * modules/vasnprintf (Files): Likewise.
9092         * modules/vasnprintf-posix (Files): Likewise.
9093         * modules/vasprintf-posix (Files): Likewise.
9094         * modules/vdprintf-posix (Files): Likewise.
9095         * modules/vfprintf-posix (Files): Likewise.
9096         * modules/vsnprintf-posix (Files): Likewise.
9097         * modules/vsprintf-posix (Files): Likewise.
9098         * modules/unistdio/u8-vasnprintf (Files): Likewise.
9099         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
9100         * modules/unistdio/u16-vasnprintf (Files): Likewise.
9101         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
9102         * modules/unistdio/u32-vasnprintf (Files): Likewise.
9103         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
9104         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
9105
9106         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
9107         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
9108         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9109         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
9110         'long double'.
9111         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
9112
9113         isinf: Fix for platforms where 'long double' == 'double'.
9114         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
9115         Don't blindly assume 80-bit 'long double'.
9116
9117         isfinite: Fix for platforms where 'long double' == 'double'.
9118         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
9119         Don't blindly assume 80-bit 'long double'.
9120
9121         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
9122         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
9123         * modules/isfinite-tests (configure.ac): Require
9124         gl_LONG_DOUBLE_VS_DOUBLE.
9125         * modules/isinf-tests (configure.ac): Likewise.
9126         * modules/isnan-tests (configure.ac): Likewise.
9127         * modules/isnanl-tests (configure.ac): Likewise.
9128         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
9129         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
9130         tests on platforms where 'long double' is the same as 'double'.
9131         * tests/test-isinf.c (test_isinfl): Likewise.
9132         * tests/test-isnan.c (test_long_double): Likewise.
9133         * tests/test-isnanl.h (main): Likewise.
9134
9135 2011-10-08  Bruno Haible  <bruno@clisp.org>
9136
9137         Tests for module 'tanhf'.
9138         * modules/tanhf-tests: New file.
9139         * tests/test-tanhf.c: New file.
9140
9141         New module 'tanhf'.
9142         * lib/math.in.h (tanhf): New declaration.
9143         * lib/tanhf.c: New file.
9144         * m4/tanhf.m4: New file.
9145         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
9146         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
9147         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
9148         * modules/tanhf: New file.
9149         * tests/test-math-c++.cc: Check the declaration of tanhf.
9150         * doc/posix-functions/tanhf.texi: Mention the new module.
9151
9152         tanh: Use a .m4 file.
9153         * m4/tanh.m4: New file.
9154         * modules/tanh (Files): Add it.
9155         (configure.ac): Just invoke gl_FUNC_TANH.
9156
9157 2011-10-08  Bruno Haible  <bruno@clisp.org>
9158
9159         Tests for module 'coshf'.
9160         * modules/coshf-tests: New file.
9161         * tests/test-coshf.c: New file.
9162
9163         New module 'coshf'.
9164         * lib/math.in.h (coshf): New declaration.
9165         * lib/coshf.c: New file.
9166         * m4/coshf.m4: New file.
9167         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
9168         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
9169         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
9170         * modules/coshf: New file.
9171         * tests/test-math-c++.cc: Check the declaration of coshf.
9172         * doc/posix-functions/coshf.texi: Mention the new module.
9173
9174         cosh: Use a .m4 file.
9175         * m4/cosh.m4: New file.
9176         * modules/cosh (Files): Add it.
9177         (configure.ac): Just invoke gl_FUNC_COSH.
9178
9179 2011-10-08  Bruno Haible  <bruno@clisp.org>
9180
9181         Tests for module 'sinhf'.
9182         * modules/sinhf-tests: New file.
9183         * tests/test-sinhf.c: New file.
9184
9185         New module 'sinhf'.
9186         * lib/math.in.h (sinhf): New declaration.
9187         * lib/sinhf.c: New file.
9188         * m4/sinhf.m4: New file.
9189         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
9190         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
9191         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
9192         * modules/sinhf: New file.
9193         * tests/test-math-c++.cc: Check the declaration of sinhf.
9194         * doc/posix-functions/sinhf.texi: Mention the new module.
9195
9196         sinh: Use a .m4 file.
9197         * m4/sinh.m4: New file.
9198         * modules/sinh (Files): Add it.
9199         (configure.ac): Just invoke gl_FUNC_SINH.
9200
9201 2011-10-08  Bruno Haible  <bruno@clisp.org>
9202
9203         Tests for module 'atan2f'.
9204         * modules/atan2f-tests: New file.
9205         * tests/test-atan2f.c: New file.
9206
9207         New module 'atan2f'.
9208         * lib/math.in.h (atan2f): New declaration.
9209         * lib/atan2f.c: New file.
9210         * m4/atan2f.m4: New file.
9211         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
9212         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
9213         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
9214         * modules/atan2f: New file.
9215         * tests/test-math-c++.cc: Check the declaration of atan2f.
9216         * doc/posix-functions/atan2f.texi: Mention the new module.
9217
9218         atan2: Use a .m4 file.
9219         * m4/atan2.m4: New file.
9220         * modules/atan2 (Files): Add it.
9221         (configure.ac): Just invoke gl_FUNC_ATAN2.
9222
9223 2011-10-08  Bruno Haible  <bruno@clisp.org>
9224
9225         Tests for module 'atanf'.
9226         * modules/atanf-tests: New file.
9227         * tests/test-atanf.c: New file.
9228
9229         New module 'atanf'.
9230         * lib/math.in.h (atanf): New declaration.
9231         * lib/atanf.c: New file.
9232         * m4/atanf.m4: New file.
9233         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
9234         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
9235         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
9236         * modules/atanf: New file.
9237         * tests/test-math-c++.cc: Check the declaration of atanf.
9238         * doc/posix-functions/atanf.texi: Mention the new module.
9239
9240         atan: Use a .m4 file.
9241         * m4/atan.m4: New file.
9242         * modules/atan (Files): Add it.
9243         (configure.ac): Just invoke gl_FUNC_ATAN.
9244
9245 2011-10-08  Bruno Haible  <bruno@clisp.org>
9246
9247         Tests for module 'acosf'.
9248         * modules/acosf-tests: New file.
9249         * tests/test-acosf.c: New file.
9250
9251         New module 'acosf'.
9252         * lib/math.in.h (acosf): New declaration.
9253         * lib/acosf.c: New file.
9254         * m4/acosf.m4: New file.
9255         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
9256         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
9257         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
9258         * modules/acosf: New file.
9259         * tests/test-math-c++.cc: Check the declaration of acosf.
9260         * doc/posix-functions/acosf.texi: Mention the new module.
9261
9262         acos: Use a .m4 file.
9263         * m4/acos.m4: New file.
9264         * modules/acos (Files): Add it.
9265         (configure.ac): Just invoke gl_FUNC_ACOS.
9266
9267 2011-10-08  Bruno Haible  <bruno@clisp.org>
9268
9269         Tests for module 'asinf'.
9270         * modules/asinf-tests: New file.
9271         * tests/test-asinf.c: New file.
9272
9273         New module 'asinf'.
9274         * lib/math.in.h (asinf): New declaration.
9275         * lib/asinf.c: New file.
9276         * m4/asinf.m4: New file.
9277         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
9278         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
9279         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
9280         * modules/asinf: New file.
9281         * tests/test-math-c++.cc: Check the declaration of asinf.
9282         * doc/posix-functions/asinf.texi: Mention the new module.
9283
9284         asin: Use a .m4 file.
9285         * m4/asin.m4: New file.
9286         * modules/asin (Files): Add it.
9287         (configure.ac): Just invoke gl_FUNC_ASIN.
9288
9289 2011-10-08  Bruno Haible  <bruno@clisp.org>
9290
9291         Tests for module 'tanf'.
9292         * modules/tanf-tests: New file.
9293         * tests/test-tanf.c: New file.
9294
9295         New module 'tanf'.
9296         * lib/math.in.h (tanf): New declaration.
9297         * lib/tanf.c: New file.
9298         * m4/tanf.m4: New file.
9299         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
9300         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
9301         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
9302         * modules/tanf: New file.
9303         * tests/test-math-c++.cc: Check the declaration of tanf.
9304         * doc/posix-functions/tanf.texi: Mention the new module.
9305
9306         tan: Use a .m4 file.
9307         * m4/tan.m4: New file.
9308         * modules/tan (Files): Add it.
9309         (configure.ac): Just invoke gl_FUNC_TAN.
9310
9311 2011-10-08  Bruno Haible  <bruno@clisp.org>
9312
9313         Tests for module 'cosf'.
9314         * modules/cosf-tests: New file.
9315         * tests/test-cosf.c: New file.
9316
9317         New module 'cosf'.
9318         * lib/math.in.h (cosf): New declaration.
9319         * lib/cosf.c: New file.
9320         * m4/cosf.m4: New file.
9321         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
9322         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
9323         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
9324         * modules/cosf: New file.
9325         * tests/test-math-c++.cc: Check the declaration of cosf.
9326         * doc/posix-functions/cosf.texi: Mention the new module.
9327
9328         cos: Use a .m4 file.
9329         * m4/cos.m4: New file.
9330         * modules/cos (Files): Add it.
9331         (configure.ac): Just invoke gl_FUNC_COS.
9332
9333 2011-10-08  Bruno Haible  <bruno@clisp.org>
9334
9335         Tests for module 'sinf'.
9336         * modules/sinf-tests: New file.
9337         * tests/test-sinf.c: New file.
9338
9339         New module 'sinf'.
9340         * lib/math.in.h (sinf): New declaration.
9341         * lib/sinf.c: New file.
9342         * m4/sinf.m4: New file.
9343         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
9344         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
9345         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
9346         * modules/sinf: New file.
9347         * tests/test-math-c++.cc: Check the declaration of sinf.
9348         * doc/posix-functions/sinf.texi: Mention the new module.
9349
9350         sin: Use a .m4 file.
9351         * m4/sin.m4: New file.
9352         * modules/sin (Files): Add it.
9353         (configure.ac): Just invoke gl_FUNC_SIN.
9354
9355 2011-10-08  Bruno Haible  <bruno@clisp.org>
9356
9357         Tests for module 'powf'.
9358         * modules/powf-tests: New file.
9359         * tests/test-powf.c: New file.
9360
9361         New module 'powf'.
9362         * lib/math.in.h (powf): New declaration.
9363         * lib/powf.c: New file.
9364         * m4/powf.m4: New file.
9365         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
9366         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
9367         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
9368         * modules/powf: New file.
9369         * tests/test-math-c++.cc: Check the declaration of powf.
9370         * doc/posix-functions/powf.texi: Mention the new module.
9371
9372         pow: Use a .m4 file.
9373         * m4/pow.m4: New file.
9374         * modules/pow (Files): Add it.
9375         (configure.ac): Just invoke gl_FUNC_POW.
9376
9377 2011-10-08  Bruno Haible  <bruno@clisp.org>
9378
9379         Tests for module 'log10f'.
9380         * modules/log10f-tests: New file.
9381         * tests/test-log10f.c: New file.
9382
9383         New module 'log10f'.
9384         * lib/math.in.h (log10f): New declaration.
9385         * lib/log10f.c: New file.
9386         * m4/log10f.m4: New file.
9387         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
9388         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
9389         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
9390         * modules/log10f: New file.
9391         * tests/test-math-c++.cc: Check the declaration of log10f.
9392         * doc/posix-functions/log10f.texi: Mention the new module.
9393
9394         log10: Use a .m4 file.
9395         * m4/log10.m4: New file.
9396         * modules/log10 (Files): Add it.
9397         (configure.ac): Just invoke gl_FUNC_LOG10.
9398
9399 2011-10-08  Bruno Haible  <bruno@clisp.org>
9400
9401         Tests for module 'logf'.
9402         * modules/logf-tests: New file.
9403         * tests/test-logf.c: New file.
9404
9405         New module 'logf'.
9406         * lib/math.in.h (logf): New declaration.
9407         * lib/logf.c: New file.
9408         * m4/logf.m4: New file.
9409         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
9410         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
9411         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
9412         * modules/logf: New file.
9413         * tests/test-math-c++.cc: Check the declaration of logf.
9414         * doc/posix-functions/logf.texi: Mention the new module.
9415
9416         log: Use a .m4 file.
9417         * m4/log.m4: New file.
9418         * modules/log (Files): Add it.
9419         (configure.ac): Just invoke gl_FUNC_LOG.
9420
9421 2011-10-08  Bruno Haible  <bruno@clisp.org>
9422
9423         Tests for module 'expf'.
9424         * modules/expf-tests: New file.
9425         * tests/test-expf.c: New file.
9426
9427         New module 'expf'.
9428         * lib/math.in.h (expf): New declaration.
9429         * lib/expf.c: New file.
9430         * m4/expf.m4: New file.
9431         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
9432         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
9433         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
9434         * modules/expf: New file.
9435         * tests/test-math-c++.cc: Check the declaration of expf.
9436         * doc/posix-functions/expf.texi: Mention the new module.
9437
9438         exp: Use a .m4 file.
9439         * m4/exp.m4: New file.
9440         * modules/exp (Files): Add it.
9441         (configure.ac): Just invoke gl_FUNC_EXP.
9442
9443 2011-10-08  Bruno Haible  <bruno@clisp.org>
9444
9445         Tests for module 'sqrtf'.
9446         * modules/sqrtf-tests: New file.
9447         * tests/test-sqrtf.c: New file.
9448
9449         New module 'sqrtf'.
9450         * lib/math.in.h (sqrtf): New declaration.
9451         * lib/sqrtf.c: New file.
9452         * m4/sqrtf.m4: New file.
9453         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
9454         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
9455         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
9456         * modules/sqrtf: New file.
9457         * tests/test-math-c++.cc: Check the declaration of sqrtf.
9458         * doc/posix-functions/sqrtf.texi: Mention the new module.
9459
9460 2011-10-08  Bruno Haible  <bruno@clisp.org>
9461
9462         Tests: Avoid link failures w.r.t. libintl.
9463         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
9464         $(LIBINTL).
9465         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
9466         $(LIBINTL).
9467         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
9468         against $(LIBINTL).
9469         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
9470         $(LIBINTL).
9471         * modules/openat-tests (Makefile.am): Link test-fchmodat against
9472         $(LIBINTL).
9473         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
9474
9475 2011-10-08  Bruno Haible  <bruno@clisp.org>
9476
9477         pow tests: Defeat compiler optimizations.
9478         * tests/test-pow.c (main): Assign arguments to x and y before use.
9479
9480 2011-10-08  Bruno Haible  <bruno@clisp.org>
9481
9482         gnulib-tool: Improve last commit.
9483         * gnulib-tool (func_modules_transitive_closure): Simplify code.
9484         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
9485         ignore dependencies that are not among the modules list.
9486
9487 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
9488
9489         gnulib-tool: don't follow dependencies to avoided modules
9490         This fixes a bug that is related to the previous one.
9491         * gnulib-tool (func_modules_transitive_closure)
9492         (func_emit_autoconf_snippets):
9493         Check whether a dependency is acceptable before using it.
9494         (--extract-dependencies): Report an error if --avoid is also used,
9495         since this combination of options is not yet supported.
9496
9497         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
9498         Problem reported by Peter Dyballa in
9499         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
9500         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
9501         when echoing "$condition".
9502
9503 2011-10-07  Bruno Haible  <bruno@clisp.org>
9504
9505         Fix documentation about math functions on MacOS X.
9506         * doc/posix-functions/exp2.texi: Don't say the function is missing on
9507         MacOS X 10.5.
9508         * doc/posix-functions/fdim.texi: Likewise.
9509         * doc/posix-functions/feclearexcept.texi: Likewise.
9510         * doc/posix-functions/fegetenv.texi: Likewise.
9511         * doc/posix-functions/fegetround.texi: Likewise.
9512         * doc/posix-functions/feholdexcept.texi: Likewise.
9513         * doc/posix-functions/feraiseexcept.texi: Likewise.
9514         * doc/posix-functions/fesetenv.texi: Likewise.
9515         * doc/posix-functions/fesetround.texi: Likewise.
9516         * doc/posix-functions/fetestexcept.texi: Likewise.
9517         * doc/posix-functions/feupdateenv.texi: Likewise.
9518         * doc/posix-functions/fmax.texi: Likewise.
9519         * doc/posix-functions/fmin.texi: Likewise.
9520         * doc/posix-functions/log2.texi: Likewise.
9521         * doc/posix-functions/modff.texi: Likewise.
9522         * doc/posix-functions/nan.texi: Likewise.
9523         * doc/posix-functions/nanf.texi: Likewise.
9524         * doc/posix-functions/nextafterf.texi: Likewise.
9525         * doc/posix-functions/remquo.texi: Likewise.
9526
9527 2011-10-07  Bruno Haible  <bruno@clisp.org>
9528
9529         modff: Drop assumption about library that defines modff.
9530         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
9531         AC_CHECK_FUNCS.
9532         * modules/modff (Files): Add m4/mathfunc.m4.
9533
9534 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
9535
9536         raise tests: Avoid a GCC warning.
9537         * tests/test-raise.c (handler): Use _Noreturn.
9538
9539 2011-10-07  Bruno Haible  <bruno@clisp.org>
9540
9541         Tests for module 'ldexpf'.
9542         * modules/ldexpf-tests: New file.
9543         * tests/test-ldexpf.c: New file.
9544
9545         New module 'ldexpf'.
9546         * lib/math.in.h (ldexpf): New declaration.
9547         * lib/ldexpf.c: New file.
9548         * m4/ldexpf.m4: New file.
9549         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
9550         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
9551         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
9552         * modules/ldexpf: New file.
9553         * tests/test-math-c++.cc: Check the declaration of ldexpf.
9554         * doc/posix-functions/ldexpf.texi: Mention the new module.
9555
9556 2011-10-06  Bruno Haible  <bruno@clisp.org>
9557
9558         frexpf: Work around problems on IRIX and mingw.
9559         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
9560         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
9561         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
9562         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
9563         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
9564         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
9565         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
9566
9567 2011-10-06  Bruno Haible  <bruno@clisp.org>
9568
9569         fabsf: Drop assumption about library that defines fabsf.
9570         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
9571         AC_CHECK_FUNCS.
9572         * modules/fabsf (Files): Add m4/mathfunc.m4.
9573
9574 2011-10-06  Bruno Haible  <bruno@clisp.org>
9575
9576         frexpf: Drop assumption about library that defines frexpf.
9577         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
9578         'int *', 'float *', 'long double *', 'float', 'long double'.
9579         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
9580         AC_CHECK_FUNCS.
9581         * modules/frexpf (Files): Add m4/mathfunc.m4.
9582
9583         Tests for module 'frexpf'.
9584         * modules/frexpf-tests: New file.
9585         * tests/test-frexpf.c: New file.
9586
9587         New module 'frexpf'.
9588         * lib/math.in.h (frexpf): New declaration.
9589         * lib/frexpf.c: New file.
9590         * m4/frexpf.m4: New file.
9591         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
9592         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
9593         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
9594         * modules/frexpf: New file.
9595         * tests/test-math-c++.cc: Check the declaration of frexpf.
9596         * doc/posix-functions/frexpf.texi: Mention the new module.
9597
9598 2011-10-06  Bruno Haible  <bruno@clisp.org>
9599
9600         math: Sort function declarations of math.in.h.
9601         * lib/math.in.h (frexp, logb): Move declarations.
9602
9603 2011-10-05  Bruno Haible  <bruno@clisp.org>
9604
9605         Tests for module 'modff'.
9606         * modules/modff-tests: New file.
9607         * tests/test-modff.c: New file.
9608
9609         New module 'modff'.
9610         * lib/math.in.h (modff): New declaration.
9611         * lib/modff.c: New file.
9612         * m4/modff.m4: New file.
9613         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
9614         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
9615         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
9616         * modules/modff: New file.
9617         * tests/test-math-c++.cc: Check the declaration of modff.
9618         * doc/posix-functions/modff.texi: Mention the new module.
9619
9620         modf tests: Make test sharper.
9621         * tests/test-modf.c (main): Strengthen upper bound.
9622
9623         modf: Use a .m4 file.
9624         * m4/modf.m4: New file.
9625         * modules/modf (Files): Add it.
9626         (configure.ac): Just invoke gl_FUNC_MODF.
9627
9628 2011-10-05  Bruno Haible  <bruno@clisp.org>
9629
9630         Tests for module 'fmodf'.
9631         * modules/fmodf-tests: New file.
9632         * tests/test-fmodf.c: New file.
9633
9634         New module 'fmodf'.
9635         * lib/math.in.h (fmodf): New declaration.
9636         * lib/fmodf.c: New file.
9637         * m4/fmodf.m4: New file.
9638         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
9639         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
9640         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
9641         * modules/fmodf: New file.
9642         * tests/test-math-c++.cc: Check the declaration of fmodf.
9643         * doc/posix-functions/fmodf.texi: Mention the new module.
9644
9645         fmod: Use a .m4 file.
9646         * m4/fmod.m4: New file.
9647         * modules/fmod (Files): Add it.
9648         (configure.ac): Just invoke gl_FUNC_FMOD.
9649
9650 2011-10-05  Bruno Haible  <bruno@clisp.org>
9651
9652         Tests for module 'fabsf'.
9653         * modules/fabsf-tests: New file.
9654         * tests/test-fabsf.c: New file.
9655
9656         New module 'fabsf'.
9657         * lib/math.in.h (fabsf): New declaration.
9658         * lib/fabsf.c: New file.
9659         * m4/fabsf.m4: New file.
9660         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
9661         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
9662         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
9663         * modules/fabsf: New file.
9664         * tests/test-math-c++.cc: Check the declaration of fabsf.
9665         * doc/posix-functions/fabsf.texi: Mention the new module.
9666
9667         fabs: Use a .m4 file.
9668         * m4/fabs.m4: New file.
9669         * modules/fabs (Files): Add it.
9670         (configure.ac): Just invoke gl_FUNC_FABS.
9671
9672 2011-10-05  Jim Meyering  <meyering@redhat.com>
9673
9674         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
9675         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
9676         ls -lL regression introduced in coreutils-8.12, it does so at the
9677         cost of an additional stat call in the common case.  Besides, now
9678         that the kernel change that prompted commit 95f7c57f has been reverted
9679         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
9680         we have no use for commit 95f7c57f, "file-has-acl: use
9681         acl_extended_file_nofollow if available".
9682
9683 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
9684
9685         file-has-acl: revert unintended change in behavior of ls -L
9686         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
9687         derived from...
9688         (file_has_acl): ...code here.  Call it.
9689         This problem was introduced with 2011-07-22 commit 95f7c57f,
9690         "file-has-acl: use acl_extended_file_nofollow if available".
9691         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
9692
9693 2011-10-03  Bruno Haible  <bruno@clisp.org>
9694
9695         poll: Avoid link errors on MSVC.
9696         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
9697         * modules/poll (Depends-on): Add sockets.
9698         (Link): New section.
9699         * NEWS: Mention the change.
9700         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
9701         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
9702         $(LIB_POLL) instead of $(LIBSOCKET).
9703
9704 2011-10-03  Bruno Haible  <bruno@clisp.org>
9705
9706         sys_select tests: Fix link error on MSVC 9.
9707         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
9708         with $(LIB_SELECT) instead of $(LIBSOCKET).
9709
9710 2011-10-03  Bruno Haible  <bruno@clisp.org>
9711
9712         sys_select: Fix compilation error on mingw.
9713         * lib/sys_select.in.h: On native Windows, include <io.h>.
9714
9715 2011-10-03  Bruno Haible  <bruno@clisp.org>
9716
9717         wmemset: Support for MSVC.
9718         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
9719         whether wmemset() exists.
9720
9721 2011-10-03  Bruno Haible  <bruno@clisp.org>
9722
9723         wmemmove: Support for MSVC.
9724         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
9725         whether wmemmove() exists.
9726
9727 2011-10-03  Bruno Haible  <bruno@clisp.org>
9728
9729         wmemcpy: Support for MSVC.
9730         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
9731         whether wmemcpy() exists.
9732
9733 2011-10-03  Bruno Haible  <bruno@clisp.org>
9734
9735         wmemcmp: Support for MSVC.
9736         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
9737         whether wmemcmp() exists.
9738
9739 2011-10-03  Bruno Haible  <bruno@clisp.org>
9740
9741         wmemchr: Support for MSVC.
9742         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
9743         whether wmemchr() exists.
9744
9745 2011-10-03  Bruno Haible  <bruno@clisp.org>
9746
9747         glthread/*, strsignal: Support for MSVC.
9748         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
9749         including <winsock.h> on MSVC 9.
9750         * lib/glthread/lock.h: Likewise.
9751         * lib/glthread/thread.h: Likewise.
9752         * lib/glthread/tls.h: Likewise.
9753         * lib/glthread/yield.h: Likewise.
9754         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
9755         if HAVE_UNISTD_H is false.
9756         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
9757
9758 2011-10-03  Bruno Haible  <bruno@clisp.org>
9759
9760         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
9761         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
9762         Set to 100000.
9763
9764 2011-10-03  Bruno Haible  <bruno@clisp.org>
9765
9766         acl: Fix specification.
9767         * lib/file-has-acl.c (file_has_acl): Fix specification.
9768
9769 2011-10-03  Bruno Haible  <bruno@clisp.org>
9770
9771         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
9772         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
9773         (compute_curr_prefix, shared_library_fullname,
9774         find_shared_library_fullname, get_shared_library_fullname, relocate):
9775         Use it together with PIC && INSTALLDIR.
9776         Reported by <jojelino@gmail.com>
9777         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
9778
9779 2011-10-01  Jim Meyering  <meyering@redhat.com>
9780
9781         maint.mk: adjust a release-related rule not to require use of gzip
9782         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
9783         Instead, check each file in $(DIST_ARCHIVES).  This is better for
9784         projects that build only .tar.xz files.  Also fix an erroneous test.
9785
9786         test-linkat: don't leave behind a temporary file
9787         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
9788         Otherwise, coreutils' "make distcheck" would fail with this:
9789           Only in /c/cu/tests/torture/coreutils/test/\
9790             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
9791           make[2]: *** [my-distcheck] Error 1
9792
9793         float, math: add omitted file
9794         * lib/itold.c: Add file, required for yesterday's float change.
9795
9796 2011-10-01  Bruno Haible  <bruno@clisp.org>
9797
9798         isinf: Fix for OpenBSD/x86.
9799         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
9800         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
9801         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
9802
9803 2011-10-01  Bruno Haible  <bruno@clisp.org>
9804
9805         isfinite: Fix syntax error in configure test.
9806         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
9807
9808         isfinite: Fix typo.
9809         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
9810         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
9811
9812 2011-10-01  Bruno Haible  <bruno@clisp.org>
9813
9814         nonblocking tests: Fix test failure on Linux/IA-64.
9815         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
9816         Set to 270000.
9817
9818 2011-10-01  Bruno Haible  <bruno@clisp.org>
9819
9820         mkfifoat tests: Fix a test failure on mingw.
9821         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
9822         with error ENOSYS.
9823
9824 2011-09-30  Bruno Haible  <bruno@clisp.org>
9825
9826         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
9827         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
9828         'long double'. Set REPLACE_ITOLD.
9829         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
9830         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
9831         * lib/itold.c: New file.
9832         * modules/float (Files): Add lib/itold.c.
9833         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
9834         (Makefile.am): Substitute REPLACE_ITOLD.
9835         * modules/math (Depends-on): Add float.
9836         (Makefile.am): Substitute REPLACE_ITOLD.
9837         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
9838         * doc/posix-headers/math.texi: Likewise.
9839         * doc/posix-functions/logl.texi: Likewise.
9840
9841 2011-09-30  Bruno Haible  <bruno@clisp.org>
9842
9843         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
9844         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
9845         Set to 140000.
9846
9847 2011-09-30  Bruno Haible  <bruno@clisp.org>
9848
9849         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
9850         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
9851         invocation, say "right after AC_PROG_CC_STDC", not "right after
9852         AC_PROG_CC".
9853         Reported by Gary V. Vaughan <gary@gnu.org>.
9854
9855 2011-09-30  Bruno Haible  <bruno@clisp.org>
9856
9857         Centralize C99 requirement.
9858         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
9859         * modules/stdarg (configure.ac-early): Invoke it instead of
9860         AC_PROG_CC_STDC.
9861         Reported by Gary V. Vaughan and Paul Eggert.
9862
9863 2011-09-29  Bruno Haible  <bruno@clisp.org>
9864
9865         float: Fix LDBL_MAX value on Linux/PowerPC.
9866         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
9867         on Linux/PowerPC.
9868         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
9869         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
9870         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
9871         platform.
9872         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
9873
9874 2011-09-29  Bruno Haible  <bruno@clisp.org>
9875
9876         doc: Improve doc about gl_EARLY.
9877         * doc/gnulib-tool.texi (Initial import): Mention where to place an
9878         AC_PROG_CC_STDC invocation.
9879         Reported by Gary V. Vaughan <gary@gnu.org>.
9880
9881 2011-09-28  Bruno Haible  <bruno@clisp.org>
9882
9883         fgetc, fputc, fread, fwrite tests: Fix link error.
9884         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
9885         on non-MSVC platforms.
9886         * tests/test-fputc.c (main): Likewise.
9887         * tests/test-fread.c (main): Likewise.
9888         * tests/test-fwrite.c (main): Likewise.
9889         Reported by Jim Meyering.
9890
9891 2011-09-27  Bruno Haible  <bruno@clisp.org>
9892
9893         fputc, fwrite tests: Avoid test failure on MSVC.
9894         * tests/test-fgetc.c: Include msvc-inval.h.
9895         (main): Invoke gl_msvc_inval_ensure_handler.
9896         * tests/test-fputc.c: Include msvc-inval.h.
9897         (main): Invoke gl_msvc_inval_ensure_handler.
9898         * tests/test-fread.c: Include msvc-inval.h.
9899         (main): Invoke gl_msvc_inval_ensure_handler.
9900         * tests/test-fwrite.c: Include msvc-inval.h.
9901         (main): Invoke gl_msvc_inval_ensure_handler.
9902         * modules/fgetc-tests (Depends-on): Add msvc-inval.
9903         * modules/fputc-tests (Depends-on): Likewise.
9904         * modules/fread-tests (Depends-on): Likewise.
9905         * modules/fwrite-tests (Depends-on): Likewise.
9906
9907 2011-09-27  Bruno Haible  <bruno@clisp.org>
9908
9909         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
9910         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
9911         (raise): Remove older, duplicated declaration.
9912         (_gl_raise_SIGPIPE): New declaration.
9913         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
9914         (rpl_raise): Remove function.
9915         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
9916         a gnulib-defined SIGPIPE here.
9917         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
9918         'sigprocmask' has detected missing signal-blocking and the module
9919         'sigpipe' is enabled.
9920         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9921
9922 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
9923
9924         base64-tests: avoid memory leak
9925         * tests/test-base64.c (main): Plug memory leak.
9926
9927         base32: new module
9928         * modules/base32: New module.
9929         * lib/base32.c: New file.
9930         * lib/base32.h: Likewise.
9931         * m4/base32.m4: Likewise.
9932         * modules/base32-tests: New test.
9933         * tests/test-base32.c: Likewise.
9934         * MODULES.html.sh (Misc): Mention it.
9935
9936 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9937
9938         gnulib: use more-standard license notice wording
9939         * gnulib-tool (func_emit_copyright_notice): When emitting a
9940         license notice into a file, use the standard wording as suggested
9941         by the current information for GNU maintainers, except say "file"
9942         rather than "program".  The new wording gives a license version
9943         number, which addresses an issue raised by Glenn Morris in
9944         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
9945         * m4/onceonly.m4: Use that same wording here, too.
9946
9947         dup2: minor simplification
9948         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
9949         as lib/dup2.c no longer uses 'inline'.
9950
9951 2011-09-25  Bruno Haible  <bruno@clisp.org>
9952
9953         strings: Fix compilation error on MSVC.
9954         * lib/strings.in.h: Include <stddef.h> for size_t.
9955
9956 2011-09-25  Bruno Haible  <bruno@clisp.org>
9957
9958         fflush et al.: Document limitation on MSVC.
9959         * doc/posix-functions/fflush.texi: Document possible crash in handling
9960         mode other than DEFAULT_HANDLING.
9961         * doc/posix-functions/fgetc.texi: Likewise.
9962         * doc/posix-functions/fputc.texi: Likewise.
9963         * doc/posix-functions/fread.texi: Likewise.
9964         * doc/posix-functions/fwrite.texi: Likewise.
9965
9966 2011-09-25  Bruno Haible  <bruno@clisp.org>
9967
9968         msvc-inval: Allow three invalid parameter handling modes.
9969         * lib/msvc-inval.h: Don't include <stdlib.h> here.
9970         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
9971         macros.
9972         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
9973         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
9974         SANE_LIBRARY_HANDLING as a no-op.
9975         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
9976         <stdlib.h>.
9977         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
9978
9979 2011-09-25  Bruno Haible  <bruno@clisp.org>
9980
9981         msvc-inval: Make handler multithread-safe.
9982         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
9983         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
9984         declarations.
9985         (gl_msvc_inval_current): New declaration.
9986         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9987         Operate on the structure returned by gl_msvc_inval_current().
9988         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
9989         Remove varaiables.
9990         (tls_index, tls_initialized): New variables.
9991         (not_per_thread): New variable.
9992         (gl_msvc_inval_current): New function.
9993         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
9994         returned by gl_msvc_inval_current().
9995
9996 2011-09-25  Bruno Haible  <bruno@clisp.org>
9997
9998         msvc-inval: Install handler globally.
9999         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
10000         !_MSC_VER.
10001         (gl_msvc_invalid_parameter_handler): Remove declaration.
10002         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
10003         declarations.
10004         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
10005         Install the handler globally, don't uninstall it.
10006         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
10007         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
10008         currently valid, call RaiseException instead.
10009         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
10010         for !_MSC_VER.
10011
10012 2011-09-25  Bruno Haible  <bruno@clisp.org>
10013
10014         strerror_r-posix: Fix for MSVC 9.
10015         * lib/strerror_r.c (local_snprintf): New function.
10016         (snprintf): Define to local_snprintf, not to _snprintf.
10017
10018 2011-09-25  Bruno Haible  <bruno@clisp.org>
10019
10020         ftruncate: Support for MSVC 9.
10021         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
10022         (chsize_nothrow): New function.
10023         (chsize): Redefine as a macro.
10024         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
10025         * modules/ftruncate (Depends-on): Add msvc-inval.
10026
10027 2011-09-25  Bruno Haible  <bruno@clisp.org>
10028
10029         New module 'fstat'.
10030         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
10031         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
10032         * lib/fchdir.c (rpl_fstat): Remove function.
10033         * m4/fstat.m4: New file.
10034         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
10035         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
10036         declared.
10037         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
10038         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
10039         * modules/fstat: New file.
10040         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
10041         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
10042         is set.
10043         * doc/posix-functions/fstat.texi: Mention the new module and the
10044         problem on MSVC.
10045         * NEWS: Mention the change.
10046         * modules/acl (Depends-on): Add fstat.
10047         * modules/chdir-safer (Depends-on): Likewise.
10048         * modules/chown (Depends-on): Likewise.
10049         * modules/copy-file (Depends-on): Likewise.
10050         * modules/fchdir (Depends-on): Likewise.
10051         * modules/fdopendir (Depends-on): Likewise.
10052         * modules/fopen (Depends-on): Likewise.
10053         * modules/fts (Depends-on): Likewise.
10054         * modules/getcwd (Depends-on): Likewise.
10055         * modules/isapipe (Depends-on): Likewise.
10056         * modules/linkat (Depends-on): Likewise.
10057         * modules/lseek (Depends-on): Likewise.
10058         * modules/mkdir-p (Depends-on): Likewise.
10059         * modules/open (Depends-on): Likewise.
10060         * modules/openat (Depends-on): Likewise.
10061         * modules/read-file (Depends-on): Likewise.
10062         * modules/renameat (Depends-on): Likewise.
10063         * modules/utimens (Depends-on): Likewise.
10064
10065 2011-09-25  Bruno Haible  <bruno@clisp.org>
10066
10067         linkat: Fix compilation on MSVC 9.
10068         * lib/linkat.c: Don't include <stdint.h>.
10069
10070 2011-09-25  Bruno Haible  <bruno@clisp.org>
10071
10072         fclose: Support for MSVC 9.
10073         * lib/fclose.c: Include msvc-inval.h.
10074         (fclose_nothrow): New function.
10075         (rpl_fclose): Use it.
10076         * modules/fclose (Depends-on): Add msvc-inval.
10077         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
10078
10079 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
10080
10081         dup2: minor simplifications
10082         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
10083         that it's a performance win.
10084         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
10085         ! defined __CYGWIN__)" to "ifdef F_GETFL".
10086
10087 2011-09-24  Jim Meyering  <meyering@redhat.com>
10088
10089         test-futimens: avoid a warning from gcc -Wshadow
10090         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
10091         to avoid a shadowing warning.
10092
10093 2011-09-24  Bruno Haible  <bruno@clisp.org>
10094
10095         fdopen: Support for MSVC 9.
10096         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
10097         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
10098         * lib/fdopen.c: Include msvc-inval.h.
10099         (fdopen_nothrow): New function.
10100         (rpl_fdopen): Use it.
10101         * modules/fdopen (Depends-on): Add msvc-inval.
10102         * modules/fclose-tests (Depends-on): Add fdopen.
10103         * modules/fflush-tests (Depends-on): Likewise.
10104         * modules/fgetc-tests (Depends-on): Likewise.
10105         * modules/fputc-tests (Depends-on): Likewise.
10106         * modules/fread-tests (Depends-on): Likewise.
10107         * modules/freopen-tests (Depends-on): Likewise.
10108         * modules/fseeko-tests (Depends-on): Likewise.
10109         * modules/ftello-tests (Depends-on): Likewise.
10110         * modules/fwrite-tests  (Depends-on): Likewise.
10111         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
10112
10113 2011-09-24  Bruno Haible  <bruno@clisp.org>
10114
10115         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
10116         * modules/fgetc-tests (Depends-on): Add unistd.
10117         * modules/fputc-tests (Depends-on): Likewise.
10118         * modules/fread-tests (Depends-on): Likewise.
10119         * modules/fwrite-tests (Depends-on): Likewise.
10120
10121 2011-09-24  Bruno Haible  <bruno@clisp.org>
10122
10123         dup: Simplify autoconf test.
10124         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
10125         on gl_MSVC_INVAL's result.
10126
10127 2011-09-24  Bruno Haible  <bruno@clisp.org>
10128
10129         Tests for function fwrite().
10130         * modules/fwrite-tests: New file.
10131         * tests/test-fwrite.c: New file.
10132         * modules/stdio-tests (Depends-on): Add fwrite-tests.
10133
10134         Tests for function fread().
10135         * modules/fread-tests: New file.
10136         * tests/test-fread.c: New file.
10137         * modules/stdio-tests (Depends-on): Add fread-tests.
10138
10139         Activate fputc tests.
10140         * modules/stdio-tests (Depends-on): Add fputc-tests.
10141
10142         Enhance fgetc, fputc tests.
10143         * tests/test-fgetc.c (main): Also test the stream's error indicator.
10144         * tests/test-fputc.c (main): Likewise.
10145
10146 2011-09-24  Bruno Haible  <bruno@clisp.org>
10147
10148         write: Support for MSVC 9.
10149         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
10150         is not 1.
10151         * lib/write.c (write_nothrow): New function.
10152         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
10153         not 1. Use write_nothrow.
10154         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
10155         invalid parameter handler.
10156         (gl_PREREQ_WRITE): New macro.
10157         * modules/write (Depends-on): Add msvc-inval.
10158         (configure.ac): Invoke gl_PREREQ_WRITE.
10159         * doc/posix-functions/write.texi: Mention the problem on MSVC.
10160
10161 2011-09-24  Bruno Haible  <bruno@clisp.org>
10162
10163         read: Fix last commit.
10164         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
10165
10166 2011-09-24  Bruno Haible  <bruno@clisp.org>
10167
10168         dup2: Fix last commit.
10169         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
10170         (rpl_dup2): Disable fcntl workaround on native Windows.
10171
10172         sigprocmask: Make code safer.
10173         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
10174         section that changes macro definitions for this compilation unit.
10175
10176 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10177
10178         dup2: clarify by coalescing Windows-specific material
10179         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
10180         "msvc-nothrow.h"' to the Windows-specific section, so that the
10181         Emacs source need not contain these include files.
10182         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
10183         Windows-specific fixes into this function rather than just the
10184         nothrow fix, as this shortens and clarifies the code.  Always
10185         define as a function, as that's a bit cleaner than having it be
10186         sometimes a function and sometimes a macro.
10187         (rpl_dup2): Move the Windows-specific stuff out of here and into
10188         ms_windows_dup2.  Don't protect the Haiku-related fix with
10189         "#if !defined __linux__", as the same code also works around
10190         a Linux kernel bug, and it doesn't add any system calls on any
10191         platform.  Add comment about FreeBSD 6.1.
10192
10193         sigprocmask: move #include directive
10194         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
10195         Windows-specific section, so that the Emacs source need not
10196         contain msvc-inval.h.
10197
10198 2011-09-23  Bruno Haible  <bruno@clisp.org>
10199
10200         read: Support for MSVC 9.
10201         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
10202         is not 1.
10203         * lib/read.c (read_nothrow): New function.
10204         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
10205         read_nothrow.
10206         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
10207         invalid parameter handler.
10208         (gl_PREREQ_READ): New macro.
10209         * modules/read (Depends-on): Add msvc-inval.
10210         (configure.ac): Invoke gl_PREREQ_READ.
10211         * doc/posix-functions/read.texi: Mention the problem on MSVC.
10212
10213 2011-09-23  Bruno Haible  <bruno@clisp.org>
10214
10215         close: Support for MSVC 9.
10216         * lib/close.c: Include <errno.h>, msvc-inval.h.
10217         (close_nothrow): New function.
10218         (rpl_close): Use it.
10219         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
10220         invalid parameter handler.
10221         * modules/close (Depends-on): Add msvc-inval.
10222         * modules/dup2-tests (Depends-on): Add close.
10223         * modules/dup3-tests (Depends-on): Likewise.
10224         * modules/fcntl-tests (Depends-on): Likewise.
10225         * modules/spawn-pipe-tests (Depends-on): Likewise.
10226         * modules/unistd-safer-tests (Depends-on): Likewise.
10227         * doc/posix-functions/close.texi: Mention the problem on MSVC.
10228
10229 2011-09-23  Bruno Haible  <bruno@clisp.org>
10230
10231         New module 'dup'.
10232         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
10233         Allow replacement.
10234         * lib/dup.c: New file.
10235         * lib/fchdir.c (rpl_dup): Remove function.
10236         * m4/dup.m4: New file.
10237         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
10238         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
10239         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
10240         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
10241         * modules/dup: New file.
10242         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
10243         'dup' module is in use.
10244         * modules/fdopendir (Depends-on): Add dup.
10245         * modules/fdutimensat-tests (Depends-on): Likewise.
10246         * modules/fts (Depends-on): Likewise.
10247         * modules/futimens-tests (Depends-on): Likewise.
10248         * modules/posix_spawnp-tests (Depends-on): Likewise.
10249         * modules/unistd-safer-tests (Depends-on): Likewise.
10250         * modules/utimens-tests (Depends-on): Likewise.
10251         * doc/posix-functions/dup.texi: Mention the new module and the problem
10252         on MSVC.
10253
10254 2011-09-23  Bruno Haible  <bruno@clisp.org>
10255
10256         getdtablesize: Support for MSVC 9.
10257         * lib/getdtablesize.c: Include msvc-inval.h.
10258         (_setmaxstdio_nothrow): New function.
10259         (_setmaxstdio): Redefine it.
10260         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
10261         * modules/getdtablesize (Depends-on): Add msvc-inval.
10262         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
10263
10264 2011-09-23  Bruno Haible  <bruno@clisp.org>
10265
10266         signal-h: Rename from signal.
10267         * modules/signal-h: Renamed from modules/signal.
10268         * modules/pthread_sigmask (Depends-on): Update.
10269         * modules/raise (Depends-on): Likewise.
10270         * modules/sigaction (Depends-on): Likewise.
10271         * modules/sigpipe (Depends-on): Likewise.
10272         * modules/sigprocmask (Depends-on): Likewise.
10273         * modules/sys_select (Depends-on): Likewise.
10274         * modules/signal-h-tests: Renamed from modules/signal-tests.
10275         (Files, Depends-on, Makefile.am): Update.
10276         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
10277         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
10278         (Files, Makefile.am): Update.
10279         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
10280         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
10281         * modules/signal: New placeholder file.
10282         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
10283         * doc/posix-headers/signal.texi: Update.
10284         * NEWS: Mention the change.
10285
10286 2011-09-23  Bruno Haible  <bruno@clisp.org>
10287
10288         sigprocmask: Avoid crashes through signal() on MSVC 9.
10289         * lib/sigprocmask.c: Include msvc-inval.h.
10290         (signal_nothrow): New function.
10291         (signal): Redefine it.
10292         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
10293         * modules/sigprocmask (Depends-on): Add msvc-inval.
10294         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
10295
10296 2011-09-23  Bruno Haible  <bruno@clisp.org>
10297
10298         Tests for module 'raise'.
10299         * modules/raise-tests: New file.
10300         * tests/test-raise.c: New file.
10301
10302         raise: Support for MSVC.
10303         * lib/signal.in.h (raise): New declaration.
10304         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
10305         for native Windows platforms.
10306         * m4/raise.m4: New file.
10307         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
10308         HAVE_RAISE, REPLACE_RAISE.
10309         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
10310         REPLACE_RAISE.
10311         * modules/raise (Status, Notice): Remove fields.
10312         (Files): Add m4/raise.m4.
10313         (Depends-on): Add signal, msvc-inval.
10314         (configure.ac): Use the common idioms.
10315         (Maintainer): Add me.
10316         * tests/test-signal-c++.cc: Check the signature of raise.
10317         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
10318
10319 2011-09-23  Bruno Haible  <bruno@clisp.org>
10320
10321         pipe2: Fix compilation on pre-C99 compilers.
10322         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
10323
10324 2011-09-23  Bruno Haible  <bruno@clisp.org>
10325
10326         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
10327         * lib/msvc-nothrow.h: New file.
10328         * lib/msvc-nothrow.c: New file.
10329         * m4/msvc-nothrow.m4: New file.
10330         * modules/msvc-nothrow: New file.
10331         * lib/dup2.c: Include msvc-nothrow.h.
10332         (rpl_dup2): No need to protect _get_osfhandle call here.
10333         * lib/accept4.c: Include msvc-nothrow.h.
10334         * lib/error.c: Likewise.
10335         * lib/fcntl.c: Likewise.
10336         * lib/lseek.c: Likewise.
10337         * lib/nonblocking.c: Likewise.
10338         * lib/poll.c: Likewise.
10339         * lib/read.c: Likewise.
10340         * lib/select.c: Likewise.
10341         * lib/sockets.h: Likewise.
10342         * lib/sockets.c: Likewise.
10343         * lib/stdio-read.c: Likewise.
10344         * lib/stdio-write.c: Likewise.
10345         * lib/write.c: Likewise.
10346         * lib/w32sock.h: Likewise.
10347         * lib/w32spawn.h: Likewise.
10348         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
10349         * lib/fsync.c: Likewise.
10350         * lib/isapipe.c: Likewise.
10351         * modules/dup2 (Depends-on): Add msvc-nothrow.
10352         * modules/accept4 (Depends-on): Likewise.
10353         * modules/error (Depends-on): Likewise.
10354         * modules/fcntl (Depends-on): Likewise.
10355         * modules/lseek (Depends-on): Likewise.
10356         * modules/nonblocking (Depends-on): Likewise.
10357         * modules/poll (Depends-on): Likewise.
10358         * modules/read (Depends-on): Likewise.
10359         * modules/select (Depends-on): Likewise.
10360         * modules/sockets (Depends-on): Likewise.
10361         * modules/sigpipe (Depends-on): Likewise.
10362         * modules/write (Depends-on): Likewise.
10363         * modules/accept (Depends-on): Likewise.
10364         * modules/bind (Depends-on): Likewise.
10365         * modules/connect (Depends-on): Likewise.
10366         * modules/gethostname (Depends-on): Likewise.
10367         * modules/getpeername (Depends-on): Likewise.
10368         * modules/getsockname (Depends-on): Likewise.
10369         * modules/getsockopt (Depends-on): Likewise.
10370         * modules/ioctl (Depends-on): Likewise.
10371         * modules/listen (Depends-on): Likewise.
10372         * modules/recv (Depends-on): Likewise.
10373         * modules/recvfrom (Depends-on): Likewise.
10374         * modules/send (Depends-on): Likewise.
10375         * modules/sendto (Depends-on): Likewise.
10376         * modules/setsockopt (Depends-on): Likewise.
10377         * modules/shutdown (Depends-on): Likewise.
10378         * modules/socket (Depends-on): Likewise.
10379         * modules/execute (Depends-on): Likewise.
10380         * modules/spawn-pipe (Depends-on): Likewise.
10381         * modules/flock (Depends-on): Likewise.
10382         * modules/fsync (Depends-on): Likewise.
10383         * modules/isapipe (Depends-on): Likewise.
10384         * tests/test-cloexec.c: Include msvc-nothrow.h.
10385         * tests/test-dup-safer.c: Likewise.
10386         * tests/test-dup2.c: Likewise.
10387         * tests/test-dup3.c: Likewise.
10388         * tests/test-fcntl.c: Likewise.
10389         * tests/test-pipe.c: Likewise.
10390         * tests/test-pipe2.c: Likewise.
10391         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
10392         * modules/unistd-safer-tests (Depends-on): Likewise.
10393         * modules/dup2-tests (Depends-on): Likewise.
10394         * modules/dup3-tests (Depends-on): Likewise.
10395         * modules/fcntl-tests (Depends-on): Likewise.
10396         * modules/pipe-posix-tests (Depends-on): Likewise.
10397         * modules/pipe2-tests (Depends-on): Likewise.
10398
10399 2011-09-23  Bruno Haible  <bruno@clisp.org>
10400
10401         dup2: Make code more maintainable.
10402         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
10403         (rpl_dup2): Use it.
10404         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
10405         * modules/dup2 (configure.ac): Invoke it.
10406         Reported by Paul Eggert.
10407
10408 2011-09-23  Bruno Haible  <bruno@clisp.org>
10409
10410         msvc-inval: Fix compilation error.
10411         * lib/msvc-inval.h: Include <excpt.h>.
10412
10413 2011-09-23  Bruno Haible  <bruno@clisp.org>
10414
10415         mkdir: Tweak for MSVC 9.
10416         * lib/sys_stat.in.h: Update comments.
10417         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
10418
10419         Tests for module 'chdir'.
10420         * modules/chdir-tests: New file.
10421         * tests/test-chdir.c: New file.
10422
10423         New module 'chdir'.
10424         * modules/chdir: New file.
10425         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
10426         (chdir): New declaration.
10427         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
10428         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
10429         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
10430         * tests/test-unistd-c++.cc: Check signature of chdir.
10431         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
10432         * modules/chdir-long (Depends-on): Add chdir.
10433         * modules/fchdir (Depends-on): Likewise.
10434         * modules/rename (Depends-on): Likewise.
10435         * modules/savewd (Depends-on): Likewise.
10436
10437         rmdir: Support for mingw, MSVC 9.
10438         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
10439         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
10440
10441         getcwd: Tweak for MSVC 9.
10442         * lib/unistd.in.h: Update comments.
10443         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
10444
10445 2011-09-22  Bruno Haible  <bruno@clisp.org>
10446
10447         strerror_r-posix: Avoid a link error on MSVC.
10448         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
10449         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
10450
10451 2011-09-22  Bruno Haible  <bruno@clisp.org>
10452
10453         select: Avoid link errors on MSVC.
10454         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
10455         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
10456         * modules/pselect (Link): Likewise.
10457         * NEWS: Mention the change.
10458         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
10459         test-select-stdin against $(LIB_SELECT).
10460         * modules/pselect-tests (Makefile.am): Link test-pselect against
10461         $(LIB_SELECT).
10462
10463 2011-09-22  Bruno Haible  <bruno@clisp.org>
10464
10465         select: Avoid compilation error on MSVC.
10466         * lib/select.c: Don't include <stdbool.h>.
10467
10468 2011-09-21  Bruno Haible  <bruno@clisp.org>
10469
10470         Consolidate all uses of PATH_MAX in *.m4 files.
10471         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
10472         macros.
10473         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
10474         and gl_PATHMAX_SNIPPET.
10475         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10476         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10477         * modules/chdir-long (Files): Add m4/pathmax.m4.
10478         * modules/getcwd (Files): Likewise.
10479
10480 2011-09-21  Bruno Haible  <bruno@clisp.org>
10481
10482         ftruncate: Un-deprecate, concentrate on Win32 support.
10483         * modules/ftruncate (Status, Notice): Remove sections.
10484         (Depends-on): Add largefile.
10485         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
10486         non-mingw platforms.
10487         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
10488         include <io.h>.
10489         * modules/perror-tests (Depends-on): Add ftruncate.
10490         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
10491         'ftruncate' module.
10492
10493 2011-09-21  Bruno Haible  <bruno@clisp.org>
10494
10495         Add dependencies to new dirent related modules.
10496         * modules/opendir (Depends-on): Add closedir.
10497         * modules/getcwd (Depends-on): Add opendir, closedir.
10498         * modules/dirent-safer-tests (Depends-on): Likewise.
10499         * modules/fdopendir-tests (Depends-on): Likewise.
10500         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
10501         * modules/renameat-tests (Depends-on): Likewise.
10502
10503 2011-09-21  Bruno Haible  <bruno@clisp.org>
10504
10505         opendir: Avoid compilation error on mingw.
10506         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
10507         * modules/opendir (Depends-on): Add unistd.
10508
10509 2011-09-21  Bruno Haible  <bruno@clisp.org>
10510
10511         ftruncate tests: Avoid a test failure on mingw.
10512         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
10513
10514 2011-09-21  Bruno Haible  <bruno@clisp.org>
10515
10516         select tests: Avoid test failures on OSF/1 5.1 and mingw.
10517         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
10518         native Windows.
10519
10520 2011-09-21  Bruno Haible  <bruno@clisp.org>
10521
10522         New module 'fdopen'.
10523         * lib/stdio.in.h (fdopen): New declaration.
10524         * lib/fdopen.c: New file.
10525         * m4/fdopen.m4: New file.
10526         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
10527         REPLACE_FDOPEN.
10528         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
10529         REPLACE_FDOPEN.
10530         * modules/fdopen: New file.
10531         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
10532         * tests/test-stdio-c++.cc: Check signature of fdopen.
10533         * doc/posix-functions/fdopen.texi: Mention the new module.
10534
10535 2011-09-21  Bruno Haible  <bruno@clisp.org>
10536
10537         unlockpt tests: Avoid test failure on NetBSD 5.1.
10538         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
10539         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
10540
10541 2011-09-21  Bruno Haible  <bruno@clisp.org>
10542
10543         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
10544         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
10545         * tests/test-getlogin_r.c (main): Likewise.
10546
10547 2011-09-20  Bruno Haible  <bruno@clisp.org>
10548
10549         time tests: Don't require pid_t.
10550         * doc/posix-headers/time.texi: Revert last change.
10551         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
10552         * tests/test-time.c: Comment out the check for pid_t.
10553
10554 2011-09-20  Bruno Haible  <bruno@clisp.org>
10555
10556         fsync tests: Avoid a test failure on mingw.
10557         * tests/test-fsync.c (main): Allow a failure with EIO.
10558
10559 2011-09-20  Bruno Haible  <bruno@clisp.org>
10560
10561         euidaccess: Update comments.
10562         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
10563
10564 2011-09-20  Bruno Haible  <bruno@clisp.org>
10565
10566         Ensure EBADF returns for socket functions on mingw.
10567         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
10568         descriptor is invalid.
10569         * lib/bind.c (rpl_bind): Likewise.
10570         * lib/connect.c (rpl_connect): Likewise.
10571         * lib/getpeername.c (rpl_getpeername): Likewise.
10572         * lib/getsockname.c (rpl_getsockname): Likewise.
10573         * lib/getsockopt.c (rpl_getsockopt): Likewise.
10574         * lib/listen.c (rpl_listen): Likewise.
10575         * lib/recv.c (rpl_recv): Likewise.
10576         * lib/recvfrom.c (rpl_recvfrom): Likewise.
10577         * lib/send.c (rpl_send): Likewise.
10578         * lib/sendto.c (rpl_sendto): Likewise.
10579         * lib/setsockopt.c (rpl_setsockopt): Likewise.
10580         * lib/shutdown.c (rpl_shutdown): Likewise.
10581
10582 2011-09-20  Bruno Haible  <bruno@clisp.org>
10583
10584         select tests: EBADF tests.
10585         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
10586         test_bad_fd): New functions.
10587         (test_function): Invoke also test_bad_fd.
10588
10589 2011-09-20  Bruno Haible  <bruno@clisp.org>
10590
10591         Tests for module 'posix_spawn_file_actions_addopen.
10592         * modules/posix_spawn_file_actions_addopen-tests: New file.
10593         * tests/test-posix_spawn_file_actions_addopen.c: New file.
10594
10595         Tests for module 'posix_spawn_file_actions_adddup2'.
10596         * modules/posix_spawn_file_actions_adddup2-tests: New file.
10597         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
10598
10599         Tests for module 'posix_spawn_file_actions_addclose'.
10600         * modules/posix_spawn_file_actions_addclose-tests: New file.
10601         * tests/test-posix_spawn_file_actions_addclose.c: New file.
10602
10603 2011-09-20  Bruno Haible  <bruno@clisp.org>
10604
10605         Tests for module 'unlockpt'.
10606         * modules/unlockpt-tests: New file.
10607         * tests/test-unlockpt.c: New file.
10608         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
10609
10610         Tests for module 'grantpt'.
10611         * modules/grantpt-tests: New file.
10612         * tests/test-grantpt.c: New file.
10613         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
10614
10615 2011-09-20  Bruno Haible  <bruno@clisp.org>
10616
10617         freopen tests: EBADF tests.
10618         * tests/test-freopen.c: Include errno.h, unistd.h.
10619         (main): Add tests for EBADF, commented out for the moment.
10620
10621         fclose tests: EBADF tests.
10622         * tests/test-fclose.c (main): Add tests for EBADF.
10623
10624         fflush tests: EBADF tests.
10625         * tests/test-fflush.c: Include errno.h, macros.h.
10626         (main): Add tests for EBADF.
10627
10628         ftello tests: EBADF tests.
10629         * tests/test-ftello4.sh: New file.
10630         * tests/test-ftello4.c: New file.
10631         * modules/ftello-tests (Files): Add them.
10632         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
10633
10634         fseeko tests: EBADF tests.
10635         * tests/test-fseeko4.sh: New file.
10636         * tests/test-fseeko4.c: New file.
10637         * modules/fseeko-tests (Files): Add them.
10638         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
10639
10640         Tests for function fputc().
10641         * modules/fputc-tests: New file.
10642         * tests/test-fputc.c: New file.
10643         * modules/stdio-tests (Depends-on): Add fputc-tests.
10644
10645         Tests for function fgetc().
10646         * modules/fgetc-tests: New file.
10647         * tests/test-fgetc.c: New file.
10648         * modules/stdio-tests (Depends-on): Add fgetc-tests.
10649
10650         Tests for function fdopen().
10651         * modules/fdopen-tests: New file.
10652         * tests/test-fdopen.c: New file.
10653         * modules/stdio-tests (Depends-on): Add fdopen-tests.
10654
10655         Tests for module 'vdprintf'.
10656         * modules/vdprintf-tests: New file.
10657         * tests/test-vdprintf.c: New file.
10658
10659         Tests for module 'dprintf'.
10660         * modules/dprintf-tests: New file.
10661         * tests/test-dprintf.c: New file.
10662
10663 2011-09-20  Bruno Haible  <bruno@clisp.org>
10664
10665         Tests for module 'ioctl'.
10666         * modules/ioctl-tests: New file.
10667         * tests/test-ioctl.c: New file.
10668
10669 2011-09-20  Bruno Haible  <bruno@clisp.org>
10670
10671         fcntl tests: EBADF tests.
10672         * tests/test-fcntl.c (main): Add more tests for EBADF.
10673
10674 2011-09-20  Bruno Haible  <bruno@clisp.org>
10675
10676         utimensat tests: EBADF tests.
10677         * tests/test-utimensat.c (main): Add tests for EBADF.
10678
10679         renameat tests: EBADF tests.
10680         * tests/test-renameat.c (main): Add tests for EBADF.
10681
10682         mkfifoat tests: EBADF tests.
10683         * tests/test-mkfifoat.c (main): Add tests for EBADF.
10684
10685         readlinkat tests: EBADF tests.
10686         * tests/test-readlinkat.c (main): Add tests for EBADF.
10687
10688         symlinkat tests: EBADF tests.
10689         * tests/test-symlinkat.c (main): Add tests for EBADF.
10690
10691         linkat tests: EBADF tests.
10692         * tests/test-linkat.c (main): Add tests for EBADF.
10693
10694         Tests for module 'faccessat'.
10695         * modules/faccessat-tests: New file.
10696         * tests/test-faccessat.c: New file.
10697
10698         fdopendir tests: EBADF tests.
10699         * tests/test-fdopendir.c (main): Add more tests for EBADF.
10700
10701         openat tests: EBADF tests.
10702         * tests/test-fchownat.c (main): Add tests for EBADF.
10703         * tests/test-fstatat.c (main): Likewise.
10704         * tests/test-mkdirat.c (main): Likewise.
10705         * tests/test-openat.c (main): Likewise.
10706         * tests/test-unlinkat.c (main): Likewise.
10707         * tests/test-fchmodat.c: New file.
10708         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
10709         (Makefile.am): Also run 'test-fchmodat'.
10710
10711 2011-09-20  Bruno Haible  <bruno@clisp.org>
10712
10713         utimens, futimens, fdutimensat tests: EBADF tests.
10714         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
10715
10716         Tests for function fstat().
10717         * modules/fstat-tests: New file.
10718         * tests/test-fstat.c: New file.
10719         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
10720
10721 2011-09-20  Bruno Haible  <bruno@clisp.org>
10722
10723         test-ttyname_r tests: EBADF tests.
10724         * tests/test-ttyname_r.c (main): Add tests for EBADF.
10725
10726         Tests for module 'isatty'.
10727         * modules/isatty-tests: New file.
10728         * tests/test-isatty.c: New file.
10729
10730         Tests for module 'write'.
10731         * modules/write-tests: New file.
10732         * tests/test-write.c: New file.
10733
10734         Tests for module 'read'.
10735         * modules/read-tests: New file.
10736         * tests/test-read.c: New file.
10737
10738         pwrite tests: EBADF tests.
10739         * tests/test-pwrite.c (main): Add tests for EBADF.
10740
10741         pread tests: EBADF tests.
10742         * tests/test-pread.c (main): Add tests for EBADF.
10743
10744         lseek tests: EBADF tests.
10745         * tests/test-lseek.c (main): Add more tests for EBADF.
10746
10747         Tests for module 'ftruncate'.
10748         * modules/ftruncate-tests: New file.
10749         * tests/test-ftruncate.sh: New file.
10750         * tests/test-ftruncate.c: New file.
10751
10752         fsync tests: EBADF tests.
10753         * tests/test-fsync.c (main): Add more tests for EBADF.
10754
10755         fdatasync tests: EBADF tests.
10756         * tests/test-fdatasync.c (main): Add more tests for EBADF.
10757
10758         Tests for module 'fchown'.
10759         * modules/fchown-tests: New file.
10760         * tests/test-fchown.c: New file.
10761
10762         Tests for module 'fchmod'.
10763         * modules/fchmod-tests: New file.
10764         * tests/test-fchmod.c: New file.
10765
10766         fchdir tests: EBADF tests.
10767         * tests/test-fchdir.c (main): Add more tests for EBADF.
10768
10769         dup2 tests: EBADF tests.
10770         * tests/test-dup2.c (main): Add more tests for EBADF.
10771
10772         Tests for module 'dup'.
10773         * modules/dup-tests: New file.
10774         * tests/test-dup.c: New file.
10775
10776         Tests for module 'close'.
10777         * modules/close-tests: New file.
10778         * tests/test-close.c: New file.
10779
10780 2011-09-20  Bruno Haible  <bruno@clisp.org>
10781
10782         Tests for module 'shutdown'.
10783         * modules/shutdown-tests: New file.
10784         * tests/test-shutdown.c: New file.
10785
10786         Tests for module 'setsockopt'.
10787         * modules/setsockopt-tests: New file.
10788         * tests/test-setsockopt.c: New file.
10789
10790         Tests for module 'sendto'.
10791         * modules/sendto-tests: New file.
10792         * tests/test-sendto.c: New file.
10793
10794         Tests for module 'send'.
10795         * modules/send-tests: New file.
10796         * tests/test-send.c: New file.
10797
10798         Tests for module 'recvfrom'.
10799         * modules/recvfrom-tests: New file.
10800         * tests/test-recvfrom.c: New file.
10801
10802         Tests for module 'recv'.
10803         * modules/recv-tests: New file.
10804         * tests/test-recv.c: New file.
10805
10806         Tests for module 'listen'.
10807         * modules/listen-tests: New file.
10808         * tests/test-listen.c: New file.
10809
10810         Tests for module 'getsockopt'.
10811         * modules/getsockopt-tests: New file.
10812         * tests/test-getsockopt.c: New file.
10813
10814         Tests for module 'getsockname'.
10815         * modules/getsockname-tests: New file.
10816         * tests/test-getsockname.c: New file.
10817
10818         Tests for module 'getpeername'.
10819         * modules/getpeername-tests: New file.
10820         * tests/test-getpeername.c: New file.
10821
10822         Tests for module 'connect'.
10823         * modules/connect-tests: New file.
10824         * tests/test-connect.c: New file.
10825
10826         Tests for module 'bind'.
10827         * modules/bind-tests: New file.
10828         * tests/test-bind.c: New file.
10829
10830         accept4 tests: Fix for native Windows.
10831         * tests/test-accept4.c: Include sockets.h.
10832         (main): Invoke gl_sockets_startup.
10833         * modules/accept4-tests (Depends-on): Add sockets.
10834
10835         accept tests: Fix for native Windows.
10836         * tests/test-accept.c: Include sockets.h.
10837         (main): Invoke gl_sockets_startup.
10838         * modules/accept-tests (Depends-on): Add sockets.
10839
10840 2011-09-19  Bruno Haible  <bruno@clisp.org>
10841
10842         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
10843         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
10844         do...while(0).
10845         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
10846         Suggested by Paul Eggert.
10847
10848 2011-09-19  Bruno Haible  <bruno@clisp.org>
10849
10850         sched: Ensure pid_t is defined.
10851         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
10852         not define pid_t.
10853         * lib/sched.in.h: Include <sys/types.h>.
10854         * doc/posix-headers/sched.texi: Mention the pid_t problem.
10855         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10856
10857 2011-09-19  Bruno Haible  <bruno@clisp.org>
10858
10859         msvc-inval: Ensure the entire expansion is a single statement.
10860         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
10861         of braces.
10862
10863 2011-09-19  Jim Meyering  <meyering@redhat.com>
10864
10865         tests: use printf, not echo in init.sh's warn_ function
10866         * tests/init.sh (warn_): Use printf, not echo.  The latter would
10867         misbehave when given strings containing a backslash or starting
10868         with e.g., -n.  James Youngman suggested setting IFS.
10869
10870 2011-09-19  Eric Blake  <eblake@redhat.com>
10871
10872         futimens: enhance test
10873         * tests/test-futimens.h (test_futimens): Also check for EBADF on
10874         closed non-negative fd.
10875
10876         date: accept 'hence' as opposite of 'ago'
10877         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
10878         * tests/test-parse-datetime.c (main): Enhance test.
10879         Suggested by Jesse Wilson.
10880
10881 2011-09-19  Jim Meyering  <meyering@redhat.com>
10882
10883         getcwd: don't fail in a deep directory on a system without openat
10884         Before this change, getcwd would fail when called from a directory
10885         of depth PATH_MAX / 3 or greater.  That was due to the fact that
10886         the non-openat implementation used "..", "../..", "../../..", etc.
10887         to access ancestor directories.  With too many, that string would
10888         be longer than PATH_MAX.
10889         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
10890         using gnulib's openat replacement.
10891         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
10892         we're using the replacement function.
10893
10894 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
10895
10896         maint.mk: avoid warnings from perl about missing files
10897         * top/maint.mk (def_sym_regex): Ignore files listed in
10898         $(gl_other_headers_) that do not exist, say because a project
10899         does not use a corresponding module.
10900
10901 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
10902
10903         stat: use pathmax.h only if needed
10904         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
10905         This is better for Emacs, which does not have a mingw port and
10906         therefore can avoid the pathmax module.
10907
10908         utimens: remove dependency on dup2
10909         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
10910         to work around the Linux kernel bug.
10911         * modules/utimens (Depends-on): Remove dup2.
10912
10913 2011-09-18  Bruno Haible  <bruno@clisp.org>
10914
10915         inet_ntop, inet_pton: Look for it also in libresolv.
10916         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
10917         libnsl, search for it in libresolv.
10918         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10919         Needed on Solaris 7.
10920
10921 2011-09-18  Bruno Haible  <bruno@clisp.org>
10922
10923         accept, accept4 tests: Avoid link error on Solaris.
10924         * modules/accept-tests (Makefile.am): Link test-accept against
10925         $(LIBSOCKET).
10926         * modules/accept4-tests (Makefile.am): Link test-accept4 against
10927         $(LIBSOCKET).
10928
10929         accept4: Avoid link error on Solaris.
10930         * modules/accept4 (Link): New section.
10931
10932         socket functions: Avoid link errors on Solaris.
10933         * modules/accept (Depends-on): Add socketlib.
10934         (Link): New section.
10935         * modules/bind (Depends-on): Add socketlib.
10936         (Link): New section.
10937         * modules/connect (Depends-on): Add socketlib.
10938         (Link): New section.
10939         * modules/getpeername (Depends-on): Add socketlib.
10940         (Link): New section.
10941         * modules/getsockname (Depends-on): Add socketlib.
10942         (Link): New section.
10943         * modules/getsockopt (Depends-on): Add socketlib.
10944         (Link): New section.
10945         * modules/listen (Depends-on): Add socketlib.
10946         (Link): New section.
10947         * modules/recv (Depends-on): Add socketlib.
10948         (Link): New section.
10949         * modules/recvfrom (Depends-on): Add socketlib.
10950         (Link): New section.
10951         * modules/send (Depends-on): Add socketlib.
10952         (Link): New section.
10953         * modules/sendto (Depends-on): Add socketlib.
10954         (Link): New section.
10955         * modules/setsockopt (Depends-on): Add socketlib.
10956         (Link): New section.
10957         * modules/shutdown (Depends-on): Add socketlib.
10958         (Link): New section.
10959         * modules/socket (Depends-on): Add socketlib.
10960         (Link): New section.
10961
10962 2011-09-18  Bruno Haible  <bruno@clisp.org>
10963
10964         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
10965         * tests/test-ptsname.c (main): Terminate the test if it takes longer
10966         than 5 seconds.
10967         * modules/ptsname-tests (configure.ac): Test for alarm.
10968
10969 2011-09-18  Bruno Haible  <bruno@clisp.org>
10970
10971         posix_spawn_file_actions_add*: Fix module dependencies.
10972         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
10973         posix_spawn_file_actions_init.
10974         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
10975         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
10976
10977 2011-09-18  Bruno Haible  <bruno@clisp.org>
10978
10979         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
10980         * tests/test-rename.h (test_rename): Allow error code EEXIST.
10981         * tests/test-renameat.c (main): Likewise.
10982
10983 2011-09-18  Bruno Haible  <bruno@clisp.org>
10984
10985         Tests for module 'accept4'.
10986         * modules/accept4-tests: New file.
10987         * tests/test-accept4.c: New file.
10988
10989 2011-09-18  Bruno Haible  <bruno@clisp.org>
10990
10991         Tests for module 'accept'.
10992         * modules/accept-tests: New file.
10993         * tests/test-accept.c: New file.
10994
10995 2011-09-18  Bruno Haible  <bruno@clisp.org>
10996
10997         dup2: Support for MSVC.
10998         * lib/dup2.c: Include msvc-inval.h.
10999         (rpl_dup2): Handle invalid parameter notifications during dup2 and
11000         _get_osfhandle calls.
11001         * modules/dup2 (Depends-on): Add msvc-inval.
11002         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
11003
11004         New module 'msvc-inval'.
11005         * lib/msvc-inval.h: New file.
11006         * lib/msvc-inval.c: New file.
11007         * m4/msvc-inval.m4: New file.
11008         * modules/msvc-inval: New file.
11009
11010 2011-09-17  Bruno Haible  <bruno@clisp.org>
11011
11012         Tests for module 'pclose'.
11013         * modules/pclose-tests: New file.
11014
11015         New module 'pclose'.
11016         * lib/stdio.in.h (pclose): New declaration.
11017         * lib/pclose.c: New file.
11018         * m4/pclose.m4: New file.
11019         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
11020         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
11021         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
11022         * modules/pclose: New file.
11023         * modules/popen-tests (Depends-on): Add pclose.
11024         * modules/popen-safer-tests (Depends-on): Likewise.
11025         * doc/posix-functions/pclose.texi: Mention the new module.
11026
11027 2011-09-17  Bruno Haible  <bruno@clisp.org>
11028
11029         popen: Support for MSVC.
11030         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
11031         * lib/popen.c (popen): Provide alternate definition for native Windows.
11032         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
11033         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
11034         * modules/popen (Depends-on, configure.ac): Update condition.
11035         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
11036         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
11037         fixed.
11038
11039 2011-09-17  Bruno Haible  <bruno@clisp.org>
11040
11041         isnanl, isnand, isnanf: Work around MSVC bug.
11042         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
11043
11044 2011-09-17  Bruno Haible  <bruno@clisp.org>
11045
11046         sys_socket tests: Fix recent mistake.
11047         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
11048
11049 2011-09-17  Bruno Haible  <bruno@clisp.org>
11050
11051         putenv: Support for MSVC.
11052         * modules/putenv (Depends-on): Add environ.
11053         * lib/putenv.c (environ): Disable declaration.
11054         * lib/unistd.in.h: Update comment.
11055
11056 2011-09-17  Bruno Haible  <bruno@clisp.org>
11057
11058         math: Avoid macro redefinition warnings on MSVC.
11059         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
11060         Undefine before redefining.
11061
11062 2011-09-17  Bruno Haible  <bruno@clisp.org>
11063
11064         doc: Mention functions which are declared as macros.
11065         * doc/posix-functions/*[fl].texi: Mention that some functions are
11066         defined as macros with arguments only.
11067
11068 2011-09-17  Bruno Haible  <bruno@clisp.org>
11069
11070         Add dependencies to new dirent related modules.
11071         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
11072         * modules/fts (Depends-on): Likewise.
11073         * modules/glob (Depends-on): Likewise.
11074         * modules/savedir (Depends-on): Likewise.
11075         * modules/scandir (Depends-on): Likewise.
11076         * modules/dirent-safer (Depends-on): Add opendir, closedir.
11077         * modules/fdopendir (Depends-on): Add opendir.
11078
11079 2011-09-17  Bruno Haible  <bruno@clisp.org>
11080
11081         inet_pton: Support for MSVC on Windows Vista or newer.
11082         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
11083         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
11084         HAVE_DECL_INET_PTON is defined.
11085         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
11086         On platforms with <winsock2.h>, test whether inet_pton is declared in
11087         <ws2tcpip.h>. If so, arrange to replace it.
11088         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
11089         REPLACE_INET_PTON.
11090         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
11091         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
11092         (Depends-on, configure.ac): Update condition.
11093         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
11094
11095 2011-09-17  Bruno Haible  <bruno@clisp.org>
11096
11097         inet_ntop: Support for MSVC on Windows Vista or newer.
11098         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
11099         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
11100         HAVE_DECL_INET_NTOP is defined.
11101         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
11102         On platforms with <winsock2.h>, test whether inet_ntop is declared in
11103         <ws2tcpip.h>. If so, arrange to replace it.
11104         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
11105         REPLACE_INET_NTOP.
11106         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
11107         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
11108         (Depends-on, configure.ac): Update condition.
11109         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
11110
11111 2011-09-16  Eric Blake  <eblake@redhat.com>
11112
11113         test-fsync: yet another enhancement
11114         * tests/test-fsync.c (main): Also test behavior on read-only text
11115         file.
11116
11117 2011-09-16  Bruno Haible  <bruno@clisp.org>
11118
11119         Enhance fsync, fdatasync tests.
11120         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
11121         * tests/test-fdatasync.c (main): Likewise.
11122
11123 2011-09-16  Bruno Haible  <bruno@clisp.org>
11124
11125         Support for MSVC compiler: Ensure mode_t gets defined.
11126         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
11127         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11128         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
11129         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
11130         * tests/test-fcntl-h.c: Check that mode_t is defined.
11131         * tests/test-sys_stat.c: Likewise.
11132         * tests/test-sys_types.c: Likewise.
11133         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
11134         * doc/posix-headers/sys_stat.texi: Likewise.
11135         * doc/posix-headers/sys_types.texi: Likewise.
11136
11137 2011-09-16  Bruno Haible  <bruno@clisp.org>
11138
11139         sys_stat: Support for MSVC.
11140         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
11141         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
11142         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
11143         MSVC.
11144
11145 2011-09-16  Bruno Haible  <bruno@clisp.org>
11146
11147         Support for MSVC compiler: Ensure off_t gets defined.
11148         * lib/unistd.in.h: Include <sys/types.h>.
11149         * tests/test-fcntl-h.c: Check that off_t is defined.
11150         * tests/test-sys_stat.c: Likewise.
11151         * tests/test-sys_types.c: Likewise.
11152
11153 2011-09-16  Eric Blake  <eblake@redhat.com>
11154
11155         fdatasync: port to Solaris
11156         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
11157         * modules/fdatasync (Link): Document it.
11158         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
11159
11160         fdatasync: port to MacOS X 10.7
11161         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
11162         declared.
11163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
11164         * modules/unistd (Makefile.am): Substitute it.
11165         * lib/unistd.in.h (fdatasync): Declare on MacOS.
11166         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
11167
11168         fdatasync: minor improvements
11169         * modules/fdatasync (Depends-on): Add condition for fsync.
11170         * lib/fdatasync.c (fdatasync): Add comment.
11171         * tests/test-unistd-c++.cc: Test fdatasync.
11172
11173         unistd: update refs to newer POSIX
11174         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
11175         Suggested by Bruno Haible.
11176
11177         fdatasync: new module
11178         * modules/fsync (Description): Document difference to fdatasync.
11179         * modules/fdatasync: New module.
11180         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
11181         * lib/fdatasync.c (fdatasync): Likewise.
11182         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
11183         defaults.
11184         * modules/unistd (Makefile.am): Set witnesses.
11185         * lib/unistd.in.h (fdatasync): Declare.
11186         * MODULES.html.sh: Document it.
11187         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
11188         * modules/fdatasync-tests: New test.
11189         * tests/test-fdatasync.c: Likewise.
11190
11191 2011-09-16  Eric Blake  <eblake@redhat.com>
11192
11193         test-fsync: enhance tests
11194         * modules/fsync-tests (Depends-on): Add errno, for mingw.
11195         * tests/test-fsync.c (main): Enhance test.
11196
11197 2011-09-15  Bruno Haible  <bruno@clisp.org>
11198
11199         Support for MSVC compiler: Ensure ssize_t gets defined.
11200         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
11201         * doc/posix-headers/stdio.texi: Likewise.
11202         * modules/stdio (Depends-on): Add ssize_t.
11203         * modules/sys_socket (Depends-on): Likewise.
11204         * modules/sys_types (Depends-on): Likewise.
11205         * modules/sys_uio (Depends-on): Likewise.
11206         * modules/unistd (Depends-on): Likewise.
11207         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
11208         * tests/test-sys_types.c: Check that ssize_t is defined.
11209
11210 2011-09-14  Bruno Haible  <bruno@clisp.org>
11211
11212         Avoid using #, the m4 comment starter character, near brackets.
11213         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
11214         delimiter character in sed expressions.
11215         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
11216         Suggested by Eric Blake.
11217
11218         Properly quote AC_CHECK_DECLS' 4th argument.
11219         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
11220         argument.
11221         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11222         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11223         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11224         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
11225         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
11226         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
11227         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
11228         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
11229         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
11230         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
11231         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
11232         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11233         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
11234         * m4/isinf.m4 (gl_ISINF): Likewise.
11235         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
11236         * m4/readutmp.m4 (gl_READUTMP): Likewise.
11237         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11238         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11239         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11240         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11241         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11242         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
11243         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
11244         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11245         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11246         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11247         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
11248         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11249         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11250         Reported by Eric Blake.
11251
11252         Properly quote AC_CHECK_DECL's 4th argument.
11253         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
11254         argument.
11255         * m4/argp.m4 (gl_ARGP): Likewise.
11256         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11257         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11258         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11259         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11260         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
11261         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
11262         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
11263         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
11264         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11265         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11266         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11267         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11268         Reported by Eric Blake.
11269
11270 2011-09-14  Eric Blake  <eblake@redhat.com>
11271
11272         opendir: avoid compile warning
11273         * lib/opendir.c (includes): Always include errno.h.
11274         Reported by Tatsuro MATSUOKA.
11275
11276 2011-09-14  Jim Meyering  <meyering@redhat.com>
11277
11278         maint.mk: sc_tight_scope: propagate failure from sub-make
11279         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
11280         Reported by Martin von Gagern.
11281
11282 2011-09-13  Bruno Haible  <bruno@clisp.org>
11283
11284         tempname: Support for MSVC.
11285         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
11286         MSVC.
11287         * modules/tempname (Depends-on): Add fcntl-h.
11288
11289 2011-09-13  Bruno Haible  <bruno@clisp.org>
11290
11291         sys_time: Support for MSVC.
11292         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
11293         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
11294         include <winsock2.h>.
11295         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
11296         function declarations that collide with POSIX.
11297         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
11298         (Makefile.am): Substitute HAVE_WINSOCK2_H.
11299
11300 2011-09-13  Bruno Haible  <bruno@clisp.org>
11301
11302         stat: Support for MSVC.
11303         * lib/stat.c: Include pathmax.h.
11304         * modules/stat (Depends-on): Add pathmax.
11305
11306         pathmax: Support for native Windows.
11307         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
11308
11309 2011-09-12  Bruno Haible  <bruno@clisp.org>
11310
11311         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
11312         * lib/dirent.in.h (struct dirent): New type.
11313         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
11314         DT_WHT): New macros.
11315         (DIR): New type.
11316         (opendir, closedir): Declare only if the module 'opendir' is enabled.
11317         (readdir, rewinddir): New declarations.
11318         * lib/dirent-private.h: New file.
11319         * lib/opendir.c: New file.
11320         * lib/readdir.c: New file.
11321         * lib/rewinddir.c: New file.
11322         * lib/closedir.c: New file.
11323         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
11324         * m4/opendir.m4: New file.
11325         * m4/readdir.m4: New file.
11326         * m4/rewinddir.m4: New file.
11327         * m4/closedir.m4: New file.
11328         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
11329         REPLACE_CLOSEDIR here.
11330         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
11331         readdir, rewinddir are declared.
11332         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
11333         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
11334         HAVE_REWINDDIR, HAVE_CLOSEDIR.
11335         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
11336         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
11337         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
11338         * modules/opendir: New file.
11339         * modules/readdir: New file.
11340         * modules/rewinddir: New file.
11341         * modules/closedir: New file.
11342         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
11343         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
11344         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
11345         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
11346         * NEWS: Mention the 'fchdir' change.
11347
11348 2011-09-11  Bruno Haible  <bruno@clisp.org>
11349
11350         asm-underscore.m4: Support for MSVC.
11351         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
11352         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
11353
11354 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
11355
11356         Doc about crypt functions.
11357         * doc/posix-functions/crypt.texi: Expand range of glibc versions
11358         needing for _GNU_SOURCE to get crypt.
11359         * doc/posix-functions/encrypt.texi: Likewise.
11360         * doc/posix-functions/setkey.texi: Likewise.
11361
11362 2011-09-11  Bruno Haible  <bruno@clisp.org>
11363
11364         doc: Update regarding MSVC 9.
11365         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
11366         tested".
11367         * doc/posix-functions/*.texi: Update with info about MSVC 9.
11368         * doc/posix-headers/*.texi: Likewise.
11369         * doc/pastposix-functions/*.texi: Likewise.
11370         * doc/glibc-functions/*.texi: Likewise.
11371         * doc/glibc-headers/*.texi: Likewise.
11372
11373 2011-09-11  Bruno Haible  <bruno@clisp.org>
11374
11375         unistd et al.: Don't assume <unistd.h> exists.
11376         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
11377         does not exist.
11378         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
11379         exist. But include <stdlib.h>.
11380         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
11381         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
11382         symlink() does not exist.
11383         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
11384         include <io.h> instead.
11385         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
11386         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
11387         include <direct.h> instead.
11388         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11389         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11390         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
11391         <io.h> instead.
11392         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
11393         correctly if the system does not have hard links.
11394         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
11395         <direct.h> instead.
11396         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
11397         it when looking for function declarations.
11398         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
11399         <direct.h> and <io.h> instead.
11400         * doc/posix-headers/unistd.texi: More details about MSVC problem.
11401
11402 2011-09-11  Bruno Haible  <bruno@clisp.org>
11403
11404         strcase: Support for MSVC.
11405         * modules/strcase (Status, Notice): Remove obsoletion mark.
11406         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
11407         * doc/posix-functions/strncasecmp.texi: Likewise.
11408
11409         strings: Don't assume <strings.h> exists.
11410         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
11411         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
11412         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
11413         * doc/posix-headers/strings.texi: Mention the MSVC problem.
11414
11415 2011-09-11  Bruno Haible  <bruno@clisp.org>
11416
11417         dirent: Don't assume <dirent.h> exists.
11418         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
11419         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
11420         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
11421         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
11422
11423 2011-09-11  Bruno Haible  <bruno@clisp.org>
11424
11425         Fix wint_t on MSVC.
11426         * lib/wchar.in.h (wint_t): On MSVC, override it.
11427         * lib/wctype.in.h (wint_t): Likewise.
11428         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
11429         MSVC.
11430         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
11431         * doc/posix-headers/wctype.texi: Likewise.
11432
11433 2011-09-11  Bruno Haible  <bruno@clisp.org>
11434
11435         sys_types: Fix typo.
11436         * lib/sys_types.in.h: Fix typo in comment.
11437         Reported by Paul Eggert.
11438
11439         Support for MSVC compiler: Ensure size_t gets defined.
11440         * modules/strings (Depends-on): Add 'sys_types'.
11441         * modules/sys_uio (Depends-on): Likewise.
11442         * lib/sys_uio.in.h: Update comment.
11443
11444         C++ tests for module 'sys_types'.
11445         * modules/sys_types-c++-tests: New file.
11446         * tests/test-sys_types-c++.cc: New file.
11447
11448         Tests for module 'sys_types'.
11449         * modules/sys_types-tests: New file.
11450         * tests/test-sys_types.c: New file.
11451
11452         New module 'sys_types'.
11453         * lib/sys_types.in.h: New file.
11454         * m4/sys_types_h.m4: New file.
11455         * modules/sys_types: New file.
11456         * doc/posix-headers/sys_types.texi: Mention the new module and the
11457         size_t problem on MSVC 9.
11458
11459 2011-09-11  Bruno Haible  <bruno@clisp.org>
11460
11461         Support for MSVC compiler: Avoid division by a literal 0.
11462         * lib/math.in.h (NAN): Define through a function call also on MSVC.
11463         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
11464         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
11465         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
11466         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
11467         * tests/infinity.h: New file.
11468         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
11469         on MSVC.
11470         * tests/test-ceilf1.c: Include infinity.h.
11471         (main): Use Infinityf.
11472         * tests/test-ceil1.c: Include infinity.h.
11473         (main): Use Infinityd.
11474         * tests/test-ceill.c: Include infinity.h.
11475         (main): Use Infinityl.
11476         * tests/test-dprintf-posix.c: Include infinity.h.
11477         (test_function): Use Infinityd.
11478         * tests/test-floorf1.c: Include infinity.h.
11479         (main): Use Infinityf.
11480         * tests/test-floor1.c: Include infinity.h.
11481         (main): Use Infinityd.
11482         * tests/test-floorl.c: Include infinity.h.
11483         (main): Use Infinityl.
11484         * tests/test-fprintf-posix.c: Include infinity.h.
11485         (test_function): Use Infinityd.
11486         * tests/test-frexp.c: Include infinity.h.
11487         (main): Use Infinityd.
11488         * tests/test-frexpl.c: Include infinity.h.
11489         (main): Use Infinityl.
11490         * tests/test-isfinite.c: Include infinity.h.
11491         (test_isfinitef): Use Infinityf.
11492         (test_isfinited): Use Infinityd.
11493         (test_isfinitel): Use Infinityl.
11494         * tests/test-isinf.c: Include infinity.h.
11495         (test_isinff): Use Infinityf.
11496         (test_isinfd): Use Infinityd.
11497         (test_isinfl): Use Infinityl.
11498         * tests/test-isnan.c: Include infinity.h.
11499         (test_float): Use Infinityf.
11500         (test_double): Use Infinityd.
11501         (test_long_double): Use Infinityl.
11502         * tests/test-isnanf.h: Include infinity.h.
11503         (main): Use Infinityf.
11504         * tests/test-isnand.h: Include infinity.h.
11505         (main): Use Infinityd.
11506         * tests/test-isnanl.h: Include infinity.h.
11507         (main): Use Infinityl.
11508         * tests/test-ldexpl.c: Include infinity.h.
11509         (main): Use Infinityl.
11510         * tests/test-printf-posix.h: Include infinity.h.
11511         (test_function): Use Infinityd.
11512         * tests/test-roundf1.c: Include infinity.h.
11513         (main): Use Infinityf.
11514         * tests/test-round1.c: Include infinity.h.
11515         (main): Use Infinityd.
11516         * tests/test-roundl.c: Include infinity.h.
11517         (main): Use Infinityl.
11518         * tests/test-signbit.c: Include infinity.h.
11519         (test_signbitf): Use Infinityf.
11520         (test_signbitd): Use Infinityd.
11521         (test_signbitl): Use Infinityl.
11522         * tests/test-snprintf-posix.h: Include infinity.h.
11523         (test_function): Use Infinityd, Infinityl.
11524         * tests/test-sprintf-posix.h: Include infinity.h.
11525         (test_function): Use Infinityd, Infinityl.
11526         * tests/test-truncf1.c: Include infinity.h.
11527         (main): Use Infinityf.
11528         * tests/test-trunc1.c: Include infinity.h.
11529         (main): Use Infinityd.
11530         * tests/test-truncl.c: Include infinity.h.
11531         (main): Use Infinityl.
11532         * tests/test-vasnprintf-posix.c: Include infinity.h.
11533         (test_function): Use Infinityd, Infinityl.
11534         * tests/test-vasprintf-posix.c: Include infinity.h.
11535         (test_function): Use Infinityd, Infinityl.
11536         * modules/ceilf-tests (Files): Add tests/infinity.h.
11537         * modules/ceil-tests (Files): Likewise.
11538         * modules/ceill-tests (Files): Likewise.
11539         * modules/dprintf-posix-tests (Files): Likewise.
11540         * modules/floorf-tests (Files): Likewise.
11541         * modules/floor-tests (Files): Likewise.
11542         * modules/floorl-tests (Files): Likewise.
11543         * modules/fprintf-posix-tests (Files): Likewise.
11544         * modules/frexp-tests (Files): Likewise.
11545         * modules/frexp-nolibm-tests (Files): Likewise.
11546         * modules/frexpl-tests (Files): Likewise.
11547         * modules/frexpl-nolibm-tests (Files): Likewise.
11548         * modules/isfinite-tests (Files): Likewise.
11549         * modules/isinf-tests (Files): Likewise.
11550         * modules/isnan-tests (Files): Likewise.
11551         * modules/isnanf-tests (Files): Likewise.
11552         * modules/isnanf-nolibm-tests (Files): Likewise.
11553         * modules/isnand-tests (Files): Likewise.
11554         * modules/isnand-nolibm-tests (Files): Likewise.
11555         * modules/isnanl-tests (Files): Likewise.
11556         * modules/isnanl-nolibm-tests (Files): Likewise.
11557         * modules/ldexpl-tests (Files): Likewise.
11558         * modules/printf-posix-tests (Files): Likewise.
11559         * modules/roundf-tests (Files): Likewise.
11560         * modules/round-tests (Files): Likewise.
11561         * modules/roundl-tests (Files): Likewise.
11562         * modules/signbit-tests (Files): Likewise.
11563         * modules/snprintf-posix-tests (Files): Likewise.
11564         * modules/sprintf-posix-tests (Files): Likewise.
11565         * modules/truncf-tests (Files): Likewise.
11566         * modules/trunc-tests (Files): Likewise.
11567         * modules/truncl-tests (Files): Likewise.
11568         * modules/vasnprintf-posix-tests (Files): Likewise.
11569         * modules/vasprintf-posix-tests (Files): Likewise.
11570         * modules/vdprintf-posix-tests (Files): Likewise.
11571         * modules/vfprintf-posix-tests (Files): Likewise.
11572         * modules/vprintf-posix-tests (Files): Likewise.
11573         * modules/vsnprintf-posix-tests (Files): Likewise.
11574         * modules/vsprintf-posix-tests (Files): Likewise.
11575         * modules/xprintf-posix-tests (Files): Likewise.
11576
11577 2011-09-11  Bruno Haible  <bruno@clisp.org>
11578
11579         Ensure pid_t gets defined.
11580         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
11581         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11582         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
11583         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11584         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
11585         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11586         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
11587         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11588         * tests/test-fcntl-h.c: Check that pid_t is defined.
11589         * tests/test-sched.c: Likewise.
11590         * tests/test-termios.c: Likewise.
11591         * tests/test-time.c: Likewise.
11592         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
11593         * doc/posix-headers/signal.texi: Likewise.
11594         * doc/posix-headers/sys_types.texi: Likewise.
11595         * doc/posix-headers/time.texi: Likewise.
11596
11597 2011-09-11  Bruno Haible  <bruno@clisp.org>
11598
11599         acl: Fix compilation on Solaris 10 (older version).
11600         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
11601         of ACE_EVERYONE.
11602         * lib/set-mode-acl.c (qset_acl): Likewise.
11603         Reported by Christian Jullien <eligis@orange.fr>.
11604
11605 2011-09-10  Bruno Haible  <bruno@clisp.org>
11606
11607         iconv, unsetenv: Add support for MSVC compiler.
11608         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
11609         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
11610
11611 2011-09-10  Bruno Haible  <bruno@clisp.org>
11612
11613         *printf: Add support for MSVC compiler.
11614         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
11615         handles the exception caused by the %n directive. When cross-compiling,
11616         guess no on native Windows.
11617         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11618         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
11619         emulate it through vsnprintf.
11620         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
11621         * doc/posix-functions/dprintf.texi: Update documentation regarding
11622         MSVC 9.
11623         * doc/posix-functions/fprintf.texi: Likewise.
11624         * doc/posix-functions/printf.texi: Likewise.
11625         * doc/posix-functions/snprintf.texi: Likewise.
11626         * doc/posix-functions/sprintf.texi: Likewise.
11627         * doc/posix-functions/swprintf.texi: Likewise.
11628         * doc/posix-functions/vdprintf.texi: Likewise.
11629         * doc/posix-functions/vfprintf.texi: Likewise.
11630         * doc/posix-functions/vprintf.texi: Likewise.
11631         * doc/posix-functions/vsnprintf.texi: Likewise.
11632         * doc/posix-functions/vsprintf.texi: Likewise.
11633         * doc/glibc-functions/asprintf.texi: Likewise.
11634         * doc/glibc-functions/obstack_printf.texi: Likewise.
11635         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
11636         * doc/glibc-functions/vasprintf.texi: Likewise.
11637
11638 2011-09-10  Bruno Haible  <bruno@clisp.org>
11639
11640         nocrash: Add support for native Windows.
11641         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
11642
11643 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
11644             Bruno Haible  <bruno@clisp.org>
11645
11646         absolute-header, include-next: Add support for MSVC compiler.
11647         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
11648         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
11649         directory separator in #line directives.
11650         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
11651         recognize also backslash as directory separator in #line directives.
11652
11653 2011-09-08  Jim Meyering  <meyering@redhat.com>
11654
11655         maint.mk: mark the post-release commit log with "maint: " prefix
11656         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
11657         one-line commit-log summary.
11658
11659 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
11660             Bruno Haible  <bruno@clisp.org>
11661
11662         Doc about crypt functions.
11663         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
11664         systems.
11665         * doc/posix-functions/encrypt.texi: Likewise.
11666         * doc/posix-functions/setkey.texi: Likewise.
11667
11668 2011-09-08  Simon Josefsson  <simon@josefsson.org>
11669
11670         * lib/gc.h: Fix copyright header.
11671
11672 2011-09-07  Bruno Haible  <bruno@clisp.org>
11673
11674         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
11675         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
11676         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
11677
11678 2011-09-07  Bruno Haible  <bruno@clisp.org>
11679
11680         openat: Work around compilation error with OSF/1 5.1 DTK cc.
11681         * lib/fopen.c: Use different syntax for include of <stdio.h>.
11682         * lib/freopen.c: Likewise.
11683         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
11684         * lib/lstat.c: Likewise.
11685         * lib/stat.c: Likewise.
11686         * lib/open.c: Use different syntax for include of <fcntl.h>.
11687         * lib/openat.c: Include fcntl.h again, explicitly.
11688
11689 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
11690
11691         parse-datetime: document the newly accepted format
11692         * doc/parse-datetime.texi (Combined date and time of day items):
11693         New section.
11694
11695 2011-09-06  Bruno Haible  <bruno@clisp.org>
11696
11697         acl: Fix a test failure on newer Solaris 10 with ZFS.
11698         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
11699         ENOSYS as no ACL.
11700         Reported by Jim Meyering.
11701
11702 2011-09-06  Bruno Haible  <bruno@clisp.org>
11703
11704         acl: Update for AIX >= 5.3 with NFS.
11705         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
11706         ENOSYS as no ACL.
11707
11708         acl: Fix a test failure on AIX >= 5.3 with NFS.
11709         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
11710         as no ACL.
11711
11712 2011-09-06  Bruno Haible  <bruno@clisp.org>
11713
11714         acl: Fix a test failure on IRIX 6.5 with NFS.
11715         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
11716         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
11717         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
11718         * lib/copy-acl.c (qcopy_acl): Likewise.
11719
11720 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
11721
11722         openat: port to AIX 7.1 with large files
11723         AIX 7.1 does a "#define openat open64at" if large files are in use,
11724         so we can't simply #undef openat.  Use the orig_openat trick (similar
11725         to orig_open in lib/open.c) to work around the problem.  Problem
11726         reported by Kevin Brott for GNU tar, in the thread containing
11727         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
11728         * lib/openat.c (__need_system_fcntl_h): Define first.
11729         Include <fcntl.h> and <sys/types.h> before undefining.
11730         (orig_openat) [HAVE_OPENAT]: New inline function.
11731         (openat) [HAVE_OPENAT]: Do not undef.
11732         (rpl_openat): Use orig_openat, not openat.
11733
11734 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
11735             Bruno Haible  <bruno@clisp.org>
11736
11737         acl: Avoid errors on NonStop Kernel.
11738         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
11739         ENOTSUP errors.
11740
11741 2011-09-05  Bruno Haible  <bruno@clisp.org>
11742
11743         acl: Clean up Solaris code.
11744         * lib/acl-internal.h: Remove no-op #if.
11745         * lib/file-has-acl.c: Likewise.
11746         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
11747         * lib/copy-acl.c (qcopy_acl): Likewise.
11748
11749 2011-09-05  Bruno Haible  <bruno@clisp.org>
11750
11751         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
11752         binaries built on the original Solaris 10.
11753         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
11754         trivial.
11755
11756 2011-09-05  Bruno Haible  <bruno@clisp.org>
11757
11758         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11759         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
11760         10.
11761         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
11762         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
11763         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
11764         instead of acl_get, facl_get, acl_set, facl_set.
11765
11766 2011-09-05  Bruno Haible  <bruno@clisp.org>
11767
11768         copy-file: Try unit tests on more file systems.
11769         * tests/test-copy-file-1.sh: New file.
11770         * tests/test-copy-file-2.sh: New file.
11771         * modules/copy-file-tests (Files): Add them.
11772         (Makefile.am): Add them to TESTS.
11773
11774         acl: Try unit tests on more file systems.
11775         * tests/test-file-has-acl-1.sh: New file.
11776         * tests/test-file-has-acl-2.sh: New file.
11777         * tests/test-set-mode-acl-1.sh: New file.
11778         * tests/test-set-mode-acl-2.sh: New file.
11779         * tests/test-copy-acl-1.sh: New file.
11780         * tests/test-copy-acl-2.sh: New file.
11781         * modules/acl-tests (Files): Add them.
11782         (Makefile.am): Add them to TESTS.
11783
11784 2011-09-04  Bruno Haible  <bruno@clisp.org>
11785
11786         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11787         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
11788         10.
11789         (OLD_ALLOW, OLD_DENY): New macros.
11790         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
11791         ACE_ACCESS_ALLOWED_ACE_TYPE.
11792         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
11793         ACE_ACCESS_DENIED_ACE_TYPE.
11794         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
11795         (NEW_ACE_EXECUTE): Fix value.
11796         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
11797         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
11798         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
11799         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
11800         NEW_ACE_SYNCHRONIZE): New macros.
11801         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
11802         instead of acl_fromtext, acl_set, facl_set.
11803         Fixes a coreutils/tests/cp/perm failure.
11804
11805 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
11806
11807         openat: test for fstatat (..., 0) bug
11808         Further testing with tar suggests that fstatat (..., 0)
11809         does not work in general, on AIX 7.1; see
11810         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
11811         So, give up entirely on AIX 7.1's fstatat, and fall back on our
11812         replacement fstatat (which is what older AIX releases were using
11813         anyway).
11814         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
11815         use is now changed to orig_fstatat.  This was probably the right
11816         thing to do anyway.
11817         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
11818         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
11819         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
11820         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
11821         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
11822         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
11823         if the bug is found.
11824
11825         openat: test for fstatat (AT_FDCWD, ..., 0) bug
11826         This tests for another fstatat bug on AIX 7.1:
11827         fstatat (AT_FDCWD, ..., 0) does not work.  See
11828         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
11829         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
11830         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
11831         (rpl_fstatat): Adjust so that it works around either (or both)
11832         bugs if present.
11833         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
11834
11835 2011-09-03  Karl Berry  <karl@gnu.org>
11836
11837         * doc/regex.texi (Character Class Operators): Avoid literal ":"
11838         in index entries.
11839
11840 2011-09-02  Bruno Haible  <bruno@clisp.org>
11841
11842         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
11843         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
11844         values of AR, ARFLAGS, RANLIB.
11845         Reported by John W. Eaton <jwe@gnu.org> for Octave.
11846
11847 2011-09-02  Bruno Haible  <bruno@clisp.org>
11848
11849         Find 'ar' program that fits with --host argument.
11850         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
11851
11852 2011-09-02  Bruno Haible  <bruno@clisp.org>
11853
11854         tests: init.sh: Support any non-GNU diff.
11855         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
11856         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
11857         Solaris 8.
11858
11859 2011-09-02  Bruno Haible  <bruno@clisp.org>
11860
11861         tests: init.sh: work also with any non-GNU diff that supports -u
11862         * tests/init.sh: Relax check for diff -u support.
11863         Rather than checking for GNU diff via --version, simply check
11864         for support for -u itself.  Useful at least on OpenBSD 4.9,
11865         AIX 7.1, IRIX 6.5, and Solaris 10.
11866
11867 2011-09-01  Bruno Haible  <bruno@clisp.org>
11868
11869         strtoimax, strtoumax: Document problem on HP-UX 11.
11870         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
11871         * doc/posix-functions/strtoumax.texi: Likewise.
11872
11873 2011-09-01  Bruno Haible  <bruno@clisp.org>
11874
11875         strtoumax: Avoid link error on OSF/1 with DTK cc.
11876         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
11877         defined as a function.
11878         * modules/strtoumax (Depends-on, configure.ac): Test only whether
11879         strtoumax is defined, not whether it is declared.
11880
11881 2011-09-01  Bruno Haible  <bruno@clisp.org>
11882
11883         strtoimax: Avoid link error on OSF/1 with DTK cc.
11884         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
11885         defined as a function.
11886         * modules/strtoimax (Depends-on, configure.ac): Test only whether
11887         strtoimax is defined, not whether it is declared.
11888
11889 2011-09-01  Bruno Haible  <bruno@clisp.org>
11890
11891         imaxdiv: Avoid link error on OSF/1 with DTK cc.
11892         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
11893         as a function.
11894         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
11895         whether it is declared.
11896
11897 2011-09-01  Bruno Haible  <bruno@clisp.org>
11898
11899         imaxabs: Avoid link error on OSF/1 with DTK cc.
11900         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
11901         as a function.
11902         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
11903         whether it is declared.
11904
11905 2011-09-01  Bruno Haible  <bruno@clisp.org>
11906
11907         Tests for module 'strtoumax'.
11908         * modules/strtoumax-tests: New file.
11909         * tests/test-strtoumax.c: New file.
11910
11911         Tests for module 'strtoimax'.
11912         * modules/strtoimax-tests: New file.
11913         * tests/test-strtoimax.c: New file.
11914
11915         Tests for module 'imaxdiv'.
11916         * modules/imaxdiv-tests: New file.
11917         * tests/test-imaxdiv.c: New file.
11918
11919         Tests for module 'imaxabs'.
11920         * modules/imaxabs-tests: New file.
11921         * tests/test-imaxabs.c: New file.
11922
11923 2011-09-01  Bruno Haible  <bruno@clisp.org>
11924
11925         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
11926         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
11927         pthread_create.
11928
11929 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11930
11931         openat: work around AIX 7.1 fstatat issue
11932         This should fix the problem that was not properly fixed
11933         in the previous change, dated 2011-08-30.
11934         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
11935         __need_system_stat_h defined.
11936         (orig_fstatat) [HAVE_FSTATAT]: New function.
11937         (rpl_fstatat): Go back to the old way of doing things,
11938         except call orig_fstatat instead of fstatat.
11939         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
11940         Remove unnecessary check whether fstatat fills in st_size etc.
11941
11942 2011-09-01  Bruno Haible  <bruno@clisp.org>
11943
11944         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
11945         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
11946         just include the system's header.
11947
11948 2011-08-31  Jim Meyering  <meyering@redhat.com>
11949
11950         tests: avoid spurious assertion failure in test-float.c on ppc64
11951         * tests/test-float.c (test_long_double): Comment out an assertion,
11952         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
11953         with gcc-4.4.4.
11954
11955         maint: indent with spaces, not TABs
11956         I need to get in the habit of running gnulib's "make check".
11957         Both of these would have been caught.
11958         * m4/largefile.m4: Indent with spaces, not TABs.
11959         * lib/parse-datetime.y (iso_8601_time): Likewise.
11960         Spotted by Pádraig Brady.
11961
11962         test-parse-datetime.c: accommodate a relatively strict gcc warning
11963         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
11964         to avoid a warning from gcc's -Werror=missing-declarations.
11965         Insert a few spaces-before-funcall-parenthesis.
11966
11967 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
11968
11969         parse-datetime: accept ISO 8601 date and time rep with "T" separator
11970         The parser now accepts ISO 8601 date-time strings with "T" as the
11971         separator.  It has long parsed dates like "2004-02-29 16:21:42"
11972         with a space between the date and time strings.  Now it also parses
11973         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
11974         variants like "2004-02-29T16:21:42.333-07:00"
11975         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
11976         of day representation using the 'T' separator character.
11977         * doc/parse-datetime.texi (General date syntax): replace use of
11978         deprecated --iso-8601 option with --rfc-3339 in example of date
11979         command output formats that can be parsed.
11980         * tests/test-parse-datetime.c (tm_diff): New function, taken from
11981         lib/parse-datetime.y.
11982         (gmt_offset): New function.
11983         (main): Add additional test cases to validate ISO8601 extended
11984         date and time of day parsing.
11985
11986 2011-08-31  Bruno Haible  <bruno@clisp.org>
11987
11988         freopen: Documentation.
11989         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
11990         name.
11991         Reported by Claudio Bley <claudio.bley@gmail.com>.
11992
11993 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
11994
11995         freopen: Don't crash if the filename argument is NULL.
11996         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
11997         NULL.
11998
11999 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
12000
12001         openat: work around AIX 7.1 fstatat bug
12002         Problem reported by Kevin Brott for GNU tar, in the thread containing
12003         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
12004         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
12005         FSTATAT_ST_SIZE_ETC_BROKEN.
12006         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
12007         rpl_fstatat.
12008         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
12009         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
12010         AC_CHECK_FUNCS_ONCE for fstatat.
12011         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
12012         fchmodat, mkdirat, openat and unlinkat.
12013
12014 2011-08-30  Bruno Haible  <bruno@clisp.org>
12015
12016         Avoid endless recursions if config.h includes some header files.
12017         * lib/fopen.c (__need_FILE): Define already before including config.h.
12018         * lib/freopen.c (__need_FILE): Likewise.
12019         * lib/open.c (__need_system_fcntl_h): Likewise.
12020         * lib/stat.c (__need_system_sys_stat_h): Likewise.
12021         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
12022         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12023
12024 2011-08-25  Karl Berry  <karl@gnu.org>
12025
12026         * config/srclist.txt (ylwrap): new try.
12027         * build-aux/ylwrap: new file.
12028
12029 2011-08-23  Bruno Haible  <bruno@clisp.org>
12030
12031         tmpdir: Use a good default directory on native Windows.
12032         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
12033         (P_tmpdir): Default to _P_tmpdir on native Windows.
12034         (path_search): On native Windows, try the value returned by GetTempPath
12035         before trying P_tmpdir.
12036         * modules/tmpdir (Depends-on): Add pathmax.
12037         Suggested by John Darrington <john@darrington.wattle.id.au>.
12038
12039 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
12040
12041         doc: fix typo in README-release
12042         * top/README-release: Capitalize first word of a sentence.
12043
12044 2011-08-19  Jim Meyering  <meyering@redhat.com>
12045
12046         fts: do not exhaust memory when processing million-entry directories
12047         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
12048         directory would require about 256*N bytes of memory.  Thus, it was
12049         easy to construct a directory too large to be processed by any of
12050         those tools.  With this change, fts' maximum memory utilization is
12051         now limited to around 30MB.
12052         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
12053         (fts_read): When we've processed the final entry (i.e., when
12054         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
12055         using the parent entry to read any remaining entries.  Dispatch
12056         depending on what fts_build returns:
12057         - NULL+stop, aka failure: stop
12058         - NULL otherwise: move up in the dir hierarchy
12059         - non-NULL: handle this new entry
12060         (fts_build): Declare and use new local, continue_readdir.
12061         Prepare to be called from fts_read, when the entries
12062         from a partially-read directory have just been exhausted.
12063         In that case, we'll skip the opendir and instead use the parent's
12064         fts_dirp and derive dir_fd from that.
12065         Finally, in the readdir loop, if we read max_entries entries,
12066         exit the loop ensuring *not* to call closedir.  This is required
12067         so that fts_dirp can be reused on a subsequent call.
12068         Prompted by Ben England's report of memory exhaustion in find
12069         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
12070
12071         maint: fts: move decl of `dp' down into while loop; split a long line
12072         * lib/fts.c (fts_build): No semantic change.
12073
12074         fts: add/use new struct member, fts_dirp
12075         We are about to use this to manage any directory with
12076         too many entries to read all of them into memory at once.
12077         To do that, we'll need to save the DIR* pointer in each
12078         affected FTSENT struct.
12079         * lib/fts_.h: Include <dirent.h>.
12080         (struct FTSENT) [fts_dirp]: New member.
12081         * lib/fts.c (closedir_and_clear): Define.
12082         Use it in place of closedir so that we are sure to
12083         clear the new fts_dirp member when done with it.
12084         (fts_alloc): Initialize the new member.
12085         (fts_lfree): Free, if needed.
12086
12087         maint: fts: give __opendir2 a new parameter and rename
12088         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
12089         than surreptitiously using sole caller's "dir_fd".
12090         (fts_opendir): Rename from __opendir2.
12091
12092         maint: fts.c: remove __opendir2's now-unused parameter, oflag
12093         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
12094
12095         maint: fts.c: correct off-by-one indentation
12096         * lib/fts.c (fts_build): Correct indentation, change style
12097         of a couple of block comments, and bracing style.
12098
12099         maint: fts.c: move __opendir2 #define "up" out of function body
12100         * lib/fts.c (__opendir2): Move "up".  No semantic change.
12101
12102         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
12103         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
12104         out for a long time and besides was useful only on BSD systems.
12105
12106 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
12107
12108         regex: port to Stratus OpenVOS
12109         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
12110         define to empty, rather than attempting nonportable optimizations.
12111         Problem reported by Paul Green in:
12112         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
12113         and fix suggested by Eric Blake in:
12114         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
12115
12116 2011-08-17  Eric Blake  <eblake@redhat.com>
12117
12118         getcwd: fix test failures on mingw
12119         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
12120         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
12121         test if long directory cannot be created, and allow mingw errno.
12122
12123         getcwd-lgpl: fix m4 to match relaxed test for BSD
12124         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
12125         (gl_FUNC_GETCWD_SIGNATURE): New macro.
12126         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
12127         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
12128         signature problem.
12129
12130         getcwd: fix compilation on mingw64
12131         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
12132         getcwd.
12133         Reported by Marc-André Lureau.
12134
12135         pipe2: silence compiler warning
12136         * lib/pipe2.c (pipe2): Hide label if it is not used.
12137
12138 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
12139
12140         relocatable-prog: fix link error
12141         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
12142         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
12143         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
12144         into modules/relocatable-lib without noticing that
12145         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
12146         also needs to build relocatable.c.
12147
12148 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
12149
12150         getaddrinfo: fix sh typo in gai_strerrorA decl checking
12151         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
12152         shell code: it contained a 'break' that was not in a loop.
12153         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
12154         via a shell-language loop; this may have been true in old Autoconf
12155         versions, but it's not true in Autoconf 2.68.  I found this bug
12156         when testing coreutils git on Solaris 8, whose shell complains
12157         about the syntax error.
12158
12159 2011-08-12  Simon Josefsson  <simon@josefsson.org>
12160
12161         * lib/base64.c: Fix comment to reference RFC 4648.
12162         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
12163         <gvtulder@gmail.com>.
12164
12165 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
12166
12167         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
12168
12169         po/Makefile.in.in: fix make -q problem
12170         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
12171         rule, since there's no file named 'check-macro-version' and its
12172         use as a file breaks make -q.
12173         (all): Don't depend on check-macro-version.
12174         (CHECK_MACRO_VERSION): New macro.
12175         (stamp-po): Use it.
12176
12177         configmake: fix make -q problem
12178         * modules/configmake (configmake.h): Update configmake.h's time stamp
12179         even if the file does not change.  Otherwise, 'make -q' fails.
12180         Problem reported by Simon Josefsson in
12181         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
12182
12183 2011-08-11  Jim Meyering  <meyering@redhat.com>
12184
12185         git-version-gen: correct the advice in a comment
12186         * build-aux/git-version-gen: Correct comment.
12187         Don't recommend to list .tarball-version in .gitignore.
12188
12189 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12190
12191         base64: fix off-by-one buffer size bug
12192         Problem and (trivial) fix reported by Gijs van Tulder in
12193         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
12194         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
12195         * tests/test-base64.c (main): Catch the bug.
12196
12197 2011-08-10  Eric Blake  <eblake@redhat.com>
12198
12199         closein: correct comments
12200         * lib/closein.c (close_stdin): Improve comments.
12201
12202 2011-08-09  Bruno Haible  <bruno@clisp.org>
12203
12204         More tests for 'fseeko'.
12205         * tests/test-fseeko3.c: New file, from Eric Blake.
12206         * tests/test-fseeko3.sh: New file.
12207         * modules/fseeko-tests (Files): Add them.
12208         (TESTS): Add test-fseeko3.sh.
12209         (check_PROGRAMS): Add test-fseeko3.
12210
12211 2011-08-09  Eric Blake  <eblake@redhat.com>
12212
12213         fseeko: remove unneeded hack
12214         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
12215
12216         fseeko: fix bug on glibc
12217         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
12218         Reported by John W. Eaton.
12219
12220 2011-08-08  Bruno Haible  <bruno@clisp.org>
12221
12222         unictype/base: Fix interoperability with preinstalled libunistring.
12223         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
12224         Reported by Simon Josefsson.
12225
12226 2011-08-08  Bruno Haible  <bruno@clisp.org>
12227
12228         iswblank: Detect declaration correctly.
12229         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
12230         AC_CHECK_DECLS invocation.
12231
12232 2011-08-08  Bruno Haible  <bruno@clisp.org>
12233
12234         tcgetsid: Detect declaration correctly.
12235         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
12236         AC_CHECK_DECLS invocation.
12237         Reported by Simon Josefsson.
12238
12239 2011-08-08  Eric Blake  <eblake@redhat.com>
12240
12241         largefile: fix typo that regressed large file support
12242         * modules/largefile (configure.ac-early): Fix section name.
12243
12244 2011-08-06  Karl Berry  <karl@gnu.org>
12245
12246         * MODULES.html.sh (func_all_files): _Noreturn is no longer
12247         a separate module.
12248
12249 2011-08-05  Simon Josefsson  <simon@josefsson.org>
12250
12251         openat: Fix warnings and commens when building unlinkat.c on Hurd.
12252         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
12253         get prototype for free.
12254
12255 2011-08-04  Bruno Haible  <bruno@clisp.org>
12256
12257         Tests for module 'pathmax'.
12258         * modules/pathmax-tests: New file.
12259         * tests/test-pathmax.c: New file.
12260
12261         canonicalize-lgpl: Support larger filenames on the Hurd.
12262         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
12263         Reported by Paul Eggert.
12264
12265         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
12266         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
12267         * lib/chdir-long.h: Include pathmax.h.
12268         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
12269         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
12270         (PATH_MAX): Remove code that is done by pathmax.h.
12271         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
12272         * lib/tmpfile.c: Add a comment.
12273         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
12274         * modules/chdir-long (Depends-on): Add pathmax.
12275         * modules/getcwd (Depends-on): Add pathmax.
12276         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
12277         is not defined.
12278         * doc/posix-headers/limits.texi: Mention the pathmax module.
12279         * NEWS: Mention the change.
12280
12281 2011-08-02  Bruno Haible  <bruno@clisp.org>
12282
12283         pthread_sigmask: Actually use results of gl_THREADLIB.
12284         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
12285         gl_THREADLIB, not gl_[]THREADLIB.
12286         Reported by Eric Blake.
12287
12288 2011-08-02  Jim Meyering  <meyering@redhat.com>
12289
12290         maint.mk: relax the default _gl_TS_function_match regexp
12291         * top/maint.mk (_gl_TS_function_match): Don't require at least one
12292         space between function name and "(" in an "extern" declaration.
12293         That would fail to match a decl with no space there: extern void foo();
12294
12295 2011-07-31  Iain Nicol  <iain@thenicols.net>
12296
12297         git-version-gen: document that EXTRA_DIST must include .version
12298         * build-aux/git-version-gen: In the how-to-use comment, document
12299         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
12300         will fail when run from an unpacked distribution tarball.
12301
12302 2011-08-01  Bruno Haible  <bruno@clisp.org>
12303
12304         wctype-h: Fix last change.
12305         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
12306         REPLACE_TOWLOWER to 0.
12307         Reported by Sam Steingold <sds@gnu.org>.
12308
12309 2011-07-31  Bruno Haible  <bruno@clisp.org>
12310
12311         frexpl: Update autoconf test.
12312         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
12313         according to changes of 2011-06-20.
12314
12315 2011-07-31  Bruno Haible  <bruno@clisp.org>
12316
12317         sys_utsname: Add support for Minix.
12318         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
12319         <sys/utsname.h>.
12320         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12321         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
12322
12323 2011-07-31  Bruno Haible  <bruno@clisp.org>
12324
12325         strings: Add support for Minix.
12326         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
12327         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
12328         * doc/posix-headers/strings.texi: Document the Minix problem.
12329
12330 2011-07-31  Bruno Haible  <bruno@clisp.org>
12331
12332         wctype-h: Add support for Minix.
12333         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
12334         REPLACE_TOWLOWER.
12335         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
12336         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
12337         REPLACE_ISWCNTRL.
12338
12339 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
12340
12341         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
12342         This is a performance improvement for 64-bit hosts: it causes the
12343         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
12344
12345 2011-07-31  Bruno Haible  <bruno@clisp.org>
12346
12347         stdioext: Add support for Minix.
12348         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
12349         * lib/fpurge.c (fpurge): Likewise.
12350         * lib/freadahead.c (freadahead): Likewise.
12351         * lib/freadable.c (freadable): Likewise.
12352         * lib/freading.c (freading): Likewise.
12353         * lib/freadptr.c (freadptr): Likewise.
12354         * lib/freadseek.c (freadptrinc): Likewise.
12355         * lib/fseeko.c (rpl_fseeko): Likewise.
12356         * lib/fseterr.c (fseterr): Likewise.
12357         * lib/fwritable.c (fwritable): Likewise.
12358         * lib/fwriting.c (fwriting): Likewise.
12359         * lib/fflush.c (clear_ungetc_buffer): Update comment.
12360         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
12361
12362 2011-07-31  Bruno Haible  <bruno@clisp.org>
12363
12364         errno: Port to Minix.
12365         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
12366         ECONNABORTED are defined.
12367         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
12368         GNULIB_defined_ECONNABORTED): New macros.
12369         * lib/strerror-override.h (strerror_override): Test also
12370         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
12371         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
12372         ECONNABORTED.
12373         * doc/posix-headers/errno.texi: Mention the Minix problem.
12374
12375 2011-07-31  Bruno Haible  <bruno@clisp.org>
12376
12377         Work around declaration collisions on Minix.
12378         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
12379         defined, set REPLACE_MBSINIT.
12380         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
12381         defined, set REPLACE_MBRTOWC.
12382         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
12383         set REPLACE_MBRLEN.
12384         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
12385         defined, set REPLACE_MBSRTOWCS.
12386         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
12387         defined, set REPLACE_WCRTOMB.
12388         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
12389         defined, set REPLACE_WCSRTOMBS.
12390
12391 2011-07-31  Bruno Haible  <bruno@clisp.org>
12392
12393         Add support for Minix with ACK compiler.
12394         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
12395         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
12396         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
12397
12398 2011-07-31  Bruno Haible  <bruno@clisp.org>
12399
12400         Documentation about Minix.
12401         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
12402         * doc/glibc-headers/*.texi: Likewise.
12403         * doc/posix-functions/*.texi: Likewise.
12404         * doc/glibc-functions/*.texi: Likewise.
12405
12406 2011-07-31  Bruno Haible  <bruno@clisp.org>
12407
12408         snippet/warn-on-use: Fix indentation.
12409         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
12410
12411 2011-07-25  Jim Meyering  <meyering@redhat.com>
12412
12413         tests: test-update-copyright.sh: remove unnecessary "rm" commands
12414         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
12415         commands.
12416
12417 2011-07-27  Jim Meyering  <meyering@redhat.com>
12418
12419         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
12420         * top/maint.mk (gl_extract_significant_defines_): Now that
12421         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
12422         gnulib/lib/signal.in.h, and now that we recommend to
12423         define-if-undefined those two symbols in application code,
12424         we must filter them out of the "significant" list.
12425         This avoids a "make syntax-check" failure in coreutils.
12426
12427 2011-07-26  Eric Blake  <eblake@redhat.com>
12428
12429         warnings: add comments about previous patch
12430         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
12431         * m4/include_next.m4: Likewise.
12432         * m4/warn-on-use.m4: Likewise.
12433         * m4/warnings.m4: Likewise, and simplify use.
12434         Suggested by Stefano Lattarini.
12435
12436         include-next, warnings: support older autoconf
12437         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
12438         AS_VAR_PUSHDEF in a way that works with older autoconf.
12439         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
12440         Reported by Daniel P. Berrange.
12441
12442 2011-07-25  Bruno Haible  <bruno@clisp.org>
12443
12444         fseek, ftell: Fix doc.
12445         * doc/posix-functions/fseek.texi: Reword statement about
12446         AC_SYS_LARGEFILE.
12447         * doc/posix-functions/ftell.texi: Likewise.
12448
12449 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12450             Bruno Haible  <bruno@clisp.org>
12451
12452         Add dependencies to the 'largefile' module.
12453         * modules/fopen (Depends-on): Add 'largefile'.
12454         * modules/freopen (Depends-on): Likewise.
12455         * modules/fseeko (Depends-on): Likewise.
12456         * modules/ftello (Depends-on): Likewise.
12457         * modules/glob (Depends-on): Likewise.
12458         * modules/lseek (Depends-on): Likewise.
12459         * modules/lstat (Depends-on): Likewise.
12460         * modules/mkostemp (Depends-on): Likewise.
12461         * modules/mkostemps (Depends-on): Likewise.
12462         * modules/mkstemp (Depends-on): Likewise.
12463         * modules/mkstemps (Depends-on): Likewise.
12464         * modules/open (Depends-on): Likewise.
12465         * modules/openat (Depends-on): Likewise.
12466         * modules/pread (Depends-on): Likewise.
12467         * modules/pwrite (Depends-on): Likewise.
12468         * modules/scandir (Depends-on): Likewise.
12469         * modules/stat (Depends-on): Likewise.
12470         * modules/tmpfile (Depends-on): Likewise.
12471         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
12472         since the containing module now depends on the largefile module.
12473         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
12474         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
12475         off_t is fixed by gnulib.
12476         * doc/posix-functions/freopen.texi: Likewise.
12477         * doc/posix-functions/fseeko.texi: Likewise.
12478         * doc/posix-functions/fstatat.texi: Likewise.
12479         * doc/posix-functions/ftello.texi: Likewise.
12480         * doc/posix-functions/glob.texi: Likewise.
12481         * doc/posix-functions/lseek.texi: Likewise.
12482         * doc/posix-functions/lstat.texi: Likewise.
12483         * doc/posix-functions/mkstemp.texi: Likewise.
12484         * doc/posix-functions/open.texi: Likewise.
12485         * doc/posix-functions/openat.texi: Likewise.
12486         * doc/posix-functions/pread.texi: Likewise.
12487         * doc/posix-functions/pwrite.texi: Likewise.
12488         * doc/posix-functions/scandir.texi: Likewise.
12489         * doc/posix-functions/stat.texi: Likewise.
12490         * doc/posix-functions/tmpfile.texi: Likewise.
12491         * doc/glibc-functions/mkostemp.texi: Likewise.
12492         * doc/glibc-functions/mkostemps.texi: Likewise.
12493         * doc/glibc-functions/mkstemps.texi: Likewise.
12494
12495 2011-07-25  Bruno Haible  <bruno@clisp.org>
12496
12497         fcntl: Move AC_LIBOBJ invocation to module description.
12498         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
12499         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
12500
12501         fcntl: Remove call-in from fchdir.m4.
12502         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
12503         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
12504
12505         dup3: Remove potential call-in from fchdir.m4.
12506         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
12507         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
12508
12509         dup2: Move AC_LIBOBJ invocation to module description.
12510         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
12511         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
12512         Don't invoke AC_LIBOBJ.
12513         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
12514
12515         dup2: Remove call-in from fchdir.m4.
12516         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
12517         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
12518
12519         fclose: Move AC_LIBOBJ invocation to module description.
12520         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
12521         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
12522         to 1.
12523         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
12524
12525         fclose: Remove call-in from close.m4.
12526         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
12527         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
12528
12529         close: Move AC_LIBOBJ invocation to module description.
12530         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
12531         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
12532         1.
12533         * modules/close (configure.ac): Invoke AC_LIBOBJ.
12534
12535         close: Remove call-in from fchdir.m4.
12536         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
12537         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
12538
12539         open: Move AC_LIBOBJ invocation to module description.
12540         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
12541         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
12542         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
12543
12544         open: Remove call-in from fchdir.m4.
12545         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
12546         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
12547
12548         fchdir: Start to remove gl_REPLACE_* idiom.
12549         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
12550         (gl_FUNC_FCHDIR): Invoke it.
12551
12552 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12553
12554         * lib/ftell.c (ftell): Comment out cast.
12555
12556         close: use gl_REPLACE_FCLOSE only if defined
12557         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
12558         is defined.  The close module doesn't depend on the fclose module
12559         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
12560         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
12561         I reproduced the problem with "./gnulib-tool --test close sys_socket".
12562
12563 2011-07-24  Jim Meyering  <meyering@redhat.com>
12564
12565         test-select.h: avoid warning when using gcc's -Wmissing-declarations
12566         * tests/test-select.h (test_function): Declare as "static".
12567
12568 2011-07-24  Bruno Haible  <bruno@clisp.org>
12569
12570         doc: Mention the effects of AC_SYS_LARGEFILE.
12571         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
12572         on this function.
12573         * doc/posix-functions/aio_error.texi: Likewise.
12574         * doc/posix-functions/aio_fsync.texi: Likewise.
12575         * doc/posix-functions/aio_read.texi: Likewise.
12576         * doc/posix-functions/aio_return.texi: Likewise.
12577         * doc/posix-functions/aio_suspend.texi: Likewise.
12578         * doc/posix-functions/aio_write.texi: Likewise.
12579         * doc/posix-functions/fgetpos.texi: Likewise.
12580         * doc/posix-functions/fopen.texi: Likewise.
12581         * doc/posix-functions/freopen.texi: Likewise.
12582         * doc/posix-functions/fsetpos.texi: Likewise.
12583         * doc/posix-functions/fstatvfs.texi: Likewise.
12584         * doc/posix-functions/ftruncate.texi: Likewise.
12585         * doc/posix-functions/ftw.texi: Likewise.
12586         * doc/posix-functions/getrlimit.texi: Likewise.
12587         * doc/posix-functions/glob.texi: Likewise.
12588         * doc/posix-functions/lio_listio.texi: Likewise.
12589         * doc/posix-functions/lockf.texi: Likewise.
12590         * doc/posix-functions/mkstemp.texi: Likewise.
12591         * doc/posix-functions/mmap.texi: Likewise.
12592         * doc/posix-functions/nftw.texi: Likewise.
12593         * doc/posix-functions/openat.texi: Likewise.
12594         * doc/posix-functions/opendir.texi: Likewise.
12595         * doc/posix-functions/posix_fadvise.texi: Likewise.
12596         * doc/posix-functions/posix_fallocate.texi: Likewise.
12597         * doc/posix-functions/pread.texi: Likewise.
12598         * doc/posix-functions/pwrite.texi: Likewise.
12599         * doc/posix-functions/readdir.texi: Likewise.
12600         * doc/posix-functions/readdir_r.texi: Likewise.
12601         * doc/posix-functions/rewinddir.texi: Likewise.
12602         * doc/posix-functions/scandir.texi: Likewise.
12603         * doc/posix-functions/seekdir.texi: Likewise.
12604         * doc/posix-functions/setrlimit.texi: Likewise.
12605         * doc/posix-functions/statvfs.texi: Likewise.
12606         * doc/posix-functions/telldir.texi: Likewise.
12607         * doc/posix-functions/tmpfile.texi: Likewise.
12608         * doc/posix-functions/truncate.texi: Likewise.
12609         * doc/glibc-functions/fallocate.texi: Likewise.
12610         * doc/glibc-functions/fstatfs.texi: Likewise.
12611         * doc/glibc-functions/fts_children.texi: Likewise.
12612         * doc/glibc-functions/fts_read.texi: Likewise.
12613         * doc/glibc-functions/getdirentries.texi: Likewise.
12614         * doc/glibc-functions/mkostemp.texi: Likewise.
12615         * doc/glibc-functions/mkostemps.texi: Likewise.
12616         * doc/glibc-functions/mkstemps.texi: Likewise.
12617         * doc/glibc-functions/preadv.texi: Likewise.
12618         * doc/glibc-functions/pwritev.texi: Likewise.
12619         * doc/glibc-functions/sendfile.texi: Likewise.
12620         * doc/glibc-functions/statfs.texi: Likewise.
12621
12622 2011-07-24  Bruno Haible  <bruno@clisp.org>
12623
12624         doc: Fix typo.
12625         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
12626
12627 2011-07-24  Bruno Haible  <bruno@clisp.org>
12628
12629         doc: Mention fsusage.
12630         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
12631
12632 2011-07-24  Bruno Haible  <bruno@clisp.org>
12633
12634         doc: Mention new glibc headers and functions.
12635         * doc/glibc-headers/gshadow.texi: New file.
12636         * doc/glibc-functions/endsgent.texi: New file.
12637         * doc/glibc-functions/fgetsgent.texi: New file.
12638         * doc/glibc-functions/fgetsgent_r.texi: New file.
12639         * doc/glibc-functions/getsgent.texi: New file.
12640         * doc/glibc-functions/getsgent_r.texi: New file.
12641         * doc/glibc-functions/getsgnam.texi: New file.
12642         * doc/glibc-functions/getsgnam_r.texi: New file.
12643         * doc/glibc-functions/putsgent.texi: New file.
12644         * doc/glibc-functions/setsgent.texi: New file.
12645         * doc/glibc-functions/sgetsgent.texi: New file.
12646         * doc/glibc-functions/sgetsgent_r.texi: New file.
12647         * doc/glibc-functions/malloc_info.texi: New file.
12648         * doc/glibc-functions/preadv.texi: New file.
12649         * doc/glibc-functions/pwritev.texi: New file.
12650         * doc/glibc-functions/register_printf_modifier.texi: New file.
12651         * doc/glibc-functions/register_printf_specifier.texi: New file.
12652         * doc/glibc-functions/register_printf_type.texi: New file.
12653         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
12654         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
12655         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
12656         * doc/glibc-functions/pthread_getname_np.texi: New file.
12657         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
12658         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
12659         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
12660         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
12661         * doc/glibc-functions/pthread_setname_np.texi: New file.
12662         * doc/glibc-functions/pthread_sigqueue.texi: New file.
12663         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
12664         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
12665         * doc/glibc-functions/qsort_r.texi: New file.
12666         * doc/glibc-functions/quick_exit.texi: New file.
12667         * doc/glibc-functions/syncfs.texi: New file.
12668         * doc/gnulib.texi: Include them.
12669         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
12670         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
12671         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
12672         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
12673         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
12674         * doc/glibc-functions/execvpe.texi: Likewise.
12675
12676 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12677
12678         ftell: don't include <unistd.h>
12679         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
12680         guaranteed to define off_t, and the ftell module depends on the
12681         stdio module.
12682
12683         ftell: do not assume wraparound signed arithmetic
12684         * lib/ftell.c: Include <limits.h>.
12685         (ftell): Don't assume wraparound signed arithmetic.
12686
12687 2011-07-24  Bruno Haible  <bruno@clisp.org>
12688
12689         close: No longer depend on module 'fclose'.
12690         * modules/close (Depends-on): Remove fclose.
12691         * NEWS: Mention the change.
12692         Suggested by Sam Steingold <sds@gnu.org>.
12693
12694 2011-07-24  Bruno Haible  <bruno@clisp.org>
12695
12696         fsusage: Enable large volume support on AIX >= 5.2.
12697         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
12698         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
12699         instead of STAT_STATVFS.
12700         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
12701
12702         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
12703         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
12704         f_blocks field only on MacOS X.
12705
12706         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
12707         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
12708         * modules/fsusage (Depends-on): Add largefile.
12709
12710 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12711
12712         * README: Modernize discussion of signed integers.
12713         Assuming overflow wraparound is no longer safe.
12714         Mention ones' complement and signed magnitude.
12715
12716 2011-07-22  Bruno Haible  <bruno@clisp.org>
12717
12718         select tests, pselect tests: Refactor.
12719         * tests/test-select.h: New file, extracted from tests/test-select.c.
12720         (select_fn): New type.
12721         (test, do_select, do_select_nowait, do_select_wait, test_tty,
12722         test_connect_first, test_accept_first, test_pair, test_socket_pair,
12723         test_pipe): Add my_select argument.
12724         (test_function): Renamed from main. Add my_select argument.
12725         * tests/test-select.c: Move most code to tests/test-select.h. Include
12726         test-select.h.
12727         * modules/select-tests (Files): Add tests/test-select.h.
12728         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
12729         (my_select, main): New functions.
12730         * modules/pselect-tests (Files): Add tests/test-select.h,
12731         tests/macros.h, tests/signature.h.
12732         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
12733         (configure.ac): Check for <sys/wait.h>.
12734
12735 2011-07-22  Bruno Haible  <bruno@clisp.org>
12736
12737         sys_select tests: Check the signature of FD_*.
12738         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
12739         signature tests from here...
12740         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
12741         here.
12742         * modules/sys_select-tests (Files): Add tests/signature.h.
12743
12744 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12745
12746         largefile: new module, replacing large-inode
12747         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
12748         * MODULES.html.sh: Add largefile, remove large-inode.
12749         * modules/largefile, m4/largefile.m4: New files.
12750         * modules/large-inode, m4/large-inode.m4: Remove.
12751
12752         fsusage: port to MacOS X 10.7 with 4 TiB file systems
12753         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
12754         implementations that use only 32 bits to count blocks.
12755         On typical hosts with 1024-byte blocks, this fails with file
12756         systems as small as 4 TiB.  Problem reported by Herb Wartens
12757         <http://debbugs.gnu.org/9140> and this should also fix a similar
12758         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
12759
12760         large-inode: New module
12761         * MODULES.html.sh: Add it.
12762         * modules/large-inode, m4/large-inode.m4: New files.
12763
12764         extensions: Enable extensions on MacOS X 10.5 and later.
12765         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
12766
12767 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
12768
12769         file-has-acl: use acl_extended_file_nofollow if available
12770         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
12771         (acl_extended_file): New macro.
12772         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
12773         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
12774
12775 2011-07-21  Bruno Haible  <bruno@clisp.org>
12776
12777         Declare system functions in a way that works with C++.
12778         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
12779         declare fdopendir as extern "C".
12780         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
12781         declare frexpl as extern "C".
12782         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
12783         declare gai_strerror as extern "C".
12784         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
12785         programs, declare gai_strerror as extern "C".
12786         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
12787         declare getlogin_r as extern "C".
12788         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
12789         as extern "C".
12790         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
12791         declare ldexpl as extern "C".
12792         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
12793         as extern "C".
12794         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
12795         program, declare getmntinfo as extern "C".
12796         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
12797         stpncpy as extern "C".
12798         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
12799         program, declare __xpg_strerror_r as extern "C".
12800         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
12801         strndup as extern "C".
12802         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
12803         declare memset and bzero as extern "C".
12804         Reported by Sam Steingold <sds@gnu.org>.
12805
12806 2011-07-12  Jim Meyering  <meyering@redhat.com>
12807
12808         maint.mk: prohibit inclusion of "verify.h" without use
12809         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
12810
12811 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12812
12813         timer-time: A new module to check for timer_settime()
12814         * m4/timer_time.m4: Check for the posix function.
12815         * modules/timer-time: Add the new module.
12816         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
12817         Mention it.
12818
12819 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
12820             Bruno Haible  <bruno@clisp.org>
12821
12822         pthread_sigmask: assume POSIX threads if --avoid=threadlib
12823         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
12824         not defined, assume POSIX threads and look for pthread_sigmask in
12825         $LIBS, without changing $CPPFLAGS.
12826
12827 2011-07-19  Bruno Haible  <bruno@clisp.org>
12828
12829         strstr: Update cross-compilation guess.
12830         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
12831         CPUs, guess no, in view of glibc
12832         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
12833         Suggested by Eric Blake. Reported by Reuben Thomas.
12834
12835 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12836
12837         getopt-gnu: suppress core dumps from detection code
12838         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
12839         to suppress core dumps that may well occur on glibc systems.
12840         * modules/getopt-gnu: Depend on nocrash.
12841
12842 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12843
12844         pthread_sigmask: ensure usleep is declared
12845         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
12846         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
12847
12848 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12849
12850         doc: Document NonStop portability issues.
12851         * doc/posix-functions/sigaction.texi (sigaction):
12852         * doc/posix-headers/signal.texi (signal.h):
12853         Document NonStop.  See Joachim Schmitz in
12854         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
12855
12856 2011-07-15  Bruno Haible  <bruno@clisp.org>
12857
12858         ffsl, ffsll: Avoid unportable behaviour.
12859         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
12860
12861 2011-07-15  Bruno Haible  <bruno@clisp.org>
12862
12863         ffs: More tests.
12864         * tests/test-ffs.c (NBITS): New macro.
12865         (main): Add more tests.
12866         * tests/test-ffsl.c (NBITS): New macro.
12867         (main): Add more tests.
12868         * tests/test-ffsll.c (NBITS): New macro.
12869         (main): Add more tests.
12870
12871 2011-07-15  Eric Blake  <eblake@redhat.com>
12872
12873         ffsl, ffsll: new modules
12874         * modules/ffsl: New file.
12875         * modules/ffsll: Likewise.
12876         * m4/ffsl.m4: Likewise.
12877         * m4/ffsll.m4: Likewise.
12878         * lib/ffsl.c: Likewise.
12879         * lib/ffsl.h: Likewise.
12880         * lib/ffsll.c: Likewise.
12881         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
12882         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
12883         * modules/string (Makefile.am): Substitute witnesses.
12884         * lib/strings.in.h (ffsl, ffsll): Declare.
12885         * modules/ffsl-tests: New test file.
12886         * modules/ffsll-tests: Likewise.
12887         * tests/test-ffsl.c: Likewise.
12888         * tests/test-ffsll.c: Likewise.
12889         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12890         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
12891         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
12892
12893         ffs: fix m4 prerequisite
12894         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
12895
12896         ffs: avoid undefined behavior
12897         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
12898         * tests/test-ffs.c (naive, main): Avoid signed shifts.
12899         Reported by Bruno Haible.
12900
12901 2011-07-12  Bruno Haible  <bruno@clisp.org>
12902
12903         pthread_sigmask: Rely on module 'threadlib'.
12904         * modules/pthread_sigmask (Depends-on): Add threadlib.
12905         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
12906         is defined.
12907
12908 2011-07-12  Bruno Haible  <bruno@clisp.org>
12909
12910         regex: Depend on module 'strcase'.
12911         * modules/regex (Depends-on): Add strcase, for strcasecmp().
12912
12913 2011-07-12  Jim Meyering  <meyering@redhat.com>
12914
12915         warn-on-use: fix typo in file name
12916         * modules/snippet/warn-on-use (Files): Correct file name:
12917         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
12918
12919 2011-07-12  Bruno Haible  <bruno@clisp.org>
12920
12921         strings: Document module.
12922         * doc/posix-headers/strings.texi: Mention module 'strings'.
12923
12924 2011-07-12  Bruno Haible  <bruno@clisp.org>
12925
12926         Rename module '_Noreturn' to 'snippet/_Noreturn'.
12927         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
12928         (Files, Makefile.am): Update.
12929         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
12930         * modules/stdlib (Depends-on): Update.
12931
12932 2011-07-12  Bruno Haible  <bruno@clisp.org>
12933
12934         * NEWS: Mention the changes.
12935
12936         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
12937         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
12938         (Files, Makefile.am): Update.
12939         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
12940         * modules/arpa_inet (Depends-on): Update.
12941         * modules/ctype (Depends-on): Update.
12942         * modules/dirent (Depends-on): Update.
12943         * modules/fcntl-h (Depends-on): Update.
12944         * modules/glob (Depends-on): Update.
12945         * modules/iconv-h (Depends-on): Update.
12946         * modules/inttypes-incomplete (Depends-on): Update.
12947         * modules/langinfo (Depends-on): Update.
12948         * modules/locale (Depends-on): Update.
12949         * modules/math (Depends-on): Update.
12950         * modules/netdb (Depends-on): Update.
12951         * modules/poll-h (Depends-on): Update.
12952         * modules/pty (Depends-on): Update.
12953         * modules/search (Depends-on): Update.
12954         * modules/signal (Depends-on): Update.
12955         * modules/spawn (Depends-on): Update.
12956         * modules/stdio (Depends-on): Update.
12957         * modules/stdlib (Depends-on): Update.
12958         * modules/string (Depends-on): Update.
12959         * modules/strings (Depends-on): Update.
12960         * modules/sys_file (Depends-on): Update.
12961         * modules/sys_ioctl (Depends-on): Update.
12962         * modules/sys_select (Depends-on): Update.
12963         * modules/sys_socket (Depends-on): Update.
12964         * modules/sys_stat (Depends-on): Update.
12965         * modules/sys_time (Depends-on): Update.
12966         * modules/sys_times (Depends-on): Update.
12967         * modules/sys_utsname (Depends-on): Update.
12968         * modules/sys_wait (Depends-on): Update.
12969         * modules/termios (Depends-on): Update.
12970         * modules/time (Depends-on): Update.
12971         * modules/unistd (Depends-on): Update.
12972         * modules/wchar (Depends-on): Update.
12973         * modules/wctype-h (Depends-on): Update.
12974         * MODULES.html.sh (Support for building libraries and executables):
12975         Update.
12976
12977         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
12978         * modules/snippet/unused-parameter: Renamed from
12979         modules/unused-parameter.
12980         (Files, Makefile.am): Update.
12981         * build-aux/snippet/unused-parameter.h: Renamed from
12982         build-aux/unused-parameter.h.
12983         * modules/selinux-h (Depends-on): Update.
12984         * modules/unistr/base (Depends-on): Update.
12985         * MODULES.html.sh (Core language properties): Update.
12986
12987         Rename module 'link-warning' to 'snippet/link-warning'.
12988         * modules/snippet/link-warning: Renamed from modules/link-warning.
12989         (Files, Makefile.am): Update.
12990         * build-aux/snippet/link-warning.h: Renamed from
12991         build-aux/link-warning.h.
12992         * MODULES.html.sh (Support for building libraries and executables):
12993         Update.
12994
12995         Rename module 'c++defs' to 'snippet/c++defs'.
12996         * modules/snippet/c++defs: Renamed from modules/c++defs.
12997         (Files, Makefile.am): Update.
12998         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
12999         * modules/arpa_inet (Depends-on): Update.
13000         * modules/ctype (Depends-on): Update.
13001         * modules/dirent (Depends-on): Update.
13002         * modules/fcntl-h (Depends-on): Update.
13003         * modules/glob (Depends-on): Update.
13004         * modules/iconv-h (Depends-on): Update.
13005         * modules/langinfo (Depends-on): Update.
13006         * modules/locale (Depends-on): Update.
13007         * modules/math (Depends-on): Update.
13008         * modules/netdb (Depends-on): Update.
13009         * modules/poll-h (Depends-on): Update.
13010         * modules/pty (Depends-on): Update.
13011         * modules/search (Depends-on): Update.
13012         * modules/signal (Depends-on): Update.
13013         * modules/spawn (Depends-on): Update.
13014         * modules/stdio (Depends-on): Update.
13015         * modules/stdlib (Depends-on): Update.
13016         * modules/string (Depends-on): Update.
13017         * modules/strings (Depends-on): Update.
13018         * modules/sys_ioctl (Depends-on): Update.
13019         * modules/sys_select (Depends-on): Update.
13020         * modules/sys_socket (Depends-on): Update.
13021         * modules/sys_stat (Depends-on): Update.
13022         * modules/sys_time (Depends-on): Update.
13023         * modules/sys_wait (Depends-on): Update.
13024         * modules/termios (Depends-on): Update.
13025         * modules/time (Depends-on): Update.
13026         * modules/unistd (Depends-on): Update.
13027         * modules/wchar (Depends-on): Update.
13028         * modules/wctype-h (Depends-on): Update.
13029
13030         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
13031         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
13032         (Files, Makefile.am): Update.
13033         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
13034         * modules/argv-iter (Depends-on): Update.
13035         * modules/arpa_inet (Depends-on): Update.
13036         * modules/dirent (Depends-on): Update.
13037         * modules/fcntl-h (Depends-on): Update.
13038         * modules/fnmatch (Depends-on): Update.
13039         * modules/getopt-posix (Depends-on): Update.
13040         * modules/glob (Depends-on): Update.
13041         * modules/iconv-h (Depends-on): Update.
13042         * modules/inttypes-incomplete (Depends-on): Update.
13043         * modules/locale (Depends-on): Update.
13044         * modules/math (Depends-on): Update.
13045         * modules/netdb (Depends-on): Update.
13046         * modules/search (Depends-on): Update.
13047         * modules/signal (Depends-on): Update.
13048         * modules/spawn (Depends-on): Update.
13049         * modules/stdio (Depends-on): Update.
13050         * modules/stdlib (Depends-on): Update.
13051         * modules/string (Depends-on): Update.
13052         * modules/strings (Depends-on): Update.
13053         * modules/sys_socket (Depends-on): Update.
13054         * modules/sys_stat (Depends-on): Update.
13055         * modules/sys_time (Depends-on): Update.
13056         * modules/sys_times (Depends-on): Update.
13057         * modules/sys_utsname (Depends-on): Update.
13058         * modules/time (Depends-on): Update.
13059         * modules/unistd (Depends-on): Update.
13060         * modules/wchar (Depends-on): Update.
13061         * MODULES.html.sh (Support for building libraries and executables):
13062         Update.
13063
13064 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
13065
13066         Improvements on _Noreturn and related modules.
13067
13068         modules/_Exit-tests: test _Noreturn too
13069         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
13070         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
13071         (main): Use them.
13072
13073         stdnoreturn, stdnoreturn-tests: remove modules
13074         They're not needed here and a bit premature for use elsewhere.  See
13075         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
13076         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
13077         * tests/test-stdnoreturn.c: Remove files.
13078         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
13079         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
13080         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
13081         and using noreturn.
13082         * modules/openat, modules/sigpipe-die, modules/xalloc:
13083         * modules/xmemdup0, modules/xstrtol:
13084         Remove dependency on stdnoreturn.
13085
13086         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
13087         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
13088         Reparenthesize to avoid GCC warning.
13089         Support Microsoft's syntax.
13090         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
13091
13092         _Noreturn-tests: remove module
13093         * modules/_Noreturn-tests: Remove.
13094         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
13095         * tests/test-_Noreturn.c: Remove.
13096         * tests/test-stdnoreturn.c: Merge from the old
13097         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
13098
13099 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
13100
13101         _Noreturn, stdnoreturn, and related modules.
13102
13103         * top/maint.mk: Adjust to new noreturn support.
13104         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
13105         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
13106
13107         xalloc: use stdnoreturn.h
13108         * lib/xalloc.h: Include <stdnoreturn.h>.
13109         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13110         * modules/xalloc (Depends-on): Add stdnoreturn.
13111
13112         xstrtol: use stdnoreturn.h
13113         * lib/xstrtol.h: Include <stdnoreturn.h>.
13114         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13115         * modules/xstrtol (Depends-on): Add stdnoreturn.
13116
13117         xmemdup0: use stdnoreturn.h
13118         * lib/xmemdup0.h: Include <stdnoreturn.h>.
13119         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13120         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
13121
13122         sigpipe-die: use stdnoreturn.h
13123         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
13124         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13125         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
13126
13127         openat: use stdnoreturn.h
13128         * lib/openat.h: Include <stdnoreturn.h>.
13129         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13130         * modules/openat (Depends-on): Add stdnoreturn.
13131
13132         * lib/openat-die.c (openat_save_fail): Modernize comment.
13133
13134         * lib/xalloc-die.c (xalloc_die): Modernize comment.
13135
13136         * lib/glthread/thread.h: Modernize comment.
13137
13138         obstack: use _Noreturn
13139         * lib/obstack.c (__attribute__): Remove macro.
13140         (print_and_abort): Use _Noreturn.
13141
13142         c-stack: use _Noreturn
13143         * lib/c-stack.c (die, overflow_handler, segv_handler):
13144         Use _Noreturn rather than __attribute__((noreturn)).
13145
13146         argmatch-tests, exclude_tests: use _Noreturn
13147         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
13148         Remove.
13149         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
13150
13151         stdlib: use _Noreturn
13152         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
13153         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
13154         * modules/stdlib (Depends-on): Add _Noreturn.
13155         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
13156
13157         stdnoreturn-tests: new module
13158         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
13159
13160         stdnoreturn: new module
13161         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
13162         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
13163
13164         _Noreturn-tests: new module
13165         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
13166
13167         _Noreturn: new module
13168         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
13169         New section, mentioning it.
13170         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
13171
13172         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
13173
13174 2011-07-11  Eric Blake  <eblake@redhat.com>
13175
13176         ffs: new module
13177         * modules/ffs: New file.
13178         * m4/ffs.m4: Likewise.
13179         * lib/ffs.c: Likewise.
13180         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
13181         * modules/strings (Makefile.am): Substitute witness.
13182         (Depends-on): Add c++defs.
13183         * lib/strings.in.h (ffs): Declare.
13184         * modules/ffs-tests: New test file.
13185         * tests/test-ffs.c: Test new module.
13186         * MODULES.html.sh (Integer arithmetic functions): Mention it.
13187         * doc/posix-functions/ffs.texi (ffs): Likewise.
13188
13189         regex: avoid compiler warning
13190         * lib/regex.c (includes): Include <strings.h>, for use of
13191         strcasecmp in regcomp.c.
13192         Reported by Joachim Schmitz.
13193
13194 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
13195
13196         stdint: respect system's intmax_t if INTMAX_MAX
13197         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
13198         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
13199         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
13200         long but int64_t is long long, and where we will clash with the
13201         system intmax_t if we override it.  See
13202         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
13203         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
13204         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
13205         similarly for UINTMAX_C.
13206
13207 2011-07-08  Bruno Haible  <bruno@clisp.org>
13208
13209         pthread_sigmask tests: Avoid a compiler warning.
13210         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
13211         non-zero.
13212
13213         sigprocmask tests: A better way to avoid a compiler warning.
13214         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
13215         (main): Complain if system() returns non-zero.
13216         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
13217
13218 2011-07-08  Bruno Haible  <bruno@clisp.org>
13219
13220         pthread_sigmask: Work around IRIX bug.
13221         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
13222         bug.
13223         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
13224         there may be unblocked pending signals.
13225         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
13226
13227 2011-07-08  Bruno Haible  <bruno@clisp.org>
13228
13229         pthread_sigmask: Work around Cygwin bug.
13230         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
13231         bug.
13232         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
13233         the system's pthread_sigmask function.
13234         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
13235
13236 2011-07-08  Bruno Haible  <bruno@clisp.org>
13237
13238         pthread_sigmask: Work around bug in single-threaded implementation.
13239         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
13240         FreeBSD, HP-UX, Solaris bug.
13241         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
13242         * lib/pthread_sigmask.c: Include <stddef.h>.
13243         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
13244         the system's pthread_sigmask function.
13245         * modules/pthread_sigmask (configure.ac): Invoke
13246         gl_PREREQ_PTHREAD_SIGMASK.
13247         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
13248         HP-UX, Solaris.
13249
13250 2011-07-08  Eric Blake  <eblake@redhat.com>
13251
13252         test-sigprocmask: avoid compiler warning
13253         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
13254         * tests/test-sigprocmask.c (main): Use it to silence warning.
13255         Reported by Jim Meyering.
13256
13257         test-snprintf: avoid compiler warning
13258         * tests/test-snprintf.c (main): Avoid shadowed declaration.
13259         * tests/test-vsnprintf.c (main): Likewise.
13260         Reported by Jim Meyering.
13261
13262 2011-07-08  Bruno Haible  <bruno@clisp.org>
13263
13264         Tests for module 'pthread_sigmask'.
13265         * modules/pthread_sigmask-tests: New file.
13266         * tests/test-pthread_sigmask1.c: New file, based on
13267         tests/test-sigprocmask.c.
13268         * tests/test-pthread_sigmask2.c: New file.
13269
13270 2011-07-08  Jim Meyering  <meyering@redhat.com>
13271
13272         test-getopt.h: avoid warning about an unused variable
13273         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
13274
13275 2011-07-07  Jim Meyering  <meyering@redhat.com>
13276
13277         maint: reduce list of files exempt from sc_prohibit_leading_TABs
13278         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
13279         now that it no longer contains leading TABs.
13280         Remove unused "url=FIXME" statement.
13281
13282 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
13283
13284         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
13285         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
13286         When gl_THREADLIB is not in use, assume that the POSIX sematics
13287         are desired.  This is better for Emacs, which uses POSIX semantics
13288         on GNUish and/or POSIXish platforms, and does not use threads at
13289         all otherwise.
13290
13291         pthread_sigmask: fix typo when testing for libraries
13292         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
13293         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
13294
13295 2011-07-08  Eric Blake  <eblake@redhat.com>
13296
13297         fts: introduce FTS_NOATIME
13298         * lib/fts_.h (FTS_NOATIME): New bit flag.
13299         (FTS_OPTIONMASK): Adjust.
13300         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
13301         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
13302
13303 2011-07-08  Bruno Haible  <bruno@clisp.org>
13304
13305         Tests for module 'thread'.
13306         * modules/thread-tests: New file.
13307         * tests/test-thread_self.c: New file.
13308         * tests/test-thread_create.cc: New file.
13309
13310 2011-07-08  Bruno Haible  <bruno@clisp.org>
13311
13312         thread: Avoid gcc warnings when using gl_thread_self().
13313         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
13314         'void *'.
13315         (gl_thread_self_pointer): Update.
13316
13317 2011-07-07  Bruno Haible  <bruno@clisp.org>
13318
13319         signal-c++-tests: Check declaration of pthread_sigmask.
13320         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
13321         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
13322         $(LIB_PTHREAD_SIGMASK).
13323
13324 2011-07-07  Bruno Haible  <bruno@clisp.org>
13325
13326         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
13327         * lib/signal.in.h (pthread_sigmask): Override if
13328         REPLACE_PTHREAD_SIGMASK is 1.
13329         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
13330         REPLACE_PTHREAD_SIGMASK.
13331         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
13332         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
13333         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
13334         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
13335         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
13336
13337 2011-07-07  Bruno Haible  <bruno@clisp.org>
13338
13339         pthread_sigmask: Ensure declaration in <signal.h>.
13340         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
13341         include <pthread.h>.
13342         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
13343         problem.
13344
13345 2011-07-07  Bruno Haible  <bruno@clisp.org>
13346
13347         pthread_sigmask: Document the module.
13348         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
13349
13350 2011-07-07  Bruno Haible  <bruno@clisp.org>
13351
13352         pthread_sigmask: Follow gnulib conventions.
13353         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
13354         gl_PTHREAD_SIGMASK.
13355         * modules/pthread_sigmask (configure.ac): Update.
13356
13357 2011-07-07  Bruno Haible  <bruno@clisp.org>
13358
13359         pthread_sigmask: Make declaration C++ safe.
13360         * lib/signal.in.h: In two special conditions, just do an #include_next.
13361         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
13362         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
13363         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
13364         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
13365         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
13366         not REPLACE_PTHREAD_MASK.
13367         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
13368         not REPLACE_PTHREAD_MASK.
13369         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
13370
13371 2011-07-07  Bruno Haible  <bruno@clisp.org>
13372
13373         pthread_sigmask: Fix return value.
13374         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
13375         * lib/pthread_sigmask.c: New file.
13376         * modules/pthread_sigmask (Files): Add it.
13377         (configure.ac): Invoke AC_LIBOBJ.
13378
13379 2011-07-07  Eric Blake  <eblake@redhat.com>
13380
13381         getopt: more portable argv creation
13382         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
13383         const, use char arrays rather than strings.
13384         Suggested by Paul Eggert.
13385
13386 2011-07-07  Bruno Haible  <bruno@clisp.org>
13387
13388         Tests for module 'sigprocmask'.
13389         * modules/sigprocmask-tests: New file.
13390         * tests/test-sigprocmask.c: New file.
13391
13392 2011-07-07  Bruno Haible  <bruno@clisp.org>
13393
13394         float tests: Tweak.
13395         * tests/test-float.c (main): Tweak skip message.
13396
13397 2011-07-07  Eric Blake  <eblake@redhat.com>
13398
13399         getopt: avoid compiler warning during configure
13400         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
13401         assigning string literals to non-const pointer.
13402
13403         getopt-gnu: avoid crash in glibc getopt
13404         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
13405         * tests/test-getopt.h (test_getopt): Enhance test.
13406         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13407         * doc/posix-functions/getopt.texi (getopt): Document it.
13408         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13409         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13410         Likewise.
13411
13412 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
13413
13414         getopt: handle W; without long options in getopt [BZ #12922]
13415         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
13416         but no long options are defined, just return 'W'.
13417
13418 2011-07-07  Bruno Haible  <bruno@clisp.org>
13419
13420         Avoid literal tabs.
13421         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
13422         variable containing a tab instead of a literal tab.
13423         Reported by Jim Meyering.
13424
13425 2011-07-07  Bruno Haible  <bruno@clisp.org>
13426
13427         Comments.
13428         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
13429
13430 2011-07-06  Bruno Haible  <bruno@clisp.org>
13431
13432         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
13433         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
13434         <winsock2.h>.
13435         (rpl_fd_isset, FD_ISSET): New definitions, copied from
13436         lib/sys_socket.in.h.
13437         (close, gethostname): Hide declarations from <winsock2.h>.
13438         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
13439         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
13440         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
13441         (select): Don't override if gnulib's <sys/select.h> was already
13442         included.
13443         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
13444         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
13445         setsockopt, shutdown, select): Tweak indentation.
13446
13447 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13448
13449         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
13450         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
13451         in an application that does not use the sys_select module.
13452
13453 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
13454
13455         poll: do not return 0 on timeout=-1
13456         * lib/poll.c: Loop with yield if no events occured
13457
13458 2011-07-06  Eric Blake  <eblake@redhat.com>
13459
13460         pthread_sigmask: always replace when not using pthread
13461         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
13462         replacement when using some threading other than pthread.  Fix
13463         logic bug.
13464
13465 2011-07-06  Bruno Haible  <bruno@clisp.org>
13466
13467         Comments.
13468         * m4/printf.m4: Update comments about mingw.
13469
13470 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13471
13472         sys_select: define sigset_t more portably
13473         * lib/sys_select.in.h: Always include <sys/types.h>, since
13474         we now need sigset_t and mingw defines it there.
13475         Include <signal.h> before split inclusion guard, to avoid
13476         mishaps on Solaris, whose <signal.h> eventually includes us.
13477         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
13478         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
13479         which come from ...
13480         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
13481         gl_CHECK_TYPE_SIGSET_T.
13482         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
13483         does the real work.
13484         * modules/sys_select (Depends-on): Add 'signal'.
13485
13486         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
13487         Suggested by Bruno Haible.
13488
13489         pselect: Use pthread_sigmask, not sigprocmask.
13490         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
13491         multithreaded apps better than sigprocmask does.
13492         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
13493         sigprocmask directly.
13494
13495 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
13496
13497         * lib/pselect.c (pselect): Use plain name, without "rpl_".
13498         Don't #undef,  since we don't need any underlying pselect.
13499         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
13500         (Depends-on): Add select.
13501         (Link): Add $(LIBSOCKET).
13502         These changes suggested by Bruno Haible.
13503
13504         pselect: document better
13505         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
13506         * doc/posix-functions/pselect.texi (pselect): Document new module.
13507
13508         pthread_sigmask: new module
13509         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
13510         * doc/posix-functions/pthread_sigmask.texi: Document new module.
13511         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
13512         This is done only as a macro; I don't know how well that'll
13513         work for C++.  Move <sys/types.h> include before the include_next,
13514         to avoid mishap on Solaris.
13515         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
13516         * modules/signal (Makefile.am): Substitute the check's results.
13517         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
13518
13519         test-pselect: new module
13520         * modules/pselect-tests, tests/test-pselect.c: New files.
13521         * tests/test-select.c, tests/test-sys_select-c++.cc:
13522         If TEST_PSELECT is defined, test pselect instead of testing select.
13523
13524         * tests/test-sys_select.c (sigset_t): Test for it, too.
13525         Suggested by Bruno Haible.
13526
13527 2011-07-05  Eric Blake  <eblake@redhat.com>
13528
13529         snprintf: guarantee %1$d, for libintl
13530         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
13531         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
13532         * doc/posix-functions/snprintf.texi (snprintf): Update.
13533         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13534         * tests/test-snprintf.c (main): Enhance test.
13535         * tests/test-vsnprintf.c (main): Likewise.
13536
13537 2011-07-05  Jim Meyering  <meyering@redhat.com>
13538
13539         maint: exempt stdio-read.c and stdio-write.c from the cppi check
13540         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
13541         per Bruno's request, to accommodate this idiom (no space after "#")
13542         even when the function is inside an #if block:
13543         char *
13544         gets (char *s)
13545         #undef gets
13546         {
13547           ...
13548         }
13549
13550 2011-07-04  Jim Meyering  <meyering@redhat.com>
13551
13552         maint: indent with spaces, not TABs, and add a rule to check this
13553         * tests/test-userspec.c: Indent with spaces, not TABs.
13554         * tests/test-argp.c: Likewise.
13555         * tests/test-c-stack2.sh: Likewise.
13556         * tests/test-parse-duration.sh: Likewise
13557         * m4/strtod.m4: Likewise.
13558         * m4/alloca.m4: Likewise.
13559         * m4/pselect.m4: Likewise.
13560         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
13561
13562 2011-07-03  Jim Meyering  <meyering@redhat.com>
13563
13564         maint.mk: correct omissions in prohibit_argmatch_without_use check
13565         This rule would mistakenly report that argmatch.h is included without
13566         use even when both the argmatch and invalid_arg macro were used.
13567         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
13568         of argmatch and invalid_arg.
13569
13570 2011-07-03  Bruno Haible  <bruno@clisp.org>
13571
13572         Comments about EINTR.
13573         * lib/safe-read.h: Explain the purpose of this module.
13574         * lib/safe-write.h: Likewise.
13575         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
13576         module.
13577         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
13578         module.
13579         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13580
13581 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
13582
13583         xnanosleep: Rewrite to use new dtotimespec module.
13584         It has the conversion code that used to be in xnanosleep.
13585         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
13586         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
13587         (TIME_T_MAX): Remove.
13588         (xnanosleep): Rewrite in terms of dtotimespec.
13589         * modules/xnanosleep (Depends-on): Add dtotimespec.
13590         Remove intprops, stdbool.
13591
13592         timespec-add, timespec-sub: new modules
13593         * lib/timespec.h (timespec_add, timespec_sub): New decls.
13594         * lib/timespec-add.c, lib/timespec-sub.c:
13595         * modules/timespec-add, modules/timespec-sub: New files.
13596
13597         dtotimespec: new module
13598         * lib/timespec.h (dtotimespec): New decl.
13599         * lib/dtotimespec.c, modules/dtotimespec: New files.
13600
13601         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
13602
13603         pselect: new module
13604         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
13605         (pselect): New decls.
13606         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
13607         since the standard pselect decl uses 'restrict'.
13608         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
13609         HAVE_PSELECT, REPLACE_PSELECT.
13610         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
13611         HAVE_PSELECT, REPLACE_PSELECT.
13612         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
13613
13614         sys_select: don't depend on sys_socket
13615         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
13616         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
13617         This fix works on GNU and GNU-like platforms, but has not been tested
13618         on native Windows.
13619         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
13620         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
13621         gl_HEADER_SYS_SOCKET.
13622         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
13623         gl_PREREQ_SYS_H_WINSOCK2.
13624
13625 2011-06-29  Eric Blake  <eblake@redhat.com>
13626
13627         pipe2: fix C89 compile problem
13628         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
13629         Reported by Bruno Haible.
13630
13631         pipe, pipe2: don't corrupt fd on error
13632         * lib/pipe.c (pipe): Leave fd unchanged on error.
13633         * lib/pipe2.c (pipe2): Likewise.
13634         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
13635         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
13636
13637 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
13638
13639         mmap-anon: do not use regular expressions inadvertently
13640         * m4/mmap-anon.m4: Remove trailing period from strings sought
13641         in the output.
13642
13643 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
13644
13645         nanosleep: fix integer overflow problem
13646         * lib/nanosleep.c (my_usleep): Don't assume signed integer
13647         arithmetic wraps around on overflow.
13648
13649         nanosleep: simplify carrying
13650         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
13651         first call to the underyling nanosleep, not for the last one.
13652         This doesn't fix any bugs, but it simplifies the computation of
13653         the remaining delay.  Found while auditing integer overflow issues.
13654
13655         dup2: remove test for existence of fcntl
13656         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
13657         "#if HAVE_FCNTL", in the configure-time test program.
13658         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
13659         and therefore speeds up "configure" a bit.  Found while
13660         adding the dup2 module to Emacs.
13661
13662 2011-06-24  Eric Blake  <eblake@redhat.com>
13663
13664         maint.mk: enhance useless header checks
13665         * top/maint.mk (_sc_header_without_use): Check both include
13666         styles.
13667         (sc_prohibit_assert_without_use)
13668         (sc_prohibit_close_stream_without_use)
13669         (sc_prohibit_getopt_without_use)
13670         (sc_prohibit_quotearg_without_use)
13671         (sc_prohibit_quote_without_use)
13672         (sc_prohibit_long_options_without_use)
13673         (sc_prohibit_inttostr_without_use)
13674         (sc_prohibit_ignore_value_without_use)
13675         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
13676         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
13677         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
13678         (sc_prohibit_hash_pjw_without_use)
13679         (sc_prohibit_safe_read_without_use)
13680         (sc_prohibit_argmatch_without_use)
13681         (sc_prohibit_canonicalize_without_use)
13682         (sc_prohibit_root_dev_ino_without_use)
13683         (sc_prohibit_openat_without_use)
13684         (sc_prohibit_c_ctype_without_use)
13685         (sc_prohibit_signal_without_use)
13686         (sc_prohibit_stdio--_without_use)
13687         (sc_prohibit_stdio-safer_without_use)
13688         (sc_prohibit_strings_without_use)
13689         (sc_prohibit_intprops_without_use)
13690         (sc_prohibit_stddef_without_use)
13691         (sc_prohibit_xfreopen_without_use): Update clients.
13692
13693 2011-06-24  Jim Meyering  <meyering@redhat.com>
13694
13695         syntax-check: keep one maint.mk rule in sync with its header
13696         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
13697         of the bug Eric has just fixed, with today's commit 25e4c2ec.
13698         I prefer to avoid temporary files here, so use <(...), but that
13699         is not supported by /bin/sh, so...
13700         (SHELL): Define to /bin/bash.
13701
13702 2011-06-24  Eric Blake  <eblake@redhat.com>
13703
13704         maint.mk: update sc_prohibit_intprops_without_use
13705         * top/maint.mk (_intprops_names): Match recent changes.
13706
13707 2011-06-24  Bruno Haible  <bruno@clisp.org>
13708
13709         strerror-override: No-op tweak.
13710         * lib/strerror-override.h (strerror_override): Reorder conditions,
13711         for consistency with lib/strerror-override.c.
13712
13713 2011-06-23  Eric Blake  <eblake@redhat.com>
13714
13715         maint.mk: test further PATH_MAX issues
13716         * top/maint.mk (sc_prohibit_path_max_array): Rename...
13717         (sc_prohibit_path_max_allocation): ...and also test alloca.
13718         Suggested by Jim Meyering.
13719
13720 2011-06-22  Eric Blake  <eblake@redhat.com>
13721
13722         maint.mk: add syntax-check to avoid char[PATH_MAX]
13723         * top/maint.mk (sc_prohibit_path_max_array): New rule.
13724
13725         stat: be robust to PATH_MAX definition
13726         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
13727         * modules/stat (Depends-on): Add verify.
13728
13729         link: work around IRIX bug
13730         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
13731         * lib/link.c (rpl_link): Work around it.
13732         * tests/test-link.h (test_link): Enhance test.
13733         * doc/posix-functions/link.texi (link): Document the bug.
13734
13735         getopt: silence clang warning
13736         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
13737         dereference.
13738         Reported by Gustavo Martin Domato.
13739
13740 2011-06-22  Jim Meyering  <meyering@redhat.com>
13741
13742         bootstrap: do not insert a blank line into each .gitignore file
13743         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
13744
13745 2011-06-21  Eric Blake  <eblake@redhat.com>
13746
13747         perror: test for output mismatch
13748         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
13749         perror on IRIX.
13750
13751         strerror_r: fix OpenBSD behavior on out-of-range
13752         * lib/strerror_r.c (strerror_r): Always use maximal string.
13753         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13754
13755         strerror_r: fix OpenBSD behavior on 0
13756         * lib/strerror-override.c (strerror_override): Also override 0
13757         when needed.
13758         * lib/strerror-override.h (strerror_override): Likewise.
13759         * lib/strerror.c (strerror): Simplify, now that 0 override is done
13760         earlier.
13761         * lib/strerror_r.c (strerror_r): Likewise.
13762         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
13763         behavior...
13764         (gl_FUNC_STRERROR_0): ...into new macro.
13765         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
13766         is overridden.
13767         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
13768         * modules/strerror-override (Files): Add strerror.m4.
13769         (configure.ac): Also provide override for 0 when needed.
13770         * doc/posix-functions/strerror.texi (strerror): Document this.
13771         * doc/posix-functions/perror.texi (perror): Likewise.
13772
13773         perror: adjust array size
13774         * modules/perror (Depends-on): Add strerror-override.
13775         * lib/perror.c (perror): Use it to avoid magic number.
13776
13777         strerror-override: reduce size
13778         * lib/strerror-override.c (strerror_override): Use fewer lines.
13779
13780 2011-06-20  Bruno Haible  <bruno@clisp.org>
13781
13782         pathmax: Ensure correct value for PATH_MAX on HP-UX.
13783         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
13784
13785 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13786
13787         alloca: port to compilers that can optimize like GCC 4.6.0
13788         * lib/alloca.c (find_stack_direction): New signature, taken from
13789         Autoconf git.  This works with GCC 4.6.0.  This code should never
13790         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
13791         be used with other compilers that optimize as well as GCC 4.6.0 does.
13792         (alloca): Adjust to new signature.
13793         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
13794         New macro, which patches Autoconf in a similar way.
13795
13796         c-stack: stop worrying about stack direction
13797         * lib/c-stack.c (find_stack_direction): Remove.
13798         (segv_handler): Don't worry about stack direction growth, as it's
13799         too much of a pain to configure this correctly, given how compilers
13800         are optimizing-away our stack-growth detection code.  Instead, assume
13801         that any access to just before or just after the stack is OK.
13802         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
13803         Don't require AC_FUNC_ALLOCA; no longer needed.
13804
13805 2011-06-20  Eric Blake  <eblake@redhat.com>
13806
13807         test-stat: don't allocate PATH_MAX bytes
13808         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
13809         PATH_MAX-sized buffer.
13810         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
13811         * modules/stat-tests (Depends-on): Likewise.
13812         * tests/test-fstatat.c (includes): Drop pathmax.h.
13813         * tests/test-stat.c (includes): Likewise.
13814         Reported by Bruno Haible.
13815
13816 2011-06-20  Bruno Haible  <bruno@clisp.org>
13817
13818         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
13819         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
13820         * lib/float.c: New file.
13821         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
13822         REPLACE_FLOAT_LDBL.
13823         * modules/float (Files): Add lib/float.c.
13824         (configure.ac): Invoke AC_LIBOBJ.
13825         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
13826
13827 2011-06-20  Bruno Haible  <bruno@clisp.org>
13828
13829         Tests for module 'float'.
13830         * modules/float-tests: New file.
13831         * tests/test-float.c: New file.
13832
13833 2011-06-19  Bruno Haible  <bruno@clisp.org>
13834
13835         isinf: Coding style.
13836         * lib/isinf.c: Use GNU coding style.
13837
13838 2011-06-19  Bruno Haible  <bruno@clisp.org>
13839
13840         linkat test: Avoid test failure on AIX 7.1.
13841         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
13842         * tests/test-link.h (test_link): Likewise.
13843
13844 2011-06-19  Bruno Haible  <bruno@clisp.org>
13845
13846         pread test: Avoid test failure on OpenBSD 4.9.
13847         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
13848
13849 2011-06-19  Bruno Haible  <bruno@clisp.org>
13850
13851         sprintf-posix: Fix test failure on AIX 7.1.
13852         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
13853         * doc/posix-functions/dprintf.texi: Mention limited precision problem
13854         on AIX.
13855         * doc/posix-functions/fprintf.texi: Likewise.
13856         * doc/posix-functions/printf.texi: Likewise.
13857         * doc/posix-functions/snprintf.texi: Likewise.
13858         * doc/posix-functions/sprintf.texi: Likewise.
13859         * doc/posix-functions/vdprintf.texi: Likewise.
13860         * doc/posix-functions/vfprintf.texi: Likewise.
13861         * doc/posix-functions/vprintf.texi: Likewise.
13862         * doc/posix-functions/vsnprintf.texi: Likewise.
13863         * doc/posix-functions/vsprintf.texi: Likewise.
13864
13865 2011-06-19  Bruno Haible  <bruno@clisp.org>
13866
13867         roundl-ieee: Fix test failure on AIX 7.1.
13868         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
13869         * doc/posix-functions/roundl.texi: Mention problem with negative
13870         arguments.
13871
13872 2011-06-19  Bruno Haible  <bruno@clisp.org>
13873
13874         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13875         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
13876         * doc/posix-functions/round.texi: Mention problem with negative
13877         arguments.
13878         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
13879
13880 2011-06-19  Bruno Haible  <bruno@clisp.org>
13881
13882         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13883         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
13884         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
13885         * doc/posix-functions/roundf.texi: Mention problem with negative
13886         arguments.
13887         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
13888
13889 2011-06-19  Bruno Haible  <bruno@clisp.org>
13890
13891         ceilf-ieee: Work around bug on MacOS X 10.5.
13892         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
13893
13894         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
13895         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
13896         IEEE compliant, avoid compiler optimizations.
13897         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
13898         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13899         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
13900         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13901         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13902         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13903         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13904         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13905         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13906         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13907
13908 2011-06-19  Bruno Haible  <bruno@clisp.org>
13909
13910         ceilf-ieee: Work around bug on AIX 7.1.
13911         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
13912         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
13913
13914 2011-06-19  Bruno Haible  <bruno@clisp.org>
13915
13916         ceil-ieee: Work around bug on AIX 7.1.
13917         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
13918         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
13919
13920 2011-06-18  Bruno Haible  <bruno@clisp.org>
13921
13922         fsync test: Avoid test failure on MacOS X and AIX.
13923         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
13924         EINVAL.
13925
13926 2011-06-18  Bruno Haible  <bruno@clisp.org>
13927
13928         openat, fdopendir tests: Fix link errors.
13929         * modules/openat-tests (Depends-on): Add progname.
13930         * modules/fdopendir-tests (Depends-on): Likewise.
13931         * tests/test-fchownat.c: Include progname.h.
13932         (main): Call set_program_name.
13933         * tests/test-fstatat.c: Include progname.h.
13934         (main): Call set_program_name.
13935         * tests/test-mkdirat.c: Include progname.h.
13936         (main): Call set_program_name.
13937         * tests/test-openat.c: Include progname.h.
13938         (main): Call set_program_name.
13939         * tests/test-unlinkat.c: Include progname.h.
13940         (main): Call set_program_name.
13941         * tests/test-fdopendir.c: Include progname.h.
13942         (main): Call set_program_name.
13943
13944 2011-06-18  Bruno Haible  <bruno@clisp.org>
13945
13946         Doc update.
13947         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
13948         HP-UX.
13949         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
13950
13951 2011-06-18  Bruno Haible  <bruno@clisp.org>
13952
13953         getcwd tests: Avoid compilation error on HP-UX 11.31.
13954         * modules/getcwd-tests (Depends-on): Add pathmax.
13955         * tests/test-getcwd.c: Include pathmax.h.
13956
13957 2011-06-18  Bruno Haible  <bruno@clisp.org>
13958
13959         isfinite, isinf: Fix link error on AIX 6 and 7.
13960         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
13961         needed, also test the macro with a 'float' argument.
13962         * m4/isinf.m4 (gl_ISINF): Likewise.
13963
13964 2011-06-18  Bruno Haible  <bruno@clisp.org>
13965
13966         getloadavg: Don't clobber LIBS. Regression from previous commit.
13967         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
13968         AC_CHECK_LIB from here...
13969         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
13970         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
13971         gl_func_getloadavg_done.
13972         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13973
13974 2011-06-18  Bruno Haible  <bruno@clisp.org>
13975
13976         clean-temp: Improve documentation.
13977         * lib/clean-temp.h: Explain better how to use this module.
13978         Reported by John Darrington <john@darrington.wattle.id.au>.
13979
13980 2011-06-17  Bruno Haible  <bruno@clisp.org>
13981
13982         pread, pwrite: Avoid cc warning on AIX.
13983         * lib/unistd.in.h (pread): Undefine before defining as a macro.
13984         (pwrite): Likewise.
13985
13986 2011-06-17  Bruno Haible  <bruno@clisp.org>
13987
13988         spawn-pipe tests: Fix link error.
13989         * tests/test-spawn-pipe-child.c: Undefine fprintf.
13990         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13991
13992 2011-06-17  Bruno Haible  <bruno@clisp.org>
13993
13994         Tests: Remove unnecessary dependency.
13995         * modules/canonicalize-tests (Depends-on): Remove progname.
13996         * modules/chown-tests (Depends-on): Likewise.
13997         * modules/dirname-tests (Depends-on): Likewise.
13998         * modules/fdopendir-tests (Depends-on): Likewise.
13999         * modules/fdutimensat-tests (Depends-on): Likewise.
14000         * modules/hash-tests (Depends-on): Likewise.
14001         * modules/lchown-tests (Depends-on): Likewise.
14002         * modules/linkat-tests (Depends-on): Likewise.
14003         * modules/renameat-tests (Depends-on): Likewise.
14004         * modules/spawn-pipe-tests (Depends-on): Likewise.
14005         * modules/utimensat-tests (Depends-on): Likewise.
14006
14007 2011-06-17  Bruno Haible  <bruno@clisp.org>
14008
14009         spawn-pipe tests: Fix link error.
14010         * tests/test-spawn-pipe-child.c: Undefine fflush.
14011
14012 2011-06-17  Bruno Haible  <bruno@clisp.org>
14013
14014         Fix tests link errors.
14015         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
14016         * modules/chown-tests (Makefile.am): Don't link test-chown with
14017         LIBINTL.
14018         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
14019         LIBINTL.
14020         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
14021         LIBINTL.
14022         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
14023         LIBINTL.
14024
14025 2011-06-16  Bruno Haible  <bruno@clisp.org>
14026
14027         crypto/gc-sha1: Fix recent regression.
14028         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
14029         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
14030
14031         crypto/gc-md5: Fix recent regression.
14032         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
14033
14034         crypto/gc-md4: Fix recent regression.
14035         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
14036         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
14037
14038         crypto/gc-arctwo: Fix recent regression.
14039         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
14040         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
14041
14042         crypto/gc-rijndael: Fix recent regression.
14043         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
14044         (configure.ac): Invoke AC_LIBOBJ here.
14045         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
14046         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14047
14048         crypto/gc-hmac-sha1: Fix recent regression.
14049         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
14050         (configure.ac): Invoke AC_LIBOBJ here.
14051         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
14052         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14053
14054         crypto/gc-hmac-md5: Fix recent regression.
14055         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
14056         (configure.ac): Invoke AC_LIBOBJ here.
14057         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
14058         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14059
14060         crypto/gc-des: Fix recent regression.
14061         * modules/crypto/gc-des (Files): Remove m4/des.m4.
14062         (configure.ac): Invoke AC_LIBOBJ here.
14063         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
14064         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14065
14066         crypto/gc-arcfour: Fix recent regression.
14067         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
14068         (configure.ac): Invoke AC_LIBOBJ here.
14069         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
14070         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14071
14072 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
14073
14074         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
14075         After the 2011-05-21 change, this macro requires
14076         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
14077         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
14078
14079 2011-06-16  Bruno Haible  <bruno@clisp.org>
14080
14081         fprintftime: Move AC_LIBOBJ invocations to module description.
14082         * m4/fprintftime.m4: Remove file.
14083         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
14084         (configure.ac): Remove gl_FPRINTFTIME call.
14085         (Makefile.am): Augment lib_SOURCES.
14086         Reported by Jim Meyering.
14087
14088 2011-06-16  Bruno Haible  <bruno@clisp.org>
14089
14090         tmpfile-safer: Finish 2011-05-23 commit.
14091         * m4/stdio-safer.m4: Really remove file.
14092         Reported by Jim Meyering.
14093
14094 2011-06-16  Bruno Haible  <bruno@clisp.org>
14095
14096         syntax-check: Fix typo.
14097         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
14098         printf-posix.m4.
14099         Reported by Jim Meyering.
14100
14101 2011-06-13  Jim Meyering  <meyering@redhat.com>
14102
14103         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
14104         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
14105
14106 2011-05-23  Bruno Haible  <bruno@clisp.org>
14107
14108         yesno: Move AC_LIBOBJ invocations to module description.
14109         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
14110         * modules/yesno (Makefile.am): Augment lib_SOURCES.
14111
14112 2011-05-23  Bruno Haible  <bruno@clisp.org>
14113
14114         xstrtol: Move AC_LIBOBJ invocations to module description.
14115         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
14116         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
14117
14118 2011-05-23  Bruno Haible  <bruno@clisp.org>
14119
14120         xstrtold: Move AC_LIBOBJ invocations to module description.
14121         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
14122         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
14123
14124 2011-05-23  Bruno Haible  <bruno@clisp.org>
14125
14126         xstrtod: Move AC_LIBOBJ invocations to module description.
14127         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
14128         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
14129
14130 2011-05-23  Bruno Haible  <bruno@clisp.org>
14131
14132         xnanosleep: Move AC_LIBOBJ invocations to module description.
14133         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
14134         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
14135
14136 2011-05-23  Bruno Haible  <bruno@clisp.org>
14137
14138         xgetcwd: Move AC_LIBOBJ invocations to module description.
14139         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
14140         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
14141
14142 2011-05-23  Bruno Haible  <bruno@clisp.org>
14143
14144         xalloc: Move AC_LIBOBJ invocations to module description.
14145         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
14146         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
14147
14148 2011-05-23  Bruno Haible  <bruno@clisp.org>
14149
14150         write-any-file: Move AC_LIBOBJ invocations to module description.
14151         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
14152         invocation.
14153         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
14154
14155 2011-05-23  Bruno Haible  <bruno@clisp.org>
14156
14157         utimens: Move AC_LIBOBJ invocations to module description.
14158         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
14159         * modules/utimens (Makefile.am): Augment lib_SOURCES.
14160
14161 2011-05-23  Bruno Haible  <bruno@clisp.org>
14162
14163         utimecmp: Move AC_LIBOBJ invocations to module description.
14164         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
14165         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
14166
14167 2011-05-23  Bruno Haible  <bruno@clisp.org>
14168
14169         userspec: Move AC_LIBOBJ invocations to module description.
14170         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
14171         * modules/userspec (Makefile.am): Augment lib_SOURCES.
14172
14173 2011-05-23  Bruno Haible  <bruno@clisp.org>
14174
14175         unlinkdir: Move AC_LIBOBJ invocations to module description.
14176         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
14177         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
14178
14179 2011-05-23  Bruno Haible  <bruno@clisp.org>
14180
14181         unistd-safer: Move AC_LIBOBJ invocations to module description.
14182         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
14183         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
14184
14185 2011-05-23  Bruno Haible  <bruno@clisp.org>
14186
14187         tempname: Move AC_LIBOBJ invocations to module description.
14188         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
14189         * modules/tempname (Makefile.am): Augment lib_SOURCES.
14190
14191 2011-05-23  Bruno Haible  <bruno@clisp.org>
14192
14193         strftime: Move AC_LIBOBJ invocations to module description.
14194         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
14195         * modules/strftime (Makefile.am): Augment lib_SOURCES.
14196
14197 2011-05-23  Bruno Haible  <bruno@clisp.org>
14198
14199         stdlib-safer: Move AC_LIBOBJ invocations to module description.
14200         * m4/stdlib-safer.m4: Remove file.
14201         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
14202         (configure.ac): Remove gl_STDLIB_SAFER call.
14203         (Makefile.am): Augment lib_SOURCES.
14204
14205 2011-05-23  Bruno Haible  <bruno@clisp.org>
14206
14207         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
14208         * m4/stdio-safer.m4: Remove file.
14209         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
14210         (configure.ac): Remove gl_TMPFILE_SAFER call.
14211         (Makefile.am): Augment lib_SOURCES.
14212
14213 2011-05-23  Bruno Haible  <bruno@clisp.org>
14214
14215         popen-safer: Move AC_LIBOBJ invocations to module description.
14216         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
14217         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
14218         (configure.ac): Remove gl_POPEN_SAFER call.
14219         (Makefile.am): Augment lib_SOURCES.
14220
14221 2011-05-23  Bruno Haible  <bruno@clisp.org>
14222
14223         freopen-safer: Move AC_LIBOBJ invocations to module description.
14224         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
14225         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
14226         (configure.ac): Remove gl_FREOPEN_SAFER call.
14227         (Makefile.am): Augment lib_SOURCES.
14228
14229 2011-05-23  Bruno Haible  <bruno@clisp.org>
14230
14231         fopen-safer: Move AC_LIBOBJ invocations to module description.
14232         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
14233         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
14234         (configure.ac): Remove gl_FOPEN_SAFER call.
14235         (Makefile.am): Augment lib_SOURCES.
14236
14237 2011-05-23  Bruno Haible  <bruno@clisp.org>
14238
14239         crypto/sha512: Move AC_LIBOBJ invocations to module description.
14240         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
14241         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
14242
14243 2011-05-23  Bruno Haible  <bruno@clisp.org>
14244
14245         crypto/sha256: Move AC_LIBOBJ invocations to module description.
14246         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
14247         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
14248
14249 2011-05-23  Bruno Haible  <bruno@clisp.org>
14250
14251         crypto/sha1: Move AC_LIBOBJ invocations to module description.
14252         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
14253         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
14254
14255 2011-05-23  Bruno Haible  <bruno@clisp.org>
14256
14257         settime: Move AC_LIBOBJ invocations to module description.
14258         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
14259         * modules/settime (Makefile.am): Augment lib_SOURCES.
14260
14261 2011-05-23  Bruno Haible  <bruno@clisp.org>
14262
14263         savedir: Move AC_LIBOBJ invocations to module description.
14264         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
14265         * modules/savedir (Makefile.am): Augment lib_SOURCES.
14266
14267 2011-05-23  Bruno Haible  <bruno@clisp.org>
14268
14269         save-cwd: Move AC_LIBOBJ invocations to module description.
14270         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
14271         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
14272
14273 2011-05-23  Bruno Haible  <bruno@clisp.org>
14274
14275         same: Move AC_LIBOBJ invocations to module description.
14276         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
14277         * modules/same (Makefile.am): Augment lib_SOURCES.
14278
14279 2011-05-23  Bruno Haible  <bruno@clisp.org>
14280
14281         safe-write: Move AC_LIBOBJ invocations to module description.
14282         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
14283         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
14284         instead of gl_SAFE_WRITE.
14285         (Makefile.am): Augment lib_SOURCES.
14286
14287 2011-05-23  Bruno Haible  <bruno@clisp.org>
14288
14289         safe-read: Move AC_LIBOBJ invocations to module description.
14290         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
14291         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
14292         of gl_SAFE_READ.
14293         (Makefile.am): Augment lib_SOURCES.
14294
14295 2011-05-23  Bruno Haible  <bruno@clisp.org>
14296
14297         safe-alloc: Move AC_LIBOBJ invocations to module description.
14298         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
14299         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
14300
14301 2011-05-23  Bruno Haible  <bruno@clisp.org>
14302
14303         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
14304         * m4/rijndael.m4: Remove file.
14305         * modules/crypto/rijndael (Files): Remove it.
14306         (configure.ac): Remove gl_RIJNDAEL call.
14307         (Makefile.am): Augment lib_SOURCES.
14308
14309 2011-05-23  Bruno Haible  <bruno@clisp.org>
14310
14311         readtokens: Move AC_LIBOBJ invocations to module description.
14312         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
14313         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
14314
14315 2011-05-23  Bruno Haible  <bruno@clisp.org>
14316
14317         read-file: Move AC_LIBOBJ invocations to module description.
14318         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
14319         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
14320         of gl_FUNC_READ_FILE.
14321         (Makefile.am): Augment lib_SOURCES.
14322
14323 2011-05-23  Bruno Haible  <bruno@clisp.org>
14324
14325         quotearg: Move AC_LIBOBJ invocations to module description.
14326         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
14327         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
14328
14329 2011-05-23  Bruno Haible  <bruno@clisp.org>
14330
14331         quote: Move AC_LIBOBJ invocations to module description.
14332         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
14333         * modules/quote (Makefile.am): Augment lib_SOURCES.
14334
14335 2011-05-23  Bruno Haible  <bruno@clisp.org>
14336
14337         posixver: Move AC_LIBOBJ invocations to module description.
14338         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
14339         * modules/posixver (Makefile.am): Augment lib_SOURCES.
14340
14341 2011-05-23  Bruno Haible  <bruno@clisp.org>
14342
14343         posixtm: Move AC_LIBOBJ invocations to module description.
14344         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
14345         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
14346
14347 2011-05-23  Bruno Haible  <bruno@clisp.org>
14348
14349         physmem: Move AC_LIBOBJ invocations to module description.
14350         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
14351         * modules/physmem (Makefile.am): Augment lib_SOURCES.
14352
14353 2011-05-23  Bruno Haible  <bruno@clisp.org>
14354
14355         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
14356         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
14357         invocation.
14358         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
14359
14360 2011-05-23  Bruno Haible  <bruno@clisp.org>
14361
14362         mpsort: Move AC_LIBOBJ invocations to module description.
14363         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
14364         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
14365
14366 2011-05-23  Bruno Haible  <bruno@clisp.org>
14367
14368         modechange: Move AC_LIBOBJ invocations to module description.
14369         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
14370         * modules/modechange (Makefile.am): Augment lib_SOURCES.
14371
14372 2011-05-23  Bruno Haible  <bruno@clisp.org>
14373
14374         mkdir-p: Move AC_LIBOBJ invocations to module description.
14375         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
14376         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
14377
14378 2011-05-23  Bruno Haible  <bruno@clisp.org>
14379
14380         mkancesdirs: Move AC_LIBOBJ invocations to module description.
14381         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
14382         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
14383
14384 2011-05-23  Bruno Haible  <bruno@clisp.org>
14385
14386         mgetgroups: Move AC_LIBOBJ invocations to module description.
14387         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
14388         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
14389
14390 2011-05-23  Bruno Haible  <bruno@clisp.org>
14391
14392         memxor: Move AC_LIBOBJ invocations to module description.
14393         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
14394         * modules/memxor (Makefile.am): Augment lib_SOURCES.
14395
14396 2011-05-23  Bruno Haible  <bruno@clisp.org>
14397
14398         memcoll: Move AC_LIBOBJ invocations to module description.
14399         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
14400         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
14401
14402 2011-05-23  Bruno Haible  <bruno@clisp.org>
14403
14404         memcasecmp: Move AC_LIBOBJ invocations to module description.
14405         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
14406         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
14407
14408 2011-05-23  Bruno Haible  <bruno@clisp.org>
14409
14410         crypto/md5: Move AC_LIBOBJ invocations to module description.
14411         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
14412         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
14413
14414 2011-05-23  Bruno Haible  <bruno@clisp.org>
14415
14416         crypto/md4: Move AC_LIBOBJ invocations to module description.
14417         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
14418         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
14419
14420 2011-05-23  Bruno Haible  <bruno@clisp.org>
14421
14422         crypto/md2: Move AC_LIBOBJ invocations to module description.
14423         * m4/md2.m4: Remove file.
14424         * modules/crypto/md2 (Files): Remove it.
14425         (configure.ac): Remove gl_MD2 call.
14426         (Makefile.am): Augment lib_SOURCES.
14427
14428 2011-05-23  Bruno Haible  <bruno@clisp.org>
14429
14430         long-options: Move AC_LIBOBJ invocations to module description.
14431         * m4/long-options.m4: Remove file.
14432         * modules/long-options (Files): Remove it.
14433         (configure.ac): Remove gl_LONG_OPTIONS call.
14434         (Makefile.am): Augment lib_SOURCES.
14435
14436 2011-05-23  Bruno Haible  <bruno@clisp.org>
14437
14438         i-ring: Move AC_LIBOBJ invocations to module description.
14439         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
14440         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
14441
14442 2011-05-23  Bruno Haible  <bruno@clisp.org>
14443
14444         idcache: Move AC_LIBOBJ invocations to module description.
14445         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
14446         * modules/idcache (Makefile.am): Augment lib_SOURCES.
14447
14448 2011-05-23  Bruno Haible  <bruno@clisp.org>
14449
14450         human: Move AC_LIBOBJ invocations to module description.
14451         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
14452         * modules/human (Makefile.am): Augment lib_SOURCES.
14453
14454 2011-05-23  Bruno Haible  <bruno@clisp.org>
14455
14456         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
14457         * m4/hmac-sha1.m4: Remove file.
14458         * modules/crypto/hmac-sha1 (Files): Remove it.
14459         (configure.ac): Remove gl_HMAC_SHA1 call.
14460         (Makefile.am): Augment lib_SOURCES.
14461
14462 2011-05-23  Bruno Haible  <bruno@clisp.org>
14463
14464         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
14465         * m4/hmac-md5.m4: Remove file.
14466         * modules/crypto/hmac-md5 (Files): Remove it.
14467         (configure.ac): Remove gl_HMAC_MD5 call.
14468         (Makefile.am): Augment lib_SOURCES.
14469
14470 2011-05-23  Bruno Haible  <bruno@clisp.org>
14471
14472         hash: Move AC_LIBOBJ invocations to module description.
14473         * m4/hash.m4: Remove file.
14474         * modules/hash (Files): Remove it.
14475         (configure.ac): Remove gl_HASH call.
14476         (Makefile.am): Augment lib_SOURCES.
14477
14478 2011-05-23  Bruno Haible  <bruno@clisp.org>
14479
14480         hard-locale: Move AC_LIBOBJ invocations to module description.
14481         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
14482         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
14483
14484 2011-05-23  Bruno Haible  <bruno@clisp.org>
14485
14486         getugroups: Move AC_LIBOBJ invocations to module description.
14487         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
14488         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
14489
14490 2011-05-23  Bruno Haible  <bruno@clisp.org>
14491
14492         gettime: Move AC_LIBOBJ invocations to module description.
14493         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
14494         * modules/gettime (Makefile.am): Augment lib_SOURCES.
14495
14496 2011-05-23  Bruno Haible  <bruno@clisp.org>
14497
14498         getndelim2: Move AC_LIBOBJ invocations to module description.
14499         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
14500         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
14501
14502 2011-05-23  Bruno Haible  <bruno@clisp.org>
14503
14504         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
14505         * m4/gc-pbkdf2-sha1.m4: Remove file.
14506         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
14507         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
14508         (Makefile.am): Augment lib_SOURCES.
14509
14510 2011-05-23  Bruno Haible  <bruno@clisp.org>
14511
14512         fts: Move AC_LIBOBJ invocations to module description.
14513         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
14514         * modules/fts (configure.ac): ... to here.
14515
14516 2011-05-23  Bruno Haible  <bruno@clisp.org>
14517
14518         file-type: Move AC_LIBOBJ invocations to module description.
14519         * m4/file-type.m4: Remove file.
14520         * modules/file-type (Files): Remove it.
14521         (configure.ac): Remove gl_FILE_TYPE call.
14522         (Makefile.am): Augment lib_SOURCES.
14523
14524 2011-05-23  Bruno Haible  <bruno@clisp.org>
14525
14526         filenamecat*: Respect rules for use of AC_LIBOBJ.
14527         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
14528         Remove AC_LIBOBJ invocation.
14529         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
14530         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
14531
14532 2011-05-23  Bruno Haible  <bruno@clisp.org>
14533
14534         filemode: Move AC_LIBOBJ invocations to module description.
14535         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
14536         * modules/filemode (Makefile.am): Augment lib_SOURCES.
14537
14538 2011-05-23  Bruno Haible  <bruno@clisp.org>
14539
14540         openat-safer: Move AC_LIBOBJ invocations to module description.
14541         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
14542         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
14543
14544 2011-05-23  Bruno Haible  <bruno@clisp.org>
14545
14546         fcntl-safer: Move AC_LIBOBJ invocations to module description.
14547         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
14548         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
14549
14550 2011-05-23  Bruno Haible  <bruno@clisp.org>
14551
14552         exclude: Move AC_LIBOBJ invocations to module description.
14553         * m4/exclude.m4: Remove file.
14554         * modules/exclude (Files): Remove it.
14555         (configure.ac): Remove gl_EXCLUDE call.
14556         (Makefile.am): Augment lib_SOURCES.
14557
14558 2011-05-23  Bruno Haible  <bruno@clisp.org>
14559
14560         dirname*: Respect rules for use of AC_LIBOBJ.
14561         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
14562         invocations.
14563         * modules/dirname (Makefile.am): Augment lib_SOURCES.
14564         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
14565
14566 2011-05-23  Bruno Haible  <bruno@clisp.org>
14567
14568         dirent-safer: Move AC_LIBOBJ invocations to module description.
14569         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
14570         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
14571
14572 2011-05-23  Bruno Haible  <bruno@clisp.org>
14573
14574         crypto/des: Move AC_LIBOBJ invocations to module description.
14575         * m4/des.m4: Remove file.
14576         * modules/crypto/des (Files): Remove it.
14577         (configure.ac): Remove gl_DES call.
14578         (Makefile.am): Augment lib_SOURCES.
14579
14580 2011-05-23  Bruno Haible  <bruno@clisp.org>
14581
14582         cycle-check: Move AC_LIBOBJ invocations to module description.
14583         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
14584         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
14585
14586 2011-05-23  Bruno Haible  <bruno@clisp.org>
14587
14588         c-strtold: Move AC_LIBOBJ invocations to module description.
14589         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
14590         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
14591
14592 2011-05-23  Bruno Haible  <bruno@clisp.org>
14593
14594         c-strtod: Move AC_LIBOBJ invocations to module description.
14595         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
14596         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
14597
14598 2011-05-23  Bruno Haible  <bruno@clisp.org>
14599
14600         crc: Move AC_LIBOBJ invocations to module description.
14601         * m4/crc.m4: Remove file.
14602         * modules/crc (Files): Remove it.
14603         (configure.ac): Remove gl_CRC call.
14604         (Makefile.am): Augment lib_SOURCES.
14605
14606 2011-05-23  Bruno Haible  <bruno@clisp.org>
14607
14608         close-stream: Move AC_LIBOBJ invocations to module description.
14609         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
14610         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
14611
14612 2011-05-23  Bruno Haible  <bruno@clisp.org>
14613
14614         closeout: Move AC_LIBOBJ invocations to module description.
14615         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
14616         * modules/closeout (Makefile.am): Augment lib_SOURCES.
14617
14618 2011-05-23  Bruno Haible  <bruno@clisp.org>
14619
14620         closein: Move AC_LIBOBJ invocations to module description.
14621         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
14622         * modules/closein (Makefile.am): Augment lib_SOURCES.
14623
14624 2011-05-23  Bruno Haible  <bruno@clisp.org>
14625
14626         cloexec: Move AC_LIBOBJ invocations to module description.
14627         * m4/cloexec.m4: Remove file.
14628         * modules/cloexec (Files): Remove it.
14629         (configure.ac): Remove gl_CLOEXEC call.
14630         (Makefile.am): Augment lib_SOURCES.
14631
14632 2011-05-23  Bruno Haible  <bruno@clisp.org>
14633
14634         check-version: Move AC_LIBOBJ invocations to module description.
14635         * m4/check-version.m4: Remove file.
14636         * modules/check-version (Files): Remove it.
14637         (configure.ac): Remove gl_CHECK_VERSION call.
14638         (Makefile.am): Augment lib_SOURCES.
14639
14640 2011-05-23  Bruno Haible  <bruno@clisp.org>
14641
14642         chdir-safer: Move AC_LIBOBJ invocations to module description.
14643         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
14644         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
14645
14646 2011-05-23  Bruno Haible  <bruno@clisp.org>
14647
14648         canonicalize: Move AC_LIBOBJ invocations to module description.
14649         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
14650         AC_LIBOBJ invocation.
14651         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
14652
14653 2011-05-23  Bruno Haible  <bruno@clisp.org>
14654
14655         canon-host: Move AC_LIBOBJ invocations to module description.
14656         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
14657         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
14658         instead of gl_CANON_HOST.
14659         (Makefile.am): Augment lib_SOURCES.
14660
14661 2011-05-23  Bruno Haible  <bruno@clisp.org>
14662
14663         backupfile: Move AC_LIBOBJ invocations to module description.
14664         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
14665         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
14666
14667 2011-05-23  Bruno Haible  <bruno@clisp.org>
14668
14669         argmatch: Move AC_LIBOBJ invocations to module description.
14670         * m4/argmatch.m4: Remove file.
14671         * modules/argmatch (Files): Remove it.
14672         (configure.ac): Remove gl_ARGMATCH call.
14673         (Makefile.am): Augment lib_SOURCES.
14674
14675 2011-05-23  Bruno Haible  <bruno@clisp.org>
14676
14677         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
14678         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
14679         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
14680
14681 2011-05-23  Bruno Haible  <bruno@clisp.org>
14682
14683         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
14684         * m4/arcfour.m4: Remove file.
14685         * modules/crypto/arcfour (Files): Remove it.
14686         (configure.ac): Remove gl_ARCFOUR call.
14687         (Makefile.am): Augment lib_SOURCES.
14688
14689 2011-05-22  Bruno Haible  <bruno@clisp.org>
14690
14691         write: Move AC_LIBOBJ invocations to module description.
14692         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
14693         * modules/write (configure.ac): ... to here.
14694
14695 2011-05-22  Bruno Haible  <bruno@clisp.org>
14696
14697         wmemset: Move AC_LIBOBJ invocations to module description.
14698         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
14699         here...
14700         * modules/wmemset (configure.ac): ... to here.
14701
14702 2011-05-22  Bruno Haible  <bruno@clisp.org>
14703
14704         wmemmove: Move AC_LIBOBJ invocations to module description.
14705         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
14706         here...
14707         * modules/wmemmove (configure.ac): ... to here.
14708
14709 2011-05-22  Bruno Haible  <bruno@clisp.org>
14710
14711         wmemcpy: Move AC_LIBOBJ invocations to module description.
14712         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
14713         here...
14714         * modules/wmemcpy (configure.ac): ... to here.
14715
14716 2011-05-22  Bruno Haible  <bruno@clisp.org>
14717
14718         wmemcmp: Move AC_LIBOBJ invocations to module description.
14719         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
14720         here...
14721         * modules/wmemcmp (configure.ac): ... to here.
14722
14723 2011-05-22  Bruno Haible  <bruno@clisp.org>
14724
14725         wmemchr: Move AC_LIBOBJ invocations to module description.
14726         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
14727         here...
14728         * modules/wmemchr (configure.ac): ... to here.
14729
14730 2011-05-22  Bruno Haible  <bruno@clisp.org>
14731
14732         wcswidth: Move AC_LIBOBJ invocations to module description.
14733         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
14734         here...
14735         * modules/wcswidth (configure.ac): ... to here.
14736
14737 2011-05-22  Bruno Haible  <bruno@clisp.org>
14738
14739         wcwidth: Respect rules for use of AC_LIBOBJ.
14740         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
14741         invocation from here...
14742         * modules/wcwidth (configure.ac): ... to here.
14743         (Depends-on): Update conditions.
14744
14745 2011-05-22  Bruno Haible  <bruno@clisp.org>
14746
14747         wctype: Move AC_LIBOBJ invocations to module description.
14748         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
14749         invocation from here...
14750         * modules/wctype (configure.ac): ... to here.
14751         (Depends-on): Update conditions.
14752
14753 2011-05-22  Bruno Haible  <bruno@clisp.org>
14754
14755         wctrans: Move AC_LIBOBJ invocations to module description.
14756         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
14757         invocation from here...
14758         * modules/wctrans (configure.ac): ... to here.
14759
14760 2011-05-22  Bruno Haible  <bruno@clisp.org>
14761
14762         wctomb: Move AC_LIBOBJ invocations to module description.
14763         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
14764         invocations from here...
14765         * modules/wctomb (configure.ac): ... to here.
14766
14767 2011-05-22  Bruno Haible  <bruno@clisp.org>
14768
14769         wctob: Move AC_LIBOBJ invocations to module description.
14770         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
14771         gl_PREREQ_WCTOB invocations from here...
14772         * modules/wctob (configure.ac): ... to here.
14773         (Depends-on): Update conditions.
14774
14775 2011-05-22  Bruno Haible  <bruno@clisp.org>
14776
14777         wcsxfrm: Move AC_LIBOBJ invocations to module description.
14778         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
14779         here...
14780         * modules/wcsxfrm (configure.ac): ... to here.
14781
14782 2011-05-22  Bruno Haible  <bruno@clisp.org>
14783
14784         wcstok: Move AC_LIBOBJ invocations to module description.
14785         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
14786         * modules/wcstok (configure.ac): ... to here.
14787
14788 2011-05-22  Bruno Haible  <bruno@clisp.org>
14789
14790         wcsstr: Move AC_LIBOBJ invocations to module description.
14791         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
14792         * modules/wcsstr (configure.ac): ... to here.
14793
14794 2011-05-22  Bruno Haible  <bruno@clisp.org>
14795
14796         wcsspn: Move AC_LIBOBJ invocations to module description.
14797         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
14798         * modules/wcsspn (configure.ac): ... to here.
14799
14800 2011-05-22  Bruno Haible  <bruno@clisp.org>
14801
14802         wcsrtombs: Move AC_LIBOBJ invocations to module description.
14803         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
14804         gl_PREREQ_WCSRTOMBS invocations from here...
14805         * modules/wcsrtombs (configure.ac): ... to here.
14806
14807 2011-05-22  Bruno Haible  <bruno@clisp.org>
14808
14809         wcsrchr: Move AC_LIBOBJ invocations to module description.
14810         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
14811         here...
14812         * modules/wcsrchr (configure.ac): ... to here.
14813
14814 2011-05-22  Bruno Haible  <bruno@clisp.org>
14815
14816         wcspbrk: Move AC_LIBOBJ invocations to module description.
14817         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
14818         here...
14819         * modules/wcspbrk (configure.ac): ... to here.
14820
14821 2011-05-22  Bruno Haible  <bruno@clisp.org>
14822
14823         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
14824         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
14825         gl_PREREQ_WCSNRTOMBS invocations from here...
14826         * modules/wcsnrtombs (configure.ac): ... to here.
14827
14828 2011-05-22  Bruno Haible  <bruno@clisp.org>
14829
14830         wcsnlen: Move AC_LIBOBJ invocations to module description.
14831         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
14832         here...
14833         * modules/wcsnlen (configure.ac): ... to here.
14834
14835 2011-05-22  Bruno Haible  <bruno@clisp.org>
14836
14837         wcsncpy: Move AC_LIBOBJ invocations to module description.
14838         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
14839         here...
14840         * modules/wcsncpy (configure.ac): ... to here.
14841
14842 2011-05-22  Bruno Haible  <bruno@clisp.org>
14843
14844         wcsncmp: Move AC_LIBOBJ invocations to module description.
14845         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
14846         here...
14847         * modules/wcsncmp (configure.ac): ... to here.
14848
14849 2011-05-22  Bruno Haible  <bruno@clisp.org>
14850
14851         wcsncat: Move AC_LIBOBJ invocations to module description.
14852         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
14853         here...
14854         * modules/wcsncat (configure.ac): ... to here.
14855
14856 2011-05-22  Bruno Haible  <bruno@clisp.org>
14857
14858         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
14859         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
14860         from here...
14861         * modules/wcsncasecmp (configure.ac): ... to here.
14862
14863 2011-05-22  Bruno Haible  <bruno@clisp.org>
14864
14865         wcslen: Move AC_LIBOBJ invocations to module description.
14866         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
14867         * modules/wcslen (configure.ac): ... to here.
14868
14869 2011-05-22  Bruno Haible  <bruno@clisp.org>
14870
14871         wcsdup: Move AC_LIBOBJ invocations to module description.
14872         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
14873         * modules/wcsdup (configure.ac): ... to here.
14874
14875 2011-05-22  Bruno Haible  <bruno@clisp.org>
14876
14877         wcscspn: Move AC_LIBOBJ invocations to module description.
14878         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
14879         here...
14880         * modules/wcscspn (configure.ac): ... to here.
14881
14882 2011-05-22  Bruno Haible  <bruno@clisp.org>
14883
14884         wcscpy: Move AC_LIBOBJ invocations to module description.
14885         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
14886         * modules/wcscpy (configure.ac): ... to here.
14887
14888 2011-05-22  Bruno Haible  <bruno@clisp.org>
14889
14890         wcscoll: Move AC_LIBOBJ invocations to module description.
14891         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
14892         here...
14893         * modules/wcscoll (configure.ac): ... to here.
14894
14895 2011-05-22  Bruno Haible  <bruno@clisp.org>
14896
14897         wcscmp: Move AC_LIBOBJ invocations to module description.
14898         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
14899         * modules/wcscmp (configure.ac): ... to here.
14900
14901 2011-05-22  Bruno Haible  <bruno@clisp.org>
14902
14903         wcschr: Move AC_LIBOBJ invocations to module description.
14904         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
14905         * modules/wcschr (configure.ac): ... to here.
14906
14907 2011-05-22  Bruno Haible  <bruno@clisp.org>
14908
14909         wcscat: Move AC_LIBOBJ invocations to module description.
14910         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
14911         * modules/wcscat (configure.ac): ... to here.
14912
14913 2011-05-22  Bruno Haible  <bruno@clisp.org>
14914
14915         wcscasecmp: Move AC_LIBOBJ invocations to module description.
14916         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
14917         here...
14918         * modules/wcscasecmp (configure.ac): ... to here.
14919
14920 2011-05-22  Bruno Haible  <bruno@clisp.org>
14921
14922         wcrtomb: Move AC_LIBOBJ invocations to module description.
14923         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
14924         invocations from here...
14925         * modules/wcrtomb (configure.ac): ... to here.
14926
14927 2011-05-22  Bruno Haible  <bruno@clisp.org>
14928
14929         wcpncpy: Move AC_LIBOBJ invocations to module description.
14930         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
14931         here...
14932         * modules/wcpncpy (configure.ac): ... to here.
14933
14934 2011-05-22  Bruno Haible  <bruno@clisp.org>
14935
14936         wcpcpy: Move AC_LIBOBJ invocations to module description.
14937         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
14938         * modules/wcpcpy (configure.ac): ... to here.
14939
14940 2011-05-22  Bruno Haible  <bruno@clisp.org>
14941
14942         waitpid: Move AC_LIBOBJ invocations to module description.
14943         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
14944         invocation from here...
14945         * modules/waitpid (configure.ac): ... to here.
14946
14947 2011-05-22  Bruno Haible  <bruno@clisp.org>
14948
14949         utimensat: Move AC_LIBOBJ invocations to module description.
14950         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
14951         here...
14952         * modules/utimensat (configure.ac): ... to here.
14953
14954 2011-05-22  Bruno Haible  <bruno@clisp.org>
14955
14956         usleep: Move AC_LIBOBJ invocations to module description.
14957         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
14958         here...
14959         * modules/usleep (configure.ac): ... to here.
14960
14961 2011-05-22  Bruno Haible  <bruno@clisp.org>
14962
14963         unlockpt: Move AC_LIBOBJ invocations to module description.
14964         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
14965         gl_PREREQ_UNLOCKPT invocations from here...
14966         * modules/unlockpt (configure.ac): ... to here.
14967
14968 2011-05-22  Bruno Haible  <bruno@clisp.org>
14969
14970         unlink: Respect rules for use of AC_LIBOBJ.
14971         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
14972         * modules/unlink (configure.ac): ... to here.
14973
14974 2011-05-22  Bruno Haible  <bruno@clisp.org>
14975
14976         uname: Move AC_LIBOBJ invocations to module description.
14977         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
14978         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
14979         here...
14980         * modules/uname (configure.ac): ... to here.
14981
14982 2011-05-22  Bruno Haible  <bruno@clisp.org>
14983
14984         ttyname_r: Move AC_LIBOBJ invocations to module description.
14985         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
14986         gl_PREREQ_TTYNAME_R invocations from here...
14987         * modules/ttyname_r (configure.ac): ... to here.
14988
14989 2011-05-22  Bruno Haible  <bruno@clisp.org>
14990
14991         tsearch: Move AC_LIBOBJ invocations to module description.
14992         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
14993         invocations from here...
14994         * modules/tsearch (configure.ac): ... to here.
14995
14996 2011-05-22  Bruno Haible  <bruno@clisp.org>
14997
14998         towctrans: Move AC_LIBOBJ invocations to module description.
14999         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
15000         AC_LIBOBJ invocation from here...
15001         * modules/towctrans (configure.ac): ... to here.
15002
15003 2011-05-22  Bruno Haible  <bruno@clisp.org>
15004
15005         tmpfile: Move AC_LIBOBJ invocations to module description.
15006         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
15007         invocations from here...
15008         * modules/tmpfile (configure.ac): ... to here.
15009
15010 2011-05-22  Bruno Haible  <bruno@clisp.org>
15011
15012         times: Move AC_LIBOBJ invocations to module description.
15013         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
15014         * modules/times (configure.ac): ... to here.
15015
15016 2011-05-22  Bruno Haible  <bruno@clisp.org>
15017
15018         time_r: Move AC_LIBOBJ invocations to module description.
15019         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
15020         invocations from here...
15021         * modules/time_r (configure.ac): ... to here.
15022
15023 2011-05-22  Bruno Haible  <bruno@clisp.org>
15024
15025         timegm: Move AC_LIBOBJ invocations to module description.
15026         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
15027         invocations from here...
15028         * modules/timegm (configure.ac): ... to here.
15029
15030 2011-05-22  Bruno Haible  <bruno@clisp.org>
15031
15032         tcgetsid: Move AC_LIBOBJ invocations to module description.
15033         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
15034         and gl_PREREQ_TCGETSID invocations from here...
15035         * modules/tcgetsid (configure.ac): ... to here.
15036         (Depends-on): Update conditions.
15037
15038 2011-05-22  Bruno Haible  <bruno@clisp.org>
15039
15040         symlinkat: Move AC_LIBOBJ invocations to module description.
15041         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
15042         here...
15043         * modules/symlinkat (configure.ac): ... to here.
15044
15045 2011-05-22  Bruno Haible  <bruno@clisp.org>
15046
15047         symlink: Move AC_LIBOBJ invocations to module description.
15048         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
15049         here...
15050         * modules/symlink (configure.ac): ... to here.
15051
15052 2011-05-22  Bruno Haible  <bruno@clisp.org>
15053
15054         strverscmp: Move AC_LIBOBJ invocations to module description.
15055         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
15056         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
15057         from here...
15058         * modules/strverscmp (configure.ac): ... to here.
15059
15060 2011-05-22  Bruno Haible  <bruno@clisp.org>
15061
15062         strtok_r: Move AC_LIBOBJ invocations to module description.
15063         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
15064         and gl_PREREQ_STRTOK_R invocations from here...
15065         * modules/strtok_r (configure.ac): ... to here.
15066         (Depends-on): Update conditions.
15067
15068 2011-05-22  Bruno Haible  <bruno@clisp.org>
15069
15070         strtoumax: Move AC_LIBOBJ invocations to module description.
15071         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
15072         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
15073         from here...
15074         * modules/strtoumax (configure.ac): ... to here.
15075
15076 2011-05-22  Bruno Haible  <bruno@clisp.org>
15077
15078         strtoimax: Move AC_LIBOBJ invocations to module description.
15079         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
15080         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
15081         from here...
15082         * modules/strtoimax (configure.ac): ... to here.
15083
15084 2011-05-22  Bruno Haible  <bruno@clisp.org>
15085
15086         strtoull: Move AC_LIBOBJ invocations to module description.
15087         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
15088         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
15089         from here...
15090         * modules/strtoull (configure.ac): ... to here.
15091
15092 2011-05-22  Bruno Haible  <bruno@clisp.org>
15093
15094         strtoll: Move AC_LIBOBJ invocations to module description.
15095         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
15096         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
15097         here...
15098         * modules/strtoll (configure.ac): ... to here.
15099
15100 2011-05-22  Bruno Haible  <bruno@clisp.org>
15101
15102         strtoul: Move AC_LIBOBJ invocations to module description.
15103         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
15104         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
15105         * modules/strtoul (configure.ac): ... to here.
15106
15107 2011-05-22  Bruno Haible  <bruno@clisp.org>
15108
15109         strtol: Move AC_LIBOBJ invocations to module description.
15110         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
15111         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
15112         * modules/strtol (configure.ac): ... to here.
15113
15114 2011-05-22  Bruno Haible  <bruno@clisp.org>
15115
15116         strtod: Move AC_LIBOBJ invocations to module description.
15117         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
15118         invocations from here...
15119         * modules/strtod (configure.ac): ... to here.
15120
15121 2011-05-22  Bruno Haible  <bruno@clisp.org>
15122
15123         strstr*: Move AC_LIBOBJ invocations to module description.
15124         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
15125         invocations from here...
15126         * modules/strstr-simple (configure.ac): ... to here.
15127         * modules/strstr (configure.ac): ... and here.
15128
15129 2011-05-22  Bruno Haible  <bruno@clisp.org>
15130
15131         strsignal: Move AC_LIBOBJ invocations to module description.
15132         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
15133         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
15134         * modules/strsignal (configure.ac): ... to here.
15135         (Depends-on): Update conditions.
15136
15137 2011-05-22  Bruno Haible  <bruno@clisp.org>
15138
15139         strsep: Move AC_LIBOBJ invocations to module description.
15140         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
15141         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
15142         here...
15143         * modules/strsep (configure.ac): ... to here.
15144
15145 2011-05-22  Bruno Haible  <bruno@clisp.org>
15146
15147         strptime: Move AC_LIBOBJ invocations to module description.
15148         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
15149         gl_PREREQ_STRPTIME invocations from here...
15150         * modules/strptime (configure.ac): ... to here.
15151
15152 2011-05-22  Bruno Haible  <bruno@clisp.org>
15153
15154         strpbrk: Move AC_LIBOBJ invocations to module description.
15155         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
15156         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
15157         here...
15158         * modules/strpbrk (configure.ac): ... to here.
15159
15160 2011-05-22  Bruno Haible  <bruno@clisp.org>
15161
15162         strnlen: Move AC_LIBOBJ invocations to module description.
15163         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
15164         invocations from here...
15165         * modules/strnlen (configure.ac): ... to here.
15166
15167 2011-05-22  Bruno Haible  <bruno@clisp.org>
15168
15169         strndup: Move AC_LIBOBJ invocations to module description.
15170         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
15171         invocations from here...
15172         * modules/strndup (configure.ac): ... to here.
15173         (Depends-on): Update conditions.
15174
15175 2011-05-22  Bruno Haible  <bruno@clisp.org>
15176
15177         strncat: Move AC_LIBOBJ invocations to module description.
15178         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
15179         invocations from here...
15180         * modules/strncat (configure.ac): ... to here.
15181
15182 2011-05-22  Bruno Haible  <bruno@clisp.org>
15183
15184         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
15185         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
15186         invocations from here...
15187         * modules/strdup (configure.ac): ... to here.
15188         * modules/strdup-posix (configure.ac): ... and here.
15189
15190 2011-05-22  Bruno Haible  <bruno@clisp.org>
15191
15192         strcspn: Move AC_LIBOBJ invocations to module description.
15193         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
15194         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
15195         here...
15196         * modules/strcspn (configure.ac): ... to here.
15197
15198 2011-05-22  Bruno Haible  <bruno@clisp.org>
15199
15200         strchrnul: Move AC_LIBOBJ invocations to module description.
15201         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
15202         gl_PREREQ_STRCHRNUL invocations from here...
15203         * modules/strchrnul (configure.ac): ... to here.
15204
15205 2011-05-22  Bruno Haible  <bruno@clisp.org>
15206
15207         strcasestr*: Move AC_LIBOBJ invocations to module description.
15208         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
15209         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
15210         * modules/strcasestr-simple (configure.ac): ... to here.
15211         * modules/strcasestr (configure.ac): ... and here.
15212
15213 2011-05-22  Bruno Haible  <bruno@clisp.org>
15214
15215         strcase: Move AC_LIBOBJ invocations to module description.
15216         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
15217         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
15218         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
15219         gl_PREREQ_STRNCASECMP invocations from here...
15220         * modules/strcase (configure.ac): ... to here.
15221
15222 2011-05-22  Bruno Haible  <bruno@clisp.org>
15223
15224         stpncpy: Move AC_LIBOBJ invocations to module description.
15225         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
15226         here...
15227         * modules/stpncpy (configure.ac): ... to here.
15228
15229 2011-05-22  Bruno Haible  <bruno@clisp.org>
15230
15231         stpcpy: Move AC_LIBOBJ invocations to module description.
15232         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
15233         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
15234         here...
15235         * modules/stpcpy (configure.ac): ... to here.
15236
15237 2011-05-21  Bruno Haible  <bruno@clisp.org>
15238
15239         stat: Move AC_LIBOBJ invocations to module description.
15240         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
15241         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
15242         here...
15243         * modules/stat (configure.ac): ... to here.
15244
15245 2011-05-21  Bruno Haible  <bruno@clisp.org>
15246
15247         sleep: Move AC_LIBOBJ invocations to module description.
15248         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
15249         * modules/sleep (configure.ac): ... to here.
15250
15251 2011-05-21  Bruno Haible  <bruno@clisp.org>
15252
15253         signbit: Move AC_LIBOBJ invocations to module description.
15254         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
15255         * modules/signbit (configure.ac): ... to here.
15256
15257 2011-05-21  Bruno Haible  <bruno@clisp.org>
15258
15259         sigprocmask: Move AC_LIBOBJ invocations to module description.
15260         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
15261         gl_PREREQ_SIGPROMASK invocations from here...
15262         * modules/sigprocmask (configure.ac): ... to here.
15263
15264 2011-05-21  Bruno Haible  <bruno@clisp.org>
15265
15266         sigaction: Move AC_LIBOBJ invocations to module description.
15267         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
15268         gl_PREREQ_SIGACTION invocations from here...
15269         * modules/sigaction (configure.ac): ... to here.
15270
15271 2011-05-21  Bruno Haible  <bruno@clisp.org>
15272
15273         sig2str: Move AC_LIBOBJ invocations to module description.
15274         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
15275         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
15276         here...
15277         * modules/sig2str (configure.ac): ... to here.
15278
15279 2011-05-21  Bruno Haible  <bruno@clisp.org>
15280
15281         setlocale: Move AC_LIBOBJ invocations to module description.
15282         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
15283         gl_PREREQ_SETLOCALE invocations from here...
15284         * modules/setlocale (configure.ac): ... to here.
15285
15286 2011-05-21  Bruno Haible  <bruno@clisp.org>
15287
15288         unsetenv: Move AC_LIBOBJ invocations to module description.
15289         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
15290         and gl_PREREQ_UNSETENV invocations from here...
15291         * modules/unsetenv (configure.ac): ... to here.
15292         (Depends-on): Update.
15293
15294 2011-05-21  Bruno Haible  <bruno@clisp.org>
15295
15296         setenv: Move AC_LIBOBJ invocations to module description.
15297         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
15298         here...
15299         * modules/setenv (configure.ac): ... to here.
15300
15301 2011-05-21  Bruno Haible  <bruno@clisp.org>
15302
15303         selinux-h: Move AC_LIBOBJ invocations to module description.
15304         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
15305         AC_LIBOBJ invocation from here...
15306         * modules/selinux-h (configure.ac): ... to here.
15307
15308 2011-05-21  Bruno Haible  <bruno@clisp.org>
15309
15310         select: Respect rules for use of AC_LIBOBJ.
15311         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
15312         here...
15313         * modules/select (configure.ac): ... to here.
15314
15315 2011-05-21  Bruno Haible  <bruno@clisp.org>
15316
15317         scandir: Move AC_LIBOBJ invocations to module description.
15318         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
15319         invocations from here...
15320         * modules/scandir (configure.ac): ... to here.
15321
15322 2011-05-21  Bruno Haible  <bruno@clisp.org>
15323
15324         rpmatch: Move AC_LIBOBJ invocations to module description.
15325         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
15326         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
15327         here...
15328         * modules/rpmatch (configure.ac): ... to here.
15329
15330 2011-05-21  Bruno Haible  <bruno@clisp.org>
15331
15332         rmdir: Respect rules for use of AC_LIBOBJ.
15333         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
15334         * modules/rmdir (configure.ac): ... to here.
15335
15336 2011-05-21  Bruno Haible  <bruno@clisp.org>
15337
15338         renameat: Move AC_LIBOBJ invocations to module description.
15339         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
15340         here...
15341         * modules/renameat (configure.ac): ... to here.
15342
15343 2011-05-21  Bruno Haible  <bruno@clisp.org>
15344
15345         rename: Respect rules for use of AC_LIBOBJ.
15346         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
15347         here...
15348         * modules/rename (configure.ac): ... to here.
15349
15350 2011-05-21  Bruno Haible  <bruno@clisp.org>
15351
15352         remove: Move AC_LIBOBJ invocations to module description.
15353         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
15354         here...
15355         * modules/remove (configure.ac): ... to here.
15356
15357 2011-05-21  Bruno Haible  <bruno@clisp.org>
15358
15359         relocatable-lib: Move AC_LIBOBJ invocations to module description.
15360         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
15361         macro.
15362         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
15363         * modules/relocatable-lib (configure.ac): ... to here.
15364         * modules/relocatable-prog-wrapper (configure.ac): Invoke
15365         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
15366
15367 2011-05-21  Bruno Haible  <bruno@clisp.org>
15368
15369         relocatable-prog: Move AC_LIBOBJ invocations to module description.
15370         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
15371         here...
15372         * modules/relocatable-prog (configure.ac): ... to here.
15373
15374 2011-05-21  Bruno Haible  <bruno@clisp.org>
15375
15376         regex: Move AC_LIBOBJ invocations to module description.
15377         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
15378         invocations from here...
15379         * modules/regex (configure.ac): ... to here.
15380
15381 2011-05-21  Bruno Haible  <bruno@clisp.org>
15382
15383         realloc-*: Move AC_LIBOBJ invocations to module description.
15384         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
15385         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
15386         AC_LIBOBJ invocations from here...
15387         * modules/realloc-gnu (configure.ac): ... to here.
15388         * modules/realloc-posix (configure.ac): ... and here.
15389
15390 2011-05-21  Bruno Haible  <bruno@clisp.org>
15391
15392         readutmp: Move AC_LIBOBJ invocations to module description.
15393         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
15394         * modules/readutmp (configure.ac): ... to here.
15395
15396 2011-05-21  Bruno Haible  <bruno@clisp.org>
15397
15398         readlinkat: Move AC_LIBOBJ invocations to module description.
15399         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
15400         here...
15401         * modules/readlinkat (configure.ac): ... to here.
15402
15403 2011-05-21  Bruno Haible  <bruno@clisp.org>
15404
15405         readlink: Move AC_LIBOBJ invocations to module description.
15406         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
15407         gl_PREREQ_READLINK invocations from here...
15408         * modules/readlink (configure.ac): ... to here.
15409
15410 2011-05-21  Bruno Haible  <bruno@clisp.org>
15411
15412         readline: Move AC_LIBOBJ invocations to module description.
15413         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
15414         gl_PREREQ_READLINE invocations from here...
15415         * modules/readline (configure.ac): ... to here.
15416
15417 2011-05-21  Bruno Haible  <bruno@clisp.org>
15418
15419         read: Move AC_LIBOBJ invocations to module description.
15420         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
15421         * modules/read (configure.ac): ... to here.
15422
15423 2011-05-21  Bruno Haible  <bruno@clisp.org>
15424
15425         rawmemchr: Move AC_LIBOBJ invocations to module description.
15426         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
15427         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
15428         from here...
15429         * modules/rawmemchr (configure.ac): ... to here.
15430
15431 2011-05-21  Bruno Haible  <bruno@clisp.org>
15432
15433         random_r: Move AC_LIBOBJ invocations to module description.
15434         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
15435         gl_PREREQ_RANDOM_R invocations from here...
15436         * modules/random_r (configure.ac): ... to here.
15437
15438 2011-05-21  Bruno Haible  <bruno@clisp.org>
15439
15440         pwrite: Move AC_LIBOBJ invocations to module description.
15441         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
15442         * modules/pwrite (configure.ac): ... to here.
15443
15444 2011-05-21  Bruno Haible  <bruno@clisp.org>
15445
15446         putenv: Move AC_LIBOBJ invocations to module description.
15447         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
15448         * modules/putenv (configure.ac): ... to here.
15449
15450 2011-05-21  Bruno Haible  <bruno@clisp.org>
15451
15452         login_tty: Move AC_LIBOBJ invocations to module description.
15453         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
15454         * modules/login_tty (configure.ac): ... to here.
15455
15456 2011-05-21  Bruno Haible  <bruno@clisp.org>
15457
15458         openpty: Move AC_LIBOBJ invocations to module description.
15459         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
15460         * modules/openpty (configure.ac): ... to here.
15461
15462 2011-05-21  Bruno Haible  <bruno@clisp.org>
15463
15464         forkpty: Move AC_LIBOBJ invocations to module description.
15465         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
15466         * modules/forkpty (configure.ac): ... to here.
15467
15468 2011-05-21  Bruno Haible  <bruno@clisp.org>
15469
15470         ptsname: Move AC_LIBOBJ invocations to module description.
15471         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
15472         invocations from here...
15473         * modules/ptsname (configure.ac): ... to here.
15474
15475 2011-05-21  Bruno Haible  <bruno@clisp.org>
15476
15477         pread: Move AC_LIBOBJ invocations to module description.
15478         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
15479         * modules/pread (configure.ac): ... to here.
15480
15481 2011-05-21  Bruno Haible  <bruno@clisp.org>
15482
15483         posix_spawn*: Move AC_LIBOBJ invocations to module description.
15484         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
15485         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
15486         * modules/posix_spawn (configure.ac): ... to here.
15487         * modules/posix_spawnp (configure.ac): ... and here.
15488
15489 2011-05-21  Bruno Haible  <bruno@clisp.org>
15490
15491         popen: Move AC_LIBOBJ invocations to module description.
15492         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
15493         invocations from here...
15494         * modules/popen (configure.ac): ... to here.
15495
15496 2011-05-21  Bruno Haible  <bruno@clisp.org>
15497
15498         poll: Move AC_LIBOBJ invocations to module description.
15499         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
15500         invocations from here...
15501         * modules/poll (configure.ac): ... to here.
15502
15503 2011-05-21  Bruno Haible  <bruno@clisp.org>
15504
15505         pipe-posix: Move AC_LIBOBJ invocations to module description.
15506         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
15507         * modules/pipe-posix (configure.ac): ... to here.
15508
15509 2011-05-21  Bruno Haible  <bruno@clisp.org>
15510
15511         openat: Respect rules for use of AC_LIBOBJ.
15512         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
15513         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
15514         * modules/openat (configure.ac): ... to here.
15515
15516 2011-05-21  Bruno Haible  <bruno@clisp.org>
15517
15518         obstack-printf*: Move AC_LIBOBJ invocations to module description.
15519         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
15520         invocation from here...
15521         * modules/obstack-printf (configure.ac): ... to here.
15522         * modules/obstack-printf-posix (configure.ac): ... and here.
15523
15524 2011-05-21  Bruno Haible  <bruno@clisp.org>
15525
15526         nl_langinfo: Move AC_LIBOBJ invocations to module description.
15527         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
15528         from here...
15529         * modules/nl_langinfo (configure.ac): ... to here.
15530
15531 2011-05-21  Bruno Haible  <bruno@clisp.org>
15532
15533         nanosleep: Move AC_LIBOBJ invocations to module description.
15534         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
15535         gl_PREREQ_NANOSLEEP invocations from here...
15536         * modules/nanosleep (configure.ac): ... to here.
15537
15538 2011-05-21  Bruno Haible  <bruno@clisp.org>
15539
15540         mountlist: Move AC_LIBOBJ invocations to module description.
15541         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
15542         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
15543         * modules/mountlist (configure.ac): ... to here.
15544
15545 2011-05-21  Bruno Haible  <bruno@clisp.org>
15546
15547         mktime: Respect rules for use of AC_LIBOBJ.
15548         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
15549         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
15550         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
15551         (gl_FUNC_MKTIME_INTERNAL): ... and here...
15552         * modules/mktime (configure.ac): ... to here.
15553         * modules/mktime-internal (configure.ac): ... and here.
15554         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
15555
15556 2011-05-21  Bruno Haible  <bruno@clisp.org>
15557
15558         mkstemps: Move AC_LIBOBJ invocations to module description.
15559         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
15560         here...
15561         * modules/mkstemps (configure.ac): ... to here.
15562
15563 2011-05-21  Bruno Haible  <bruno@clisp.org>
15564
15565         mkstemp: Move AC_LIBOBJ invocations to module description.
15566         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
15567         gl_PREREQ_MKSTEMP invocations from here...
15568         * modules/mkstemp (configure.ac): ... to here.
15569
15570 2011-05-21  Bruno Haible  <bruno@clisp.org>
15571
15572         mkostemps: Move AC_LIBOBJ invocations to module description.
15573         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
15574         here...
15575         * modules/mkostemps (configure.ac): ... to here.
15576
15577 2011-05-21  Bruno Haible  <bruno@clisp.org>
15578
15579         mkostemp: Move AC_LIBOBJ invocations to module description.
15580         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
15581         gl_PREREQ_MKOSTEMP invocations from here...
15582         * modules/mkostemp (configure.ac): ... to here.
15583
15584 2011-05-21  Bruno Haible  <bruno@clisp.org>
15585
15586         mknod: Move AC_LIBOBJ invocations to module description.
15587         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
15588         * modules/mknod (configure.ac): ... to here.
15589
15590 2011-05-21  Bruno Haible  <bruno@clisp.org>
15591
15592         mkfifoat: Move AC_LIBOBJ invocations to module description.
15593         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
15594         here...
15595         * modules/mkfifoat (configure.ac): ... to here.
15596
15597 2011-05-21  Bruno Haible  <bruno@clisp.org>
15598
15599         mkfifo: Respect rules for use of AC_LIBOBJ.
15600         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
15601         here...
15602         * modules/mkfifo (configure.ac): ... to here.
15603
15604 2011-05-21  Bruno Haible  <bruno@clisp.org>
15605
15606         mkdtemp: Move AC_LIBOBJ invocations to module description.
15607         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
15608         invocations from here...
15609         * modules/mkdtemp (configure.ac): ... to here.
15610
15611 2011-05-21  Bruno Haible  <bruno@clisp.org>
15612
15613         mkdir: Move AC_LIBOBJ invocations to module description.
15614         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
15615         * modules/mkdir (configure.ac): ... to here.
15616
15617 2011-05-21  Bruno Haible  <bruno@clisp.org>
15618
15619         memset: Move AC_LIBOBJ invocations to module description.
15620         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
15621         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
15622         here...
15623         * modules/memset (configure.ac): ... to here.
15624
15625 2011-05-21  Bruno Haible  <bruno@clisp.org>
15626
15627         memrchr: Move AC_LIBOBJ invocations to module description.
15628         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
15629         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
15630         here...
15631         * modules/memrchr (configure.ac): ... to here.
15632
15633 2011-05-21  Bruno Haible  <bruno@clisp.org>
15634
15635         mempcpy: Move AC_LIBOBJ invocations to module description.
15636         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
15637         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
15638         here...
15639         * modules/mempcpy (configure.ac): ... to here.
15640
15641 2011-05-21  Bruno Haible  <bruno@clisp.org>
15642
15643         memmove: Move AC_LIBOBJ invocations to module description.
15644         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
15645         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
15646         here...
15647         * modules/memmove (configure.ac): ... to here.
15648
15649 2011-05-21  Bruno Haible  <bruno@clisp.org>
15650
15651         memmem*: Move AC_LIBOBJ invocations to module description.
15652         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
15653         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
15654         here...
15655         (gl_FUNC_MEMMEM): ... and here...
15656         * modules/memmem-simple (configure.ac): ... to here.
15657         * modules/memmem (configure.ac): ... and here.
15658
15659 2011-05-21  Bruno Haible  <bruno@clisp.org>
15660
15661         memcpy: Move AC_LIBOBJ invocations to module description.
15662         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
15663         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
15664         here...
15665         * modules/memcpy (configure.ac): ... to here.
15666
15667 2011-05-21  Bruno Haible  <bruno@clisp.org>
15668
15669         memcmp: Simplify autoconf macro.
15670         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
15671         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
15672         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
15673
15674 2011-05-21  Bruno Haible  <bruno@clisp.org>
15675
15676         memcmp: Move AC_LIBOBJ invocations to module description.
15677         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
15678         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
15679         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
15680         * modules/memcmp (configure.ac): ... to here.
15681         (Depends-on): Update conditions.
15682
15683 2011-05-21  Bruno Haible  <bruno@clisp.org>
15684
15685         memchr: Respect rules for use of AC_LIBOBJ.
15686         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
15687         invocations from here...
15688         * modules/memchr (configure.ac): ... to here.
15689
15690 2011-05-21  Bruno Haible  <bruno@clisp.org>
15691
15692         mbtowc: Move AC_LIBOBJ invocations to module description.
15693         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
15694         invocations from here...
15695         * modules/mbtowc (configure.ac): ... to here.
15696
15697 2011-05-21  Bruno Haible  <bruno@clisp.org>
15698
15699         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
15700         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
15701         gl_PREREQ_MBSRTOWCS invocations from here...
15702         * modules/mbsrtowcs (configure.ac): ... to here.
15703
15704 2011-05-21  Bruno Haible  <bruno@clisp.org>
15705
15706         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
15707         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
15708         gl_PREREQ_MBSNRTOWCS invocations from here...
15709         * modules/mbsnrtowcs (configure.ac): ... to here.
15710
15711 2011-05-21  Bruno Haible  <bruno@clisp.org>
15712
15713         mbsinit: Move AC_LIBOBJ invocations to module description.
15714         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
15715         invocations from here...
15716         * modules/mbsinit (configure.ac): ... to here.
15717
15718 2011-05-21  Bruno Haible  <bruno@clisp.org>
15719
15720         mbrlen: Move AC_LIBOBJ invocations to module description.
15721         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
15722         invocations from here...
15723         * modules/mbrlen (configure.ac): ... to here.
15724
15725 2011-05-21  Bruno Haible  <bruno@clisp.org>
15726
15727         mbrtowc: Respect rules for use of AC_LIBOBJ.
15728         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
15729         invocations from here...
15730         * modules/mbrtowc (configure.ac): ... to here.
15731
15732 2011-05-21  Bruno Haible  <bruno@clisp.org>
15733
15734         malloc-*: Move AC_LIBOBJ invocations to module description.
15735         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
15736         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
15737         AC_LIBOBJ invocations from here...
15738         * modules/malloc-gnu (configure.ac): ... to here.
15739         * modules/malloc-posix (configure.ac): ... and here.
15740
15741 2011-05-21  Bruno Haible  <bruno@clisp.org>
15742
15743         lstat, openat: Respect rules for use of AC_LIBOBJ.
15744         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
15745         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
15746         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
15747         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
15748         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
15749         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
15750         here.
15751         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
15752
15753 2011-05-21  Bruno Haible  <bruno@clisp.org>
15754
15755         lseek: Move AC_LIBOBJ invocations to module description.
15756         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
15757         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15758         * modules/lseek (configure.ac): ... to here.
15759
15760 2011-05-21  Bruno Haible  <bruno@clisp.org>
15761
15762         linkat: Move AC_LIBOBJ invocations to module description.
15763         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
15764         here...
15765         * modules/linkat (configure.ac): ... to here.
15766
15767 2011-05-21  Bruno Haible  <bruno@clisp.org>
15768
15769         link: Respect rules for use of AC_LIBOBJ.
15770         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
15771         * modules/link (configure.ac): ... to here.
15772
15773 2011-05-21  Bruno Haible  <bruno@clisp.org>
15774
15775         lchown: Move AC_LIBOBJ invocations to module description.
15776         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15777         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
15778         * modules/lchown (configure.ac): ... to here.
15779
15780 2011-05-21  Bruno Haible  <bruno@clisp.org>
15781
15782         iswctype: Move AC_LIBOBJ invocations to module description.
15783         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
15784         here...
15785         * modules/iswctype (configure.ac): ... to here.
15786
15787 2011-05-21  Bruno Haible  <bruno@clisp.org>
15788
15789         iswblank: Move AC_LIBOBJ invocations to module description.
15790         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
15791         here...
15792         * modules/iswblank (configure.ac): ... to here.
15793
15794 2011-05-21  Bruno Haible  <bruno@clisp.org>
15795
15796         atanl: Move AC_LIBOBJ invocations to module description.
15797         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
15798         * modules/atanl (configure.ac): ... to here.
15799
15800 2011-05-21  Bruno Haible  <bruno@clisp.org>
15801
15802         acosl: Move AC_LIBOBJ invocations to module description.
15803         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
15804         * modules/acosl (configure.ac): ... to here.
15805
15806 2011-05-21  Bruno Haible  <bruno@clisp.org>
15807
15808         asinl: Respect rules for use of AC_LIBOBJ.
15809         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
15810         * modules/asinl (configure.ac): ... to here.
15811
15812 2011-05-21  Bruno Haible  <bruno@clisp.org>
15813
15814         tanl: Move AC_LIBOBJ invocations to module description.
15815         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
15816         * modules/tanl (configure.ac): ... to here.
15817
15818 2011-05-21  Bruno Haible  <bruno@clisp.org>
15819
15820         cosl: Move AC_LIBOBJ invocations to module description.
15821         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
15822         * modules/cosl (configure.ac): ... to here.
15823
15824 2011-05-21  Bruno Haible  <bruno@clisp.org>
15825
15826         sinl: Move AC_LIBOBJ invocations to module description.
15827         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
15828         * modules/sinl (configure.ac): ... to here.
15829
15830 2011-05-21  Bruno Haible  <bruno@clisp.org>
15831
15832         logl: Move AC_LIBOBJ invocations to module description.
15833         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
15834         * modules/logl (configure.ac): ... to here.
15835
15836 2011-05-21  Bruno Haible  <bruno@clisp.org>
15837
15838         expl: Move AC_LIBOBJ invocations to module description.
15839         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
15840         * modules/expl (configure.ac): ... to here.
15841
15842 2011-05-21  Bruno Haible  <bruno@clisp.org>
15843
15844         roundl: Move AC_LIBOBJ invocations to module description.
15845         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
15846         * modules/roundl (configure.ac): ... to here.
15847
15848 2011-05-21  Bruno Haible  <bruno@clisp.org>
15849
15850         round: Move AC_LIBOBJ invocations to module description.
15851         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
15852         * modules/round (configure.ac): ... to here.
15853
15854 2011-05-21  Bruno Haible  <bruno@clisp.org>
15855
15856         roundf: Move AC_LIBOBJ invocations to module description.
15857         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
15858         * modules/roundf (configure.ac): ... to here.
15859
15860 2011-05-21  Bruno Haible  <bruno@clisp.org>
15861
15862         truncl: Move AC_LIBOBJ invocations to module description.
15863         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
15864         * modules/truncl (configure.ac): ... to here.
15865
15866 2011-05-21  Bruno Haible  <bruno@clisp.org>
15867
15868         trunc: Move AC_LIBOBJ invocations to module description.
15869         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
15870         * modules/trunc (configure.ac): ... to here.
15871
15872 2011-05-21  Bruno Haible  <bruno@clisp.org>
15873
15874         truncf: Move AC_LIBOBJ invocations to module description.
15875         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
15876         * modules/truncf (configure.ac): ... to here.
15877
15878 2011-05-21  Bruno Haible  <bruno@clisp.org>
15879
15880         ceill: Move AC_LIBOBJ invocations to module description.
15881         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
15882         * modules/ceill (configure.ac): ... to here.
15883
15884 2011-05-21  Bruno Haible  <bruno@clisp.org>
15885
15886         ceil: Move AC_LIBOBJ invocations to module description.
15887         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
15888         * modules/ceil (configure.ac): ... to here.
15889
15890 2011-05-21  Bruno Haible  <bruno@clisp.org>
15891
15892         ceilf: Move AC_LIBOBJ invocations to module description.
15893         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
15894         * modules/ceilf (configure.ac): ... to here.
15895
15896 2011-05-21  Bruno Haible  <bruno@clisp.org>
15897
15898         floorl: Respect rules for use of AC_LIBOBJ.
15899         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
15900         * modules/floorl (configure.ac): ... to here.
15901
15902 2011-05-21  Bruno Haible  <bruno@clisp.org>
15903
15904         floor: Respect rules for use of AC_LIBOBJ.
15905         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
15906         * modules/floor (configure.ac): ... to here.
15907
15908 2011-05-21  Bruno Haible  <bruno@clisp.org>
15909
15910         floorf: Move AC_LIBOBJ invocations to module description.
15911         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
15912         * modules/floorf (configure.ac): ... to here.
15913
15914 2011-05-20  Bruno Haible  <bruno@clisp.org>
15915
15916         sqrtl: Respect rules for use of AC_LIBOBJ.
15917         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
15918         * modules/sqrtl (configure.ac): ... to here.
15919
15920 2011-05-20  Bruno Haible  <bruno@clisp.org>
15921
15922         ldexpl: Respect rules for use of AC_LIBOBJ.
15923         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
15924         * modules/ldexpl (configure.ac): ... to here.
15925
15926 2011-05-20  Bruno Haible  <bruno@clisp.org>
15927
15928         frexpl*: Respect rules for use of AC_LIBOBJ.
15929         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
15930         invocation from here...
15931         * modules/frexpl (configure.ac): ... to here.
15932         * modules/frexpl-nolibm (configure.ac): ... and here.
15933
15934 2011-05-20  Bruno Haible  <bruno@clisp.org>
15935
15936         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
15937         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
15938         invocation from here...
15939         * modules/frexp (configure.ac): ... to here.
15940         * modules/frexp-nolibm (configure.ac): ... and here.
15941
15942 2011-05-20  Bruno Haible  <bruno@clisp.org>
15943
15944         isnan: Respect rules for use of AC_LIBOBJ.
15945         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
15946         invocations here.
15947         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
15948         REPLACE_ISNAN.
15949         * modules/isnand (configure.ac): Likewise.
15950         * modules/isnanl (configure.ac): Likewise.
15951
15952 2011-05-20  Bruno Haible  <bruno@clisp.org>
15953
15954         isnanl*: Respect rules for use of AC_LIBOBJ.
15955         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
15956         invocation from here...
15957         * modules/isnanl (configure.ac): ... to here.
15958         * modules/isnanl-nolibm (configure.ac): ... and here.
15959
15960 2011-05-20  Bruno Haible  <bruno@clisp.org>
15961
15962         isnand*: Move AC_LIBOBJ invocations to module description.
15963         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
15964         invocation from here...
15965         * modules/isnand (configure.ac): ... to here.
15966         * modules/isnand-nolibm (configure.ac): ... and here.
15967
15968 2011-05-20  Bruno Haible  <bruno@clisp.org>
15969
15970         isnanf*: Move AC_LIBOBJ invocations to module description.
15971         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
15972         invocation from here...
15973         * modules/isnanf (configure.ac): ... to here.
15974         * modules/isnanf-nolibm (configure.ac): ... and here.
15975
15976 2011-05-20  Bruno Haible  <bruno@clisp.org>
15977
15978         isnan*: Separate the AC_LIBOBJ invocations.
15979         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
15980         AC_LIBOBJ invocation.
15981         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
15982         here.
15983         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
15984         AC_LIBOBJ invocation.
15985         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
15986         here.
15987         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
15988         AC_LIBOBJ invocation.
15989         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
15990         here.
15991         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
15992
15993 2011-05-08  Bruno Haible  <bruno@clisp.org>
15994
15995         isinf: Move AC_LIBOBJ invocations to module description.
15996         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
15997         * modules/isinf (configure.ac): ... to here.
15998
15999 2011-05-08  Bruno Haible  <bruno@clisp.org>
16000
16001         isfinite: Move AC_LIBOBJ invocations to module description.
16002         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
16003         * modules/isfinite (configure.ac): ... to here.
16004
16005 2011-05-08  Bruno Haible  <bruno@clisp.org>
16006
16007         isblank: Move AC_LIBOBJ invocations to module description.
16008         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
16009         here...
16010         * modules/isblank (configure.ac): ... to here.
16011
16012 2011-05-08  Bruno Haible  <bruno@clisp.org>
16013
16014         isapipe: Move AC_LIBOBJ invocations to module description.
16015         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
16016         gl_PREREQ_ISAPIPE invocations from here...
16017         * modules/isapipe (configure.ac): ... to here.
16018         (Depends-on): Update condition.
16019
16020 2011-05-08  Bruno Haible  <bruno@clisp.org>
16021
16022         ioctl: Move AC_LIBOBJ invocations to module description.
16023         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
16024         invocations from here...
16025         * modules/ioctl (configure.ac): ... to here.
16026         (Depends-on): Update condition.
16027
16028 2011-05-08  Bruno Haible  <bruno@clisp.org>
16029
16030         imaxdiv: Move AC_LIBOBJ invocations to module description.
16031         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
16032         invocations from here...
16033         * modules/imaxdiv (configure.ac): ... to here.
16034
16035 2011-05-08  Bruno Haible  <bruno@clisp.org>
16036
16037         imaxabs: Move AC_LIBOBJ invocations to module description.
16038         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
16039         invocations from here...
16040         * modules/imaxabs (configure.ac): ... to here.
16041
16042 2011-05-08  Bruno Haible  <bruno@clisp.org>
16043
16044         getaddrinfo: Move AC_LIBOBJ invocations to module description.
16045         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
16046         AC_LIBOBJ invocations from here...
16047         * modules/getaddrinfo (configure.ac): ... to here.
16048         (Depends-on): Add conditions.
16049
16050 2011-05-08  Bruno Haible  <bruno@clisp.org>
16051
16052         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
16053         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
16054         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
16055         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
16056         (gl_PREREQ_INET_PTON): ... from here.
16057         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
16058         gl_PREREQ_INET_PTON here.
16059         (Depends-on): Update condition.
16060
16061 2011-05-08  Bruno Haible  <bruno@clisp.org>
16062
16063         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
16064         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
16065         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
16066         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
16067         (gl_PREREQ_INET_NTOP): ... from here.
16068         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
16069         gl_PREREQ_INET_NTOP here.
16070         (Depends-on): Update condition.
16071
16072 2011-05-08  Bruno Haible  <bruno@clisp.org>
16073
16074         iconv_open: Move AC_LIBOBJ invocations to module description.
16075         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
16076         AC_LIBOBJ invocations from here...
16077         * modules/iconv_open (configure.ac): ... to here.
16078
16079 2011-05-08  Bruno Haible  <bruno@clisp.org>
16080
16081         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
16082         If module 'iconv_open' is among the main modules and module
16083         'iconv_open-utf' is among the tests dependencies, then
16084         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
16085         return the special iconv_t values. Therefore iconv() and iconv_close()
16086         must support these special iconv_t values, already in lib, not only in
16087         tests.
16088         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
16089         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
16090         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
16091         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
16092         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
16093         (Depends-on): Add the dependencies of iconv_open-utf.
16094         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
16095         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
16096         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
16097
16098 2011-05-08  Bruno Haible  <bruno@clisp.org>
16099
16100         group-member: Move AC_LIBOBJ invocations to module description.
16101         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
16102         gl_PREREQ_GROUP_MEMBER invocations from here...
16103         * modules/group-member (configure.ac): ... to here.
16104
16105 2011-05-08  Bruno Haible  <bruno@clisp.org>
16106
16107         grantpt: Move AC_LIBOBJ invocations to module description.
16108         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
16109         invocations from here...
16110         * modules/grantpt (configure.ac): ... to here.
16111
16112 2011-05-08  Bruno Haible  <bruno@clisp.org>
16113
16114         glob: Move AC_LIBOBJ invocations to module description.
16115         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
16116         from here...
16117         * modules/glob (configure.ac): ... to here.
16118
16119 2011-05-08  Bruno Haible  <bruno@clisp.org>
16120
16121         getusershell: Move AC_LIBOBJ invocations to module description.
16122         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
16123         Move AC_LIBOBJ invocation from here...
16124         * modules/getusershell (configure.ac): ... to here.
16125         (Depends-on): Update condition.
16126
16127 2011-05-08  Bruno Haible  <bruno@clisp.org>
16128
16129         gettimeofday: Move AC_LIBOBJ invocations to module description.
16130         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
16131         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
16132         gl_PREREQ_GETTIMEOFDAY invocations from here...
16133         * modules/gettimeofday (configure.ac): ... to here.
16134
16135 2011-05-08  Bruno Haible  <bruno@clisp.org>
16136
16137         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
16138         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
16139         just gl_FUNC_TZSET.
16140         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
16141         (gl_FUNC_TZSET_CLOBBER): Remove actions.
16142         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
16143         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
16144
16145 2011-05-08  Bruno Haible  <bruno@clisp.org>
16146
16147         getsubopt: Move AC_LIBOBJ invocations to module description.
16148         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
16149         gl_PREREQ_GETSUBOPT invocations from here...
16150         * modules/getsubopt (configure.ac): ... to here.
16151
16152 2011-05-08  Bruno Haible  <bruno@clisp.org>
16153
16154         getpass-gnu: Move AC_LIBOBJ invocations to module description.
16155         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
16156         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
16157         * modules/getpass-gnu (configure.ac): ... to here.
16158
16159 2011-05-08  Bruno Haible  <bruno@clisp.org>
16160
16161         getpass: Move AC_LIBOBJ invocations to module description.
16162         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
16163         gl_PREREQ_GETPASS invocations from here...
16164         * modules/getpass (configure.ac): ... to here.
16165
16166 2011-05-08  Bruno Haible  <bruno@clisp.org>
16167
16168         getpagesize: Move AC_LIBOBJ invocations to module description.
16169         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
16170         from here...
16171         * modules/getpagesize (configure.ac): ... to here.
16172
16173 2011-05-08  Bruno Haible  <bruno@clisp.org>
16174
16175         getopt: Move AC_LIBOBJ invocations to module description.
16176         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
16177         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
16178         invocations from here...
16179         * modules/getopt-gnu (configure.ac): ... to here.
16180         * modules/getopt-posix (configure.ac): ... and here.
16181         (Depends-on): Update condition.
16182
16183 2011-05-08  Bruno Haible  <bruno@clisp.org>
16184
16185         getopt, argp: Respect rules for use of AC_LIBOBJ.
16186         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
16187         (gl_REPLACE_GETOPT_ALWAYS): New macro.
16188         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
16189         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
16190
16191 2011-05-08  Bruno Haible  <bruno@clisp.org>
16192
16193         getlogin_r: Move AC_LIBOBJ invocations to module description.
16194         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
16195         gl_PREREQ_GETLOGIN_R invocations from here...
16196         * modules/getlogin_r (configure.ac): ... to here.
16197
16198 2011-05-08  Bruno Haible  <bruno@clisp.org>
16199
16200         getlogin: Move AC_LIBOBJ invocations to module description.
16201         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
16202         here...
16203         * modules/getlogin (configure.ac): ... to here.
16204
16205 2011-05-08  Bruno Haible  <bruno@clisp.org>
16206
16207         getloadavg: Move AC_LIBOBJ invocations to module description.
16208         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
16209         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
16210         * modules/getloadavg (configure.ac): ... to here.
16211
16212 2011-05-08  Bruno Haible  <bruno@clisp.org>
16213
16214         gethrxtime: Move AC_LIBOBJ invocations to module description.
16215         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
16216         LIB_GETHRXTIME from here...
16217         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
16218         invocations from here...
16219         * modules/gethrxtime (configure.ac): ... to here.
16220
16221 2011-05-08  Bruno Haible  <bruno@clisp.org>
16222
16223         gethostname: Move AC_LIBOBJ invocations to module description.
16224         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
16225         gl_PREREQ_GETHOSTNAME invocations from here...
16226         * modules/gethostname (configure.ac): ... to here.
16227
16228 2011-05-08  Bruno Haible  <bruno@clisp.org>
16229
16230         getgroups: Move AC_LIBOBJ invocations to module description.
16231         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
16232         here...
16233         * modules/getgroups (configure.ac): ... to here.
16234
16235 2011-05-08  Bruno Haible  <bruno@clisp.org>
16236
16237         getdtablesize: Move AC_LIBOBJ invocations to module description.
16238         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
16239         invocation from here...
16240         * modules/getdtablesize (configure.ac): ... to here.
16241
16242 2011-05-08  Bruno Haible  <bruno@clisp.org>
16243
16244         getdomainname: Move AC_LIBOBJ invocations to module description.
16245         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
16246         gl_PREREQ_GETDOMAINNAME invocations from here...
16247         * modules/getdomainname (configure.ac): ... to here.
16248
16249 2011-05-08  Bruno Haible  <bruno@clisp.org>
16250
16251         getline: Move AC_LIBOBJ invocations to module description.
16252         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
16253         invocations from here...
16254         * modules/getline (configure.ac): ... to here.
16255
16256 2011-05-08  Bruno Haible  <bruno@clisp.org>
16257
16258         getline: Simplify.
16259         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
16260         It's already handled through the module dependency.
16261
16262 2011-05-08  Bruno Haible  <bruno@clisp.org>
16263
16264         getdelim: Move AC_LIBOBJ invocations to module description.
16265         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
16266         and gl_PREREQ_GETDELIM invocations from here...
16267         * modules/getdelim (configure.ac): ... to here.
16268         (Depends-on): Fix condition.
16269
16270 2011-05-08  Bruno Haible  <bruno@clisp.org>
16271
16272         getcwd: Move AC_LIBOBJ invocations to module description.
16273         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
16274         invocations from here...
16275         * modules/getcwd (configure.ac): ... to here.
16276
16277 2011-05-08  Bruno Haible  <bruno@clisp.org>
16278
16279         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
16280         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
16281         here...
16282         * modules/getcwd-lgpl (configure.ac): ... to here.
16283
16284 2011-05-07  Bruno Haible  <bruno@clisp.org>
16285
16286         crypto/gc: Move AC_LIBOBJ invocations to module description.
16287         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
16288         * modules/crypto/gc (configure.ac): ... to here.
16289
16290 2011-05-07  Bruno Haible  <bruno@clisp.org>
16291
16292         fwriting: Move AC_LIBOBJ invocations to module description.
16293         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
16294         here...
16295         * modules/fwriting (configure.ac): ... to here.
16296
16297 2011-05-07  Bruno Haible  <bruno@clisp.org>
16298
16299         fwritable: Move AC_LIBOBJ invocations to module description.
16300         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
16301         here...
16302         * modules/fwritable (configure.ac): ... to here.
16303
16304 2011-05-07  Bruno Haible  <bruno@clisp.org>
16305
16306         futimens: Move AC_LIBOBJ invocations to module description.
16307         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
16308         here...
16309         * modules/futimens (configure.ac): ... to here.
16310
16311 2011-05-07  Bruno Haible  <bruno@clisp.org>
16312
16313         ftruncate: Move AC_LIBOBJ invocations to module description.
16314         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
16315         gl_PREREQ_FTRUNCATE invocations from here...
16316         * modules/ftruncate (configure.ac): ... to here.
16317
16318 2011-05-07  Bruno Haible  <bruno@clisp.org>
16319
16320         fsync: Move AC_LIBOBJ invocations to module description.
16321         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
16322         invocations from here...
16323         * modules/fsync (configure.ac): ... to here.
16324
16325 2011-05-07  Bruno Haible  <bruno@clisp.org>
16326
16327         fsusage: Move AC_LIBOBJ invocations to module description.
16328         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
16329         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
16330         * modules/fsusage (configure.ac): ... to here.
16331
16332 2011-05-07  Bruno Haible  <bruno@clisp.org>
16333
16334         freopen: Move AC_LIBOBJ invocations to module description.
16335         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
16336         invocations from here...
16337         * modules/freopen (configure.ac): ... to here.
16338
16339 2011-05-07  Bruno Haible  <bruno@clisp.org>
16340
16341         free: Move AC_LIBOBJ invocations to module description.
16342         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
16343         invocations from here...
16344         * modules/free (configure.ac): ... to here.
16345
16346 2011-05-07  Bruno Haible  <bruno@clisp.org>
16347
16348         freadable: Move AC_LIBOBJ invocations to module description.
16349         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
16350         here...
16351         * modules/freadable (configure.ac): ... to here.
16352
16353 2011-05-07  Bruno Haible  <bruno@clisp.org>
16354
16355         fpurge: Move AC_LIBOBJ invocations to module description.
16356         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
16357         invocations from here...
16358         * modules/fpurge (configure.ac): ... to here.
16359
16360 2011-05-07  Bruno Haible  <bruno@clisp.org>
16361
16362         fpending: Move AC_LIBOBJ invocations to module description.
16363         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
16364         gl_FUNC_FPENDING.
16365         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
16366         invocations from here...
16367         * modules/fpending (configure.ac): ... to here.
16368
16369 2011-05-07  Bruno Haible  <bruno@clisp.org>
16370
16371         fopen: Move AC_LIBOBJ invocations to module description.
16372         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
16373         invocations from here...
16374         * modules/fopen (configure.ac): ... to here.
16375
16376 2011-05-07  Bruno Haible  <bruno@clisp.org>
16377
16378         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
16379         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
16380         gl_FUNC_FNMATCH_POSIX.
16381         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
16382         invocations from here...
16383         * modules/fnmatch (configure.ac): ... to here.
16384         * modules/fnmatch-gnu (configure.ac): ... and here.
16385
16386 2011-05-07  Bruno Haible  <bruno@clisp.org>
16387
16388         flock: Move AC_LIBOBJ invocations to module description.
16389         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
16390         invocations from here...
16391         * modules/flock (configure.ac): ... to here.
16392
16393 2011-05-07  Bruno Haible  <bruno@clisp.org>
16394
16395         fileblocks: Move AC_LIBOBJ invocations to module description.
16396         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
16397         gl_PREREQ_FILEBLOCKS invocations from here...
16398         * modules/fileblocks (configure.ac): ... to here.
16399
16400 2011-05-06  Bruno Haible  <bruno@clisp.org>
16401
16402         fflush: Move AC_LIBOBJ invocations to module description.
16403         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
16404         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
16405         invocations from here...
16406         * modules/fflush (configure.ac): ... to here.
16407
16408 2011-05-06  Bruno Haible  <bruno@clisp.org>
16409
16410         fdopendir: Move AC_LIBOBJ invocations to module description.
16411         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
16412         here...
16413         * modules/fdopendir (configure.ac): ... to here.
16414         (Depends-on): Improve conditions.
16415
16416 2011-05-06  Bruno Haible  <bruno@clisp.org>
16417
16418         _Exit: Move AC_LIBOBJ invocations to module description.
16419         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
16420         invocations from here...
16421         * modules/_Exit (configure.ac): ... to here.
16422
16423 2011-05-21  Bruno Haible  <bruno@clisp.org>
16424
16425         euidaccess: Respect rules for use of AC_LIBOBJ.
16426         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
16427         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
16428         from here...
16429         * modules/euidaccess (configure.ac): ... to here.
16430
16431 2011-05-06  Bruno Haible  <bruno@clisp.org>
16432
16433         error: Move AC_LIBOBJ invocations to module description.
16434         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
16435         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
16436         invocations from here...
16437         * modules/error (configure.ac): ... to here.
16438
16439 2011-05-06  Bruno Haible  <bruno@clisp.org>
16440
16441         duplocale: Move AC_LIBOBJ invocations to module description.
16442         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
16443         gl_PREREQ_DUPLOCALE invocations from here...
16444         * modules/duplocale (configure.ac): ... to here.
16445
16446 2011-05-05  Bruno Haible  <bruno@clisp.org>
16447
16448         dirfd: Move AC_LIBOBJ invocations to module description.
16449         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
16450         gl_FUNC_DIRFD.
16451         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
16452         here...
16453         * modules/dirfd (configure.ac): ... to here.
16454         (Depends-on): Fix condition.
16455
16456 2011-05-05  Bruno Haible  <bruno@clisp.org>
16457
16458         chown: Respect rules for use of AC_LIBOBJ.
16459         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
16460         * modules/chown (configure.ac): ... to here.
16461
16462 2011-05-05  Bruno Haible  <bruno@clisp.org>
16463
16464         chdir-long: Move AC_LIBOBJ invocations to module description.
16465         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
16466         gl_PREREQ_CHDIR_LONG invocations from here...
16467         * modules/chdir-long (configure.ac): ... to here.
16468
16469 2011-05-05  Bruno Haible  <bruno@clisp.org>
16470
16471         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
16472         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
16473         from here...
16474         * modules/canonicalize-lgpl (configure.ac): ... to here.
16475
16476 2011-05-05  Bruno Haible  <bruno@clisp.org>
16477
16478         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
16479         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
16480         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
16481         REPLACE_CALLOC.
16482         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
16483         * modules/calloc-gnu (configure.ac): Likewise.
16484
16485 2011-05-05  Bruno Haible  <bruno@clisp.org>
16486
16487         btowc: Move AC_LIBOBJ invocations to module description.
16488         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
16489         invocations from here...
16490         * modules/btowc (configure.ac): ... to here.
16491
16492 2011-05-21  Bruno Haible  <bruno@clisp.org>
16493
16494         atexit: Move AC_LIBOBJ invocations to module description.
16495         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
16496         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
16497         here...
16498         * modules/atexit (configure.ac): ... to here.
16499
16500 2011-05-05  Bruno Haible  <bruno@clisp.org>
16501
16502         atoll: Move AC_LIBOBJ invocations to module description.
16503         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
16504         invocations from here...
16505         * modules/atoll (configure.ac): ... to here.
16506
16507 2011-05-05  Bruno Haible  <bruno@clisp.org>
16508
16509         argz: Move AC_LIBOBJ invocations to module description.
16510         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
16511         * modules/argz (configure.ac): ... to here.
16512
16513 2011-05-05  Bruno Haible  <bruno@clisp.org>
16514
16515         alphasort: Move AC_LIBOBJ invocations to module description.
16516         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
16517         gl_PREREQ_ALPHASORT invocations from here...
16518         * modules/alphasort (configure.ac): ... to here.
16519
16520 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
16521
16522         verify: new macro verify_expr; verify_true deprecated
16523         * NEWS: Mention this.
16524         * doc/verify.texi (Compile-time Assertions): Document this.
16525         * lib/verify.h (verify_true): Deprecate.
16526         (verify_expr): New macro.
16527         * tests/test-verify.c (function): Test verify_expr.
16528
16529 2011-06-14  Jim Meyering  <meyering@redhat.com>
16530
16531         init.sh: give more portable redirection-related advice in a comment
16532         * tests/init.sh (stderr_fileno_): Update the advice in comments.
16533         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
16534         for lots of discussion.  Stefano Lattarini suggested the solution
16535         of putting "9>&2" after the command.  Reported by Bruno Haible.
16536
16537 2011-06-13  Bruno Haible  <bruno@clisp.org>
16538
16539         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
16540         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
16541         'none'.
16542
16543 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
16544
16545         ftoastr: use strtof only if HAVE_STRTOF
16546         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
16547         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
16548         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
16549         * modules/ftoastr (configure.ac): Check for strtof.
16550
16551 2011-06-13  Bruno Haible  <bruno@clisp.org>
16552
16553         gnulib-tool: Addendum to 2011-06-08 commit.
16554         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
16555         and --witness-c-macro have been given, augment AM_CPPFLAGS.
16556
16557 2011-06-13  Bruno Haible  <bruno@clisp.org>
16558
16559         fseeko: Provide a non-inline replacement of fseek().
16560         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
16561         * modules/fseeko (Depends-on): Add fseek.
16562         * modules/fseek (License): Change to LGPLv2+.
16563
16564 2011-06-13  Bruno Haible  <bruno@clisp.org>
16565
16566         ftello: Provide a non-inline replacement of ftell().
16567         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
16568         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
16569         not have ftello() (such as on mingw).
16570         * modules/ftello (Depends-on): Add ftell.
16571         * modules/ftell (License): Change to LGPLv2+.
16572
16573 2011-05-07  Bruno Haible  <bruno@clisp.org>
16574
16575         ftell: Move AC_LIBOBJ invocations to module description.
16576         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
16577         * modules/ftell (configure.ac): ... to here.
16578
16579 2011-05-07  Bruno Haible  <bruno@clisp.org>
16580
16581         ftello: Respect rules for use of AC_LIBOBJ.
16582         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
16583         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
16584         here...
16585         * modules/ftello (configure.ac): ... to here.
16586
16587 2011-05-07  Bruno Haible  <bruno@clisp.org>
16588
16589         fseeko: Simplify.
16590         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
16591         (gl_FUNC_FSEEKO): Inline it here.
16592
16593 2011-05-07  Bruno Haible  <bruno@clisp.org>
16594
16595         fseek: Move AC_LIBOBJ invocations to module description.
16596         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
16597         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
16598         * modules/fseek (configure.ac): ... to here.
16599
16600 2011-05-07  Bruno Haible  <bruno@clisp.org>
16601
16602         fseek: Respect rules for use of AC_LIBOBJ.
16603         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
16604         here...
16605         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
16606
16607 2011-05-07  Bruno Haible  <bruno@clisp.org>
16608
16609         fseeko: Respect rules for use of AC_LIBOBJ.
16610         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
16611         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
16612         here...
16613         * modules/fseeko (configure.ac): ... to here.
16614
16615 2011-06-13  Bruno Haible  <bruno@clisp.org>
16616
16617         gnulib-tool: Allow comments in the 'Depends-on' section.
16618         * doc/gnulib.texi (Module description): Mention comment syntax in the
16619         Depends-on section.
16620         * gnulib-tool (func_get_dependencies): Filter out comment lines.
16621
16622 2011-06-13  Bruno Haible  <bruno@clisp.org>
16623
16624         file-set.h: guard __attibute__ use, now that it's not always defined
16625         * lib/file-set.h (record_file): Use __attribute__ only with compiler
16626         versions that support it.  This fixes a coreutils build failure with
16627         the vendor cc on HP-UX 11.31.
16628
16629 2011-06-12  Bruno Haible  <bruno@clisp.org>
16630
16631         acl: Add support for HP-UX >= 11.11 JFS ACLs.
16632         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
16633         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
16634         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
16635         (acl, aclsort): New declarations.
16636         (aclv_nontrivial): New declaration.
16637         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
16638         (file_has_acl): Read also the second kind of HP-UX ACLs.
16639         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
16640         kind of HP-UX ACLs if the first kind fails.
16641         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
16642         second kind of HP-UX ACLs.
16643         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
16644         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
16645         agree.
16646         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16647         hpuxjfs.
16648         Handle hpuxjfs.
16649         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16650         hpuxjfs.
16651         Handle hpuxjfs.
16652         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16653         (func_test_same_acls): Use both lsacl and getacl.
16654         Handle hpuxjfs.
16655         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16656         (func_test_same_acls): Use both lsacl and getacl.
16657         Handle hpuxjfs.
16658
16659 2011-06-12  Bruno Haible  <bruno@clisp.org>
16660
16661         acl: Complete the 2010-08-10 fix.
16662         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
16663         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
16664         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
16665         explicitly.
16666         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
16667         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
16668
16669 2011-06-12  Bruno Haible  <bruno@clisp.org>
16670
16671         spawn-pipe tests: Comments.
16672         * tests/test-spawn-pipe-child.c (main): Update comment.
16673         Reported by James Youngman <jay@gnu.org>.
16674
16675 2011-06-11  James Youngman  <jay@gnu.org>
16676
16677         New module 'stat-size'.
16678         * modules/stat-size: New module.  Provides macros for accessing
16679         file size information in instances of struct stat.  Depends on the
16680         fileblocks module because it calls st_blocks.
16681         * lib/stat-size.h: New file, adapted from coreutils' system.h.
16682         * doc/gnulib.texi: Include stat-size.texi.
16683         * doc/stat-size.texi: Documentation for this module.
16684         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
16685         * m4/fileblocks.m4: Mention that stat-size depends on the call to
16686         AC_STRUCT_ST_BLOCKS.
16687
16688 2011-06-09  Bruno Haible  <bruno@clisp.org>
16689
16690         thread: Support pthreads-win32.
16691         * lib/glthread/thread.h (gl_thread_self): Define differently on
16692         pthreads-win32.
16693         (gl_null_thread): New declaration.
16694         (gl_thread_self_pointer): New macro.
16695         * lib/glthread/thread.c (gl_null_thread): New constant.
16696         * tests/test-lock.c: Use gl_thread_self_pointer instead of
16697         gl_thread_self.
16698         * tests/test-tls.c: Likewise.
16699         Suggested by Paul Eggert. Reported by Eric Blake.
16700
16701 2011-06-09  Bruno Haible  <bruno@clisp.org>
16702
16703         thread: Fix confusion between NULL and 0.
16704         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
16705         Reported by Paul Eggert.
16706
16707 2011-06-09  Bruno Haible  <bruno@clisp.org>
16708
16709         spawn-pipe tests: Avoid test failure on HP-UX 11.
16710         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
16711         is closed.
16712
16713 2011-06-09  Bruno Haible  <bruno@clisp.org>
16714
16715         acl tests: Fix compilation error on HP-UX 11.
16716         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
16717
16718 2011-06-09  Bruno Haible  <bruno@clisp.org>
16719
16720         rmdir: Avoid test failure on HP-UX 10.20.
16721         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
16722         EEXIST.
16723
16724 2011-06-08  Eric Blake  <eblake@redhat.com>
16725
16726         perror: fix test on mingw
16727         * modules/perror-tests (Depends-on): Add dup2.
16728
16729         strerror_r-posix: fix on MacOS
16730         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
16731         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
16732         logic bug.
16733         * lib/strerror_r.c (strerror_r): Fix the bug.
16734         * lib/strerror.c (strerror): Likewise.
16735         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16736         problem.
16737         * doc/posix-functions/strerror.texi (strerror): Likewise.
16738         * doc/posix-functions/perror.texi (perror): Likewise.
16739         * tests/test-strerror.c (main): Enhance test.
16740         * tests/test-strerror_r.c (main): Likewise.
16741
16742 2011-06-08  Bruno Haible  <bruno@clisp.org>
16743
16744         gnulib-tool: Better isolation between different gnulib-tool invocations.
16745         * gnulib-tool: New option --witness-c-macro.
16746         (witness_c_macro): New variable.
16747         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
16748         AM_CPPFLAGS define it as a C macro.
16749         (func_emit_tests_Makefile_am): Likewise.
16750         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
16751         read it from there.
16752         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
16753         m4_define, not AC_DEFUN.
16754         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
16755         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
16756         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
16757         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
16758         s|...|...|, to substitute the values of the GNULIB_* module indicator
16759         variables.
16760         * modules/dirent (Makefile.am): Likewise.
16761         * modules/fcntl-h (Makefile.am): Likewise.
16762         * modules/iconv-h (Makefile.am): Likewise.
16763         * modules/langinfo (Makefile.am): Likewise.
16764         * modules/locale (Makefile.am): Likewise.
16765         * modules/math (Makefile.am): Likewise.
16766         * modules/netdb (Makefile.am): Likewise.
16767         * modules/poll-h (Makefile.am): Likewise.
16768         * modules/pty (Makefile.am): Likewise.
16769         * modules/search (Makefile.am): Likewise.
16770         * modules/signal (Makefile.am): Likewise.
16771         * modules/spawn (Makefile.am): Likewise.
16772         * modules/stdio (Makefile.am): Likewise.
16773         * modules/stdlib (Makefile.am): Likewise.
16774         * modules/string (Makefile.am): Likewise.
16775         * modules/sys_ioctl (Makefile.am): Likewise.
16776         * modules/sys_select (Makefile.am): Likewise.
16777         * modules/sys_socket (Makefile.am): Likewise.
16778         * modules/sys_stat (Makefile.am): Likewise.
16779         * modules/sys_times (Makefile.am): Likewise.
16780         * modules/sys_utsname (Makefile.am): Likewise.
16781         * modules/sys_wait (Makefile.am): Likewise.
16782         * modules/termios (Makefile.am): Likewise.
16783         * modules/time (Makefile.am): Likewise.
16784         * modules/unistd (Makefile.am): Likewise.
16785         * modules/wchar (Makefile.am): Likewise.
16786
16787 2011-06-08  Eric Blake  <eblake@redhat.com>
16788
16789         strerror: simplify replacement
16790         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
16791         * modules/strerror (configure.ac): No prereqs needed here...
16792         * modules/strerror-override (configure.ac): ...but this needs it.
16793         (Files): Add file for needed prereq macro.
16794
16795 2011-06-08  Bruno Haible  <bruno@clisp.org>
16796
16797         strerror_r-posix: Tweaks.
16798         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
16799         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
16800         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
16801         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
16802         (gl_FUNC_STRERROR_R): ... to here.
16803         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
16804
16805 2011-06-07  Eric Blake  <eblake@redhat.com>
16806
16807         perror: document fixed bugs
16808         * doc/posix-functions/perror.texi (perror): Document recent
16809         patches.
16810
16811 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
16812
16813         stat-time: get_stat_birthtime failure is better-defined
16814         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
16815         return a timestamp whose tv_sec and tv_nsec values are both -1.
16816         Previously, the spec said only that the tv_nsec value was negative.
16817         This upward-compatible change simplifies GNU tar a bit.
16818
16819 2011-06-07  Eric Blake  <eblake@redhat.com>
16820
16821         strerror_r-posix: work around cygwin 1.7.9
16822         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
16823         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
16824         bug without replacing strerror_r.
16825         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
16826         strerror_r is buggy, but without requiring strerror_r compilation.
16827         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
16828
16829         test-perror: relax test to ignore cygwin bug
16830         * tests/test-perror2.c (main): Relax test on requiring detection
16831         of stream errors, and use unbuffered stream.
16832         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
16833         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
16834         * doc/posix-functions/fputc.texi (fputc): Likewise.
16835         * doc/posix-functions/fputs.texi (fputs): Likewise.
16836         * doc/posix-functions/fputws.texi (fputws): Likewise.
16837         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
16838         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
16839         * doc/posix-functions/getopt.texi (getopt): Likewise.
16840         * doc/posix-functions/perror.texi (perror): Likewise.
16841         * doc/posix-functions/printf.texi (printf): Likewise.
16842         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
16843         * doc/posix-functions/psignal.texi (psignal): Likewise.
16844         * doc/posix-functions/putc.texi (putc): Likewise.
16845         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
16846         Likewise.
16847         * doc/posix-functions/putchar.texi (putchar): Likewise.
16848         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
16849         Likewise.
16850         * doc/posix-functions/puts.texi (puts): Likewise.
16851         * doc/posix-functions/putwc.texi (putwc): Likewise.
16852         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16853         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16854         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16855         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
16856         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16857         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16858         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
16859         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
16860
16861 2011-05-22  Bruno Haible  <bruno@clisp.org>
16862
16863         strerror: Move AC_LIBOBJ invocations to module description.
16864         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
16865         gl_PREREQ_STRERROR invocations from here...
16866         * modules/strerror (configure.ac): ... to here.
16867
16868 2011-05-21  Bruno Haible  <bruno@clisp.org>
16869
16870         perror: Use common idiom.
16871         * modules/perror (configure.ac): Reorder statements.
16872
16873 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16874
16875         tests: fix usage message in 'mktempd_'
16876         * tests/init.sh (mktempd_): In the usage message, use literal
16877         'mktempd_', not '$ME' (which is even undefined), as the name of
16878         the subroutine.
16879
16880 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16881
16882         tests init: new function 'fatal_', for hard errors
16883         Before this patch, the only way offered by tests/init.sh to
16884         properly signal a hard error was the `framework_failure_'
16885         function.  But the error message issued by that function,
16886         as its name would suggest, refers to a set-up failure in the
16887         testsuite, while hard errors can obviously also be due to
16888         other reasons.  The best way to fix this inconsistency is to
16889         introduce a new function with a more general error message.
16890         * tests/init.sh (fatal_): New function.
16891
16892 2011-06-06  Eric Blake  <eblake@redhat.com>
16893
16894         canonicalize-lgpl: use common idiom
16895         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
16896         over newer POSIX -Rf.
16897         Reported by Bruno Haible.
16898
16899         canonicalize-lgpl: work around AIX realpath bug
16900         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
16901         * doc/posix-functions/realpath.texi (realpath): Document it.
16902         Reported by Bruno Haible.
16903
16904         strerror: work around FreeBSD bug
16905         * lib/strerror.c (strerror): Special case 0.
16906         Reported by Bruno Haible.
16907
16908         strerror-override: avoid bloating errno module
16909         * modules/errno (Files, configure.ac): Move replacement strings...
16910         * modules/strerror-override: ...to new module.
16911         * modules/strerror (Depends-on): Add strerror-override.
16912         * modules/strerror_r-posix (Depends-on): Likewise.
16913         * MODULES.html.sh: Document new module.
16914         Reported by Bruno Haible.
16915
16916 2011-06-06  Bruno Haible  <bruno@clisp.org>
16917
16918         spawn-pipe tests: Rename program.
16919         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
16920         * tests/test-spawn-pipe-child.c: Update comment.
16921         * tests/test-spawn-pipe.sh: Update.
16922         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
16923
16924         spawn-pipe tests: Link the child program only against libc.
16925         * tests/test-spawn-pipe-child.c: New file, extracted from
16926         tests/test-spawn-pipe.c.
16927         (main): Expect only one argument.
16928         (is_open): New function, copied from tests/test-pipe.c.
16929         * tests/test-spawn-pipe.c: Don't include <errno.h>.
16930         (child_main): Remove function.
16931         (test_pipe): Pass only one argument to the child program.
16932         (main): Remove child process code. Expect the child program's name as
16933         first argument.
16934         * tests/test-spawn-pipe.sh: Pass the child program's name as first
16935         argument.
16936         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
16937         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
16938         test-spawn-pipe-child against no libraries.
16939
16940 2011-06-06  Bruno Haible  <bruno@clisp.org>
16941
16942         careadlinkat: Avoid mismatch between ssize_t and int.
16943         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
16944         * lib/careadlinkat.c (careadlinkatcwd): Define always.
16945
16946 2011-06-06  Jim Meyering  <meyering@redhat.com>
16947
16948         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
16949         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
16950         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
16951
16952 2011-06-05  Bruno Haible  <bruno@clisp.org>
16953
16954         ansi-c++-opt: Interoperability with libtool.
16955         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
16956         set the variable to "no", not to ":".
16957         * NEWS: Mention the change.
16958
16959 2011-06-05  Bruno Haible  <bruno@clisp.org>
16960
16961         acl: Fix test failure on AIX 7.
16962         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
16963         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
16964
16965 2011-06-05  Bruno Haible  <bruno@clisp.org>
16966
16967         pipe-filter-ii: Fix test failure on AIX and IRIX.
16968         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
16969         with EAGAIN, retry with a smaller buffer size.
16970
16971 2011-06-05  Bruno Haible  <bruno@clisp.org>
16972
16973         localename: Fix link dependencies.
16974         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
16975         * modules/localename-tests (Makefile.am): Link test-localename with
16976         $(LIBTHREAD).
16977
16978 2011-06-05  Bruno Haible  <bruno@clisp.org>
16979
16980         error: Avoid gcc warning.
16981         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
16982
16983 2011-06-05  Bruno Haible  <bruno@clisp.org>
16984
16985         unsetenv: Avoid gcc warning.
16986         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
16987
16988 2011-06-05  Bruno Haible  <bruno@clisp.org>
16989
16990         setenv: Avoid gcc warning.
16991         * lib/setenv.c (setenv): Provide declaration if system lacks it.
16992
16993 2011-06-05  Bruno Haible  <bruno@clisp.org>
16994
16995         sys_select: Ensure memset is declared also on AIX 7.
16996         * lib/sys_select.in.h: Include <string.h> also on AIX.
16997         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
16998         self-contained also on AIX 7.1.
16999
17000 2011-06-04  Jim Meyering  <meyering@redhat.com>
17001
17002         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
17003         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
17004         function name, "error".
17005         (_gl_translatable_diag_func_re): New configurable variable.
17006
17007 2011-06-04  Bruno Haible  <bruno@clisp.org>
17008
17009         getopt: Avoid gcc warning.
17010         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
17011
17012 2011-06-04  Bruno Haible  <bruno@clisp.org>
17013
17014         strerror_r: Fix comments.
17015         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
17016         commit.
17017
17018 2011-06-04  Bruno Haible  <bruno@clisp.org>
17019
17020         perror: Fix compilation error.
17021         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
17022         Undefine fprintf, not sprintf.
17023         * modules/perror (Depends-on): Remove intprops, verify.
17024
17025 2011-06-04  Bruno Haible  <bruno@clisp.org>
17026
17027         setlocale: Enable replacement on Cygwin 1.5.
17028         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
17029         Cygwin 1.5.x.
17030         * doc/posix-functions/setlocale.texi: Mention that the problem with the
17031         LC_CTYPE category also exists on Cygwin 1.5.x.
17032
17033 2011-06-04  Bruno Haible  <bruno@clisp.org>
17034
17035         strerror-override: Don't disable symbol renamings.
17036         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
17037         * lib/strerror-override.c: Include config.h.
17038         (strerror_override): Don't undefine.
17039
17040 2011-06-03  Bruno Haible  <bruno@clisp.org>
17041
17042         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
17043         * lib/localename.h: Update copyright header.
17044         * lib/localename.c: Likewise.
17045         * lib/relocatable.h: Likewise.
17046         * lib/relocatable.c: Likewise.
17047
17048 2011-06-02  Bruno Haible  <bruno@clisp.org>
17049
17050         doc: Fix a module name.
17051         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
17052
17053 2011-06-02  Bruno Haible  <bruno@clisp.org>
17054
17055         pipe2: Remove dependency on 'nonblocking' module.
17056         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
17057         O_NONBLOCK is defined by gnulib.
17058         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
17059         is zero.
17060         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
17061         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
17062         defined by gnulib.
17063         (get_nonblocking_flag): New function.
17064         (main): Test O_NONBLOCK flag only if it is nonzero.
17065         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
17066
17067 2011-06-03  Jim Meyering  <meyering@redhat.com>
17068
17069         maint: three new prohibit-header-without-use rules
17070         Prohibit use of cloexec.h, posixver.h, same.h without use.
17071         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
17072         (sc_prohibit_posixver_without_use): Likewise.
17073         (sc_prohibit_same_without_use): Likewise.
17074
17075 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
17076
17077         allocator: 'die' routine is now given requested size
17078         * lib/allocator.h (struct allocator.die): New size arg.
17079         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
17080         If the actual problem is an ssize_t limitation, not a size_t or
17081         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
17082
17083 2011-06-01  Eric Blake  <eblake@redhat.com>
17084
17085         strerror: drop strerror_r dependency
17086         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
17087         * lib/strerror-override.c (strerror_override): ...to new file.
17088         * lib/strerror-override.h: Add prototype.
17089         * lib/strerror-impl.h: Delete.
17090         * lib/strerror.c (strerror): New implementation.
17091         * modules/errno (Files): Add new files.
17092         (configure.ac): Compile new file as appropriate.
17093         * modules/strerror (Files): Drop unused file.
17094         (Depends-on): Drop strerror_r-posix.
17095         * MODULES.html.sh: Document strerror_r-posix.
17096         Requested by Sam Steingold.
17097
17098         perror: call strerror_r directly
17099         * modules/perror (Files): Drop strerror-impl.h.
17100         * lib/perror.c (perror): Use our own stack buffer, rather than
17101         calling a wrapper that uses static storage.
17102         * doc/posix-functions/perror.texi (perror): Document a limitation
17103         of our replacement.
17104
17105         strerror_r: fix includes for FreeBSD
17106         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
17107         since we use abort on some platforms.
17108         Reported by Matthias Bolte.
17109
17110 2011-05-31  Bruno Haible  <bruno@clisp.org>
17111
17112         Fix link errors in tests: openat-die uses gettext-h.
17113         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
17114         against $(LIBINTL).
17115         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
17116         against $(LIBINTL).
17117         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
17118         $(LIBINTL).
17119         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
17120         against $(LIBINTL).
17121         * modules/linkat-tests (Makefile.am): Link test-linkat against
17122         $(LIBINTL).
17123         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
17124         $(LIBINTL).
17125         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
17126         against $(LIBINTL).
17127         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
17128         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
17129         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
17130         $(LIBINTL).
17131         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
17132         $(LIBINTL).
17133         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
17134         $(LIBINTL).
17135         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17136
17137 2011-05-31  Bruno Haible  <bruno@clisp.org>
17138
17139         Fix link errors in tests: wait-process uses gettext-h.
17140         * modules/nonblocking-pipe-tests (Makefile.am): Set
17141         test_nonblocking_pipe_main_LDADD.
17142         * modules/nonblocking-socket-tests (Makefile.am): Link
17143         test-nonblocking-socket-main against $(LIBINTL).
17144         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17145
17146 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
17147
17148         assert-h: work around 'verify' incompatibility
17149         * lib/verify.h: Use @...@ directives, not ifdef.
17150         * modules/assert-h (assert.h): Implement the directives.
17151         (assert.h): Substitute the symbol-prefix more consistently.
17152
17153 2011-05-29  Jim Meyering  <meyering@redhat.com>
17154
17155         trim: remove three superfluous assignments
17156         * lib/trim.c (trim2): Remove three superfluous assignments
17157         and correct brace positioning.
17158
17159 2011-05-29  Bruno Haible  <bruno@clisp.org>
17160
17161         wctype-h: Avoid namespace pollution on Solaris 2.6.
17162         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
17163         identifiers.
17164         * doc/posix-headers/wctype.texi: Mention the problem.
17165         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17166
17167 2011-05-28  Jim Meyering  <meyering@redhat.com>
17168
17169         parse-datetime.y: accommodate -Wstrict-overflow
17170         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
17171         placate -Wstrict-overflow.
17172
17173         trim: avoid a warning from -O2 -Wstrict-overflow
17174         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
17175
17176 2011-05-29  Bruno Haible  <bruno@clisp.org>
17177
17178         gnulib-tool: Fix bug in yesterday's commit.
17179         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
17180         twice.
17181
17182 2011-05-29  Bruno Haible  <bruno@clisp.org>
17183
17184         Allow multiple gnulib generated include files to be combined.
17185         * gnulib-tool (func_compute_include_guard_prefix): New function.
17186         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
17187         ${gl_include_guard_prefix} references.
17188         (func_import, func_create_testdir): Invoke
17189         func_compute_include_guard_prefix.
17190         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
17191         * lib/ctype.in.h: Likewise.
17192         * lib/dirent.in.h: Likewise.
17193         * lib/errno.in.h: Likewise.
17194         * lib/fcntl.in.h: Likewise.
17195         * lib/float.in.h: Likewise.
17196         * lib/getopt.in.h: Likewise.
17197         * lib/iconv.in.h: Likewise.
17198         * lib/langinfo.in.h: Likewise.
17199         * lib/locale.in.h: Likewise.
17200         * lib/math.in.h: Likewise.
17201         * lib/netdb.in.h: Likewise.
17202         * lib/netinet_in.in.h: Likewise.
17203         * lib/poll.in.h: Likewise.
17204         * lib/pthread.in.h: Likewise.
17205         * lib/pty.in.h: Likewise.
17206         * lib/sched.in.h: Likewise.
17207         * lib/se-selinux.in.h: Likewise.
17208         * lib/search.in.h: Likewise.
17209         * lib/signal.in.h: Likewise.
17210         * lib/spawn.in.h: Likewise.
17211         * lib/stdarg.in.h: Likewise.
17212         * lib/stddef.in.h: Likewise.
17213         * lib/stdint.in.h: Likewise.
17214         * lib/stdio.in.h: Likewise.
17215         * lib/stdlib.in.h: Likewise.
17216         * lib/string.in.h: Likewise.
17217         * lib/strings.in.h: Likewise.
17218         * lib/sys_file.in.h: Likewise.
17219         * lib/sys_ioctl.in.h: Likewise.
17220         * lib/sys_select.in.h: Likewise.
17221         * lib/sys_socket.in.h: Likewise.
17222         * lib/sys_stat.in.h: Likewise.
17223         * lib/sys_time.in.h: Likewise.
17224         * lib/sys_times.in.h: Likewise.
17225         * lib/sys_uio.in.h: Likewise.
17226         * lib/sys_utsname.in.h: Likewise.
17227         * lib/sys_wait.in.h: Likewise.
17228         * lib/sysexits.in.h: Likewise.
17229         * lib/termios.in.h: Likewise.
17230         * lib/time.in.h: Likewise.
17231         * lib/unistd.in.h: Likewise.
17232         * lib/wchar.in.h: Likewise.
17233         * lib/wctype.in.h: Likewise.
17234         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
17235         * modules/ctype (Makefile.am): Likewise.
17236         * modules/dirent (Makefile.am): Likewise.
17237         * modules/errno (Makefile.am): Likewise.
17238         * modules/fcntl-h (Makefile.am): Likewise.
17239         * modules/float (Makefile.am): Likewise.
17240         * modules/getopt-posix (Makefile.am): Likewise.
17241         * modules/iconv-h (Makefile.am): Likewise.
17242         * modules/langinfo (Makefile.am): Likewise.
17243         * modules/locale (Makefile.am): Likewise.
17244         * modules/math (Makefile.am): Likewise.
17245         * modules/netdb (Makefile.am): Likewise.
17246         * modules/netinet_in (Makefile.am): Likewise.
17247         * modules/poll-h (Makefile.am): Likewise.
17248         * modules/pthread (Makefile.am): Likewise.
17249         * modules/pty (Makefile.am): Likewise.
17250         * modules/sched (Makefile.am): Likewise.
17251         * modules/search (Makefile.am): Likewise.
17252         * modules/selinux-h (Makefile.am): Likewise.
17253         * modules/signal (Makefile.am): Likewise.
17254         * modules/spawn (Makefile.am): Likewise.
17255         * modules/stdarg (Makefile.am): Likewise.
17256         * modules/stddef (Makefile.am): Likewise.
17257         * modules/stdint (Makefile.am): Likewise.
17258         * modules/stdio (Makefile.am): Likewise.
17259         * modules/stdlib (Makefile.am): Likewise.
17260         * modules/string (Makefile.am): Likewise.
17261         * modules/strings (Makefile.am): Likewise.
17262         * modules/sys_file (Makefile.am): Likewise.
17263         * modules/sys_ioctl (Makefile.am): Likewise.
17264         * modules/sys_select (Makefile.am): Likewise.
17265         * modules/sys_socket (Makefile.am): Likewise.
17266         * modules/sys_stat (Makefile.am): Likewise.
17267         * modules/sys_time (Makefile.am): Likewise.
17268         * modules/sys_times (Makefile.am): Likewise.
17269         * modules/sys_uio (Makefile.am): Likewise.
17270         * modules/sys_utsname (Makefile.am): Likewise.
17271         * modules/sys_wait (Makefile.am): Likewise.
17272         * modules/sysexits (Makefile.am): Likewise.
17273         * modules/termios (Makefile.am): Likewise.
17274         * modules/time (Makefile.am): Likewise.
17275         * modules/unistd (Makefile.am): Likewise.
17276         * modules/wchar (Makefile.am): Likewise.
17277         * modules/wctype-h (Makefile.am): Likewise.
17278         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
17279
17280 2011-05-29  Bruno Haible  <bruno@clisp.org>
17281
17282         assert-h: Allow multiple gnulib generated replacements to coexist.
17283         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
17284
17285 2011-05-29  Bruno Haible  <bruno@clisp.org>
17286
17287         argp: Allow coexistence with strerror_r-posix module.
17288         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
17289         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
17290         by gnulib's <string.h> replacement), assume it has the POSIX signature,
17291         not the glibc signature.
17292
17293 2011-05-28  Bruno Haible  <bruno@clisp.org>
17294
17295         gnulib-tool: Alternative structure of testdirs, similar to --import.
17296         * gnulib-tool: New option --single-configure.
17297         (func_usage): Document it.
17298         (single_configure): New variable.
17299         (func_modules_transitive_closure_separately,
17300         func_modules_transitive_closure_separately,
17301         func_determine_use_libtests, func_modules_add_dummy_separately,
17302         func_modules_to_filelist_separately): New functions, extracted from
17303         func_import.
17304         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
17305         (func_import): Use the new functions.
17306         (func_create_testdir): Set final_modules. Handle $single_configure =
17307         true case.
17308
17309 2011-05-28  Bruno Haible  <bruno@clisp.org>
17310
17311         getloadavg: Remove an unreliable safety check.
17312         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
17313         getloadavg.c is in place.
17314         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
17315         Reported by Sam Steingold <sds@gnu.org>.
17316
17317 2011-05-28  Bruno Haible  <bruno@clisp.org>
17318
17319         doc: Cleanup yet another file produced by texinfo.tex.
17320         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
17321
17322 2011-05-28  Bruno Haible  <bruno@clisp.org>
17323
17324         Finish the conditional dependencies mechanism.
17325         * gnulib-tool: New option --no-conditional-dependencies.
17326         (func_usage): Document it. Don't mark --conditional-dependencies as
17327         experimental.
17328         (cond_dependencies): The possible values can now be true, false, empty.
17329         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
17330         (func_import): Store setting in gnulib-cache.m4 and read it from there.
17331         * doc/gnulib-tool.texi (Conditional dependencies): New section.
17332
17333 2011-05-28  Bruno Haible  <bruno@clisp.org>
17334
17335         doc: Use a recent texinfo.tex.
17336         * doc/Makefile (tex_opts): New variable.
17337         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
17338
17339 2011-05-28  Jim Meyering  <meyering@redhat.com>
17340
17341         intprops.h: adjust comment to match code change
17342         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
17343         only once, it *may* have side effects.  Also fix an unrelated typo.
17344         (_GL_INT_SIGNED): Likewise.
17345
17346 2011-05-26  Simon Josefsson  <simon@josefsson.org>
17347
17348         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
17349
17350 2011-05-26  Bruno Haible  <bruno@clisp.org>
17351
17352         mbsrchr: Avoid collision with system function on Interix.
17353         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
17354         Reported by Markus Duft <mduft@gentoo.org>.
17355
17356 2011-05-15  James Youngman  <jay@gnu.org>
17357
17358         getopt: for ambiguous options, enumerate the possibilities.
17359         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
17360         the ambiguous options when an ambiguous prefix is given. This was
17361         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
17362         glibc change was
17363         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
17364
17365 2011-05-25  Eric Blake  <eblake@redhat.com>
17366
17367         getcwd: work around mingw bug
17368         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
17369         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17370         Reported by Matthias Bolte.
17371
17372 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
17373
17374         test-intprops: disable -Wtype-limits diagnostics
17375         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
17376         diagnostics.  Otherwise, the integer overflow macros generate many
17377         diagnostics.  Reported by Jim Meyering in
17378         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
17379
17380         intprops: shorten, to pacify gcc -Woverlength-strings
17381         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
17382         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
17383         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
17384         likely to run afoul of C compiler limits for string constant lengths.
17385         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
17386
17387 2011-05-24  Eric Blake  <eblake@redhat.com>
17388
17389         docs: document recently fixed glibc printf bug
17390         * doc/posix-functions/fprintf.texi (fprintf): Document it.
17391         * doc/posix-functions/printf.texi (printf): Likewise.
17392         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17393         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17394
17395         closein-tests: convert to init.sh
17396         * modules/closein-tests (Files): Add init.sh
17397         * tests/test-closein.sh Use it.
17398
17399         yesno-tests: convert to init.sh
17400         * modules/yesno-tests (Files): Add init.sh.
17401         * tests/test-yesno.sh: Use it.
17402
17403         atexit-tests: ensure reliable exit status
17404         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
17405         Reported by Bruno Haible.
17406
17407 2011-05-24  Bruno Haible  <bruno@clisp.org>
17408
17409         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
17410         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
17411         gl_PREREQ_STRERROR_R invocations from here...
17412         * modules/strerror_r-posix (configure.ac): ... to here.
17413
17414 2011-05-24  Eric Blake  <eblake@redhat.com>
17415
17416         strerror_r: fix missing header
17417         * lib/strerror_r.c: Avoid compiler warning about snprintf.
17418
17419         strerror_r: fix AIX test failures
17420         * lib/strerror_r.c (strerror_r): Convert silent truncation to
17421         ERANGE failure.
17422
17423         strerror_r: fix Solaris test failures
17424         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
17425         failures.
17426         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
17427
17428         strerror_r: enforce POSIX recommendations
17429         * lib/strerror_r.c (safe_copy): New helper method.
17430         (strerror_r): Guarantee a non-empty string.
17431         * tests/test-strerror_r.c (main): Enhance tests to incorporate
17432         recent POSIX rulings and to match our strerror guarantees.
17433         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
17434
17435 2011-05-24  Jim Meyering  <meyering@redhat.com>
17436
17437         test-perror2.c: avoid warning about unused variable
17438         * tests/test-perror2.c (main): Remove declaration of unused "fp".
17439
17440 2011-05-24  Eric Blake  <eblake@redhat.com>
17441
17442         perror: avoid spurious test failure on HP-UX
17443         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
17444
17445         tests: fix logic bug in init.sh
17446         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
17447         shell.
17448
17449 2011-05-24  Jim Meyering  <meyering@redhat.com>
17450
17451         utimensat: do not reference an out-of-scope buffer
17452         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
17453         declared in an inner scope, yet "times" would be dereferenced outside
17454         the scope in which "ts" was valid.
17455         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
17456         of ts[2] "out/up", so that the use of aliased "times" (via
17457         "times = ts;") does not end up referencing an out-of-scope "ts"
17458
17459         opendir-safer.c: don't clobber errno; don't close negative FD
17460         * lib/opendir-safer.c (opendir_safer):
17461         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
17462         file descriptor, and more importantly, don't clobber the
17463         offending errno value with EINVAL.  Before, upon failure
17464         of dup_safer, we would pass the negative file descriptor to
17465         fdopendir, which would clobber errno.
17466
17467 2011-05-23  Bruno Haible  <bruno@clisp.org>
17468
17469         idcache: Fix module description.
17470         * modules/idcache (Include): Set to "idcache.h".
17471
17472 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
17473
17474         gnulib-tool: fix portability problem with MacOS sed
17475         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
17476         before the "}".  Problem reported by Leo in
17477         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
17478         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
17479         sed_extract_condition1, sed_extract_condition2.
17480
17481 2011-05-23  Bruno Haible  <bruno@clisp.org>
17482
17483         hash: Simplify autoconf macro.
17484         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
17485
17486 2011-05-23  Bruno Haible  <bruno@clisp.org>
17487
17488         getugroups: Fix module description.
17489         * modules/getugroups (Include): Set to "getugroups.h".
17490
17491 2011-05-23  Bruno Haible  <bruno@clisp.org>
17492
17493         linkat: Simplify autoconf macro.
17494         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
17495
17496 2011-05-23  Bruno Haible  <bruno@clisp.org>
17497             Eric Blake  <eblake@redhat.com>
17498
17499         linkat, renameat: Update dependencies.
17500         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
17501         * modules/linkat (Depends-on): Likewise. Remove also readlink,
17502         symlinkat.
17503
17504 2011-05-23  Jim Meyering  <meyering@redhat.com>
17505
17506         maint.mk: more tight_scope improvements
17507         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
17508         (_gl_TS_headers): Define only in if-0'd block.
17509         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
17510         sometimes we must *not* use it.  Adjust uses accordingly.
17511         (sc_tight_scope): Use much simpler grep-based test to determine
17512         whether we skip this rule.
17513
17514         maint.mk: generalize/improve the tight-scope rule
17515         * top/maint.mk: Emit a warning when the test is skipped.
17516         (_gl_TS_dir): Add $(srcdir)/ prefix.
17517         (_gl_TS_function_match): Simplify, rather than trying
17518         to enumerate common types.  Otherwise, it would fail to match an
17519         "extern unsigned char const *" declaration in idutils.
17520         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
17521         a way to support use of that type of macro.
17522         (_gl_TS_var_match): Simplify regexp.
17523         (_gl_TS_obj_files): New configurable variable.
17524         (_gl_TS_headers): Likewise.
17525
17526 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17527
17528         verify: fix bug when gnulib <assert.h> is also included
17529         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
17530         is defined, not if _GL_STATIC_ASSERT_H is not defined.
17531         Perhaps there's a better way, but this fixes the immediate problem.
17532         Problem reported by Bruno Haible in
17533         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
17534
17535 2011-05-22  Bruno Haible  <bruno@clisp.org>
17536
17537         xgetcwd: Simplify autoconf macro.
17538         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
17539
17540 2011-05-22  Bruno Haible  <bruno@clisp.org>
17541
17542         New module 'mktime-internal'.
17543         * modules/mktime-internal: New file.
17544         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
17545         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
17546         mktime_internal as a C macro if libc has __mktime_internal.
17547         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
17548         conditions.
17549         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
17550
17551 2011-05-22  Bruno Haible  <bruno@clisp.org>
17552
17553         timegm: Correct mktime replacement statements.
17554         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
17555         defining mktime as a C macro. This completes a 2009-07-28 commit.
17556
17557 2011-05-22  Bruno Haible  <bruno@clisp.org>
17558
17559         timegm: Simplify autoconf macro.
17560         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
17561
17562 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
17563
17564         clock-time: change to LGPLv2+.
17565         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
17566         BSD-like but we have no mark for that; this is good enough for now.
17567
17568 2011-05-21  Bruno Haible  <bruno@clisp.org>
17569
17570         strerror_r: Fix comments.
17571         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
17572
17573 2011-05-21  Bruno Haible  <bruno@clisp.org>
17574
17575         relocatable-prog-wrapper: Fix possible link error.
17576         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
17577         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
17578         (gl_FUNC_SETENV): ... to here.
17579         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
17580         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
17581
17582 2011-05-21  Bruno Haible  <bruno@clisp.org>
17583
17584         relocatable-prog-wrapper: Assume strerror() exists.
17585         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
17586         m4/strerror.m4.
17587         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
17588         * lib/relocwrapper.c: Remove mention of strerror module.
17589         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
17590         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
17591         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
17592         C macro.
17593
17594 2011-05-21  Bruno Haible  <bruno@clisp.org>
17595
17596         select: Simplify replacement idiom.
17597         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
17598         Win32 platforms.
17599         * lib/sys_select.in.h (select): Simplify accordingly.
17600         * modules/select (Depends-on): Likewise.
17601
17602 2011-05-21  Bruno Haible  <bruno@clisp.org>
17603
17604         mkdir-p: Simplify autoconf macro.
17605         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
17606         gl_FUNC_LCHOWN.
17607
17608 2011-05-21  Eric Blake  <eblake@redhat.com>
17609
17610         strerror_r: avoid clobbering strerror on cygwin
17611         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
17612         fall back instead to sys_errlist.
17613         * modules/strerror (configure.ac): Add witness.
17614         * tests/test-strerror_r.c (main): Enhance test.
17615         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17616         * tests/test-perror2.c (main): Free memory before exit.
17617
17618 2011-05-21  Bruno Haible  <bruno@clisp.org>
17619
17620         mkdtemp: Use gnulib naming conventions.
17621         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
17622         * modules/mkdtemp (configure.ac): Update.
17623
17624 2011-05-20  Eric Blake  <eblake@redhat.com>
17625
17626         strerror_r: avoid corrupting errno on Solaris
17627         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
17628         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17629
17630         strerror_r: avoid compiler warning
17631         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
17632
17633         strerror_r: simplify AIX code
17634         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
17635
17636         test-perror: avoid spurious failure on FreeBSD
17637         * modules/perror-tests (Depends-on): Add strerror, now that
17638         strerror_r no longer pulls it in.
17639
17640 2011-05-20  Bruno Haible  <bruno@clisp.org>
17641
17642         strerror_r-posix: Remove unused dependencies.
17643         * modules/strerror_r-posix (Depends-on): Remove strerror.
17644         Reported by Eric Blake.
17645
17646 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17647
17648         intprops: remove assumption about A|B representation
17649         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
17650         is a valid integer if both A and B are.  Although this is true for
17651         all known practical hosts, the C standard doesn't guarantee it,
17652         and the code need not assume it.  Also, this change may work around
17653         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
17654         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
17655
17656 2011-05-20  Eric Blake  <eblake@redhat.com>
17657
17658         perror: work around FreeBSD bug
17659         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
17660         is broken.  Move AC_LIBOBJ...
17661         * modules/perror (configure.ac): Here.
17662         * doc/posix-functions/perror.texi (perror): Document this.
17663         * tests/test-perror2.c (main): Enhance test.
17664
17665         test-perror: check for strerror interactions
17666         * tests/macros.h (STREQ): Add macro.
17667         * modules/perror-tests (Files): Add second test.
17668         * tests/test-perror2.c (main): New file.
17669         * doc/posix-functions/perror.texi (perror): Document glibc bug.
17670
17671         test-perror: rewrite to use init script
17672         * modules/perror-tests (Files): Add init.sh.
17673         * tests/test-perror.sh: Use temporary directory.
17674
17675 2011-05-20  Jim Meyering  <meyering@redhat.com>
17676
17677         maint: replace misused "a" with "an"
17678         * doc/intprops.texi: "a integer"
17679         * doc/regex.texi: "a explanation"
17680         * lib/alignof.h: "a object"
17681         * lib/argmatch.h: "a explanation"
17682         * lib/argp-help.c: "a option" and "a OPTION_DOC"
17683         * lib/stdint.in.h: "a integer"
17684         * lib/userspec.c: "a owner"
17685         * doc/gnulib.texi: Fix "a idea", and reword.
17686
17687 2011-05-19  Jim Meyering  <meyering@redhat.com>
17688
17689         maint: correct misuse of "a" and "an"
17690         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
17691         * lib/argp-help.c: "an docum...": s/an/a/
17692         * lib/argp-parse.c: "An vector": s/An/A/
17693         * lib/execute.c: "an native": s/an/a/
17694         * lib/spawn-pipe.c: Likewise.
17695         * lib/gc.h: "an Gc_rc": s/an/a/
17696         * lib/unigbrk.in.h: "an grapheme": s/an/a/
17697         * lib/fts.c: "an stat.st_dev": s/an/a/
17698
17699 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17700
17701         intprops-tests: work around HP-UX 11.23 cc bug with constants
17702         * tests/test-intprops.c (VERIFY): New macro.
17703         (main): Use it, instead of verify, to work around the compiler bug; see
17704         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17705
17706         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
17707         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
17708         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
17709         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
17710         (_GL_REMAINDER_OVERFLOW): Use it.
17711
17712         intprops-tests: revert unsigned part of previous change
17713         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
17714         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
17715         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
17716         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
17717
17718 2011-05-19  Bruno Haible  <bruno@clisp.org>
17719
17720         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
17721         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
17722         strerror_r() returned without filling the buffer.
17723         Reported by Eric Blake.
17724
17725 2011-05-19  Eric Blake  <eblake@redhat.com>
17726
17727         strerror_r: guarantee unchanged errno
17728         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
17729         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
17730         failure.
17731         * tests/test-strerror_r.c (main): Enhance test.
17732
17733 2011-05-19  Bruno Haible  <bruno@clisp.org>
17734
17735         strerror_r: Reorder #if blocks.
17736         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
17737         for consistency with the previous commit.
17738
17739 2011-05-19  Bruno Haible  <bruno@clisp.org>
17740
17741         perror: Avoid clobbering the strerror buffer when possible.
17742         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
17743         * lib/strerror.c: Include it.
17744         * modules/strerror (Files): Add lib/strerror-impl.h.
17745         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
17746         (my_strerror): New function, defined through lib/strerror-impl.h.
17747         (perror): Use it instead of strerror.
17748         * modules/perror (Files): Add lib/strerror-impl.h.
17749         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
17750
17751 2011-05-19  Eric Blake  <eblake@redhat.com>
17752
17753         strerror_r: fix on newer cygwin
17754         * lib/strerror_r.c (strerror_r): Cygwin now has
17755         __xpg_strerror_r, use it.
17756
17757 2011-05-19  Bruno Haible  <bruno@clisp.org>
17758
17759         strerror_r: Avoid clobbering the strerror buffer when possible.
17760         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
17761         (sys_nerr, sys_errlist): New declarations.
17762         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
17763         HP-UX, native Win32, IRIX, and 32-bit Solaris.
17764         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
17765
17766 2011-05-19  Bruno Haible  <bruno@clisp.org>
17767
17768         strerror_r: Fix test failure on mingw.
17769         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
17770         EXTEND_STRERROR_R.
17771         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
17772         macros from errno.in.h instead.
17773
17774 2011-05-19  Eric Blake  <eblake@redhat.com>
17775
17776         strerror: relax test for Solaris
17777         * tests/test-strerror.c (main): Permit Solaris behavior.
17778         * tests/test-strerror_r.c (main): Likewise.
17779
17780         strerror: enforce POSIX ruling on strerror(0)
17781         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
17782         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17783         * lib/strerror_r.c (rpl_strerror_r): Work around it.
17784         * doc/posix-functions/strerror.texi (strerror): Document it.
17785         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
17786         * tests/test-strerror.c (main): Strengthen test.
17787         * tests/test-strerror_r.c (main): Likewise.
17788
17789 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17790
17791         intprop-tests: port to older and more-pedantic compilers
17792         * modules/intprops-tests (Files): Add tests/macros.h.
17793         * tests/test-intprops.c: Include macros.h.
17794         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
17795         it's no longer documented to expand to an integer constant expression.
17796         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
17797         argument is floating point, as it's no longer documented to expand
17798         to an integer constant expression in that case.
17799         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
17800         compiler bugs reported by Bruno Haible.  See
17801         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17802         (U0, U1): New constants, to work around the same bugs.  Also,
17803         in tests, use e.g., "(unsigned int) 39" rather than "39u".
17804
17805         intprops: work around C compiler bugs
17806         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
17807         bug in Sun C 5.11 2010/08/13 and other compilers; see
17808         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17809
17810         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
17811         * doc/intprops.texi (Integer Type Determination): Fix
17812         documentation for TYPE_IS_INTEGER: it returns an constant
17813         expression, not an integer constant expression.  Fix doc for
17814         TYPE_SIGNED: it returns an integer constant expression only if its
17815         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
17816         hardly worth documented that way....)
17817
17818 2011-05-18  Bruno Haible  <bruno@clisp.org>
17819
17820         strerror_r: Avoid clobbering the strerror buffer when possible.
17821         * lib/strerror_r.c (strerror_r): Merge the three implementations.
17822         Handle gnulib defined errno values here. When strerror() returns NULL
17823         or an empty string, return EINVAL.
17824         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
17825         gnulib defined errno values here.
17826         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
17827
17828 2011-05-18  Eric Blake  <eblake@redhat.com>
17829
17830         fnmatch: avoid compiler warning
17831         * lib/fnmatch_loop.c (FCT): Use correct type.
17832         Reported by Matthias Bolte.
17833
17834 2011-05-13  Jim Meyering  <meyering@redhat.com>
17835
17836         maint.mk: three new prohibit_<HDR>_without_use rules
17837         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
17838         (sc_prohibit_stdio-safer_without_use): Likewise.
17839         (sc_prohibit_xfreopen_without_use): Likewise.
17840
17841 2011-05-17  Jim Meyering  <meyering@redhat.com>
17842
17843         announce-gen: fail if the NEWS delta is empty
17844         If there's nothing noteworthy in NEWS, then either you forgot
17845         or you shouldn't be releasing.
17846         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
17847
17848 2011-05-17  Pádraig Brady <P@draigBrady.com>
17849
17850         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
17851         reserved symbols starting with double underscore from the check.
17852
17853 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
17854
17855         intprops: add doc
17856         * doc/intprops.texi: New file, documenting intprops.
17857         * doc/gnulib.texi (Particular Modules): Include it.
17858
17859         verify: add doc to gnulib manual and fix example
17860         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
17861         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
17862         (Compile-time Assertions): Fix example so it can't overflow.
17863
17864 2011-05-17  Jim Meyering  <meyering@redhat.com>
17865
17866         warnings.m4: don't usurp save_CPPFLAGS variable name
17867         * m4/warnings.m4: Prefix local temporary variable name with gl_.
17868
17869         doc: fix typo
17870         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
17871
17872 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17873             Bruno Haible  <bruno@clisp.org>
17874
17875         doc: Tweak recent change.
17876         * README (Portability guidelines): Tweak new text.
17877         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
17878         Interix 6.1.
17879
17880 2011-05-16  Eric Blake  <eblake@redhat.com>
17881
17882         inttypes: avoid autoconf warning
17883         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
17884         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17885
17886 2011-05-16  Sam Steingold <sds@gnu.org>
17887         and Eric Blake  <eblake@redhat.com>
17888
17889         vc-list-files: accept multiple directory operands
17890         * build-aux/vc-list-files: Iterate over all remaining operands.
17891
17892 2011-05-16  Bruno Haible  <bruno@clisp.org>
17893
17894         Fix confusion regarding deprecated modules.
17895         * modules/calloc (Status, Notice): Mark module as deprecated, not
17896         obsolete.
17897         * modules/fnmatch-posix (Status, Notice): Likewise.
17898         * modules/getdate (Status, Notice): Likewise.
17899         * modules/getopt (Status, Notice): Likewise.
17900         * modules/malloc (Status, Notice): Likewise.
17901         * modules/pipe (Status, Notice): Likewise.
17902         * modules/realloc (Status, Notice): Likewise.
17903         * modules/rename-dest-slash (Status, Notice): Likewise.
17904         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
17905         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
17906         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
17907         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
17908         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
17909
17910 2011-05-16  Bruno Haible  <bruno@clisp.org>
17911
17912         doc: List the target platforms.
17913         * doc/gnulib-intro.texi (Target Platforms): New section.
17914         * doc/gnulib.texi (Introduction): Update menu.
17915         * README (Portability guidelines): Refer to the new section. Update
17916         statement about oldest supported environment. Remove rationale why
17917         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
17918         unportable C89 function.
17919         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
17920         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
17921
17922 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17923
17924         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
17925
17926 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
17927
17928         intprops-tests: new module
17929         * modules/intprops-tests, tests/test-intprops.c: New files.
17930
17931         intprops: add safe, portable integer overflow checking
17932         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
17933         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
17934         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
17935         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
17936         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
17937         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
17938         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
17939         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
17940         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
17941         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
17942         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
17943
17944 2011-05-12  James Youngman  <jay@gnu.org>
17945
17946         Add a test for glibc's Bugzilla bug #12378.
17947         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
17948         doesn't allow the literal matching of a lone "[" (which is
17949         required by POSIX).
17950         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
17951
17952 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17953
17954         Sync glibc change fixing Bugzilla bug #12378.
17955         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
17956         beginning and fall back to matching as normal character if the
17957         string ends before the matching ']' is found.  This is what POSIX
17958         requires.
17959
17960 2011-05-13  Eric Blake  <eblake@redhat.com>
17961
17962         getcwd-lgpl: relax test for FreeBSD
17963         * doc/posix-functions/getcwd.texi (getcwd): Document portability
17964         issue.
17965         * tests/test-getcwd-lgpl.c (main): Relax test.
17966         Reported by Matthias Bolte.
17967
17968 2011-05-11  Eric Blake  <eblake@redhat.com>
17969
17970         test-fflush: silence compiler warning
17971         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
17972
17973 2011-05-11  Bruno Haible  <bruno@clisp.org>
17974
17975         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
17976         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
17977         * modules/canonicalize (Depends-on): Add 'nocrash'.
17978         * modules/canonicalize-lgpl (Depends-on): Likewise.
17979         * doc/posix-functions/realpath.texi: Update platforms list.
17980         Reported by Ryan Schmidt <ryandesign@macports.org>.
17981
17982 2011-05-11  Bruno Haible  <bruno@clisp.org>
17983
17984         group-member: Declare function in <unistd.h>.
17985         * lib/unistd.in.h (group_member): New declaration.
17986         * lib/group-member.h: Remove file.
17987         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
17988         * tests/test-unistd-c++.cc: Check signature of group_member.
17989         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
17990         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
17991         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
17992         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
17993         HAVE_GROUP_MEMBER.
17994         * modules/group-member (Files): Remove lib/group-member.h.
17995         (Depends-on): Add unistd. Specify conditions.
17996         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17997         (Include): Change to <unistd.h>.
17998         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
17999         HAVE_GROUP_MEMBER.
18000         * NEWS: Mention the change.
18001         * lib/euidaccess.c: Don't include group-member.h.
18002
18003 2011-05-11  Bruno Haible  <bruno@clisp.org>
18004
18005         group-member: Document module.
18006         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
18007         module.
18008
18009 2011-05-11  Bruno Haible  <bruno@clisp.org>
18010
18011         fclose: Fix mistake earlier today.
18012         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
18013
18014 2011-05-11  Eric Blake  <eblake@redhat.com>
18015
18016         fclose: preserve fflush errors
18017         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
18018         Reported by Jim Meyering.
18019
18020         bootstrap: support a prereq of 'rpcgen -' on RHEL5
18021         * build-aux/bootstrap (check_versions): When no specific version
18022         is required, merely check that the app produces an exit status
18023         that indicates its existence.
18024
18025         maint.mk: drop redundant check
18026         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
18027         the same but better.
18028
18029 2011-05-11  Bruno Haible  <bruno@clisp.org>
18030
18031         fclose: Fix possible link error.
18032         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
18033         unregister_shadow_fd. Improve comments.
18034         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
18035         Eric Blake.
18036
18037 2011-05-11  Jim Meyering  <meyering@redhat.com>
18038
18039         maint.mk: improve "can not" detection and generalize rule name
18040         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
18041         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
18042         Use the same technique as in sc_prohibit_doubled_word, so that
18043         we recognize "can not" also when the words are separated by a newline.
18044         Suggested by Eric Blake.
18045         (perl_filename_lineno_text_): Define.  Factored out of...
18046         (prohibit_doubled_word_): ...here.  Use the new definition.
18047         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
18048         (prohibit_undesirable_word_seq_RE_): New overridable variable.
18049         (ignore_undesirable_word_sequence_RE_): New overridable variable.
18050
18051 2011-05-10  Eric Blake  <eblake@redhat.com>
18052
18053         fclose: avoid double close race when possible
18054         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
18055         all but WINDOWS_SOCKETS.
18056
18057 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
18058
18059         openat: correct new comment
18060         * lib/openat-proc.c (openat_proc_name): Correct the comment.
18061
18062 2011-05-10  Jim Meyering  <meyering@redhat.com>
18063
18064         openat: add comments
18065         * lib/openat-proc.c (openat_proc_name): Add comments,
18066         mostly from Eric Blake.
18067
18068 2011-05-09  Eric Blake  <eblake@redhat.com>
18069
18070         openat: reduce syscalls in first probe of /proc
18071         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
18072         be a directory.  Simplify the probe for .. bugs.
18073         * modules/openat (Depends-on): Drop same-inode.
18074         Reported by Bastien ROUCARIES.
18075
18076 2011-05-09  Jim Meyering  <meyering@redhat.com>
18077
18078         maint.mk: change semantics/name of tight_scope variables
18079         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
18080         Rename variables to align with semantics that make them more useful.
18081
18082         maint.mk: tweak new rule's name not to impinge
18083         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
18084         (sc_tight_scope): Use new rule name rather than $@-0.
18085
18086         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
18087         * top/maint.mk (sc_tight_scope): New rule.
18088         (sc_tight_scope-0): New rule, ifdef'd out.
18089         (_gl_TS_dir): Default.
18090         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
18091         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
18092
18093 2011-05-09  Simon Josefsson  <simon@josefsson.org>
18094
18095         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
18096         Haible <bruno@clisp.org>.
18097
18098 2011-05-08  Bruno Haible  <bruno@clisp.org>
18099
18100         Comments.
18101         * m4/isnanf.m4: Add comment.
18102         * m4/isnanl.m4: Likewise.
18103
18104 2011-05-08  Bruno Haible  <bruno@clisp.org>
18105
18106         glob: Remove obsolete macro.
18107         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
18108
18109 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
18110
18111         intprops: Sun C 5.11 supports __typeof__
18112         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
18113         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
18114         which is new.
18115         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
18116
18117         intprops: switch to usual gnulib indenting and naming
18118         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
18119         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
18120
18121         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
18122
18123 2011-05-08  Jim Meyering  <meyering@redhat.com>
18124
18125         maint.mk: suppress "Entering/Leaving directory" diag in announcement
18126         * top/maint.mk (release-prep): Use make's --no-print-directory
18127         option when generating the announcement.  This eliminates the
18128         pesky "make[2]: Entering/Leaving directory" diagnostics in the
18129         generated announcement template.
18130
18131 2011-05-08  Bruno Haible  <bruno@clisp.org>
18132
18133         tzset: Fix gettimeofday wrapper on Solaris 2.6.
18134         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
18135         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
18136
18137 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
18138
18139         ignore-value, verify: Omit include files from lib_SOURCES.
18140         * modules/ignore-value, modules/verify (Makefile.am):
18141         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
18142         that leads Automake to duplicate use of am__objects_... variables
18143         in Makefile.in.  See
18144         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
18145
18146 2011-05-07  Bruno Haible  <bruno@clisp.org>
18147
18148         fclose: Simplify autoconf macro.
18149         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
18150         defined.
18151
18152 2011-05-07  Bruno Haible  <bruno@clisp.org>
18153
18154         canonicalize-lgpl: Fix autoconf macro ordering bug.
18155         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
18156         gl_STDLIB_H_DEFAULTS.
18157
18158 2011-05-06  Eric Blake  <eblake@redhat.com>
18159
18160         maintainer-makefile: make sc_po_check easier to tune
18161         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
18162         to probe for strings, such as an alternate location for gnulib.
18163
18164         fclose: guarantee behavior on seekable stdin
18165         * modules/fclose (Depends-on): Add fflush.
18166         * doc/posix-functions/fclose.texi (fclose): Document this.
18167         * tests/test-fclose.c (main): Make test for this unconditional.
18168
18169 2011-05-06  Bruno Haible  <bruno@clisp.org>
18170
18171         fflush, fpurge: Relicense under LGPLv2+.
18172         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
18173         * modules/fpurge (License): Likewise.
18174         With permission from Eric Blake and Jim Meyering.
18175         Suggested by Eric Blake.
18176
18177 2011-05-06  Karl Berry  <karl@gnu.org>
18178
18179         * MODULES.html.sh (func_all_modules): remove exit.
18180
18181 2011-05-06  Jim Meyering  <meyering@redhat.com>
18182
18183         maint.mk: use info-gnu@ as the default only for a stable release
18184         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
18185         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
18186         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
18187         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
18188
18189 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18190
18191         assert-h: new module, which supports C1X-style static_assert
18192         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
18193         * lib/verify.h: Revamp so that this can be copied into assert.h,
18194         while retaining the ability to use it standalone as before.
18195         Rename private identifiers so as not to encroach on the
18196         standard C namespace, since this is now used by assert.h.
18197         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
18198         the old verify_true.
18199         (_GL_VERIFY_TRUE): New macro, with much of the contents of
18200         the old verify_true.  Use _GL_VERIFY_TYPE.
18201         (_GL_VERIFY): New macro, with much of the contents of the old verify.
18202         (static_assert): New macro, if _GL_STATIC_ASSERT_H
18203         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
18204         defined when this file is copied into the replacement assert.h.
18205         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
18206         and _Static_assert is not built in.
18207         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
18208         defined, and use the new macros mentioned above.
18209         * doc/posix-headers/assert.texi: Document this.
18210
18211 2011-05-05  Bruno Haible  <bruno@clisp.org>
18212
18213         fclose, fflush: Respect rules for use of AC_LIBOBJ.
18214         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
18215         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
18216         gl_REPLACE_FCLOSE here.
18217         * modules/fflush (Depends-on): Remove fclose.
18218         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
18219         combination with module 'fclose'.
18220
18221 2011-05-05  Bruno Haible  <bruno@clisp.org>
18222
18223         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
18224         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
18225         gl_FUNC_FFLUSH.
18226         (gl_FUNC_FFLUSH): Use it.
18227         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
18228         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
18229         gl_REPLACE_FSEEKO here.
18230
18231 2011-05-05  Bruno Haible  <bruno@clisp.org>
18232
18233         tzset: Relicense under LGPL.
18234         * modules/tzset (License): Change to LGPL.
18235         No agreement needed; it's a no-op.
18236
18237         strtoimax, strtoumax: Relicense under LGPL.
18238         * modules/strtoimax (License): Change to LGPL.
18239         * modules/strtoumax (License): Likewise.
18240         With permission from Jim Meyering, Paul Eggert:
18241         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
18242         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
18243
18244         getgroups: Relicense under LGPL.
18245         * modules/getgroups (License): Change to LGPL.
18246         With permission from Jim Meyering, Paul Eggert, Eric Blake:
18247         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
18248         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
18249         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18250
18251         nanosleep: Relicense under LGPL.
18252         * modules/nanosleep (License): Change to LGPL.
18253         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
18254         Haible:
18255         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
18256         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
18257         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18258         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
18259
18260         futimens: Relicense under LGPL.
18261         * modules/futimens (License): Change to LGPL.
18262         With permission from Eric Blake:
18263         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18264
18265         fflush: Relicense under LGPL.
18266         * modules/fflush (License): Change to LGPL.
18267         With permission from Eric Blake, Bruno Haible, Jim Meyering:
18268         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18269         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
18270         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
18271
18272         tmpfile: Relicense under LGPL.
18273         * modules/tmpfile (License): Change to LGPL.
18274         With permission from Ben Pfaff:
18275         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
18276
18277         isfinite: Relicense under LGPL.
18278         * modules/isfinite (License): Change to LGPL.
18279         With permission from Ben Pfaff, Bruno Haible:
18280         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
18281         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
18282
18283         acosl..tanl: Relicense under LGPL.
18284         * modules/acosl (License): Change to LGPL.
18285         * modules/asinl (License): Likewise.
18286         * modules/atanl (License): Likewise.
18287         * modules/cosl (License): Likewise.
18288         * modules/expl (License): Likewise.
18289         * modules/logl (License): Likewise.
18290         * modules/sinl (License): Likewise.
18291         * modules/sqrtl (License): Likewise.
18292         * modules/tanl (License): Likewise.
18293         Source code originally from glibc and Paolo Bonzini. Agreements:
18294         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
18295         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
18296
18297 2011-05-05  Bruno Haible  <bruno@clisp.org>
18298
18299         signal: Define sighandler_t.
18300         * lib/signal.in.h (sighandler_t): New type.
18301         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
18302         whether sighandler_t is defined.
18303         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
18304         * modules/signal (Depends-on): Add extensions.
18305         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
18306         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
18307         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
18308
18309 2011-05-05  Eric Blake  <eblake@redhat.com>
18310
18311         maint: remove useless REPLACE_*_H macros
18312         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
18313         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
18314         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
18315         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
18316         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
18317         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
18318         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
18319         * m4/btowc.m4: Update callers.
18320         * m4/dirfd.m4: Likewise.
18321         * m4/duplocale.m4: Likewise.
18322         * m4/fchdir.m4: Likewise.
18323         * m4/fdopendir.m4: Likewise.
18324         * m4/inet_ntop.m4: Likewise.
18325         * m4/inet_pton.m4: Likewise.
18326         * m4/ioctl.m4: Likewise.
18327         * m4/mbrlen.m4: Likewise.
18328         * m4/mbrtowc.m4: Likewise.
18329         * m4/mbsinit.m4: Likewise.
18330         * m4/mbsnrtowcs.m4: Likewise.
18331         * m4/mbsrtowcs.m4: Likewise.
18332         * m4/poll.m4: Likewise.
18333         * m4/setlocale.m4: Likewise.
18334         * m4/wcrtomb.m4: Likewise.
18335         * m4/wcsnrtombs.m4: Likewise.
18336         * m4/wcsrtombs.m4: Likewise.
18337         * m4/wctob.m4: Likewise.
18338         * m4/wcwidth.m4: Likewise.
18339         * modules/posix_spawn: Likewise.
18340         * modules/posix_spawn_file_actions_addclose: Likewise.
18341         * modules/posix_spawn_file_actions_adddup2: Likewise.
18342         * modules/posix_spawn_file_actions_addopen: Likewise.
18343         * modules/posix_spawn_file_actions_destroy: Likewise.
18344         * modules/posix_spawn_file_actions_init: Likewise.
18345         * modules/posix_spawnattr_destroy: Likewise.
18346         * modules/posix_spawnattr_getflags: Likewise.
18347         * modules/posix_spawnattr_getpgroup: Likewise.
18348         * modules/posix_spawnattr_getschedparam: Likewise.
18349         * modules/posix_spawnattr_getschedpolicy: Likewise.
18350         * modules/posix_spawnattr_getsigdefault: Likewise.
18351         * modules/posix_spawnattr_getsigmask: Likewise.
18352         * modules/posix_spawnattr_init: Likewise.
18353         * modules/posix_spawnattr_setflags: Likewise.
18354         * modules/posix_spawnattr_setpgroup: Likewise.
18355         * modules/posix_spawnattr_setschedparam: Likewise.
18356         * modules/posix_spawnattr_setschedpolicy: Likewise.
18357         * modules/posix_spawnattr_setsigdefault: Likewise.
18358         * modules/posix_spawnattr_setsigmask: Likewise.
18359         * modules/posix_spawnp: Likewise.
18360
18361 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
18362
18363         Add option to do-release-commit-and-tag to specify branch.
18364         * build-aux/do-release-commit-and-tag: Add --branch.
18365
18366 2011-05-03  Bruno Haible  <bruno@clisp.org>
18367
18368         Avoid unnecessary compilation units, through conditional dependencies.
18369         * modules/accept (Depends-on): Add conditions to the dependencies.
18370         * modules/acosl (Depends-on): Likewise.
18371         * modules/argz (Depends-on): Likewise.
18372         * modules/asinl (Depends-on): Likewise.
18373         * modules/atanl (Depends-on): Likewise.
18374         * modules/atoll (Depends-on): Likewise.
18375         * modules/bind (Depends-on): Likewise.
18376         * modules/btowc (Depends-on): Likewise.
18377         * modules/canonicalize-lgpl (Depends-on): Likewise.
18378         * modules/ceil (Depends-on): Likewise.
18379         * modules/ceilf (Depends-on): Likewise.
18380         * modules/ceill (Depends-on): Likewise.
18381         * modules/chdir-long (Depends-on): Likewise.
18382         * modules/chown (Depends-on): Likewise.
18383         * modules/close (Depends-on): Likewise.
18384         * modules/connect (Depends-on): Likewise.
18385         * modules/cosl (Depends-on): Likewise.
18386         * modules/dirfd (Depends-on): Likewise.
18387         * modules/dprintf (Depends-on): Likewise.
18388         * modules/dprintf-posix (Depends-on): Likewise.
18389         * modules/error (Depends-on): Likewise.
18390         * modules/euidaccess (Depends-on): Likewise.
18391         * modules/expl (Depends-on): Likewise.
18392         * modules/faccessat (Depends-on): Likewise.
18393         * modules/fchdir (Depends-on): Likewise.
18394         * modules/fclose (Depends-on): Likewise.
18395         * modules/fcntl (Depends-on): Likewise.
18396         * modules/fdopendir (Depends-on): Likewise.
18397         * modules/fflush (Depends-on): Likewise.
18398         * modules/floor (Depends-on): Likewise.
18399         * modules/floorf (Depends-on): Likewise.
18400         * modules/floorl (Depends-on): Likewise.
18401         * modules/fnmatch (Depends-on): Likewise.
18402         * modules/fopen (Depends-on): Likewise.
18403         * modules/fprintf-posix (Depends-on): Likewise.
18404         * modules/frexp (Depends-on): Likewise.
18405         * modules/frexp-nolibm (Depends-on): Likewise.
18406         * modules/frexpl (Depends-on): Likewise.
18407         * modules/frexpl-nolibm (Depends-on): Likewise.
18408         * modules/fseek (Depends-on): Likewise.
18409         * modules/fsusage (Depends-on): Likewise.
18410         * modules/ftell (Depends-on): Likewise.
18411         * modules/ftello (Depends-on): Likewise.
18412         * modules/futimens (Depends-on): Likewise.
18413         * modules/getcwd (Depends-on): Likewise.
18414         * modules/getcwd-lgpl (Depends-on): Likewise.
18415         * modules/getdelim (Depends-on): Likewise.
18416         * modules/getdomainname (Depends-on): Likewise.
18417         * modules/getgroups (Depends-on): Likewise.
18418         * modules/gethostname (Depends-on): Likewise.
18419         * modules/getline (Depends-on): Likewise.
18420         * modules/getlogin_r (Depends-on): Likewise.
18421         * modules/getopt-posix (Depends-on): Likewise.
18422         * modules/getpeername (Depends-on): Likewise.
18423         * modules/getsockname (Depends-on): Likewise.
18424         * modules/getsockopt (Depends-on): Likewise.
18425         * modules/getsubopt (Depends-on): Likewise.
18426         * modules/getusershell (Depends-on): Likewise.
18427         * modules/glob (Depends-on): Likewise.
18428         * modules/grantpt (Depends-on): Likewise.
18429         * modules/iconv_open (Depends-on): Likewise.
18430         * modules/iconv_open-utf (Depends-on): Likewise.
18431         * modules/inet_ntop (Depends-on): Likewise.
18432         * modules/inet_pton (Depends-on): Likewise.
18433         * modules/ioctl (Depends-on): Likewise.
18434         * modules/isapipe (Depends-on): Likewise.
18435         * modules/isfinite (Depends-on): Likewise.
18436         * modules/isinf (Depends-on): Likewise.
18437         * modules/lchown (Depends-on): Likewise.
18438         * modules/ldexpl (Depends-on): Likewise.
18439         * modules/link (Depends-on): Likewise.
18440         * modules/linkat (Depends-on): Likewise.
18441         * modules/listen (Depends-on): Likewise.
18442         * modules/logl (Depends-on): Likewise.
18443         * modules/lstat (Depends-on): Likewise.
18444         * modules/mbrlen (Depends-on): Likewise.
18445         * modules/mbrtowc (Depends-on): Likewise.
18446         * modules/mbsinit (Depends-on): Likewise.
18447         * modules/mbsnrtowcs (Depends-on): Likewise.
18448         * modules/mbsrtowcs (Depends-on): Likewise.
18449         * modules/mbtowc (Depends-on): Likewise.
18450         * modules/memcmp (Depends-on): Likewise.
18451         * modules/mkdir (Depends-on): Likewise.
18452         * modules/mkdtemp (Depends-on): Likewise.
18453         * modules/mkfifo (Depends-on): Likewise.
18454         * modules/mkfifoat (Depends-on): Likewise.
18455         * modules/mknod (Depends-on): Likewise.
18456         * modules/mkostemp (Depends-on): Likewise.
18457         * modules/mkostemps (Depends-on): Likewise.
18458         * modules/mkstemp (Depends-on): Likewise.
18459         * modules/mkstemps (Depends-on): Likewise.
18460         * modules/mktime (Depends-on): Likewise.
18461         * modules/nanosleep (Depends-on): Likewise.
18462         * modules/open (Depends-on): Likewise.
18463         * modules/openat (Depends-on): Likewise.
18464         * modules/perror (Depends-on): Likewise.
18465         * modules/poll (Depends-on): Likewise.
18466         * modules/popen (Depends-on): Likewise.
18467         * modules/posix_spawn (Depends-on): Likewise.
18468         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
18469         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
18470         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
18471         * modules/posix_spawnp (Depends-on): Likewise.
18472         * modules/pread (Depends-on): Likewise.
18473         * modules/printf-posix (Depends-on): Likewise.
18474         * modules/ptsname (Depends-on): Likewise.
18475         * modules/putenv (Depends-on): Likewise.
18476         * modules/pwrite (Depends-on): Likewise.
18477         * modules/readline (Depends-on): Likewise.
18478         * modules/readlink (Depends-on): Likewise.
18479         * modules/readlinkat (Depends-on): Likewise.
18480         * modules/recv (Depends-on): Likewise.
18481         * modules/recvfrom (Depends-on): Likewise.
18482         * modules/regex (Depends-on): Likewise.
18483         * modules/remove (Depends-on): Likewise.
18484         * modules/rename (Depends-on): Likewise.
18485         * modules/renameat (Depends-on): Likewise.
18486         * modules/rmdir (Depends-on): Likewise.
18487         * modules/round (Depends-on): Likewise.
18488         * modules/roundf (Depends-on): Likewise.
18489         * modules/roundl (Depends-on): Likewise.
18490         * modules/rpmatch (Depends-on): Likewise.
18491         * modules/select (Depends-on): Likewise.
18492         * modules/send (Depends-on): Likewise.
18493         * modules/sendto (Depends-on): Likewise.
18494         * modules/setenv (Depends-on): Likewise.
18495         * modules/setlocale (Depends-on): Likewise.
18496         * modules/setsockopt (Depends-on): Likewise.
18497         * modules/shutdown (Depends-on): Likewise.
18498         * modules/sigaction (Depends-on): Likewise.
18499         * modules/signbit (Depends-on): Likewise.
18500         * modules/sigprocmask (Depends-on): Likewise.
18501         * modules/sinl (Depends-on): Likewise.
18502         * modules/sleep (Depends-on): Likewise.
18503         * modules/snprintf (Depends-on): Likewise.
18504         * modules/snprintf-posix (Depends-on): Likewise.
18505         * modules/socket (Depends-on): Likewise.
18506         * modules/sprintf-posix (Depends-on): Likewise.
18507         * modules/sqrtl (Depends-on): Likewise.
18508         * modules/stat (Depends-on): Likewise.
18509         * modules/strchrnul (Depends-on): Likewise.
18510         * modules/strdup-posix (Depends-on): Likewise.
18511         * modules/strerror (Depends-on): Likewise.
18512         * modules/strerror_r-posix (Depends-on): Likewise.
18513         * modules/strndup (Depends-on): Likewise.
18514         * modules/strnlen (Depends-on): Likewise.
18515         * modules/strptime (Depends-on): Likewise.
18516         * modules/strsep (Depends-on): Likewise.
18517         * modules/strsignal (Depends-on): Likewise.
18518         * modules/strstr-simple (Depends-on): Likewise.
18519         * modules/strtod (Depends-on): Likewise.
18520         * modules/strtoimax (Depends-on): Likewise.
18521         * modules/strtok_r (Depends-on): Likewise.
18522         * modules/strtoumax (Depends-on): Likewise.
18523         * modules/symlink (Depends-on): Likewise.
18524         * modules/symlinkat (Depends-on): Likewise.
18525         * modules/tanl (Depends-on): Likewise.
18526         * modules/tcgetsid (Depends-on): Likewise.
18527         * modules/tmpfile (Depends-on): Likewise.
18528         * modules/trunc (Depends-on): Likewise.
18529         * modules/truncf (Depends-on): Likewise.
18530         * modules/truncl (Depends-on): Likewise.
18531         * modules/uname (Depends-on): Likewise.
18532         * modules/unlink (Depends-on): Likewise.
18533         * modules/unlockpt (Depends-on): Likewise.
18534         * modules/unsetenv (Depends-on): Likewise.
18535         * modules/usleep (Depends-on): Likewise.
18536         * modules/utimensat (Depends-on): Likewise.
18537         * modules/vasprintf (Depends-on): Likewise.
18538         * modules/vdprintf (Depends-on): Likewise.
18539         * modules/vdprintf-posix (Depends-on): Likewise.
18540         * modules/vfprintf-posix (Depends-on): Likewise.
18541         * modules/vprintf-posix (Depends-on): Likewise.
18542         * modules/vsnprintf (Depends-on): Likewise.
18543         * modules/vsnprintf-posix (Depends-on): Likewise.
18544         * modules/vsprintf-posix (Depends-on): Likewise.
18545         * modules/wcrtomb (Depends-on): Likewise.
18546         * modules/wcscasecmp (Depends-on): Likewise.
18547         * modules/wcscspn (Depends-on): Likewise.
18548         * modules/wcsdup (Depends-on): Likewise.
18549         * modules/wcsncasecmp (Depends-on): Likewise.
18550         * modules/wcsnrtombs (Depends-on): Likewise.
18551         * modules/wcspbrk (Depends-on): Likewise.
18552         * modules/wcsrtombs (Depends-on): Likewise.
18553         * modules/wcsspn (Depends-on): Likewise.
18554         * modules/wcsstr (Depends-on): Likewise.
18555         * modules/wcstok (Depends-on): Likewise.
18556         * modules/wcswidth (Depends-on): Likewise.
18557         * modules/wctob (Depends-on): Likewise.
18558         * modules/wctomb (Depends-on): Likewise.
18559         * modules/wctype (Depends-on): Likewise.
18560         * modules/wcwidth (Depends-on): Likewise.
18561         * modules/write (Depends-on): Likewise.
18562
18563 2011-05-03  Bruno Haible  <bruno@clisp.org>
18564
18565         Support for conditional dependencies.
18566         * doc/gnulib.texi (Module description): Document the syntax of
18567         conditional dependencies.
18568         * gnulib-tool: New option --conditional-dependencies.
18569         (func_usage): Document it.
18570         (cond_dependencies): New variable.
18571         (func_get_automake_snippet_conditional,
18572         func_get_automake_snippet_unconditional): New functions, extracted from
18573         func_get_automake_snippet.
18574         (func_get_automake_snippet): Use them.
18575         (sed_first_32_chars): New variable.
18576         (func_module_shellfunc_name): New function.
18577         (func_module_shellvar_name): New function.
18578         (func_module_conditional_name): New function.
18579         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
18580         func_cond_module_condition): New functions.
18581         (func_modules_transitive_closure): Add support for conditional
18582         dependencies.
18583         (func_emit_lib_Makefile_am): For a conditional module, enclose the
18584         conditional automake snippet in an automake conditional.
18585         (func_emit_autoconf_snippets): Emit shell functions that contain the
18586         code for conditional modules.
18587         (func_import, func_create_testdir): Update specification.
18588
18589 2011-05-03  Eric Blake  <eblake@redhat.com>
18590
18591         test-getaddrinfo: report error information
18592         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
18593
18594 2011-05-03  Jim Meyering  <meyering@redhat.com>
18595
18596         bootstrap: avoid build failure when $GZIP is set
18597         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
18598         program name.  If defined at all, it is supposed to list gzip options.
18599         Reported by Alan Curry in http://debbugs.gnu.org/8609
18600
18601 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
18602
18603         readme-release: new module with release instructions
18604         * modules/readme-release: New module.
18605         * top/README-release: New file, from coreutils, grep, diffutils.
18606         * MODULES.html.sh (Support for maintaining and releasing): Add it.
18607
18608 2011-05-02  Eric Blake  <eblake@redhat.com>
18609
18610         fflush: also replace fclose when fixing fflush
18611         * modules/fflush (Depends-on): Add fclose.
18612         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
18613         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
18614         memstreams with no backing fd.
18615         * doc/posix-functions/fclose.texi (fclose): Document the use of
18616         fflush module to fix the bug.
18617         * tests/test-fclose.c (main): Relax test when fclose is used in
18618         isolation.
18619
18620         fclose: add some tests
18621         * modules/fclose-tests: New test module.
18622         * tests/test-fclose.c: New file.
18623         * doc/posix-functions/fclose.texi (fclose): Document the bug.
18624
18625         fclose: reduced dependencies
18626         * modules/fclose (Depends-on): Switch from fflush/fseeko to
18627         simpler lseek.
18628         * lib/fclose.c (rpl_fclose): Likewise.
18629         Reported by Simon Josefsson.
18630
18631         exit: drop remaining clients
18632         * modules/argmatch (Depends-on): Replace exit with stdlib.
18633         * modules/copy-file (Depends-on): Likewise.
18634         * modules/execute (Depends-on): Likewise.
18635         * modules/exitfail (Depends-on): Likewise.
18636         * modules/obstack (Depends-on): Likewise.
18637         * modules/pagealign_alloc (Depends-on): Likewise.
18638         * modules/pipe-filter-gi (Depends-on): Likewise.
18639         * modules/pipe-filter-ii (Depends-on): Likewise.
18640         * modules/savewd (Depends-on): Likewise.
18641         * modules/spawn-pipe (Depends-on): Likewise.
18642         * modules/wait-process (Depends-on): Likewise.
18643         * modules/xsetenv (Depends-on): Likewise.
18644         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
18645         * modules/git-merge-changelog (Depends-on): Likewise.
18646         * modules/long-options (Depends-on): Likewise.
18647         * modules/pt_chown (Depends-on): Likewise.
18648         * modules/sysexits (Depends-on): Likewise.
18649
18650         freading: relax license from LGPLv3+ to LGPLv2+
18651         * modules/freading (License): Relax LGPL version.
18652
18653 2011-05-02  Bruno Haible  <bruno@clisp.org>
18654
18655         fchdir: Remove unused dependencies.
18656         * modules/fchdir (Depends-on): Remove include_next.
18657
18658 2011-05-02  Bruno Haible  <bruno@clisp.org>
18659
18660         gnulib-tool: Refactor.
18661         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
18662         from func_emit_autoconf_snippets.
18663         (func_emit_autoconf_snippets): Use it.
18664
18665 2011-05-02  Simon Josefsson  <simon@josefsson.org>
18666
18667         * NEWS: Document removal of 'exit'.
18668         * modules/exit: Remove file.
18669
18670 2011-05-01  Bruno Haible  <bruno@clisp.org>
18671
18672         Update DEPENDENCIES.
18673         * DEPENDENCIES (gettext): Recommend the newest release.
18674         Reported by Simon Josefsson.
18675
18676 2011-05-01  Bruno Haible  <bruno@clisp.org>
18677
18678         gnulib-tool: Reduce code duplication.
18679         * gnulib-tool (func_emit_autoconf_snippets): New function.
18680         (func_import, func_create_testdir): Use it.
18681
18682 2011-04-30  Eric Blake  <eblake@redhat.com>
18683
18684         fclose: don't fail on non-seekable input stream
18685         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
18686         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
18687         since fflush is allowed to fail in that case.
18688
18689 2011-04-30  Bruno Haible  <bruno@clisp.org>
18690
18691         dup3: cleanup
18692         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
18693
18694 2011-04-30  Bruno Haible  <bruno@clisp.org>
18695
18696         netdb: Make it work in C++ mode.
18697         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
18698         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
18699         module.
18700         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
18701         gl_MODULE_INDICATOR_FOR_TESTS.
18702         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
18703         * modules/netdb-c++-tests: New file.
18704         * tests/test-netdb-c++.cc: New file.
18705
18706 2011-04-30  Bruno Haible  <bruno@clisp.org>
18707
18708         New modules 'vfscanf', 'vscanf'.
18709         * modules/vfscanf: New file.
18710         * modules/vscanf: New file.
18711         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
18712         here.
18713         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
18714         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
18715
18716 2011-04-30  Bruno Haible  <bruno@clisp.org>
18717
18718         passfd: Add comments.
18719         * lib/passfd.c: Add comments about platforms.
18720
18721 2011-04-30  Bruno Haible  <bruno@clisp.org>
18722
18723         sys_uio: Make <sys/uio.h> self-contained.
18724         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
18725         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
18726
18727 2011-04-30  Bruno Haible  <bruno@clisp.org>
18728
18729         sys_socket: Ensure 'struct iovec' definition.
18730         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
18731         <sys/socket.h>.
18732         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
18733
18734 2011-04-30  Bruno Haible  <bruno@clisp.org>
18735
18736         sys_uio: Protect definition of 'struct iovec'.
18737         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
18738         it as a C struct.
18739
18740 2011-04-30  Bruno Haible  <bruno@clisp.org>
18741
18742         manywarnings: fix indentation
18743         * m4/manywarnings.m4: Indent by 2 spaces consistently.
18744
18745 2011-04-30  Pádraig Brady <P@draigBrady.com>
18746
18747         manywarnings: add -Wno-missing-field-initializers if needed.
18748         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
18749         option if it's needed to allow initialization with { 0, }
18750
18751 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
18752
18753         announce-gen: cosmetic improvement
18754         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
18755
18756 2011-04-29  Jim Meyering  <meyering@redhat.com>
18757
18758         vc-list-files: indent with spaces, not TABs
18759         * build-aux/vc-list-files: Convert leading TABs to spaces,
18760         to match the style of most other files in gnulib.
18761
18762         announce-gen: indent with spaces, not TABs
18763         * build-aux/announce-gen: Convert all TABs to spaces, to match
18764         the style of most other files in gnulib.
18765
18766 2011-04-29  Eric Blake  <eblake@redhat.com>
18767
18768         quotearg: avoid uninitialized variable use
18769         * lib/quotearg.c (quoting_options_from_style): Initialize
18770         remaining fields, and ensure that custom styles are only used via
18771         quoting_options rather than quoting_style.
18772
18773 2011-04-29  Jim Meyering  <meyering@redhat.com>
18774
18775         maint.mk: remove unused VC-tag variable
18776         * top/maint.mk (VC-tag): Remove unused variable.
18777
18778 2011-04-29  Bruno Haible  <bruno@clisp.org>
18779
18780         netdb: fix gai_strerror replacements
18781         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
18782         * modules/netdb: Substitute it.
18783
18784 2011-04-29  Jim Meyering  <meyering@redhat.com>
18785
18786         test-getcwd.c: avoid new set-but-not-used warning
18787         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
18788         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
18789         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
18790         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
18791
18792         test-hash.c: avoid a new shadowing warning
18793         * tests/test-hash.c (main): Don't shadow "dup".
18794
18795 2011-04-28  Eric Blake  <eblake@redhat.com>
18796
18797         getaddrinfo: fix gai_strerror signature
18798         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
18799         and work around mingw with UNICODE defined.
18800         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
18801         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
18802         * modules/netdb (Makefile.am): Substitute it.
18803         * lib/netdb.in.h (gai_strerror): Declare replacement.
18804         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
18805         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
18806         the fix.
18807
18808         getsockopt: avoid compiler warning
18809         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
18810         Reported by Matthias Bolte.
18811
18812         tests: drop unused link dependency
18813         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
18814         * modules/dirent-safer-tests (Makefile.am): Likewise.
18815         * modules/fdopendir-tests (Makefile.am): Likewise.
18816         * modules/mkfifoat-tests (Makefile.am): Likewise.
18817         * modules/openat-safer-tests (Makefile.am): Likewise.
18818         * modules/openat-tests (Makefile.am): Likewise.
18819         * modules/readlinkat-tests (Makefile.am): Likewise.
18820         * modules/symlinkat-tests (Makefile.am): Likewise.
18821         * modules/linkat-tests (Makefile.am): Likewise.
18822         (Depends-on): Switch to filenamecat-lgpl.
18823         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
18824         LIBINTL.
18825         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
18826         * tests/test-linkat.c (main): Don't require xalloc.
18827
18828         hash, mgetgroups: drop xalloc dependency
18829         * lib/hash.c (includes): Adjust includes.
18830         * lib/mgetgroups.c (includes): Likewise.
18831         (xgetgroups): Move...
18832         * lib/xgetgroups.c: ...to new file.
18833         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
18834         * modules/xgetgroups: New file, split from...
18835         * modules/mgetgroups: ...here.
18836         (Depends-on): Add xalloc-oversized.
18837         * modules/hash (Depends-on): Likewise.
18838         * modules/hash-tests (Depends-on): Drop xalloc.
18839         (test_hash_LDADD): Drop unused library.
18840         * tests/test-hash.c (main): Break xalloc dependency.
18841         (includes): Drop unused include.
18842
18843         xalloc-oversized: new module
18844         * modules/xalloc-oversized: New module.
18845         * modules/xalloc (Depends-on): Add it.
18846         * lib/xalloc.h (xalloc_oversized): Move...
18847         * lib/xalloc-oversized.h: ...into new file.
18848
18849         utimecmp: drop dependency on xmalloc
18850         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
18851         due to memory pressure.
18852         * modules/utimecmp (Depends-on): Drop xalloc.
18853
18854 2011-04-27  Eric Blake  <eblake@redhat.com>
18855
18856         getcwd: fix mingw bugs
18857         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
18858         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
18859         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
18860
18861 2011-04-27  Bruno Haible  <bruno@clisp.org>
18862
18863         mkstemps: Ensure declaration on MacOS X 10.5.
18864         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
18865         * doc/glibc-functions/mkstemps.texi: Document header file problem on
18866         MacOS X.
18867
18868 2011-04-27  Bruno Haible  <bruno@clisp.org>
18869
18870         mkstemp: More documentation.
18871         * doc/posix-functions/mkstemp.texi: Document header file problem on
18872         MacOS X.
18873
18874 2011-04-27  Bruno Haible  <bruno@clisp.org>
18875
18876         mkstemp: Tweak configure message when cross-compiling.
18877         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
18878         result as a guess.
18879
18880 2011-04-27  Bruno Haible  <bruno@clisp.org>
18881
18882         clean-temp: Clarify what it does.
18883         * lib/clean-temp.h: Add more comments.
18884         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
18885         module.
18886         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
18887         * doc/glibc-functions/mkstemps.texi: Likewise.
18888         * doc/glibc-functions/mkostemps.texi: Likewise.
18889
18890 2011-04-27  Eric Blake  <eblake@redhat.com>
18891
18892         fchdir: avoid extra chdir and fix test
18893         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
18894         getcwd-lgpl.
18895         * lib/fchdir.c (get_name): Any absolute name will do; it does not
18896         have to be canonical.
18897         (canonicalize_file_name): Drop unused macro.
18898         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
18899
18900         filenamecat-lgpl: fix licence
18901         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
18902         when it was first created.
18903
18904         linkat, renameat: add missing dependency
18905         * modules/linkat (Depends-on): Require getcwd-lgpl.
18906         * modules/renameat (Depends-on): Likewise.
18907
18908         tests: reduce dependencies
18909         * tests/test-linkat.c (main): Use lighter-weight getcwd.
18910         * tests/test-renameat.c (main): Likewise.
18911         * modules/linkat-tests (Depends-on): Relax dependency.
18912         * modules/renameat-tests (Depends-on): Likewise.
18913         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
18914         dependency explicit.
18915
18916         save-cwd: reduce default dependency
18917         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
18918         * lib/save-cwd.c: Update comments.
18919         * NEWS: Document the semantic change.
18920
18921         getcwd: enhance tests
18922         * tests/test-getcwd-lgpl.c: New file, taken from...
18923         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
18924         repeat long path stress tests from m4 probe.
18925         * modules/getcwd-lgpl-tests: New module.
18926         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
18927         * m4/getcwd-abort-bug.m4: Update comment.
18928         * m4/getcwd-path-max.m4: Likewise.
18929
18930         getcwd-lgpl: new module
18931         * modules/getcwd-lgpl: New module.
18932         * lib/getcwd-lgpl.c: New file.
18933         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18934         * MODULES.html.sh (lacking POSIX:2008): Likewise.
18935         * modules/getcwd (configure.ac): Set C witness.
18936         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
18937
18938         getcwd: tweak comments
18939         * m4/getcwd-abort-bug.m4: Fix comments.
18940         * m4/getcwd-path-max.m4: Likewise.
18941         * m4/getcwd.m4: Likewise.
18942
18943 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18944         and Eric Blake  <eblake@redhat.com>
18945
18946         mkstemp: replace if system version uses wrong permissions
18947         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
18948         read/write mode bits set in file created by mkstemp.
18949         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
18950
18951 2011-04-27  Eric Blake  <eblake@redhat.com>
18952
18953         passfd: avoid compiler warning
18954         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
18955         Reported by Laine Stump.
18956
18957 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
18958
18959         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
18960         required by the NetBSD (and perhaps other 4.4BSD derived) join.
18961
18962 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18963         and Eric Blake  <eblake@redhat.com>
18964
18965         mkstemp: mention clean-temp module
18966         * lib/mkstemp.c: Add comment.
18967         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
18968
18969 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
18970
18971         inttypes: also provide default values for 32-bit tests
18972         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
18973         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
18974
18975 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
18976
18977         strtoumax: remove dependency on strtoimax
18978         This is like the strtoull change of yesterday.
18979         * modules/strtoumax (Files): Add lib/strtoimax.c.
18980         (Depends-on): Remove strtoimax and add verify.
18981
18982         inttypes-incomplete: new module
18983         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
18984         all but the PRI* and SCN* parts of gl_INTTYPES_H.
18985         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
18986         of gl_INTTYPES_H.
18987         (gl_INTTYPES_H): Rewrite in terms of these new macros.
18988         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
18989         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
18990         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
18991         * modules/strtoumax, modules/xstrtol (Depends-on):
18992         Depend on inttypes-incomplete, not inttypes.
18993         * modules/inttypes-incomplete: New module, containing the contents
18994         of the old modules/inttypes module, except that the Files: section
18995         omits m4/inttypes-pri.m4, and the configure.ac section invokes
18996         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
18997         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
18998         (Depends-on): Depend only on inttypes-incomplete.
18999         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
19000
19001         inttypes: omit now-redundant strtoimax and strtoumax work
19002         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
19003         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
19004
19005         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
19006         This supports apps that need pointers to strtoimax and strtoumax,
19007         and ports to HP-UX 11.00 64.bit, which has macros that expand to
19008         nonexistent functions.  See
19009         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
19010         et seq.
19011         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
19012         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
19013         a macro.
19014         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19015
19016 2011-04-25  Simon Josefsson  <simon@josefsson.org>
19017
19018         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
19019
19020 2011-04-25  Bruno Haible  <bruno@clisp.org>
19021
19022         strtol, strtoul: Mark modules as obsolete.
19023         * modules/strtol (Status, Notice): New sections.
19024         * modules/strtoul (Status, Notice): New sections.
19025
19026 2011-04-25  Bruno Haible  <bruno@clisp.org>
19027
19028         strtod: Remove check for strtod, unless supporting old platforms.
19029         * modules/strtod-obsolete: New file.
19030         * m4/strtod-obsolete.m4: New file.
19031         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
19032         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
19033         * modules/strtod (Depends-on): Add strtod-obsolete.
19034         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
19035
19036 2011-04-25  Bruno Haible  <bruno@clisp.org>
19037
19038         strcase: Make module obsolete.
19039         * modules/strcase (Status, Notice): New sections.
19040
19041 2011-04-25  Bruno Haible  <bruno@clisp.org>
19042
19043         dup2: Remove check for dup2, unless supporting old obsolete platforms.
19044         * modules/dup2-obsolete: New file.
19045         * m4/dup2-obsolete.m4: New file.
19046         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
19047         gl_FUNC_DUP2_OBSOLETE is not also defined.
19048         * modules/dup2 (Depends-on): Add dup2-obsolete.
19049         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
19050
19051 2011-04-25  Bruno Haible  <bruno@clisp.org>
19052
19053         strnlen: Avoid memchr related link error on old obsolete platforms.
19054         * modules/memchr-obsolete: New file.
19055         * m4/memchr-obsolete.m4: New file.
19056         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
19057         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
19058         * modules/memchr (Depends-on): Add memchr-obsolete.
19059         * modules/strnlen (Depends-on): Likewise.
19060         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
19061
19062 2011-04-25  Jim Meyering  <meyering@redhat.com>
19063
19064         maint.mk: makefile_at_at_check extend and clean up
19065         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
19066         in addition to */Makefile.am.
19067         Exempt legitimate uses of @VAR@ notation, e.g.,
19068         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
19069         Remove obsolete coreutils-specific comment.
19070         Prompted by discussion here:
19071         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
19072
19073 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
19074
19075         strtoul: remove dependency on strtol
19076         This is so that 'configure' need not check for strtol merely because
19077         the application needs strtoul.
19078         * modules/strtoul (Files): Add lib/strtol.c.
19079         (Depends-on): Remove strtol.
19080
19081         strtoull: remove dependency on strtoul
19082         This is like the strtoll change.
19083         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
19084         (Depends-on): Remove strtoul.
19085
19086         strtoll: remove dependency on strtol
19087         This is so that 'configure' need not check for strtol merely because
19088         the application needs strtoll.
19089         * modules/strtoll (Files): Add lib/strtol.c.
19090         (Depends-on): Remove strtol.
19091
19092 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19093
19094         inttypes: Move some configure check to module 'imaxdiv'.
19095         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
19096         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
19097         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
19098
19099 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19100
19101         inttypes: Move some configure check to module 'imaxabs'.
19102         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
19103         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
19104         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
19105
19106 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19107
19108         inttypes: Remove configure tests that are not needed since 2009-12-31.
19109         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
19110         gl_cv_header_working_inttypes_h.
19111
19112 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19113
19114         * modules/strnlen (Depends-on): Remove memchr.
19115         The strnlen implementation doesn't need the memchr module's fixes; see
19116         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
19117
19118         strtol: remove dependency on wchar
19119         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
19120         * modules/strtol (Depends-on): Remove wchar.
19121
19122 2011-04-21  Eric Blake  <eblake@redhat.com>
19123
19124         passfd: fix test regression on Linux
19125         * modules/passfd-tests (configure.ac): Correct socketpair check.
19126
19127         passfd: speed up configure and drop unused code
19128         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
19129         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
19130         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
19131         Instead of probing at configure for unix_scm_rights_bsd44_way,
19132         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
19133         check to a struct member probe.
19134         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
19135         (sendfd, recvfd): Update preprocessor checks.
19136         * modules/passfd (Files): Reflect rename, and drop unused file.
19137         (Depends-on): Drop unused dependency.
19138
19139         passfd: allow compilation on mingw
19140         * modules/sys_socket (Depends-on): Add sys_uio.
19141         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
19142         iovec and a minimal struct msghdr.
19143         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
19144         * tests/test-sys_socket.c (main): Enhance test.
19145         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
19146         guaranteed to provide what we need.
19147         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
19148         * modules/passfd-tests (Depends-on): Add sys_wait.
19149         * tests/test-passfd.c (main): Skip test on mingw, for now.
19150         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
19151         partial 'struct msghdr' implementation.
19152
19153         sys_uio: new module
19154         * modules/sys_uio: New module.
19155         * modules/sys_uio-tests: Likewise.
19156         * lib/sys_uio.in.h: New file.
19157         * m4/sys_uio_h.m4: Likewise.
19158         * tests/test-sys_uio.c: Likewise.
19159         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
19160         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
19161
19162 2011-04-20  Jim Meyering  <meyering@redhat.com>
19163
19164         useless-if-before-free: avoid false-positive
19165         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
19166         disjunct so that it too requires a terminating ";".  Without that,
19167         this script would identify as useless one statement from gcc that
19168         was not:
19169           if (aligned_ptr)
19170             free (((void **) aligned_ptr) [-1]);
19171
19172 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
19173
19174         doc: update users.txt.
19175         * users.txt: Add barcode.
19176
19177 2011-04-19  Bruno Haible  <bruno@clisp.org>
19178
19179         ioctl: Remove link dependency on native Windows.
19180         * lib/fd-hook.h: Renamed from lib/close-hook.h.
19181         (gl_close_fn, gl_ioctl_fn): New types.
19182         (struct fd_hook): Renamed from struct close_hook. Change type of
19183         private_close_fn field. Add private_ioctl_fn field.
19184         (close_hook_fn): Add parameter for primary close method.
19185         (execute_close_hooks, execute_all_close_hooks): Likewise.
19186         (ioctl_hook_fn): New type.
19187         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
19188         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
19189         argument.
19190         (unregister_fd_hook): Renamed from unregister_close_hook.
19191         * lib/fd-hook.c: Renamed from lib/close-hook.c.
19192         Don't include <unistd.h>.
19193         (close): Remove undef.
19194         (anchor): Update.
19195         (execute_close_hooks): Add argument for primary close method.
19196         (execute_all_close_hooks): Likewise.
19197         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
19198         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
19199         argument. Allow each argument to be NULL.
19200         (unregister_fd_hook): Renamed from unregister_close_hook.
19201         * lib/close.c (rpl_close): Pass 'close' function pointer to
19202         execute_all_close_hooks.
19203         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
19204         (primary_ioctl): New function.
19205         (ioctl): Don't call ioctlsocket here. Instead, call
19206         execute_all_ioctl_hooks.
19207         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
19208         close method.
19209         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
19210         (fd_sockets_hook): Renamed from close_sockets_hook.
19211         (gl_sockets_startup, gl_sockets_cleanup): Update.
19212         * modules/fd-hook: Renamed from modules/close-hook. Update.
19213         * modules/close (Depends-on): Add fd-hook, remove close-hook.
19214         * modules/sockets (Depends-on): Likewise.
19215         * modules/ioctl (Depends-on): Add fd-hook.
19216         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
19217         GNULIB_SOCKET.
19218
19219 2011-04-19  Bruno Haible  <bruno@clisp.org>
19220
19221         Move the support of O_NONBLOCK in open() to the 'open' module.
19222         * modules/nonblocking (Depends-on): Remove 'open'.
19223         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
19224         gl_cv_have_open_O_NONBLOCK.
19225         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
19226         O_NONBLOCK support.
19227         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
19228
19229 2011-04-17  Bruno Haible  <bruno@clisp.org>
19230
19231         pipe2: Simplify code.
19232         * lib/pipe2.c (pipe2): Reduce code duplication.
19233
19234 2011-04-17  Bruno Haible  <bruno@clisp.org>
19235
19236         nonblocking: Add comment.
19237         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
19238
19239 2011-04-17  Bruno Haible  <bruno@clisp.org>
19240
19241         nonblocking: Add tests for sockets.
19242         * tests/test-nonblocking-socket.sh: New file.
19243         * tests/test-nonblocking-socket-main.c: New file.
19244         * tests/test-nonblocking-socket-child.c: New file.
19245         * tests/test-nonblocking-socket.h: New file.
19246         * tests/socket-server.h: New file.
19247         * tests/socket-client.h: New file.
19248         * modules/nonblocking-socket-tests: New file.
19249         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
19250
19251 2011-04-17  Bruno Haible  <bruno@clisp.org>
19252
19253         nonblocking: Add tests for pipes.
19254         * tests/test-nonblocking-pipe.sh: New file.
19255         * tests/test-nonblocking-pipe-main.c: New file.
19256         * tests/test-nonblocking-pipe-child.c: New file.
19257         * tests/test-nonblocking-pipe.h: New file.
19258         * tests/test-nonblocking-writer.h: New file.
19259         * tests/test-nonblocking-reader.h: New file.
19260         * tests/test-nonblocking-misc.h: New file.
19261         * modules/nonblocking-pipe-tests: New file.
19262         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
19263
19264 2011-04-16  Bruno Haible  <bruno@clisp.org>
19265
19266         gettext: Clarify the needed programmer actions.
19267         * modules/gettext (Notice): New field.
19268         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
19269
19270 2011-04-16  Bruno Haible  <bruno@clisp.org>
19271
19272         strchrnul: Tweak last commit.
19273         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
19274         bug.
19275         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
19276         as in _GL_FUNCDECL_SYS.
19277         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
19278         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
19279
19280 2011-04-15  Eric Blake  <eblake@redhat.com>
19281
19282         strchrnul: work around cygwin bug
19283         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
19284         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
19285         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
19286         * modules/string (Makefile.am): Substitute it.
19287         * lib/string.in.h (strchrnul): Use it.
19288
19289 2011-04-15  Bruno Haible  <bruno@clisp.org>
19290
19291         Don't require lib/stdio-write.c when only module 'stdio' is used.
19292         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
19293         invocation.
19294         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
19295
19296 2011-04-14  Bruno Haible  <bruno@clisp.org>
19297
19298         Support non-blocking pipe I/O in read() on native Windows.
19299         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
19300         (read): New declaration.
19301         * lib/read.c: New file.
19302         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
19303         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
19304         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
19305         vscanf): New declarations.
19306         * lib/stdio-read.c: New file.
19307         * m4/read.m4: New file.
19308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
19309         REPLACE_READ.
19310         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
19311         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19312         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
19313         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
19314         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
19315         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19316         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
19317         * modules/read: New file.
19318         * modules/nonblocking (Files): Add lib/stdio-read.c.
19319         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
19320         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
19321         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19322         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
19323         * modules/pread (Depends-on): Add read.
19324         * modules/safe-read (Depends-on): Likewise.
19325         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
19326         gets, scanf, vfscanf, vscanf): Verify signatures.
19327         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
19328         problem with non-blocking pipes.
19329         * doc/posix-functions/fgetc.texi: Likewise.
19330         * doc/posix-functions/fgets.texi: Likewise.
19331         * doc/posix-functions/fread.texi: Likewise.
19332         * doc/posix-functions/fscanf.texi: Likewise.
19333         * doc/posix-functions/getc.texi: Likewise.
19334         * doc/posix-functions/getchar.texi: Likewise.
19335         * doc/posix-functions/gets.texi: Likewise.
19336         * doc/posix-functions/scanf.texi: Likewise.
19337         * doc/posix-functions/vfscanf.texi: Likewise.
19338         * doc/posix-functions/vscanf.texi: Likewise.
19339
19340 2011-04-14  Bruno Haible  <bruno@clisp.org>
19341
19342         Support non-blocking pipe I/O in write() on native Windows.
19343         * lib/write.c (rpl_write): Split a write request that failed merely
19344         because the byte count was larger than the pipe buffer's size.
19345         * doc/posix-functions/write.texi: Mention the problem with large byte
19346         counts.
19347
19348 2011-04-14  Bruno Haible  <bruno@clisp.org>
19349
19350         wchar: Ensure that wchar_t gets defined on uClibc.
19351         * lib/wchar.in.h: On uClibc, include <stddef.h>.
19352         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
19353
19354 2011-04-13  Bruno Haible  <bruno@clisp.org>
19355
19356         safe-write, full-read: Avoid unnecessary compilation units.
19357         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
19358         (Depends-on): Remove safe-read. Add ssize_t.
19359         * modules/full-read (Files): Add lib/full-write.c.
19360         (Depends-on): Add full-write.
19361
19362 2011-04-13  Bruno Haible  <bruno@clisp.org>
19363
19364         Support non-blocking pipe I/O and SIGPIPE in pwrite().
19365         * modules/pwrite (Depends-on): Add 'write'.
19366
19367 2011-04-13  Bruno Haible  <bruno@clisp.org>
19368
19369         Support non-blocking pipe I/O in write() on native Windows.
19370         * lib/unistd.in.h (write): Enable replacement also if
19371         GNULIB_UNISTD_H_NONBLOCKING is 1.
19372         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
19373         (rpl_write): When failing to write on a non-blocking pipe, change
19374         errno from ENOSPC to EAGAIN.
19375         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
19376         putchar, puts, vfprintf, vprintf): Enable replacement also if
19377         GNULIB_STDIO_H_NONBLOCKING is 1.
19378         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
19379         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
19380         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
19381         CALL_WITH_SIGPIPE_EMULATION.
19382         (CALL_WITH_SIGPIPE_EMULATION): Use them.
19383         * m4/nonblocking.m4: New file.
19384         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
19385         for non-blocking I/O support.
19386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19387         GNULIB_UNISTD_H_NONBLOCKING.
19388         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
19389         required for non-blocking I/O support.
19390         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
19391         * modules/nonblocking (Files): Add m4/nonblocking.m4,
19392         lib/stdio-write.c, m4/asm-underscore.m4.
19393         (Depends-on): Add stdio, unistd.
19394         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
19395         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
19396         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
19397         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
19398         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
19399         problem with non-blocking pipes.
19400         * doc/posix-functions/fputc.texi: Likewise.
19401         * doc/posix-functions/fputs.texi: Likewise.
19402         * doc/posix-functions/fwrite.texi: Likewise.
19403         * doc/posix-functions/printf.texi: Likewise.
19404         * doc/posix-functions/putc.texi: Likewise.
19405         * doc/posix-functions/putchar.texi: Likewise.
19406         * doc/posix-functions/puts.texi: Likewise.
19407         * doc/posix-functions/vfprintf.texi: Likewise.
19408         * doc/posix-functions/vprintf.texi: Likewise.
19409         * doc/posix-functions/write.texi: Likewise.
19410
19411 2011-04-10  Jim Meyering  <meyering@redhat.com>
19412
19413         maint.mk: prohibit doubled words
19414         Detect them also when they're separated by a newline.
19415         There are 3 ways to customize it:
19416           - disable the test on a per file basis, as usual with rules using
19417             $(VC_LIST_EXCEPT)
19418           - replace the default doubled-word-selecting regexp (affects all files)
19419           - ignore a particular file-vs-doubled-word match
19420         I nearly used that last one to ignore the "is is" match in
19421         coreutils' NEWS file, since the text was "ls -is is ..."
19422         To do that, I would have added this line to cfg.mk:
19423           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
19424         but it would have ignored any "is is" match in NEWS.
19425         Low probability, but still...
19426         Instead, I changed the text, slightly:
19427           -  ls -is is now consistent with ls -lis in ignoring values returned
19428           +  "ls -is" is now consistent with ls -lis in ignoring values returned
19429         * top/maint.mk (prohibit_double_word_RE_): Provide default.
19430         (prohibit_doubled_word_): Define.
19431         (sc_prohibit_doubled_word): New rule.
19432         (sc_prohibit_the_the): Remove.  Subsumed by the above.
19433
19434 2011-04-10  Jim Meyering  <meyering@redhat.com>
19435
19436         maint: fix doubled-word typo in comment
19437         * m4/gethostname.m4: s/is is/it is/
19438         * m4/getdomainname.m4: Likewise.
19439
19440 2011-04-10  Jim Meyering  <meyering@redhat.com>
19441
19442         maint: remove doubled word: s/it it/it/
19443         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
19444
19445 2011-04-10  Jim Meyering  <meyering@redhat.com>
19446
19447         maint.mk: remove useless semicolon and backslash
19448         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
19449         semicolon and backslash.
19450
19451 2011-04-10  Bruno Haible  <bruno@clisp.org>
19452
19453         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
19454         * modules/stdint-tests (Depends-on): Add wchar.
19455
19456 2011-04-10  Jim Meyering  <meyering@redhat.com>
19457
19458         maint: remove doubled words in comments, e.g., s/a a/a/
19459         * lib/strptime.c (day_of_the_week): s/the the/the/
19460         * tests/test-chown.h (test_chown): s/a a/a/
19461
19462         test-chown.h: correct a cast
19463         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
19464         when the destination is a stat.st_gid.
19465
19466 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
19467
19468         getaddrinfo: Fix test for sa_len member.
19469         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
19470         include <sys/types.h> before <sys/socket.h>.
19471
19472 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
19473
19474         maint: change "can not" to "cannot"
19475         * doc/posix-functions/iconv.texi (iconv): This one crossed line
19476         boundaries.
19477
19478 2011-04-09  Jim Meyering  <meyering@redhat.com>
19479
19480         maint: change "a a" to "a"
19481         * tests/test-lchown.h (test_lchown): s/a a/a/
19482
19483         maint.mk: prohibit \<the the\>
19484         * top/maint.mk (sc_prohibit_the_the): New rule.
19485
19486         maint: fix "the the" in comment
19487         * lib/count-one-bits.h: s/the the/the/
19488
19489         maint: change "can not" to "cannot"
19490         But do not change the occurrences in maintain.texi or in
19491         build-aux/po/Makefile.in.in, which I presume comes from gettext.
19492         * doc/gnulib-tool.texi: s/can not/cannot/
19493         * doc/posix-functions/accept.texi (accept): Likewise.
19494         * doc/posix-functions/socket.texi (socket): Likewise.
19495         * lib/mbrtowc.c: Likewise.
19496
19497         maint.mk: prohibit use of "can not"
19498         * top/maint.mk (sc_prohibit_can_not): New rule.
19499         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
19500
19501 2011-04-09  Bruno Haible  <bruno@clisp.org>
19502
19503         careadlinkat: Guard against misuse of careadlinkatcwd.
19504         * lib/careadlinkat.c: Include <stdlib.h>.
19505         (careadlinkatcwd): Check that the fd argument is as expected.
19506
19507 2011-04-09  Bruno Haible  <bruno@clisp.org>
19508
19509         careadlinkat: Use common coding style.
19510         * lib/careadlinkat.c: Move gnulib includes after system includes.
19511
19512 2011-04-09  Bruno Haible  <bruno@clisp.org>
19513
19514         careadlinkat: Clarify specification.
19515         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
19516         (careadlinkatcwd): Add comment.
19517         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
19518
19519 2011-04-09  Bruno Haible  <bruno@clisp.org>
19520
19521         areadlinkat: Avoid link error on many platforms.
19522         * modules/areadlinkat (Depends-on): Add areadlink.
19523
19524 2011-04-09  Bruno Haible  <bruno@clisp.org>
19525
19526         allocator, careadlinkat: Fix double-inclusion guard.
19527         * lib/allocator.h: Fix double-inclusion guard.
19528         * lib/careadlinkat.h: Likewise.
19529
19530 2011-04-09  Bruno Haible  <bruno@clisp.org>
19531
19532         relocatable-prog-wrapper: Update after module 'areadlink' changed.
19533         * lib/relocwrapper.c: Update dependencies hierarchy.
19534         * build-aux/install-reloc: Update list of files to be compiled.
19535         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
19536         lib/allocator.[hc].
19537
19538 2011-04-08  Eric Blake  <eblake@redhat.com>
19539
19540         strftime: silence gnulib-tool warning
19541         * modules/strftime-tests (Depends-on): Drop automatic dependency.
19542
19543 2011-04-08  Bruno Haible  <bruno@clisp.org>
19544
19545         verify: Fix syntax error with GCC 4.6 in C++ mode.
19546         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
19547         (HAVE_STATIC_ASSERT): New macro.
19548         (verify_true, verify): Use 'static_assert' if it is supported and
19549         '_Static_assert' is not supported.
19550
19551 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
19552
19553         allocator: New module.
19554         * modules/allocator, lib/allocator.c: New files.
19555         * lib/allocator.h (stdlib_allocator): New decl.
19556         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
19557         Remove.  Do not include <stdlib.h>.
19558         (careadlinkat): Use stdlib_allocator instead of rolling our own.
19559         * modules/careadlinkat (Files): Remove lib/allocator.h.
19560         (Depends-on): Add allocator.
19561
19562         stdlib: let modules use system malloc, realloc
19563         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
19564         if !_GL_USE_STDLIB_ALLOC.
19565         (malloc, realloc): Limit this change to a smaller scope.
19566
19567         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
19568         (malloc, realloc): Don't #undef; no longer needed.
19569         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19570         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19571         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
19572         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19573         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19574         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19575         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19576         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
19577
19578         careadlinkat: rename members to avoid problem
19579         * lib/allocator.h (struct allocator): Rename members from
19580         malloc/realloc to allocate/reallocate, to avoid problems if malloc
19581         and realloc are #define'd.  Reported by Eric Blake in
19582         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
19583         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
19584
19585 2011-04-08  Eric Blake  <eblake@redhat.com>
19586
19587         nonblocking: reduce dependency
19588         * tests/test-nonblocking.c: Only test sockets when in use.
19589         * modules/nonblocking-tests (Depends-on): Drop socket.
19590         (Makefile.am): Link even if sockets are not present.
19591         * modules/pipe2-tests (Makefile.am): Likewise.
19592         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
19593
19594         pipe2: fix O_NONBLOCK support on mingw
19595         * modules/pipe2 (Depends-on): Add nonblocking.
19596         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
19597         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
19598         * tests/test-nonblocking.c (main): Likewise.
19599         * modules/pipe2-tests (Makefile.am): Avoid link failure.
19600
19601         fcntl-h: fix O_ACCMODE on cygwin
19602         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
19603         * lib/fcntl.in.h (O_ACCMODE): Fix it.
19604
19605         pipe-filter: drop O_NONBLOCK workarounds
19606         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
19607         * modules/pipe-filter-ii (Depends-on): Likewise.
19608         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
19609
19610         nonblocking: provide O_NONBLOCK for mingw
19611         * modules/nonblocking (Depends-on): Add open.
19612         (configure.ac): Set new witness macro.
19613         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
19614         * modules/fcntl-h (Makefile.am): Substitute it.
19615         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
19616         nonblocking module is in use.
19617         * lib/nonblocking.c: Adjust portability test.
19618         * lib/open.c (open): Don't let native open see gnulib flag.
19619         * tests/test-fcntl-h.c (main): Enhance test.
19620         * tests/test-open.h (test_open): Likewise.
19621         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
19622
19623         careadlinkat: fix compilation error on mingw
19624         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
19625         within struct allocator.
19626
19627 2011-04-06  Eric Blake  <eblake@redhat.com>
19628
19629         binary-io: relicense under LGPLv2+
19630         * modules/binary-io (License): Relax to LGPLv2+.
19631         Requested for libvirt, and required by pipe2.
19632
19633 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
19634
19635         verify: use _Static_assert if available
19636         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
19637         (verify_true, verify): Use it if available.  This generates better
19638         diagnostics with GCC 4.6.0 and later.
19639
19640 2011-04-05  Bruno Haible  <bruno@clisp.org>
19641
19642         Remove leftover generated .h files after config.status changed.
19643
19644         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
19645         GL_GENERATE_ALLOCA_H.
19646         * modules/alloca-opt (Makefile.am): Remove alloca.h if
19647         GL_GENERATE_ALLOCA_H evaluates to false.
19648
19649         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
19650         GL_GENERATE_ARGZ_H.
19651         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
19652         evaluates to false.
19653
19654         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
19655         GL_GENERATE_BYTESWAP_H.
19656         * modules/byteswap (Makefile.am): Remove byteswap.h if
19657         GL_GENERATE_BYTESWAP_H evaluates to false.
19658
19659         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
19660         GL_GENERATE_ERRNO_H.
19661         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
19662         evaluates to false.
19663
19664         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
19665         GL_GENERATE_FLOAT_H.
19666         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
19667         evaluates to false.
19668
19669         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
19670         GL_GENERATE_FNMATCH_H.
19671         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
19672         GL_GENERATE_FNMATCH_H evaluates to false.
19673
19674         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
19675         GL_GENERATE_GLOB_H.
19676         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
19677         evaluates to false.
19678
19679         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
19680         automake conditional GL_GENERATE_ICONV_H.
19681         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
19682         evaluates to false.
19683
19684         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
19685         GL_GENERATE_NETINET_IN_H.
19686         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
19687         GL_GENERATE_NETINET_IN_H evaluates to false.
19688
19689         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
19690         conditional GL_GENERATE_PTHREAD_H.
19691         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
19692         * modules/pthread (Makefile.am): Remove pthread.h if
19693         GL_GENERATE_PTHREAD_H evaluates to false.
19694
19695         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
19696         GL_GENERATE_SCHED_H.
19697         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
19698         evaluates to false.
19699
19700         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
19701         conditional GL_GENERATE_SELINUX_CONTEXT_H.
19702         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
19703         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
19704
19705         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
19706         GL_GENERATE_STDARG_H.
19707         * modules/stdarg (Makefile.am): Remove stdarg.h if
19708         GL_GENERATE_STDARG_H evaluates to false.
19709
19710         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
19711         GL_GENERATE_STDBOOL_H.
19712         * modules/stdbool (Makefile.am): Remove stdbool.h if
19713         GL_GENERATE_STDBOOL_H evaluates to false.
19714
19715         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
19716         conditional GL_GENERATE_STDDEF_H.
19717         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
19718         * modules/stddef (Makefile.am): Remove stddef.h if
19719         GL_GENERATE_STDDEF_H evaluates to false.
19720
19721         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
19722         GL_GENERATE_STDINT_H.
19723         * modules/stdint (Makefile.am): Remove stdint.h if
19724         GL_GENERATE_STDINT_H evaluates to false.
19725
19726         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
19727         GL_GENERATE_SYSEXITS_H.
19728         * modules/sysexits (Makefile.am): Remove sysexits.h if
19729         GL_GENERATE_SYSEXITS_H evaluates to false.
19730
19731         Reported by Karl Berry and Ralf Wildenhues.
19732
19733 2011-04-05  Bruno Haible  <bruno@clisp.org>
19734
19735         Ensure to rebuild generated .h files when config.status has changed.
19736         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
19737         config.status.
19738         * modules/ctype (Makefile.am): Likewise.
19739         * modules/dirent (Makefile.am): Likewise.
19740         * modules/errno (Makefile.am): Likewise.
19741         * modules/fcntl-h (Makefile.am): Likewise.
19742         * modules/float (Makefile.am): Likewise.
19743         * modules/getopt-posix (Makefile.am): Likewise.
19744         * modules/glob (Makefile.am): Likewise.
19745         * modules/iconv-h (Makefile.am): Likewise.
19746         * modules/inttypes (Makefile.am): Likewise.
19747         * modules/langinfo (Makefile.am): Likewise.
19748         * modules/locale (Makefile.am): Likewise.
19749         * modules/math (Makefile.am): Likewise.
19750         * modules/netdb (Makefile.am): Likewise.
19751         * modules/netinet_in (Makefile.am): Likewise.
19752         * modules/poll-h (Makefile.am): Likewise.
19753         * modules/pthread (Makefile.am): Likewise.
19754         * modules/pty (Makefile.am): Likewise.
19755         * modules/sched (Makefile.am): Likewise.
19756         * modules/search (Makefile.am): Likewise.
19757         * modules/selinux-h (Makefile.am): Likewise.
19758         * modules/signal (Makefile.am): Likewise.
19759         * modules/spawn (Makefile.am): Likewise.
19760         * modules/stdarg (Makefile.am): Likewise.
19761         * modules/stdbool (Makefile.am): Likewise.
19762         * modules/stddef (Makefile.am): Likewise.
19763         * modules/stdint (Makefile.am): Likewise.
19764         * modules/stdio (Makefile.am): Likewise.
19765         * modules/stdlib (Makefile.am): Likewise.
19766         * modules/string (Makefile.am): Likewise.
19767         * modules/strings (Makefile.am): Likewise.
19768         * modules/sys_file (Makefile.am): Likewise.
19769         * modules/sys_ioctl (Makefile.am): Likewise.
19770         * modules/sys_select (Makefile.am): Likewise.
19771         * modules/sys_socket (Makefile.am): Likewise.
19772         * modules/sys_stat (Makefile.am): Likewise.
19773         * modules/sys_time (Makefile.am): Likewise.
19774         * modules/sys_times (Makefile.am): Likewise.
19775         * modules/sys_utsname (Makefile.am): Likewise.
19776         * modules/sys_wait (Makefile.am): Likewise.
19777         * modules/sysexits (Makefile.am): Likewise.
19778         * modules/termios (Makefile.am): Likewise.
19779         * modules/time (Makefile.am): Likewise.
19780         * modules/unistd (Makefile.am): Likewise.
19781         * modules/wchar (Makefile.am): Likewise.
19782         * modules/wctype-h (Makefile.am): Likewise.
19783         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
19784
19785 2011-04-05  Bruno Haible  <bruno@clisp.org>
19786
19787         pipe2: Relicense under LGPLv2+.
19788         * modules/pipe2 (License): Change to LGPLv2+.
19789         Requested by Eric Blake, for libvirt.
19790
19791 2011-04-05  Bruce Korb  <bkorb@gnu.org>
19792
19793         bootstrap: compute gnulib_extra_files after updating build_aux
19794         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
19795         change build_aux or also supply gnulib_extra_files.  Handle correctly.
19796
19797 2011-04-05  Eric Blake  <eblake@redhat.com>
19798
19799         bootstrap: preserve git whitelist item sorting
19800         * build-aux/bootstrap (sort_patterns): New function.
19801         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
19802
19803 2011-04-05  Simon Josefsson  <simon@josefsson.org>
19804
19805         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
19806         sc_space_tab check.
19807
19808 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
19809
19810         areadlink, areadlinkat: rewrite in terms of careadlinkat
19811         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
19812         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
19813         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
19814         (malloc, realloc): Remove #undefs.
19815         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
19816         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
19817         readlink, ssize_t, stdint, unistd.
19818         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
19819         areadlink, stdint.
19820
19821         careadlinkat: new module
19822         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
19823         * modules/careadlinkat: New files, written by me with
19824         a review and feedback from Ben Pfaff in
19825         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
19826
19827 2011-04-01  Bruno Haible  <bruno@clisp.org>
19828
19829         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
19830         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
19831         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
19832         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
19833         Reported by Bruce Korb <bruce.korb@gmail.com>.
19834
19835 2011-04-01  Bruno Haible  <bruno@clisp.org>
19836
19837         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
19838         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
19839         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
19840         * modules/wcpcpy (Depends-on): Add extensions.
19841         * modules/wcpncpy (Depends-on): Likewise.
19842         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
19843         systems.
19844         * doc/posix-functions/wcpncpy.texi: Likewise.
19845         * doc/posix-functions/wcwidth.texi: Likewise.
19846
19847 2011-03-31  Eric Blake  <eblake@redhat.com>
19848
19849         nonblocking: fix mingw test failures
19850         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
19851         non-blocking flag on regular file.
19852         (get_nonblocking_flag): Set errno on invalid fd.
19853         * tests/test-nonblocking.c (main): Avoid test failure on
19854         directories if fchdir is not active.
19855         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
19856
19857 2011-03-31  Bruno Haible  <bruno@clisp.org>
19858
19859         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
19860         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
19861         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
19862         Reported by Simon Josefsson <simon@josefsson.org>.
19863
19864 2011-03-31  Bruno Haible  <bruno@clisp.org>
19865         and Eric Blake  <eblake@redhat.com>
19866
19867         nonblocking: new module
19868         * modules/nonblocking: New module.
19869         * modules/nonblocking-tests: Likewise.
19870         * lib/nonblocking.h: New file.
19871         * lib/nonblocking.c: Likewise.
19872         * tests/test-nonblocking.c: New test.
19873         * lib/ioctl.c (ioctl) [mingw]: Update comment.
19874
19875 2011-03-30  Bruno Haible  <bruno@clisp.org>
19876
19877         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
19878         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
19879         instead of 'printf' format for GCC >= 4.4.
19880         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
19881         (fprintf, printf, vfprintf, vprintf): Declare with
19882         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
19883         the system's vfprintf() function.
19884         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
19885
19886 2011-03-30  Eric Blake  <eblake@redhat.com>
19887
19888         passfd: fix scoping bug
19889         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
19890         before sendmsg/recvmsg.
19891
19892         passfd: standardize coding conventions
19893         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
19894         can be learned at compile time.
19895         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
19896         ifdefs.
19897         (sendfd, recvfd): Follow gnulib code conventions.
19898
19899         passfd: fix incorrect sendmsg arguments
19900         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
19901         incorrect msg_controllen value.
19902         * modules/passfd-tests (Depends-on): Check for alarm.
19903         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
19904         Reported by Bastien ROUCARIES.
19905
19906 2011-03-30  Bruno Haible  <bruno@clisp.org>
19907
19908         c-strcasestr: Relicense under LGPLv2+.
19909         * modules/c-strcasestr (License): Change to LGPLv2+.
19910         Requested by Eric Blake, for libvirt.
19911
19912 2011-03-30  Simon Josefsson  <simon@josefsson.org>
19913
19914         * users.txt: Add libidn2.  Fix libtasn1 link.
19915
19916 2011-03-30  Jim Meyering  <meyering@redhat.com>
19917
19918         tests: readlink* ("",... fails with EINVAL on newer kernels
19919         readlink and readlinkat have typically failed with ENOENT for
19920         the invalid, empty file name,  "".  However, with the advent
19921         of linux-2.6.39, they fail with EINVAL.
19922         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
19923         when operating on the empty file name.
19924         * tests/test-readlink.h (test_readlink): Likewise.
19925
19926 2011-03-29  Bruno Haible  <bruno@clisp.org>
19927
19928         Relicense some modules under LGPLv2+, for libidn2.
19929         * modules/array-mergesort (License): Change to LGPLv2+.
19930         * modules/c-strcaseeq (License): Likewise.
19931         * modules/striconveh (License): Likewise.
19932         * modules/striconveha (License): Likewise.
19933         * modules/uniconv/base (License): Likewise.
19934         * modules/uniconv/u8-conv-from-enc (License): Likewise.
19935         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
19936         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
19937         * modules/unictype/base (License): Likewise.
19938         * modules/unictype/bidiclass-of (License): Likewise.
19939         * modules/unictype/category-M (License): Likewise.
19940         * modules/unictype/category-none (License): Likewise.
19941         * modules/unictype/category-of (License): Likewise.
19942         * modules/unictype/category-test (License): Likewise.
19943         * modules/unictype/category-test-withtable (License): Likewise.
19944         * modules/unictype/combining-class (License): Likewise.
19945         * modules/unictype/joiningtype-of (License): Likewise.
19946         * modules/unictype/scripts (License): Likewise.
19947         * modules/uninorm/base (License): Likewise.
19948         * modules/uninorm/canonical-decomposition (License): Likewise.
19949         * modules/uninorm/composition (License): Likewise.
19950         * modules/uninorm/decompose-internal (License): Likewise.
19951         * modules/uninorm/decomposition-table (License): Likewise.
19952         * modules/uninorm/nfc (License): Likewise.
19953         * modules/uninorm/nfd (License): Likewise.
19954         * modules/uninorm/u32-normalize (License): Likewise.
19955         * modules/unistr/base (License): Likewise.
19956         * modules/unistr/u32-cpy (License): Likewise.
19957         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
19958         * modules/unistr/u32-to-u8 (License): Likewise.
19959         * modules/unistr/u32-uctomb (License): Likewise.
19960         * modules/unistr/u8-check (License): Likewise.
19961         * modules/unistr/u8-mblen (License): Likewise.
19962         * modules/unistr/u8-mbtouc (License): Likewise.
19963         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
19964         * modules/unistr/u8-mbtoucr (License): Likewise.
19965         * modules/unistr/u8-prev (License): Likewise.
19966         * modules/unistr/u8-strlen (License): Likewise.
19967         * modules/unistr/u8-to-u32 (License): Likewise.
19968         * modules/unistr/u8-uctomb (License): Likewise.
19969         * modules/unitypes (License): Likewise.
19970         Requested by Simon Josefsson.
19971
19972 2011-03-29  Simon Josefsson  <simon@josefsson.org>
19973
19974         lib-symbol-visibility: Add a notice.
19975         * modules/lib-symbol-visibility (Notice): New field.
19976
19977 2011-03-29  Bruno Haible  <bruno@clisp.org>
19978
19979         getaddrinfo: Doc fix.
19980         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
19981         section "fixed in Gnulib".
19982
19983 2011-03-28  Simon Josefsson  <simon@josefsson.org>
19984
19985         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
19986         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
19987
19988 2011-03-26  Bruno Haible  <bruno@clisp.org>
19989
19990         unictype/property-byname: Reduce the number of load-time relocations.
19991         * lib/unictype/pr_byname.c: Include <stdlib.h>.
19992         (UC_PROPERTY_INDEX_*): New enumeration values.
19993         (uc_property_byname): Convert an index from the lookup table to an
19994         uc_property_t.
19995         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
19996         values.
19997
19998 2011-03-26  Bruno Haible  <bruno@clisp.org>
19999
20000         unictype/property-byname: Allow omitted word separators and aliases.
20001         * lib/unictype/pr_byname.gperf: Add property names without word
20002         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
20003         for 'space'.
20004
20005 2011-03-26  Bruno Haible  <bruno@clisp.org>
20006
20007         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
20008         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
20009         also hyphens to space.
20010         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
20011         without spaces.
20012         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
20013
20014 2011-03-26  Bruno Haible  <bruno@clisp.org>
20015
20016         unictype/joiningtype-byname: Recognize long names as well.
20017         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
20018         a long name.
20019         * lib/unictype/joiningtype_byname.c: Include <string.h>,
20020         unictype/joiningtype_byname.h.
20021         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
20022         * lib/unictype/joiningtype_byname.gperf: New file.
20023         * modules/unictype/joiningtype-byname (Files): Add
20024         lib/unictype/joiningtype_byname.gperf.
20025         (Depends-on): Add gperf.
20026         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
20027         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
20028         long names.
20029
20030         Tests for module 'unictype/joiningtype-longname'.
20031         * modules/unictype/joiningtype-longname-tests: New file.
20032         * tests/unictype/test-joiningtype_longname.c: New file.
20033
20034         New module 'unictype/joiningtype-longname'.
20035         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
20036         * lib/unictype/joiningtype_longname.c: New file.
20037         * modules/unictype/joiningtype-longname: New file.
20038         * modules/unictype/joiningtype-all (Depends-on): Add
20039         unictype/joiningtype-longname.
20040
20041 2011-03-26  Bruno Haible  <bruno@clisp.org>
20042
20043         unictype/bidiclass-byname: Recognize long names as well.
20044         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
20045         name.
20046         * lib/unictype/bidi_byname.c: Include <string.h>,
20047         unictype/bidi_byname.h.
20048         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
20049         * lib/unictype/bidi_byname.gperf: New file.
20050         * modules/unictype/bidiclass-byname (Files): Add
20051         lib/unictype/bidi_byname.gperf.
20052         (Depends-on): Add gperf.
20053         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
20054         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
20055         long names.
20056
20057         Tests for module 'unictype/bidiclass-longname'.
20058         * modules/unictype/bidiclass-longname-tests: New file.
20059         * tests/unictype/test-bidi_longname.c: New file.
20060
20061         New module 'unictype/bidiclass-longname'.
20062         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
20063         * lib/unictype/bidi_longname.c: New file.
20064         * modules/unictype/bidiclass-longname: New file.
20065         * modules/unictype/bidiclass-all (Depends-on): Add
20066         unictype/bidiclass-longname.
20067
20068 2011-03-26  Bruno Haible  <bruno@clisp.org>
20069
20070         unictype/bidi*: Rename modules.
20071         * modules/unictype/bidiclass-all: Renamed from
20072         modules/unictype/bidicategory-all.
20073         * modules/unictype/bidiclass-name: Renamed from
20074         modules/unictype/bidiclass-name.
20075         (Description): Update.
20076         * modules/unictype/bidiclass-name-tests: Renamed from
20077         modules/unictype/bidicategory-name-tests.
20078         * modules/unictype/bidiclass-byname: Renamed from
20079         modules/unictype/bidicategory-byname.
20080         (Description): Update.
20081         * modules/unictype/bidiclass-byname-tests: Renamed from
20082         modules/unictype/bidicategory-byname-tests.
20083         * modules/unictype/bidiclass-of: Renamed from
20084         modules/unictype/bidicategory-of.
20085         (Description): Update.
20086         * modules/unictype/bidiclass-of-tests: Renamed from
20087         modules/unictype/bidicategory-of-tests.
20088         * modules/unictype/bidiclass-test: Renamed from
20089         modules/unictype/bidicategory-test.
20090         (Description): Update.
20091         * modules/unictype/bidiclass-test-tests: Renamed from
20092         modules/unictype/bidicategory-test-tests.
20093         * modules/unictype/bidicategory-all: New file, a simple redirection.
20094         * modules/unictype/bidicategory-name: Likewise.
20095         * modules/unictype/bidicategory-byname: Likewise.
20096         * modules/unictype/bidicategory-of: Likewise.
20097         * modules/unictype/bidicategory-test: Likewise.
20098         * modules/unictype/property-bidi-* (Dependencies): Update.
20099         * lib/unictype/bidi_*.c: Update comment.
20100
20101 2011-03-26  Bruno Haible  <bruno@clisp.org>
20102
20103         unictype/bidi*: Rename functions, part 2.
20104         * modules/unictype/bidicategory-name (configure.ac): Update required
20105         libunistring version.
20106         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
20107
20108 2011-03-25  Bruno Haible  <bruno@clisp.org>
20109
20110         New module 'unictype/combining-class-all'.
20111         * modules/unictype/combining-class-all: New file.
20112
20113         Tests for module 'unictype/combining-class-byname'.
20114         * modules/unictype/combining-class-byname-tests: New file.
20115         * tests/unictype/test-combiningclass_byname.c: New file.
20116
20117         New module 'unictype/combining-class-byname'.
20118         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
20119         * lib/unictype/combiningclass_byname.c: New file.
20120         * lib/unictype/combiningclass_byname.gperf: New file.
20121         * modules/unictype/combining-class-byname: New file.
20122
20123         Tests for module 'unictype/combining-class-longname'.
20124         * modules/unictype/combining-class-longname-tests: New file.
20125         * tests/unictype/test-combiningclass_longname.c: New file.
20126
20127         New module 'unictype/combining-class-longname'.
20128         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
20129         * lib/unictype/combiningclass_longname.c: New file.
20130         * modules/unictype/combining-class-longname: New file.
20131
20132         Tests for module 'unictype/combining-class-name'.
20133         * modules/unictype/combining-class-name-tests: New file.
20134         * tests/unictype/test-combiningclass_name.c: New file.
20135
20136         New module 'unictype/combining-class-name'.
20137         * lib/unictype.in.h (uc_combining_class_name): New declaration.
20138         * lib/unictype/combiningclass_name.c: New file.
20139         * modules/unictype/combining-class-name: New file.
20140
20141 2011-03-25  Bruno Haible  <bruno@clisp.org>
20142
20143         unictype/combining-class: Rename source files.
20144         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
20145         of unictype/combining.h.
20146         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
20147         Update.
20148         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
20149         * modules/unictype/combining-class (Description): Fix.
20150         (Files, Makefile.am): Update.
20151         * tests/unictype/test-combiningclass.c: Renamed from
20152         tests/unictype/test-combining.c.
20153         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
20154
20155 2011-03-25  Bruno Haible  <bruno@clisp.org>
20156
20157         unictype: Update list of canonical combining classes.
20158         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
20159
20160 2011-03-25  Bruno Haible  <bruno@clisp.org>
20161
20162         unictype/category-byname: Recognize long names as well.
20163         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
20164         a long name.
20165         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
20166         unictype/categ_byname.h.
20167         (UC_CATEGORY_INDEX_*): New enumeration values.
20168         (uc_general_category_byname): Use uc_general_category_lookup and
20169         convert from index to value.
20170         * lib/unictype/categ_byname.gperf: New file.
20171         * modules/unictype/category-byname (Files): Add
20172         lib/unictype/categ_byname.gperf.
20173         (Depends-on): Add gperf.
20174         (Makefile.am): Add rule for generating unictype/categ_byname.h.
20175         * tests/unictype/test-categ_byname.c (main): Test the recognition of
20176         long names.
20177
20178         Tests for module 'unictype/category-longname'.
20179         * modules/unictype/category-longname-tests: New file.
20180         * tests/unictype/test-categ_longname.c: New file.
20181
20182         New module 'unictype/category-longname'.
20183         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
20184         * lib/unictype/categ_longname.c: New file.
20185         * modules/unictype/category-longname: New file.
20186         * modules/unictype/category-all (Depends-on): Add it.
20187
20188 2011-03-25  Bruno Haible  <bruno@clisp.org>
20189
20190         Tests for module 'unictype/category-LC'.
20191         * modules/unictype/category-LC-tests: New file.
20192         * tests/unictype/test-categ_LC.c: New file, automatically generated.
20193
20194         New module 'unictype/category-LC'.
20195         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
20196         (UC_CATEGORY_LC): New declaration.
20197         (UC_CASED_LETTER): New macro.
20198         * lib/gen-uni-tables.c (is_category_LC): New function.
20199         (output_categories): Also handle category LC.
20200         (UC_CATEGORY_MASK_LC): New enumeration value.
20201         (general_category_byname): Also handle category LC.
20202         * lib/unictype/categ_LC.c: New file.
20203         * lib/unictype/categ_LC.h: New file, automatically generated.
20204         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
20205         category LC.
20206         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
20207         * modules/unictype/category-LC: New file.
20208         * modules/unictype/category-byname (Depends-on): Add
20209         unictype/category-LC.
20210         * modules/unictype/category-all (Depends-on): Likewise.
20211
20212 2011-03-25  Eric Blake  <eblake@redhat.com>
20213
20214         xmalloc: revert yesterday's regression
20215         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
20216         realloc's underlying behavior (allowing allocation of zero-size
20217         objects, especially if malloc-gnu is also in use).
20218
20219 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
20220
20221         maint.mk: add missing version to VC-tag
20222         * top/maint.mk: git tag was missing actual tag name; add it.
20223
20224         valgrind: do leak checking, and exit with code 1 on error (not 0)
20225         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
20226         to VALGRIND.
20227
20228 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
20229
20230         posix-modules: say what it does.
20231         * posix-modules: Add a line to the --help output saying what it does.
20232
20233 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
20234
20235         xmalloc: Do not leak if underlying realloc is C99 compatible.
20236         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
20237         This avoids a leak on C99-based systems.  See
20238         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
20239
20240 2011-03-24  Eric Blake  <eblake@redhat.com>
20241
20242         realloc: document portability problem
20243         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
20244         passing 0 size to realloc.
20245
20246 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
20247
20248         doc: update users.txt
20249         * users.txt: Add cvsps, tmpwatch
20250
20251 2011-03-23  Matt Rice  <ratmice@gmail.com>
20252
20253         doc: update users.txt
20254         * users.txt: Add gdb.
20255
20256 2011-03-23  Jim Meyering  <meyering@redhat.com>
20257
20258         doc: update users.txt
20259         Looking through matches up to the following URL (there are still
20260         several more pages), I found several projects that use gnulib:
20261         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
20262         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
20263         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
20264
20265 2011-03-22  Bruno Haible  <bruno@clisp.org>
20266
20267         unictype/bidi*: Rename functions.
20268         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
20269         uc_bidi_class, uc_is_bidi_class): New declarations.
20270         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
20271         uc_bidi_category_byname.
20272         (uc_bidi_category_byname): New function.
20273         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
20274         u_bidi_category_name.
20275         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
20276         (uc_bidi_category_name): New function.
20277         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
20278         uc_bidi_category.
20279         (uc_bidi_category): New function.
20280         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
20281         uc_is_bidi_category. Invoke uc_bidi_class.
20282         (uc_is_bidi_category): New function.
20283         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
20284         instead of uc_bidi_category_byname.
20285         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
20286         instead of uc_bidi_category_name.
20287         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
20288         uc_bidi_category.
20289         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
20290         instead of uc_is_bidi_category.
20291
20292 2011-03-21  Bruno Haible  <bruno@clisp.org>
20293
20294         New module 'unictype/joininggroup-all'.
20295         * modules/unictype/joininggroup-all: New file.
20296
20297         Tests for module 'unictype/joininggroup-of'.
20298         * modules/unictype/joininggroup-of-tests: New file.
20299         * tests/unictype/test-joininggroup_of.c: New file.
20300         * tests/unictype/test-joininggroup_of.h: New file, automatically
20301         generated by gen-uni-tables.
20302
20303         New module 'unictype/joininggroup-of'.
20304         * modules/unictype/joininggroup-of: New file.
20305         * lib/unictype/joininggroup_of.c: New file.
20306         * lib/unictype/joininggroup_of.h: New file, automatically generated by
20307         gen-uni-tables.
20308
20309         Tests for module 'unictype/joininggroup-byname'.
20310         * modules/unictype/joininggroup-byname-tests: New file.
20311         * tests/unictype/test-joininggroup_byname.c: New file.
20312
20313         New module 'unictype/joininggroup-byname'.
20314         * modules/unictype/joininggroup-byname: New file.
20315         * lib/unictype/joininggroup_byname.c: New file.
20316         * lib/unictype/joininggroup_byname.gperf: New file.
20317
20318         Tests for module 'unictype/joininggroup-name'.
20319         * modules/unictype/joininggroup-name-tests: New file.
20320         * tests/unictype/test-joininggroup_name.c: New file.
20321
20322         New module 'unictype/joininggroup-name'.
20323         * modules/unictype/joininggroup-name: New file.
20324         * lib/unictype/joininggroup_name.c: New file.
20325         * lib/unictype/joininggroup_name.h: New file.
20326
20327         New module 'unictype/joiningtype-all'.
20328         * modules/unictype/joiningtype-all: New file.
20329
20330         Tests for module 'unictype/joiningtype-of'.
20331         * modules/unictype/joiningtype-of-tests: New file.
20332         * tests/unictype/test-joiningtype_of.c: New file.
20333         * tests/unictype/test-joiningtype_of.h: New file, automatically
20334         generated by gen-uni-tables.
20335
20336         New module 'unictype/joiningtype-of'.
20337         * modules/unictype/joiningtype-of: New file.
20338         * lib/unictype/joiningtype_of.c: New file.
20339         * lib/unictype/joiningtype_of.h: New file, automatically generated by
20340         gen-uni-tables.
20341
20342         Tests for module 'unictype/joiningtype-byname'.
20343         * modules/unictype/joiningtype-byname-tests: New file.
20344         * tests/unictype/test-joiningtype_byname.c: New file.
20345
20346         New module 'unictype/joiningtype-byname'.
20347         * modules/unictype/joiningtype-byname: New file.
20348         * lib/unictype/joiningtype_byname.c: New file.
20349
20350         Tests for module 'unictype/joiningtype-name'.
20351         * modules/unictype/joiningtype-name-tests: New file.
20352         * tests/unictype/test-joiningtype_name.c: New file.
20353
20354         New module 'unictype/joiningtype-name'.
20355         * modules/unictype/joiningtype-name: New file.
20356         * lib/unictype/joiningtype_name.c: New file.
20357
20358         unictype: Add support for Arabic shaping properties.
20359         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
20360         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
20361         declarations.
20362         (UC_JOINING_GROUP_*): New enumeration values.
20363         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
20364         declarations.
20365         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
20366         (unicode_joining_type): New variable.
20367         (UC_JOINING_GROUP_*): New enumeration values.
20368         (unicode_joining_group): New variable.
20369         (fill_arabicshaping, joining_type_as_c_identifier,
20370         output_joining_type_test, output_joining_type,
20371         joining_group_as_c_identifier, output_joining_group_test,
20372         output_joining_group): New functions.
20373         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
20374         fill_arabicshaping and output_joining_type_test, output_joining_type,
20375         output_joining_group_test, output_joining_group.
20376         Reported by Simon Josefsson.
20377
20378 2011-03-21  Jim Meyering  <meyering@redhat.com>
20379
20380         strftime: fix a bug in yesterday's change
20381         * lib/strftime.c (add): Accommodate width's initial value of -1.
20382         Otherwise, nstrftime would copy uninitialized data into
20383         the result buffer.
20384
20385 2011-03-21  Jim Meyering  <meyering@redhat.com>
20386
20387         tests: add strftime-tests module
20388         * tests/test-strftime.c: New file.
20389         * modules/strftime-tests: New module.
20390
20391 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20392
20393         strftime: don't assume a byte count fits in 'int'
20394         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
20395         found this problem by static analysis, using gcc -Wstrict-overflow
20396         (GCC 4.5.2, x86-64).  This reported an optimization that depended
20397         on an integer overflow having undefined behavior, but it turns out
20398         that the argument is a size, which might not fit in 'int' anyway,
20399
20400 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20401
20402         stdio: don't require ignore_value around fwrite
20403
20404         This patch works around libc bug 11959
20405         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
20406         Without this patch, applications must often write
20407         ignore_value (fwrite (...)) even though the ignore_value is
20408         not helpful here.  It's common to write many objects, using
20409         fwrite/printf/etc., and then use ferror to detect output error.
20410
20411         I considered making this patch optional, but decided against it,
20412         because libc is obviously being inconsistent here: there is no
20413         reason libc should insist that user code must inspect fwrite
20414         return's value without also insisting that it inspect printf's,
20415         putchar's, etc.  If user code wants to have a strict style where
20416         all these functions' values are checked (so that ferror need not
20417         be checked), we could add support for that style in a new gnulib
20418         module, but in the meantime it's better to be consistent and to
20419         support common usage.
20420
20421         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
20422         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
20423         that we are compiling in checking mode, and if not C++, and
20424         if not already wrapping fwrite for some other reason.
20425         (fwrite): #define to rpl_fwrite if the latter is defined.
20426
20427 2011-03-20  Bruno Haible  <bruno@clisp.org>
20428
20429         verror: Fix compilation error introduced on 2011-02-13.
20430         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
20431         instead of __attribute__.
20432         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20433
20434 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20435             Bruno Haible  <bruno@clisp.org>
20436
20437         socklen: do not depend on sys_socket
20438         While trying to modify Emacs to use gnulib's socklen module,
20439         I discovered a circular dependency: socklen depends on sys_socket
20440         and vice versa.  Emacs can use socklen, but it does not need
20441         sys_socket because it has its own substitute for sys/socket.h.
20442         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
20443         gl_TYPE_SOCKLEN_T.
20444         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
20445         gl_PREREQ_SYS_H_SOCKET.
20446         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
20447         gl_PREREQ_SYS_H_SOCKET.
20448         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
20449         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
20450         * modules/socklen (Depends-on): Do not depend on sys_socket.
20451         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
20452
20453 2011-03-20  Jim Meyering  <meyering@redhat.com>
20454
20455         maint.mk: sort file names *after* new transformation
20456         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
20457         prefix would have led to an unwarranted failure in GNU parted.
20458         Sort after that transformation.
20459
20460 2011-03-19  Jim Meyering  <meyering@redhat.com>
20461
20462         maint.mk: fix po-file syntax-check rule
20463         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
20464         Patch by Bruno Haible.
20465
20466 2011-03-19  Bruno Haible  <bruno@clisp.org>
20467
20468         socklen: Update comment.
20469         * m4/socklen.m4: Update comment about platforms.
20470
20471 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20472             Bruno Haible  <bruno@clisp.org>
20473
20474         inet_ntop, inet_pton: Simplify.
20475         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
20476         documented to provide socklen_t and we already depend on sys_socket.
20477         * modules/inet_pton (Depends-on): Likewise.
20478         * lib/arpa_inet.in.h: Adjust comment.
20479
20480 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20481             Bruno Haible  <bruno@clisp.org>
20482
20483         netdb: Simplify.
20484         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
20485         documented to provide socklen_t and we already depend on sys_socket.
20486         * lib/netdb.in.h: Adjust comment.
20487
20488 2011-03-19  Bruno Haible  <bruno@clisp.org>
20489
20490         sys_socket, netdb: Document problem with socklen_t.
20491         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
20492         platforms.
20493         * doc/posix-headers/netdb.texi: Likewise.
20494
20495 2011-03-18  Eric Blake  <eblake@redhat.com>
20496
20497         maint.mk: let po check work in VPATH build
20498         * top/maint.mk (po_file): Allow cfg.mk override.
20499         (sc_po_check): Allow VPATH use.
20500         Reported by Jiri Denemark.
20501
20502 2011-03-16  Jim Meyering  <meyering@redhat.com>
20503
20504         maint.mk: allow fine-grained syntax-check exclusion via Make variables
20505         Before, you would have had to create one .x-sc_ file per rule in order
20506         to exempt offending files.  Now, you may instead use a Make variable --
20507         usually defined in cfg.mk -- whose name identifies the affected rule.
20508         * top/maint.mk (_sc_excl): Define.
20509         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
20510         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
20511
20512 2011-03-13  Bruno Haible  <bruno@clisp.org>
20513
20514         ignore-value tests: Avoid warnings.
20515         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
20516         empty for gcc < 3.4.
20517
20518 2011-03-13  Bruno Haible  <bruno@clisp.org>
20519
20520         passfd: Fix link error on Solaris.
20521         * modules/passfd (Description): Correct.
20522         (Depends-on): Add socketlib.
20523         (Link): New section.
20524         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
20525
20526 2011-03-13  Bruno Haible  <bruno@clisp.org>
20527
20528         passfd: Fix link error on AIX 5.2.
20529         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
20530
20531 2011-03-13  Bruno Haible  <bruno@clisp.org>
20532
20533         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
20534         * lib/sys_socket.in.h: Include <stddef.h>.
20535         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
20536         CMSG_FIRSTHDR. Remove unused variable.
20537
20538 2011-03-13  Bruno Haible  <bruno@clisp.org>
20539
20540         passfd: Fix compilation error on OpenBSD.
20541         * lib/passfd.c: Include <sys/uio.h>.
20542
20543 2011-03-13  Bruno Haible  <bruno@clisp.org>
20544
20545         passfd test: Fix warnings.
20546         * tests/test-passfd.c: Include <sys/wait.h>.
20547         (main): Fix typo.
20548
20549 2011-03-13  Bruno Haible  <bruno@clisp.org>
20550
20551         passfd module, part 4, tweaks.
20552         * tests/test-passfd.c: Reorder includes.
20553         (main): Fix perror and printf calls.
20554
20555 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20556
20557         passfd module, part 4.
20558         * modules/passfd-tests: New file.
20559         * tests/test-passfd.c: New file.
20560
20561 2011-03-13  Jim Meyering  <meyering@redhat.com>
20562
20563         Makefile: rely on GNU make; derive syntax-check rule names
20564         Rather than requiring that each sc_ rule be listed as a dependent
20565         of "check", use features of GNU make to derive the list.
20566         * Makefile (syntax-check-rules): Define.
20567         (check): Depend on the new variable, not the hard-coded list.
20568
20569 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
20570             Bruno Haible  <bruno@clisp.org>
20571
20572         passfd module, part 3.
20573         * lib/passfd.h (recvfd): Add a flags argument.
20574         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
20575         (recvfd): Add a flags argument.
20576         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
20577         exists.
20578         * modules/passfd (Depends-on): Add cloexec.
20579         Suggested by Eric Blake.
20580
20581 2011-03-13  Bruno Haible  <bruno@clisp.org>
20582
20583         passfd module, part 2, tweaks.
20584         * modules/passfd (Files): Reorder.
20585         (Depends-on): Remove errno.
20586         (Include): Remove <sys/socket.h>, <sys/un.h>.
20587         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
20588         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
20589         specification header. Include <sys/socket.h> always. Don't include
20590         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
20591         (sendfd): Clarify that it sets errno when it fails.
20592         (recvfd): Fix specification.
20593
20594 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20595
20596         passfd module, part 2.
20597         * modules/passfd: New file.
20598         * lib/passfd.h: New file.
20599         * lib/passfd.c: New file.
20600
20601 2011-03-12  Bruno Haible  <bruno@clisp.org>
20602
20603         wcswidth, mbswidth: Avoid integer overflow.
20604         * lib/wcswidth.c: Include <limits.h>.
20605         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
20606         * lib/mbswidth.c: Include <limits.h>.
20607         (mbsnwidth): Avoid 'int' overflow.
20608         Reported by Jim Meyering.
20609
20610 2011-03-12  Bruno Haible  <bruno@clisp.org>
20611
20612         futimens, utimensat: Avoid endless recursion on Solaris 10.
20613         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
20614         Solaris.
20615         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
20616         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
20617
20618 2011-03-11  Jim Meyering  <meyering@redhat.com>
20619
20620         maint.mk: relax a regexp to accommodate other formatting styles
20621         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
20622         between "ngettext" and the following "(".
20623
20624 2011-03-11  Pádraig Brady <P@draigBrady.com>
20625
20626         maint.mk: suppress a false positive warning
20627         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
20628         diagnostics are marked with ngettext.
20629
20630 2011-03-10  Eric Blake  <eblake@redhat.com>
20631
20632         wchar: add explicit dependencies, for Tru64
20633         * modules/mbmemcasecoll (Depends-on): Add wchar.
20634         * modules/mbtowc (Depends-on): Likewise.
20635         * modules/vasnprintf (Depends-on): Likewise.
20636         * modules/unistdio/u-printf-args (Depends-on): Likewise.
20637         * modules/wctomb (Depends-on): Likewise.
20638         Reported by Peter O'Gorman.
20639
20640 2011-03-08  Bruno Haible  <bruno@clisp.org>
20641
20642         passfd module, part 1, tweaks.
20643         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
20644         Improve indentation. Improve AC_MSG_CHECKING messages.
20645         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
20646         gl_SOCKET_FAMILIES.
20647
20648 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20649
20650         passfd module, part 1.
20651         * m4/afunix.m4: New file.
20652         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
20653         sockets.
20654
20655 2011-03-08  Bruno Haible  <bruno@clisp.org>
20656
20657         regex-quote: New API.
20658         * lib/regex-quote.h: Include <stdbool.h>.
20659         (struct regex_quote_spec): New type.
20660         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20661         New declarations.
20662         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20663         'const struct regex_quote_spec *' argument.
20664         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
20665         (pcre_special): New constant.
20666         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20667         New functions.
20668         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20669         'const struct regex_quote_spec *' argument.
20670         * modules/regex-quote (Depends-on): Add stdbool.
20671         * tests/test-regex-quote.c (check): Update for new API. Add test for
20672         anchored results.
20673         * NEWS: Mention the API change.
20674         Reported by Reuben Thomas and Eric Blake.
20675
20676 2011-03-06  Bruno Haible  <bruno@clisp.org>
20677
20678         regex-quote: Fix creation of POSIX extended regular expressions.
20679         * lib/regex-quote.c (ere_special): Add grouping and alternation
20680         operators.
20681
20682 2011-03-05  Bruno Haible  <bruno@clisp.org>
20683
20684         doc: Improve doc regarding autopoint vs. gnulib.
20685         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
20686         disable autopoint while running autoreconf.
20687         Suggested by Ralf Wildenhues.
20688
20689 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20690
20691         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
20692         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
20693
20694 2011-03-03  Bruce Korb  <bkorb@gnu.org>
20695
20696         parse-duration: remove xalloc.h dependency
20697         * lib/parse-duration.c (parse_period): handle NULL return from
20698         strdup instead of calling xstrdup().
20699         * modules/parse-duration: remove "xalloc" dependency
20700
20701 2011-03-03  Matthew Booth  <mbooth@redhat.com>
20702
20703         bootstrap: honor m4_base when running aclocal
20704         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
20705
20706 2011-03-02  Jim Meyering  <meyering@redhat.com>
20707
20708         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
20709         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
20710         on request from Matt Booth.
20711
20712 2011-03-01  Eric Blake  <eblake@redhat.com>
20713
20714         test-link: work on Hurd
20715         * tests/test-link.h (test_link): Hurd rejects linking directories
20716         with EISDIR instead of the POSIX-mandated EPERM.
20717
20718 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
20719
20720         stdio: simplify by moving files to printf-posix, sigpipe
20721         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
20722         since this symbol is needed only if printf is replaced.
20723         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
20724         Require gl_ASM_SYMBOL_PREFIX.
20725         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
20726         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
20727         (Depends-on): Add 'raise'.
20728         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
20729         * modules/stdio (Files): Remove lib/stdio-write.c,
20730         m4/asm-underscore.m4.
20731         (Depends-on): Remove 'raise'.
20732
20733         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
20734         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
20735         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
20736         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
20737
20738 2011-02-28  Bruno Haible  <bruno@clisp.org>
20739
20740         localcharset: Assume ANSI C behaviour of free().
20741         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
20742         calling free().
20743         Suggested by Simon Josefsson <simon@josefsson.org>.
20744
20745 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
20746             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
20747             Bruno Haible  <bruno@clisp.org>  (tiny change)
20748
20749         On Cygwin, use /proc file system instead of win32 API.
20750         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
20751         Win32 file names.
20752         (DllMain): Simplify by removing Cygwin specific code.
20753         (find_shared_library_fullname): Use Linux specific implementation also
20754         for Cygwin.
20755         (get_shared_library_fullname): Update accordingly.
20756         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
20757         Win32 file names.
20758         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
20759         Cygwin specific code.
20760
20761 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
20762             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
20763
20764         Fix OpenMP flag detection for various Fortran compilers.
20765         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
20766         OpenMP-conditional compilation construct, to force compile
20767         failure with missing OpenMP flag.
20768         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
20769
20770 2011-02-25  Eric Blake  <eblake@redhat.com>
20771
20772         strstr: expand test coverage
20773         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
20774         compilation.
20775         * tests/test-memmem.c (main): Duplicate tests.
20776         * tests/test-strcasestr.c (main): Likewise.
20777         * tests/test-c-strcasestr.c (main): Likewise.
20778
20779 2011-02-25  Jim Meyering  <meyering@redhat.com>
20780
20781         maint.mk: detect missing-NL-at-EOF, too
20782         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
20783         it also detects when a file lacks a newline at EOF.
20784         (require_exactly_one_NL_at_EOF_): Renamed from
20785         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
20786         since people may well have .x-sc_... file names tied to the
20787         existing name.  Suggested by Eric Blake.
20788
20789 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
20790
20791         dirname: move m4/dos.m4 functionality into lib/dosname.h
20792
20793         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
20794         extracts symbols from it, puts them into config.h; but it's much
20795         easier to use the symbols directly.  filename.h already does this,
20796         but it disagrees with dos.m4 in some respects.  This patch
20797         introduces a different include file dosname.h that packages up
20798         dos.m4, and then later we can work on merging filename.h and
20799         dosname.h.  Applications that need only the easy-to-configure
20800         symbols should consider including dosname.h rather than dirname.h.
20801         * NEWS: Mention incompatible changes.
20802         * m4/dos.m4: Remove.
20803         * lib/dosname.h, modules/dosname: New files.
20804         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
20805         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
20806         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
20807         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
20808         Include dosname.h, not dirname.h.
20809         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
20810         Include dosname.h, for definitions of symbols like ISSLASH
20811         that used to be in config.h.
20812         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
20813         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20814         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20815         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20816         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
20817         * modules/rmdir (Files): Likewise.
20818         * modules/stat (Files): Likewise.
20819         * modules/unlink (Files): Likewise.
20820         * modules/dirname-lgpl (Depends-on): Add dosname.
20821         * modules/lstat (Depends-on): Likewise.
20822         * modules/openat (Depends-on): Likewise.
20823         * modules/rmdir (Depends-on): Likewise.
20824         * modules/savewd (Depends-on): Likewise.
20825         * modules/stat (Depends-on): Likewise.
20826         * modules/unlink (Depends-on): Likewise.
20827         * modules/openat (Depends-on): Remove dirname-lgpl.
20828         * modules/savewd (Depends-on): Likewise.
20829         * tests/test-dirname.c: Do not use removed symbols like
20830         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
20831         the remaining symbols, e.g., ISSLASH ('\\').
20832
20833 2011-02-25  Eric Blake  <eblake@redhat.com>
20834
20835         strstr: revert patches that introduced bug and pessimization
20836         * lib/str-two-way.h: Add another reference.
20837         (two_way_short_needle, two_way_long_needle): Revert changes from
20838         2011-02-24; they pessimize search speed.
20839         (critical_factorization): Partially revert changes from
20840         2010-06-22; they violate the requirement that the left half of the
20841         needle be smaller than the period of the needle.
20842
20843 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
20844
20845         filenamecat: remove unnecessary dependency on dirname-lgpl
20846         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
20847         is no direct dependency, just an indirect one via filenamecat-lgpl.
20848
20849         remove: remove unnecessary use of m4/dos.m4
20850         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
20851         * modules/remove (FILES): Remove m4/dos.m4.
20852
20853         * lib/openat-proc.c: Don't include dirname.h; not needed.
20854
20855         backupfile: remove unnecessary use of m4/dos.m4
20856         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
20857         of its symbols are used by the backupfile code.  backupfile.c does
20858         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
20859         for the rare case of programs that want all their backup file
20860         names to live within 8+3 limits, and dos.m4 doesn't address that.
20861         * modules/backupfile (Files): Remove m4/dos.m4.
20862
20863 2011-02-24  Jim Meyering  <meyering@redhat.com>
20864
20865         strstr: fix a bug whereby strstr would mistakenly return NULL
20866         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
20867         in period calculation.
20868         (two_way_long_needle): Likewise.
20869         The original problem was reported by Mike Stump in
20870         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
20871         Ralf Wildenhues provided the short needle and haystack.
20872         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
20873         Add a more involved test to trigger the bug in two_way_long_needle.
20874
20875 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20876
20877         gnulib-tool: remove use of bold display in help screen
20878         * gnulib-tool (func_usage): Do not use bold display anymore in the
20879         help screen.  That was just meant to be a temporary emphasis for a
20880         backward-incompatible change.
20881
20882 2011-02-23  Bruno Haible  <bruno@clisp.org>
20883
20884         Fix misindentation of preprocessor directives.
20885         * lib/argp-namefrob.h: Reindent preprocessor directives.
20886         * lib/getopt_int.h (struct _getopt_data): Likewise.
20887         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
20888         * lib/vasnprintf.c (decode_long_double): Likewise.
20889         * tests/test-argmatch.c: Insert blank lines, for clarity.
20890         * tests/test-exclude.c: Likewise.
20891
20892 2011-02-22  Bruno Haible  <bruno@clisp.org>
20893
20894         ioctl: Fix for MacOS X in 64-bit mode.
20895         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
20896         value.
20897         Suggested by Eric Blake.
20898         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
20899
20900 2011-02-22  Jim Meyering  <meyering@redhat.com>
20901
20902         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
20903         * Makefile (sc_cpp_indent_check): Don't limit the check to files
20904         in lib/.
20905
20906 2011-02-22  Eric Blake  <eblake@redhat.com>
20907
20908         maint: avoid any CDPATH issue
20909         * Makefile (sc_cpp_indent_check): Anchor cd argument.
20910
20911         maint: adjust cpp indentation for my modules, as well
20912         * Makefile (sc_cpp_indent_check): Add my name.
20913         * lib/fbufmode.c: Filter through cppi.
20914         * lib/fpurge.c: Likewise.
20915         * lib/freadable.c: Likewise.
20916         * lib/freading.c: Likewise.
20917         * lib/fwritable.c: Likewise.
20918         * lib/fwriting.c: Likewise.
20919         * lib/sigaction.c: Likewise.
20920
20921 2011-02-22  Jim Meyering  <meyering@redhat.com>
20922
20923         maint: adjust cpp indentation to reflect nesting depth
20924         I.e., in a block of code that begins with an unnested "#if",
20925         put one space between the "#" in column 1 and following token.
20926         For example,
20927         -#include <sys/vfs.h>
20928         +# include <sys/vfs.h>
20929         Do this only in .c files that are part of a module I maintain.
20930         * lib/linkat.c: Filter through cppi.
20931         * lib/nanosleep.c: Likewise.
20932         * lib/openat.c: Likewise.
20933         * lib/openat-die.c: Likewise.
20934         * lib/dup3.c: Likewise.
20935         * lib/fchownat.c: Likewise.
20936         * lib/flock.c: Likewise.
20937         * lib/fsync.c: Likewise.
20938         * lib/fts.c: Likewise.
20939         * lib/getpass.c: Likewise.
20940         * lib/gettimeofday.c: Likewise.
20941         * lib/userspec.c: Likewise.
20942         * Makefile (sc_cpp_indent_check): New rule, to check this.
20943
20944 2011-02-22  Bruno Haible  <bruno@clisp.org>
20945
20946         New module 'wctomb'.
20947         * lib/stdlib.in.h (wctomb): New declaration.
20948         * lib/wctomb.c: New file.
20949         * lib/wctomb-impl.h: New file.
20950         * m4/wctomb.m4: New file.
20951         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
20952         REPLACE_WCTOMB.
20953         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
20954         REPLACE_WCTOMB.
20955         * modules/wctomb: New file.
20956         * tests/test-stdlib-c++.cc: Test signature of wctomb.
20957         * doc/posix-functions/wctomb.texi: Mention the new module.
20958         * modules/wctob (Depends-on): Add wctomb.
20959
20960 2011-02-22  Bruno Haible  <bruno@clisp.org>
20961
20962         New module 'mbtowc'.
20963         * lib/stdlib.in.h (mbtowc): New declaration.
20964         * lib/mbtowc.c: New file.
20965         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
20966         * m4/mbtowc.m4: New file.
20967         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
20968         REPLACE_MBTOWC.
20969         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
20970         REPLACE_MBTOWC.
20971         * modules/mbtowc: New file.
20972         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
20973         * doc/posix-functions/mbtowc.texi: Mention the new module.
20974         * modules/btowc (Depends-on): Add mbtowc.
20975
20976 2011-02-22  Bruno Haible  <bruno@clisp.org>
20977
20978         wcrtomb: Add more tests for native Windows platforms.
20979         * tests/test-wcrtomb-w32-1.sh: New file.
20980         * tests/test-wcrtomb-w32-2.sh: New file.
20981         * tests/test-wcrtomb-w32-3.sh: New file.
20982         * tests/test-wcrtomb-w32-4.sh: New file.
20983         * tests/test-wcrtomb-w32-5.sh: New file.
20984         * tests/test-wcrtomb-w32.c: New file.
20985         * modules/wcrtomb-tests (Files): Add them.
20986         (Makefile.am): Arrange to run these tests.
20987         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
20988         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
20989
20990 2011-02-20  Bruno Haible  <bruno@clisp.org>
20991
20992         wcrtomb: Enhance test.
20993         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
20994
20995 2011-02-20  Bruno Haible  <bruno@clisp.org>
20996
20997         mbrtowc: Tiny optimization.
20998         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
20999
21000 2011-02-20  Jim Meyering  <meyering@redhat.com>
21001
21002         test-exclude.c: remove unmatched #endif
21003         * tests/test-exclude.c: Remove stray #endif, left over from
21004         the change of a week ago.
21005
21006 2011-02-19  Jim Meyering  <meyering@redhat.com>
21007
21008         git-version-gen: skip "-dirty" check when appropriate
21009         * build-aux/git-version-gen: Don't run any git commands when the
21010         version string comes from .tarball-version.  Prior to this, we
21011         would run git update-index --refresh even from a just-unpacked
21012         tarball directory, and that could affect a .git/ directory in a
21013         parent of the build directory.  Reported by Mike Frysinger.
21014
21015 2011-02-19  Bruno Haible  <bruno@clisp.org>
21016
21017         unictype/property-byname: Reduce the size of the 'data' segment.
21018         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
21019
21020 2011-02-19  Bruno Haible  <bruno@clisp.org>
21021
21022         unictype/scripts: Reduce the size of the 'data' segment.
21023         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
21024         '%pic'.
21025         * lib/unictype/scripts_byname.gperf: Regenerated.
21026
21027 2011-02-19  Bruno Haible  <bruno@clisp.org>
21028
21029         stdint: Update documentation.
21030         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
21031
21032 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
21033
21034         stdint: omit redundant check for wchar.h
21035         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
21036         always tests whether wchar.h exists, so remove the now-redundant test.
21037
21038 2011-02-18  Bruno Haible  <bruno@clisp.org>
21039
21040         stdint: Cut dependency to module 'wchar'.
21041         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
21042         include the necessary prerequisites.
21043         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
21044         * modules/stdint (Depends-on): Remove wchar.
21045         (Makefile.am): Substitute HAVE_WCHAR_H.
21046         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
21047
21048 2011-02-18  Eric Blake  <eblake@redhat.com>
21049
21050         longlong: skip, rather than fail, on cross-compilation
21051         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
21052         when cross-compiling; regression from 2011-02-16.
21053
21054 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
21055
21056         * NEWS: Mention 2011-02-08 change to stdlib.
21057
21058 2011-02-17  Bruno Haible  <bruno@clisp.org>
21059
21060         getloadavg: Add comments about platforms.
21061         * m4/getloadavg.m4: Add comment.
21062         * lib/getloadavg.c: Likewise.
21063
21064 2011-02-17  Bruno Haible  <bruno@clisp.org>
21065
21066         getloadavg: Fix link error on Solaris 2.6.
21067         * modules/getloadavg (Link): New section.
21068         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
21069         linking test-getloadavg.
21070         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
21071         getloadavg.
21072
21073 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
21074
21075         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
21076         It was 'int', but this doesn't match the IRIX 6.5 manual.
21077         Suggested by Bruno Haible in
21078         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
21079
21080 2011-02-17  Bruno Haible  <bruno@clisp.org>
21081
21082         havelib: Fix comments.
21083         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
21084         change.
21085
21086 2011-02-17  Bruno Haible  <bruno@clisp.org>
21087
21088         havelib: Update config.rpath.
21089         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
21090
21091 2011-02-17  Bruno Haible  <bruno@clisp.org>
21092
21093         getloadavg test: Add some plausibility checks.
21094         * tests/test-getloadavg.c (check_avg): Print a warning when the value
21095         is improbable.
21096
21097 2011-02-16  Eric Blake  <eblake@redhat.com>
21098
21099         maintainer-makefile: make syntax-check a no-op from tarballs
21100         * top/maint.mk (no-vc-detected): New rule.
21101         (local-checks-available): Use it to avoid hanging if someone tries
21102         'make syntax-check' from a tarball.  Also append to any non-syntax
21103         checks already defined in cfg.mk.
21104
21105 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
21106
21107         longlong: tune, particularly for common case of c99
21108
21109         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
21110         or running anything if c99, or if unsigned long long int does not
21111         work.  In either case, we know the answer without further tests.
21112         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
21113         it at most once, and use its results for both long long int and
21114         unsigned long long int.  This is more likely to be efficient in
21115         the common case where the program wants to check for both long
21116         long int and unsigned long long int.
21117         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
21118         since the answer is already known.
21119
21120 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
21121
21122         getloadavg: set errno
21123         * lib/getloadavg.c: Set errno when returning -1.  If no other
21124         error number looks appropriate, set it to ENOSYS if the getloadavg
21125         looks like it can't possibly ever work, ENOTSUP otherwise.
21126         Suggested by Bruno Haible in
21127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
21128
21129         getloadavg: trim unused parts and speed up 'configure'
21130         * NEWS: Document this.
21131         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
21132         always compiled if getloadavg is absent.
21133         Move test code to ...
21134         * tests/test-getloadavg.c: New file, containing previous
21135         contents of test from lib/getloadavg.c.  It also contains
21136         suggestions by Bruno Haible in
21137         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
21138         * modules/getloadavg-tests: New file.
21139         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
21140         Do tests in the same order as they're needed for getloadavg.c.
21141         Omit setgid-related tests that generate symbols KMEM_GROUP,
21142         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
21143         Do only the tests that are needed to see whether the system has
21144         getloadavg, moving the other tests into ...
21145         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
21146         NLIST_NAME_UNION; nobody should be using it.  Do not define
21147         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
21148         relevant, as the user of this module shouldn't care how getloadavg
21149         is implemented.
21150
21151         getloadavg: omit unused var
21152         * lib/getloadavg.c (getloadavg): Omit unused local variable.
21153
21154 2011-02-15  Jim Meyering  <meyering@redhat.com>
21155
21156         doc: update users.txt
21157         * users.txt: Update iwhd's URL.
21158
21159 2011-02-13  Bruno Haible  <bruno@clisp.org>
21160
21161         Consistent macro naming for macros that use GCC __attribute__.
21162         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
21163         _ATTRIBUTE_NONNULL_.
21164         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
21165         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
21166         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
21167         ATTRIBUTE_DEPRECATED.
21168         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
21169         ATTRIBUTE_NORETURN.
21170         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21171         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21172         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21173         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21174         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
21175         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
21176         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
21177         ATTRIBUTE_SENTINEL.
21178         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
21179         ATTRIBUTE_RETURN_CHECK.
21180         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
21181         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
21182         ATTRIBUTE_NORETURN.
21183         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
21184         Reported by Paul Eggert.
21185
21186 2011-02-13  Bruno Haible  <bruno@clisp.org>
21187
21188         Don't interfere with a program's definition of __attribute__.
21189         * lib/argp.h (__attribute__): Remove definition.
21190         (_GL_ATTRIBUTE_FORMAT): New macro.
21191         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
21192         * lib/argp-fmtstream.h (__attribute__): Remove definition.
21193         (_GL_ATTRIBUTE_FORMAT): New macro.
21194         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
21195         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
21196         GCC 3 or newer.
21197         * lib/error.h (__attribute__): Remove definition.
21198         (_GL_ATTRIBUTE_FORMAT): New macro.
21199         (error, error_at_line): Use it.
21200         * lib/hash.h (__attribute__): Remove definition.
21201         (ATTRIBUTE_WUR): Update definition. Define always.
21202         * lib/openat.h (__attribute__): Remove definition.
21203         (ATTRIBUTE_NORETURN): Update definition. Define always.
21204         * lib/sigpipe-die.h (__attribute__): Remove definition.
21205         (ATTRIBUTE_NORETURN): Update definition. Define always.
21206         * lib/vasnprintf.h (__attribute__): Remove definition.
21207         (_GL_ATTRIBUTE_FORMAT): New macro.
21208         (asnprintf, vasnprintf): Use it.
21209         * lib/xalloc.h (__attribute__): Remove definition.
21210         (ATTRIBUTE_NORETURN): Update definition. Define always.
21211         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
21212         * lib/xmemdup0.h (__attribute__): Remove definition.
21213         (ATTRIBUTE_NORETURN): Update definition. Define always.
21214         * lib/xprintf.h (__attribute__): Remove definition.
21215         (_GL_ATTRIBUTE_FORMAT): New macro.
21216         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
21217         * lib/xstrtol.h (__attribute__): Remove definition.
21218         (ATTRIBUTE_NORETURN): Update definition. Define always.
21219         * lib/xvasprintf.h (__attribute__): Remove definition.
21220         (_GL_ATTRIBUTE_FORMAT): New macro.
21221         (xasprintf, xvasprintf): Use it.
21222         * tests/test-argmatch.c (__attribute__): Remove definition.
21223         (ATTRIBUTE_NORETURN): Update definition. Define always.
21224         * tests/test-exclude.c (__attribute__): Remove definition.
21225         (ATTRIBUTE_NORETURN): Update definition. Define always.
21226         Reported by Paul Eggert.
21227
21228 2011-02-13  Bruno Haible  <bruno@clisp.org>
21229
21230         mbrtowc: Add more tests for native Windows platforms.
21231         * tests/test-mbrtowc-w32-1.sh: New file.
21232         * tests/test-mbrtowc-w32-2.sh: New file.
21233         * tests/test-mbrtowc-w32-3.sh: New file.
21234         * tests/test-mbrtowc-w32-4.sh: New file.
21235         * tests/test-mbrtowc-w32-5.sh: New file.
21236         * tests/test-mbrtowc-w32.c: New file.
21237         * modules/mbrtowc-tests (Files): Add them.
21238         (Makefile.am): Arrange to run these tests.
21239         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
21240         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
21241
21242 2011-02-13  Bruno Haible  <bruno@clisp.org>
21243
21244         mbrtowc: Work around native Windows bug.
21245         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
21246         guess when no suitable locale for testing was found.
21247         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
21248
21249 2011-02-13  Bruno Haible  <bruno@clisp.org>
21250
21251         mbsinit: Work around mingw bug.
21252         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
21253         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
21254         Windows.
21255         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
21256
21257 2011-02-13  Bruno Haible  <bruno@clisp.org>
21258
21259         mbsinit: Don't crash for a NULL argument.
21260         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
21261         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
21262
21263 2011-02-13  Bruno Haible  <bruno@clisp.org>
21264
21265         Don't interfere with a program's definition of __attribute__.
21266         * lib/stdio.in.h (__attribute__): Remove definition.
21267         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
21268         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
21269         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
21270         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
21271         * lib/string.in.h (__attribute__): Remove definition.
21272         Reported by Paul Eggert.
21273
21274 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21275
21276         stdlib: don't get in the way of non-GCC __attribute__
21277         See thread starting at
21278         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
21279         Revert previous stdlib change, installing the following instead:
21280         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
21281         to get in the way of a non-GCC compiler that supports __attribute__.
21282         (_GL_ATTRIBUTE_RETURN): New macro.
21283         (_Exit): Use it instead of __attribute__.
21284
21285 2011-02-12  Bruno Haible  <bruno@clisp.org>
21286
21287         quotearg test: Avoid test failure on mingw.
21288         * tests/test-quotearg.sh: Convert the locale identifier from native
21289         Windows syntax to Unix syntax.
21290
21291 2011-02-12  Bruno Haible  <bruno@clisp.org>
21292
21293         setlocale: Prefer gnulib's override over libintl's override.
21294         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
21295         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
21296         GNULIB_defined_setlocale is set.
21297
21298 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21299
21300         stdlib: support non-GCC __attribute__
21301
21302         Fix a serious and tricky problem encountered when attempting to
21303         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
21304         5.5, but it crashed due to memory corruption on Solaris 10 with
21305         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
21306         bits that are otherwise zero.  This tagging is optional inside
21307         Emacs but is preferred and is used when __attribute__ ((__aligned
21308         (8))) works, as it does with both recent-enough GCC and with Sun C
21309         5.11.  However, Sun C 5.11 is not GCC and does not #define
21310         __GNUC__ and __GNUC_MINOR__.
21311
21312         When I added the getloadavg module to Emacs, it brought in
21313         stdlib.in.h, which contained this fragment:
21314
21315            #ifndef __attribute__
21316            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
21317            #  define __attribute__(Spec)   /* empty */
21318            # endif
21319            #endif
21320
21321         When files that include <stdlib.h> were compiled with Sun C 5.11,
21322         the above code disabled __attribute__ ((__aligned (8))), which
21323         caused variables to not be properly aligned, which eventually led
21324         to the pointer corruption mentioned above.  (This was a bit hard
21325         to diagnose, unfortunately.)
21326
21327         Several "#define __attribute__(X) /* empty */" code snippets need
21328         to be eradicated from Gnulib to work with non-GCC compilers that
21329         support __attribute__.  The Autoconf way to do this is to test for
21330         each kind of attribute that we want support for, and selectively
21331         enable that in source code.
21332
21333         Fix this problem just for stdlib.h, by adding a test for the
21334         __noreturn__ attribute, and change stdlib.in.h to use that test
21335         when needed.  This technique can be easily generalized to the
21336         other *.in.h files and attributes, and a similar technique can be
21337         used for *.h and *.c files.  This patch is enough to solve the
21338         problem for Emacs + getloadavg, and I thought I'd publish it for
21339         feedback before undertaking further, similar fixes in other
21340         modules.
21341
21342         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
21343         because it's not needed for stdlib.h.  It merely substitutes the
21344         value directly into stdlib.h.  We may well need to #define it, or
21345         similar symbols, for other modules, but it's nice to also have an
21346         option to not #define it for applications like Emacs that do not
21347         need it.
21348
21349         * lib/stdlib.in.h (__attribute__): Do not #define.
21350         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
21351         be defined only if the _Exit module is also used.
21352         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
21353         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
21354         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
21355         platforms.
21356         * modules/_Exit (Files): Add m4/attribute.m4.
21357         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
21358         * m4/attribute.m4: New file.
21359
21360 2011-02-12  Bruno Haible  <bruno@clisp.org>
21361
21362         wcsrtombs: Work around bug on native Windows.
21363         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
21364         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
21365         instead of len.
21366         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
21367
21368 2011-02-12  Bruno Haible  <bruno@clisp.org>
21369
21370         mbsrtowcs: Work around bug on native Windows.
21371         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
21372         against mingw bug.
21373         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
21374
21375 2011-02-12  Bruno Haible  <bruno@clisp.org>
21376
21377         Avoid setlocale bugs in tests.
21378         * modules/btowc (Dependencies): Add setlocale.
21379         * modules/c-strcase (Dependencies): Likewise.
21380         * modules/mbmemcasecmp (Dependencies): Likewise.
21381         * modules/mbmemcasecoll (Dependencies): Likewise.
21382         * modules/mbrtowc (Dependencies): Likewise.
21383         * modules/mbscasecmp (Dependencies): Likewise.
21384         * modules/mbscasestr (Dependencies): Likewise.
21385         * modules/mbschr (Dependencies): Likewise.
21386         * modules/mbscspn (Dependencies): Likewise.
21387         * modules/mbsinit (Dependencies): Likewise.
21388         * modules/mbsncasecmp (Dependencies): Likewise.
21389         * modules/mbsnrtowcs (Dependencies): Likewise.
21390         * modules/mbspbrk (Dependencies): Likewise.
21391         * modules/mbspcasecmp (Dependencies): Likewise.
21392         * modules/mbsrchr (Dependencies): Likewise.
21393         * modules/mbsrtowcs (Dependencies): Likewise.
21394         * modules/mbsspn (Dependencies): Likewise.
21395         * modules/mbsstr (Dependencies): Likewise.
21396         * modules/nl_langinfo (Dependencies): Likewise.
21397         * modules/quotearg (Dependencies): Likewise.
21398         * modules/unicase/locale-language (Dependencies): Likewise.
21399         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
21400         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
21401         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
21402         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
21403         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
21404         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
21405         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
21406         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
21407         * modules/vasnprintf-posix (Dependencies): Likewise.
21408         * modules/wcrtomb (Dependencies): Likewise.
21409         * modules/wcsnrtombs (Dependencies): Likewise.
21410         * modules/wcsrtombs (Dependencies): Likewise.
21411
21412 2011-02-12  Bruno Haible  <bruno@clisp.org>
21413
21414         setlocale: Workaround native Windows bug.
21415         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
21416         succeeds but sets LC_CTYPE to "C", report a failure.
21417         * tests/test-setlocale2.sh: New file.
21418         * tests/test-setlocale2.c: New file.
21419         * modules/setlocale-tests (Files): Add the new files.
21420         (Makefile.am): Enable test-setlocale2.sh test.
21421         * doc/posix-functions/setlocale.texi: Mention workaround.
21422
21423 2011-02-11  Bruno Haible  <bruno@clisp.org>
21424
21425         Tests for module 'setlocale'.
21426         * modules/setlocale-tests: New file.
21427         * tests/test-setlocale1.sh: New file.
21428         * tests/test-setlocale1.c: New file.
21429
21430         New module 'setlocale'.
21431         * lib/locale.in.h (setlocale): New declaration.
21432         * lib/setlocale.c: New file, based on
21433         gettext/gettext-runtime/intl/setlocale.c.
21434         * m4/setlocale.m4: New file.
21435         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
21436         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
21437         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
21438         REPLACE_SETLOCALE.
21439         * modules/setlocale: New file.
21440         * tests/test-locale-c++.cc: Test the declaration of setlocale.
21441         * doc/posix-functions/setlocale.texi: Mention the new module.
21442
21443 2011-02-11  Bruno Haible  <bruno@clisp.org>
21444
21445         Prepare for locale dependent tests on mingw.
21446         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
21447         because it has the wrong locale encoding.
21448         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
21449         French_France.1252 instead of "fr".
21450         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
21451         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
21452         because it has the wrong locale encoding.
21453         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
21454         native Windows, try Turkish_Turkey.65001.
21455         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
21456         Chinese_China.54936.
21457
21458         Prepare for locale dependent tests on mingw.
21459         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
21460         differently.
21461         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
21462         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
21463         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
21464         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21465
21466 2011-02-11  Eric Blake  <eblake@redhat.com>
21467
21468         strptime: avoid compiler warnings
21469         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
21470         compiler warnings about dead code.
21471         Reported by Daniel P. Berrange.
21472
21473 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
21474
21475         doc: update users.txt
21476         * users.txt: Add rcs.
21477
21478 2011-02-10  John W. Eaton  <jwe@gnu.org>
21479
21480         doc: update users.txt
21481         * users.txt: Add octave.
21482
21483 2011-02-10  Jim Meyering  <meyering@redhat.com>
21484
21485         doc: update users.txt
21486         * users.txt: Add iwhd.
21487
21488 2011-02-09  Bruno Haible  <bruno@clisp.org>
21489
21490         gnulib-tool: Make copyright notice adjustment more robust.
21491         * gnulib-tool (func_import): In sed_transform_main_lib_file,
21492         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
21493         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
21494         License".
21495         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
21496
21497 2011-02-06  Bruno Haible  <bruno@clisp.org>
21498
21499         New module 'towctrans'.
21500         * modules/towctrans: New file.
21501         * lib/wctype.in.h (towctrans): New declaration.
21502         * lib/towctrans.c: New file.
21503         * lib/towctrans-impl.h: New file.
21504         * m4/towctrans.m4: New file.
21505         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
21506         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
21507         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
21508         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
21509         * doc/posix-functions/towctrans.texi: Mention the new module.
21510
21511 2011-02-06  Bruno Haible  <bruno@clisp.org>
21512
21513         New module 'wctrans'.
21514         * modules/wctrans: New file.
21515         * lib/wctype.in.h (wctrans): New declaration.
21516         * lib/wctrans.c: New file.
21517         * lib/wctrans-impl.h: New file.
21518         * m4/wctrans.m4: New file.
21519         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
21520         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
21521         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
21522         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
21523         * doc/posix-functions/wctrans.texi: Mention the new module.
21524
21525 2011-02-06  Bruno Haible  <bruno@clisp.org>
21526
21527         New module 'iswctype'.
21528         * modules/iswctype: New file.
21529         * lib/wctype.in.h (iswctype): New declaration.
21530         * lib/iswctype.c: New file.
21531         * lib/iswctype-impl.h: New file.
21532         * m4/iswctype.m4: New file.
21533         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
21534         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
21535         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
21536         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
21537         * doc/posix-functions/iswctype.texi: Mention the new module and the
21538         HP-UX 11.00 problem.
21539
21540 2011-02-06  Bruno Haible  <bruno@clisp.org>
21541
21542         New module 'wctype'.
21543         * modules/wctype: Change to represent the wctype() substitute.
21544         * lib/wctype.in.h (wctype): New declaration.
21545         * lib/wctype.c: New file.
21546         * lib/wctype-impl.h: New file.
21547         * m4/wctype.m4: New file.
21548         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
21549         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
21550         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
21551         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
21552         * doc/posix-functions/wctype.texi: Mention the new module and the
21553         HP-UX 11.00 problem.
21554
21555 2011-02-06  Bruno Haible  <bruno@clisp.org>
21556
21557         wctype-h: Ensure wctype_t and wctrans_t are defined.
21558         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
21559         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
21560         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
21561         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
21562         HAVE_WCTRANS_T.
21563         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
21564
21565 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
21566
21567         flock: fix license typo
21568
21569         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
21570         omitted.
21571
21572 2011-02-08  Bruno Haible  <bruno@clisp.org>
21573
21574         Split large sed scripts, for HP-UX sed.
21575         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
21576         to avoid HP-UX limit of 99 commands, in the near future.
21577         * modules/stdlib (Makefile.am): Likewise.
21578         * modules/unistd (Makefile.am): Likewise.
21579         * modules/wchar (Makefile.am): Likewise.
21580         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21581         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
21582         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
21583
21584 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21585             Bruno Haible  <bruno@clisp.org>
21586
21587         stdlib: improve random_r modularization
21588         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
21589         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
21590         you also need the random_r module to get this material right.
21591         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
21592         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
21593         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
21594
21595 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21596
21597         stdlib: don't depend on stdint
21598         * lib/stdlib.in.h: Don't include <stdint.h> merely because
21599         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
21600         be independent of whether stdint.h is needed.
21601         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
21602         here, instead of ...
21603         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
21604         struct random_data should be using the random_r module, not just
21605         the stdlib module (which wouldn't make sense: what package needs
21606         just struct random_data without also needing random_r?).
21607         * modules/stdlib (Depends-on): Remove stdint.
21608
21609         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
21610         See the thread rooted at
21611         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
21612         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
21613         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
21614         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
21615         __VMS)); previously it was always included (via fcntl--.h).
21616         (getloadavg): Do not use c_strtod.  Instead, approximate it by
21617         hand; this is good enough for load averages.  Also, do not use
21618         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
21619         flags directly if available and don't bother otherwise.  (Packages
21620         that need the extra reliability should use the modules that define
21621         these flags on older platforms that lack them.)
21622         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
21623         fcntl-safer.
21624
21625 2011-02-08  Jim Meyering  <meyering@redhat.com>
21626
21627         di-set.h, ino-map.h: add multiple-inclusion guard
21628         Technically, the guard is required only for ino-map.h, due to its
21629         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
21630         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
21631         * lib/ino-map.h: Likewise.
21632
21633 2011-02-06  Bruno Haible  <bruno@clisp.org>
21634
21635         iswblank: Ensure declaration on glibc systems.
21636         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
21637         * modules/iswblank (Dependencies): Add 'extensions'.
21638         * doc/posix-functions/iswblank.texi: Document the glibc problem.
21639
21640 2011-02-06  Bruno Haible  <bruno@clisp.org>
21641
21642         New module 'iswblank'.
21643         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
21644         * modules/iswblank: New file.
21645         * modules/wctype-h (Files): Remove lib/iswblank.c.
21646         (Makefile.am): Substitute GNULIB_ISWBLANK.
21647         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
21648         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
21649         (gl_WCTYPE_H_DEFAULTS): New macro.
21650         (gl_WCTYPE_H): Require it. Remove iswblank related code.
21651         * modules/iswblank-tests: New file.
21652         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
21653         * tests/test-wctype-h.c (main): Remove iswblank tests.
21654         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
21655         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
21656         of 'wctype-h'.
21657         * NEWS: Mention the change.
21658         * modules/mbchar (Depends-on): Add iswblank.
21659
21660 2011-02-08  Bruno Haible  <bruno@clisp.org>
21661
21662         di-set tests: Refactor.
21663         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
21664         unnecessary includes.
21665         (ASSERT): Remove macro.
21666         (main): Make C90 compliant by avoiding variable declaration after
21667         statement.
21668         * modules/di-set-tests (Files): Add tests/macros.h.
21669
21670 2011-02-08  Bruno Haible  <bruno@clisp.org>
21671
21672         ino-map tests: Refactor.
21673         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
21674         unnecessary includes.
21675         (ASSERT): Remove macro.
21676         (main): Make C90 compliant by avoiding variable declaration after
21677         statement.
21678         * modules/ino-map-tests (Files): Add tests/macros.h.
21679
21680 2011-02-08  Jim Meyering  <meyering@redhat.com>
21681
21682         di-set: add "const" to a cast
21683         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
21684         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
21685
21686 2011-02-06  Bruno Haible  <bruno@clisp.org>
21687
21688         Rename module 'wctype' to 'wctype-h'.
21689         * modules/wctype-h: Renamed from modules/wctype.
21690         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
21691         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
21692         (Files, Depends-on, Makefile.am): Update.
21693         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
21694         (Files, Makefile.am): Update.
21695         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
21696         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
21697         * doc/posix-headers/wctype.texi: Update.
21698         * doc/posix-functions/iswalnum.texi: Update.
21699         * doc/posix-functions/iswalpha.texi: Update.
21700         * doc/posix-functions/iswblank.texi: Update.
21701         * doc/posix-functions/iswcntrl.texi: Update.
21702         * doc/posix-functions/iswdigit.texi: Update.
21703         * doc/posix-functions/iswgraph.texi: Update.
21704         * doc/posix-functions/iswlower.texi: Update.
21705         * doc/posix-functions/iswprint.texi: Update.
21706         * doc/posix-functions/iswpunct.texi: Update.
21707         * doc/posix-functions/iswspace.texi: Update.
21708         * doc/posix-functions/iswupper.texi: Update.
21709         * doc/posix-functions/iswxdigit.texi: Update.
21710         * doc/posix-functions/towlower.texi: Update.
21711         * doc/posix-functions/towupper.texi: Update.
21712         * NEWS: Mention the change.
21713         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
21714         * modules/mbchar (Dependencies): Likewise.
21715         * modules/mbswidth (Dependencies): Likewise.
21716         * modules/quotearg (Dependencies): Likewise.
21717         * modules/regex (Dependencies): Likewise.
21718         * modules/wcscasecmp (Dependencies): Likewise.
21719         * modules/wcsncasecmp (Dependencies): Likewise.
21720         * modules/wcwidth (Dependencies): Likewise.
21721
21722 2011-02-06  Bruno Haible  <bruno@clisp.org>
21723
21724         New module 'wcswidth'.
21725         * modules/wcswidth: New file.
21726         * lib/wchar.in.h (wcswidth): New declaration.
21727         * lib/wcswidth.c: New file.
21728         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
21729         * m4/wcswidth.m4: New file.
21730         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
21731         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
21732         REPLACE_WCSWIDTH.
21733         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
21734         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
21735         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
21736         * doc/posix-functions/wcswidth.texi: Mention the new module.
21737
21738 2011-02-06  Bruno Haible  <bruno@clisp.org>
21739
21740         New module 'wcstok'.
21741         * modules/wcstok: New file.
21742         * lib/wchar.in.h (wcstok): New declaration.
21743         * lib/wcstok.c: New file.
21744         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
21745         * m4/wcstok.m4: New file.
21746         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
21747         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
21748         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
21749         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
21750         * doc/posix-functions/wcstok.texi: Mention the new module.
21751
21752 2011-02-06  Bruno Haible  <bruno@clisp.org>
21753
21754         New module 'wcsstr'.
21755         * modules/wcsstr: New file.
21756         * lib/wchar.in.h (wcsstr): New declaration.
21757         * lib/wcsstr.c: New file.
21758         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
21759         * m4/wcsstr.m4: New file.
21760         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
21761         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
21762         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
21763         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
21764         * doc/posix-functions/wcsstr.texi: Mention the new module.
21765
21766 2011-02-06  Bruno Haible  <bruno@clisp.org>
21767
21768         New module 'wcspbrk'.
21769         * modules/wcspbrk: New file.
21770         * lib/wchar.in.h (wcspbrk): New declaration.
21771         * lib/wcspbrk.c: New file.
21772         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
21773         * m4/wcspbrk.m4: New file.
21774         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
21775         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
21776         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
21777         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
21778         * doc/posix-functions/wcspbrk.texi: Mention the new module.
21779
21780 2011-02-06  Bruno Haible  <bruno@clisp.org>
21781
21782         New module 'wcsspn'.
21783         * modules/wcsspn: New file.
21784         * lib/wchar.in.h (wcsspn): New declaration.
21785         * lib/wcsspn.c: New file.
21786         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
21787         * m4/wcsspn.m4: New file.
21788         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
21789         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
21790         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
21791         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
21792         * doc/posix-functions/wcsspn.texi: Mention the new module.
21793
21794 2011-02-06  Bruno Haible  <bruno@clisp.org>
21795
21796         New module 'wcscspn'.
21797         * modules/wcscspn: New file.
21798         * lib/wchar.in.h (wcscspn): New declaration.
21799         * lib/wcscspn.c: New file.
21800         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
21801         * m4/wcscspn.m4: New file.
21802         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
21803         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
21804         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
21805         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
21806         * doc/posix-functions/wcscspn.texi: Mention the new module.
21807
21808 2011-02-06  Bruno Haible  <bruno@clisp.org>
21809
21810         New module 'wcsrchr'.
21811         * modules/wcsrchr: New file.
21812         * lib/wchar.in.h (wcsrchr): New declaration.
21813         * lib/wcsrchr.c: New file.
21814         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
21815         * m4/wcsrchr.m4: New file.
21816         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
21817         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
21818         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
21819         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
21820         * doc/posix-functions/wcsrchr.texi: Mention the new module.
21821
21822 2011-02-06  Bruno Haible  <bruno@clisp.org>
21823
21824         New module 'wcschr'.
21825         * modules/wcschr: New file.
21826         * lib/wchar.in.h (wcschr): New declaration.
21827         * lib/wcschr.c: New file.
21828         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
21829         * m4/wcschr.m4: New file.
21830         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
21831         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
21832         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
21833         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
21834         * doc/posix-functions/wcschr.texi: Mention the new module.
21835
21836 2011-02-06  Bruno Haible  <bruno@clisp.org>
21837
21838         New module 'wcsdup'.
21839         * modules/wcsdup: New file.
21840         * lib/wchar.in.h (wcsdup): New declaration.
21841         * lib/wcsdup.c: New file.
21842         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
21843         * m4/wcsdup.m4: New file.
21844         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
21845         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
21846         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
21847         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
21848         * doc/posix-functions/wcsdup.texi: Mention the new module.
21849
21850 2011-02-06  Bruno Haible  <bruno@clisp.org>
21851
21852         New module 'wcsxfrm'.
21853         * modules/wcsxfrm: New file.
21854         * lib/wchar.in.h (wcsxfrm): New declaration.
21855         * lib/wcsxfrm.c: New file.
21856         * lib/wcsxfrm-impl.h: New file.
21857         * m4/wcsxfrm.m4: New file.
21858         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
21859         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
21860         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
21861         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
21862         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
21863
21864 2011-02-06  Bruno Haible  <bruno@clisp.org>
21865
21866         New module 'wcscoll'.
21867         * modules/wcscoll: New file.
21868         * lib/wchar.in.h (wcscoll): New declaration.
21869         * lib/wcscoll.c: New file.
21870         * lib/wcscoll-impl.h: New file.
21871         * m4/wcscoll.m4: New file.
21872         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
21873         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
21874         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
21875         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
21876         * doc/posix-functions/wcscoll.texi: Mention the new module.
21877
21878 2011-02-06  Bruno Haible  <bruno@clisp.org>
21879
21880         New module 'wcsncasecmp'.
21881         * modules/wcsncasecmp: New file.
21882         * lib/wchar.in.h (wcsncasecmp): New declaration.
21883         * lib/wcsncasecmp.c: New file.
21884         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
21885         * m4/wcsncasecmp.m4: New file.
21886         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
21887         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
21888         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
21889         HAVE_WCSNCASECMP.
21890         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
21891         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
21892
21893 2011-02-06  Bruno Haible  <bruno@clisp.org>
21894
21895         New module 'wcscasecmp'.
21896         * modules/wcscasecmp: New file.
21897         * lib/wchar.in.h (wcscasecmp): New declaration.
21898         * lib/wcscasecmp.c: New file.
21899         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
21900         * m4/wcscasecmp.m4: New file.
21901         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
21902         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
21903         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
21904         HAVE_WCSCASECMP.
21905         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
21906         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
21907
21908 2011-02-05  Bruno Haible  <bruno@clisp.org>
21909
21910         New module 'wcsncmp'.
21911         * modules/wcsncmp: New file.
21912         * lib/wchar.in.h (wcsncmp): New declaration.
21913         * lib/wcsncmp.c: New file.
21914         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
21915         * m4/wcsncmp.m4: New file.
21916         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
21917         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
21918         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
21919         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
21920         * doc/posix-functions/wcsncmp.texi: Mention the new module.
21921
21922 2011-02-05  Bruno Haible  <bruno@clisp.org>
21923
21924         New module 'wcscmp'.
21925         * modules/wcscmp: New file.
21926         * lib/wchar.in.h (wcscmp): New declaration.
21927         * lib/wcscmp.c: New file.
21928         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
21929         * m4/wcscmp.m4: New file.
21930         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
21931         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
21932         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
21933         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
21934         * doc/posix-functions/wcscmp.texi: Mention the new module.
21935
21936 2011-02-05  Bruno Haible  <bruno@clisp.org>
21937
21938         New module 'wcsncat'.
21939         * modules/wcsncat: New file.
21940         * lib/wchar.in.h (wcsncat): New declaration.
21941         * lib/wcsncat.c: New file.
21942         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
21943         * m4/wcsncat.m4: New file.
21944         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
21945         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
21946         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
21947         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
21948         * doc/posix-functions/wcsncat.texi: Mention the new module.
21949
21950 2011-02-05  Bruno Haible  <bruno@clisp.org>
21951
21952         New module 'wcscat'.
21953         * modules/wcscat: New file.
21954         * lib/wchar.in.h (wcscat): New declaration.
21955         * lib/wcscat.c: New file.
21956         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
21957         * m4/wcscat.m4: New file.
21958         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
21959         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
21960         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
21961         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
21962         * doc/posix-functions/wcscat.texi: Mention the new module.
21963
21964 2011-02-05  Bruno Haible  <bruno@clisp.org>
21965
21966         New module 'wcpncpy'.
21967         * modules/wcpncpy: New file.
21968         * lib/wchar.in.h (wcpncpy): New declaration.
21969         * lib/wcpncpy.c: New file.
21970         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
21971         * m4/wcpncpy.m4: New file.
21972         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
21973         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
21974         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
21975         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
21976         * doc/posix-functions/wcpncpy.texi: Mention the new module.
21977
21978 2011-02-05  Bruno Haible  <bruno@clisp.org>
21979
21980         New module 'wcsncpy'.
21981         * modules/wcsncpy: New file.
21982         * lib/wchar.in.h (wcsncpy): New declaration.
21983         * lib/wcsncpy.c: New file.
21984         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
21985         * m4/wcsncpy.m4: New file.
21986         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
21987         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
21988         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
21989         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
21990         * doc/posix-functions/wcsncpy.texi: Mention the new module.
21991
21992 2011-02-05  Bruno Haible  <bruno@clisp.org>
21993
21994         New module 'wcpcpy'.
21995         * modules/wcpcpy: New file.
21996         * lib/wchar.in.h (wcpcpy): New declaration.
21997         * lib/wcpcpy.c: New file.
21998         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
21999         * m4/wcpcpy.m4: New file.
22000         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
22001         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
22002         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
22003         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
22004         * doc/posix-functions/wcpcpy.texi: Mention the new module.
22005
22006 2011-02-05  Bruno Haible  <bruno@clisp.org>
22007
22008         New module 'wcscpy'.
22009         * modules/wcscpy: New file.
22010         * lib/wchar.in.h (wcscpy): New declaration.
22011         * lib/wcscpy.c: New file.
22012         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
22013         * m4/wcscpy.m4: New file.
22014         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
22015         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
22016         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
22017         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
22018         * doc/posix-functions/wcscpy.texi: Mention the new module.
22019
22020 2011-02-05  Bruno Haible  <bruno@clisp.org>
22021
22022         New module 'wcsnlen'.
22023         * modules/wcsnlen: New file.
22024         * lib/wchar.in.h (wcsnlen): New declaration.
22025         * lib/wcsnlen.c: New file.
22026         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
22027         * m4/wcsnlen.m4: New file.
22028         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
22029         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
22030         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
22031         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
22032         * doc/posix-functions/wcsnlen.texi: Mention the new module.
22033
22034 2011-02-05  Bruno Haible  <bruno@clisp.org>
22035
22036         New module 'wcslen'.
22037         * modules/wcslen: New file.
22038         * lib/wchar.in.h (wcslen): New declaration.
22039         * lib/wcslen.c: New file.
22040         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
22041         * m4/wcslen.m4: New file.
22042         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
22043         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
22044         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
22045         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
22046         * doc/posix-functions/wcslen.texi: Mention the new module.
22047
22048 2011-02-05  Bruno Haible  <bruno@clisp.org>
22049
22050         New module 'wmemset'.
22051         * modules/wmemset: New file.
22052         * lib/wchar.in.h (wmemset): New declaration.
22053         * lib/wmemset.c: New file.
22054         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
22055         * m4/wmemset.m4: New file.
22056         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
22057         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
22058         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
22059         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
22060         * doc/posix-functions/wmemset.texi: Mention the new module.
22061
22062 2011-02-05  Bruno Haible  <bruno@clisp.org>
22063
22064         New module 'wmemmove'.
22065         * modules/wmemmove: New file.
22066         * lib/wchar.in.h (wmemmove): New declaration.
22067         * lib/wmemmove.c: New file.
22068         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
22069         * m4/wmemmove.m4: New file.
22070         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
22071         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
22072         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
22073         HAVE_WMEMMOVE.
22074         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
22075         * doc/posix-functions/wmemmove.texi: Mention the new module.
22076
22077 2011-02-05  Bruno Haible  <bruno@clisp.org>
22078
22079         New module 'wmemcpy'.
22080         * modules/wmemcpy: New file.
22081         * lib/wchar.in.h (wmemcpy): New declaration.
22082         * lib/wmemcpy.c: New file.
22083         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
22084         * m4/wmemcpy.m4: New file.
22085         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
22086         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
22087         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
22088         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
22089         * doc/posix-functions/wmemcpy.texi: Mention the new module.
22090
22091 2011-02-05  Bruno Haible  <bruno@clisp.org>
22092
22093         New module 'wmemcmp'.
22094         * modules/wmemcmp: New file.
22095         * lib/wchar.in.h (wmemcmp): New declaration.
22096         * lib/wmemcmp.c: New file.
22097         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
22098         * m4/wmemcmp.m4: New file.
22099         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
22100         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
22101         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
22102         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
22103         * doc/posix-functions/wmemcmp.texi: Mention the new module.
22104
22105 2011-02-07  Jim Meyering  <meyering@redhat.com>
22106
22107         di-set, ino-map: new modules, from coreutils
22108         * lib/di-set.c: New file.
22109         * lib/di-set.h: Likewise.
22110         * lib/ino-map.c: Likewise.
22111         * lib/ino-map.h: Likewise.
22112         * modules/di-set: Likewise.
22113         * modules/di-set-tests: Likewise.
22114         * modules/ino-map: Likewise.
22115         * modules/ino-map-tests: Likewise.
22116         * tests/test-di-set.c: Likewise.
22117         * tests/test-ino-map.c: Likewise.
22118
22119 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
22120
22121         getloadavg: merge minor changes from Emacs
22122
22123         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
22124         (getloadavg): Use memset, not bzero.
22125
22126         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
22127         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
22128         clash (bug#86).
22129
22130 2010-11-14  Bruno Haible  <bruno@clisp.org>
22131
22132         Allow multiple gnulib generated replacements to coexist.
22133         * lib/getopt.in.h (struct option): Avoid identical redefinition.
22134         * lib/inttypes.in.h (imaxdiv_t): Likewise.
22135         * lib/langinfo.in.h (nl_item): Likewise.
22136         * lib/math.in.h (_NaN, NAN): Likewise.
22137         * lib/netdb.in.h (struct addrinfo): Likewise.
22138         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
22139         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
22140         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
22141         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
22142         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
22143         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
22144         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
22145         pthread_mutexattr_init, pthread_mutexattr_settype,
22146         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
22147         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
22148         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
22149         pthread_spin_trylock, pthread_spin_unlock): Likewise.
22150         * lib/sched.in.h (struct sched_param): Likewise.
22151         * lib/se-selinux.in.h (security_class_t, security_context_t,
22152         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
22153         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
22154         lsetfilecon, fsetfilecon, security_check_context,
22155         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
22156         Likewise.
22157         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
22158         Likewise.
22159         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
22160         _gl_function_taking_int_returning_void_t, union sigval,
22161         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
22162         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
22163         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
22164         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
22165         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
22166         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
22167         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
22168         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
22169         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
22170         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
22171         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
22172         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
22173         socklen_t, rpl_fd_isset): Likewise.
22174         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
22175         * lib/sys_time.in.h (struct timeval): Likewise.
22176         * lib/sys_times.in.h (struct tms): Likewise.
22177         * lib/sys_utsname.in.h (struct utsname):
22178         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
22179         * lib/unistd.in.h (getpagesize): Likewise.
22180         * lib/wchar.in.h (mbstate_t): Likewise.
22181         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
22182         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
22183         towlower, towupper): Likewise.
22184         Reported by Sam Steingold <sds@gnu.org>.
22185
22186 2011-02-05  Eric Blake  <eblake@redhat.com>
22187
22188         unsetenv: work around Haiku issues
22189         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
22190         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
22191
22192 2010-12-30  Bruce Korb  <bkorb@gnu.org>
22193
22194         libposix: avoid calling error() within libposix
22195         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
22196         is defined.
22197
22198 2011-02-05  Eric Blake  <eblake@redhat.com>
22199
22200         strerror_r-posix: port to cygwin
22201         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
22202         implementation.
22203         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
22204         * tests/test-strerror_r.c (main): Fix test.
22205         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
22206         issue.
22207
22208 2011-02-05  Bruno Haible  <bruno@clisp.org>
22209
22210         New module 'wmemchr'.
22211         * modules/wmemchr: New file.
22212         * lib/wchar.in.h (wmemchr): New declaration.
22213         * lib/wmemchr.c: New file.
22214         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
22215         * m4/wmemchr.m4: New file.
22216         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
22217         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
22218         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
22219         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
22220         * doc/posix-functions/wmemchr.texi: Mention the new module.
22221
22222 2011-02-04  Eric Blake  <eblake@redhat.com>
22223
22224         fdopendir: detect FreeBSD bug
22225         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
22226         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
22227
22228 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
22229
22230         stdbool: do not define HAVE_STDBOOL_H
22231         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
22232         AC_HEADER_STDBOOL.  All uses changed.  Do not define
22233         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
22234         imported from the latest Autoconf git.  It was motivated by Emacs,
22235         which uses gnulib but does not need HAVE_STDBOOL_H.
22236
22237 2011-02-04  Bruno Haible  <bruno@clisp.org>
22238
22239         wcsnrtombs: Prepare for new module wwcsnrtombs.
22240         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
22241         * lib/wcsnrtombs.c: Include it.
22242         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
22243
22244         wcsrtombs: Prepare for new module wwcsrtombs.
22245         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
22246         * lib/wcsrtombs.c: Include it.
22247         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
22248
22249         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
22250         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
22251         * lib/mbsnrtowcs.c: Include it.
22252         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
22253
22254         mbsrtowcs: Prepare for new module mbsrtowwcs.
22255         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
22256         * lib/mbsrtowcs.c: Include it.
22257         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
22258
22259 2011-02-04  Bruno Haible  <bruno@clisp.org>
22260
22261         vasnprintf: Reduce use of malloc for small format strings.
22262         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
22263         (arguments): Add room for the first 7 arguments.
22264         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
22265         (char_directives, u8_directives, u16_directives, u32_directives): Add
22266         room for the first 7 directives.
22267         * lib/printf-parse.c: Include <string.h>.
22268         (PRINTF_PARSE): Change memory handling code so that it uses the first
22269         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
22270         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
22271         Reported by Pádraig Brady <P@draigbrady.com>.
22272
22273 2011-01-31  Eric Blake  <eblake@redhat.com>
22274
22275         dup2: work around Haiku bug
22276         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
22277         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
22278         * doc/posix-functions/dup2.texi (dup2): Document the bug.
22279         * tests/test-dup2.c (main): Enhance test.
22280
22281 2011-01-31  Simon Josefsson  <simon@josefsson.org>
22282
22283         doc: off_t is not available in eglibc 2.11.2 stdio.h.
22284         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
22285         declared by eglibc 2.11.2.
22286         * lib/stdio.in.h: Likewise.
22287
22288 2011-01-31  Eric Blake  <eblake@redhat.com>
22289
22290         ignore-value: add missing test dependency
22291         * tests/test-ignore-value.c: Revert previous change; stdio.h
22292         provides off_t.
22293         * modules/ignore-value-tests (Depends-on): Add missing dependency.
22294
22295 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
22296
22297         mktime: clarify long_int width checking
22298         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
22299         the top level, to make it clearer that the assumption about
22300         long_int width is being checked.  See
22301         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
22302
22303 2011-01-30  Simon Josefsson  <simon@josefsson.org>
22304
22305         ignore-value: Fix self-test.
22306         * tests/test-ignore-value.c: Include sys/types.h for off_t.
22307
22308 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
22309
22310         TYPE_MAXIMUM: avoid theoretically undefined behavior
22311         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
22312         negative number, which the C Standard says has undefined behavior.
22313         In practice this is not a problem, but might as well do it by the book.
22314         Reported by Rich Felker and Eric Blake; see
22315         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
22316         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
22317         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
22318         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22319         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
22320         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22321         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
22322
22323         mktime: #undef mktime before #defining it
22324         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
22325
22326         mktime: systematically normalize tm_isdst comparisons
22327         * lib/mktime.c (isdst_differ): New function.
22328         (__mktime_internal): Use it systematically for all isdst comparisons.
22329         This completes the fix for libc BZ #6723, and removes the need for
22330         normalizing tm_isdst.  See
22331         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
22332         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
22333
22334         mktime: fix some integer overflow issues and sidestep the rest
22335
22336         This was prompted by a bug report by Benjamin Lindner for MinGW
22337         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
22338         His bug is due to signed integer overflow (0 - INT_MIN), and I
22339         I scanned through mktime.c looking for other integer overflow
22340         problems, fixing all the bugs I found.
22341
22342         Although the C Standard says the resulting code is still not safe
22343         in the presence of integer overflow, in practice it should be good
22344         enough for all real-world two's-complement implementations, except
22345         for debugging environments that deliberately trap on integer
22346         overflow (e.g., gcc -ftrapv).
22347
22348         * lib/mktime.c (WRAPV): New macro.
22349         (SHR): Also check that long_int and time_t shift right in the
22350         usual way, before using the fast-but-unportable method.
22351         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
22352         used.  The code already assumed two's complement, so there's
22353         no need to test for alternatives.  All uses removed.
22354         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
22355         the C standard.  Problem reported by Rich Felker in
22356         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
22357         (twos_complement_arithmetic): Also check long_int and time_t.
22358         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
22359         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
22360         (__mktime_internal): Avoid integer overflow with unary subtraction
22361         in two instances where -1 - X is an adequate replacement for -X,
22362         since the calculations are approximate.
22363
22364 2011-01-29  Eric Blake  <eblake@redhat.com>
22365
22366         mktime: avoid infinite loop
22367         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
22368         type; behavior is still undefined but portable to all known targets.
22369         Reported by Rich Felker.
22370
22371 2011-01-29  Simon Josefsson  <simon@josefsson.org>
22372
22373         rename, unlink, same-inode: Relicense.
22374         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
22375         * modules/unlink (License): Likewise.
22376         * modules/same-inode (License): Likewise.
22377
22378 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
22379
22380         mktime: avoid problems on NetBSD 5 / i386
22381         * lib/mktime.c (long_int): New type.  This works around a problem
22382         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
22383         but time_t is 64 bits, and where I expect the existing code is
22384         wrong in some cases.
22385         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
22386         (ydhms_diff): Bring back the compile-time check for wide-enough
22387         year and yday.
22388
22389         mktime: fix misspelling in comment
22390         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
22391         This merges all recent glibc changes of importance.
22392
22393 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22394
22395         move-if-change: cope with concurrent mv of identical file.
22396         * build-aux/move-if-change (CMPPROG): Accept environment
22397         variable as an override for `cmp'.
22398         (usage): Document CMPPROG.
22399         Adjust comparison to drop stdout.  Cope with failure of mv if
22400         the target file exists and is identical to the source, for
22401         parallel builds.
22402         Report from H.J. Lu against binutils in PR binutils/12283.
22403
22404 2011-01-28  Bruce Korb  <bkorb@gnu.org>
22405
22406         * users.txt: Mention sharutils.
22407
22408 2011-01-28  Simon Josefsson  <simon@josefsson.org>
22409
22410         * users.txt: Mention OATH Toolkit.
22411
22412 2011-01-27  Bruno Haible  <bruno@clisp.org>
22413
22414         Prepare for supporting FreeBSD 10.
22415         * build-aux/config.libpath: Remove handling of freebsd1*.
22416
22417 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
22418
22419         Prepare for supporting FreeBSD 10.
22420         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
22421         match FreeBSD 10.0.
22422
22423 2011-01-27  Bruno Haible  <bruno@clisp.org>
22424
22425         vma-iter, get-rusage-as: Add OpenBSD support.
22426         * modules/vma-iter (configure.ac): Test for mquery.
22427         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
22428         * lib/vma-iter.c: Include <sys/mman.h>.
22429         (vma_iterate): Add an implementation based on mquery().
22430         * lib/resource-ext.h (get_rusage_as): Update comments.
22431         * lib/get-rusage-as.c: Likewise.
22432         * lib/get-rusage-data.c: Likewise.
22433
22434 2011-01-26  Karl Berry  <karl@gnu.org>
22435
22436         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
22437         variables to make it easier to override the makeinfo program used.
22438
22439 2011-01-26  Eric Blake  <eblake@redhat.com>
22440
22441         fcntl: work around Haiku F_DUPFD bugs
22442         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
22443         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
22444         cloexec bit on duplication.
22445         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
22446
22447 2011-01-26  Bruno Haible  <bruno@clisp.org>
22448
22449         Enable memory leak tests on AIX.
22450         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
22451         * tests/test-fprintf-posix3.c (main): Likewise.
22452
22453 2011-01-26  Bruno Haible  <bruno@clisp.org>
22454
22455         Tests for module 'get-rusage-data'.
22456         * modules/get-rusage-data-tests: New file.
22457         * tests/test-get-rusage-data.c: New file.
22458
22459         New module 'get-rusage-data'.
22460         * lib/resource-ext.h (get_rusage_data): New declaration.
22461         * lib/get-rusage-data.c: New file.
22462         * modules/get-rusage-data: New file.
22463
22464 2011-01-25  Bruno Haible  <bruno@clisp.org>
22465
22466         get-rusage-as: Allow for easier testing.
22467         * lib/resource-ext.h (get_rusage_as): Add comment.
22468         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
22469         (main): New function for interactive testing.
22470
22471 2011-01-25  Bruno Haible  <bruno@clisp.org>
22472
22473         vma-iter: Treat Haiku like BeOS.
22474         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
22475         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
22476
22477 2011-01-25  Eric Blake  <eblake@redhat.com>
22478
22479         c-stack: fix regression on cygwin when libsigsegv is present
22480         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
22481
22482 2011-01-24  Bruno Haible  <bruno@clisp.org>
22483
22484         vma-iter: Avoid empty intervals.
22485         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
22486         on an empty interval.
22487
22488 2011-01-24  Jim Meyering  <meyering@redhat.com>
22489
22490         u64: remove unnecessary #include
22491         * lib/u64.h: Don't include <stddef.h>.  It was not used.
22492
22493 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22494
22495         Allow the user to avoid the HAVE_RAW_DECL_* macros.
22496         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
22497
22498 2011-01-23  Bruno Haible  <bruno@clisp.org>
22499
22500         New module 'vma-iter'.
22501         * lib/vma-iter.h: New file.
22502         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
22503         * modules/vma-iter: New file.
22504         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
22505         for get_rusage_as_via_iterator.
22506         (vma_iterate_callback): New function.
22507         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
22508         * modules/get-rusage-as (Depends-on): Add vma-iter.
22509
22510 2011-01-23  Bruno Haible  <bruno@clisp.org>
22511
22512         uninorm: Tweak includes.
22513         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
22514         Reported by Jim Meyering.
22515
22516 2011-01-23  Bruno Haible  <bruno@clisp.org>
22517
22518         get-rusage-as: Improve on NetBSD.
22519         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
22520         /proc, like on FreeBSD.
22521
22522 2011-01-23  Jim Meyering  <meyering@redhat.com>
22523
22524         xreadlink.h: remove unnecessary #include
22525         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
22526
22527         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
22528         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
22529
22530 2011-01-23  Bruno Haible  <bruno@clisp.org>
22531
22532         get-rusage-as: Fix bug.
22533         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
22534         original limit when aborting the first loop.
22535
22536 2011-01-23  Bruno Haible  <bruno@clisp.org>
22537
22538         wctype: Ensure valid C syntax.
22539         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
22540         unconditionally, instead of gl_NEXT_HEADERS conditionally.
22541
22542 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
22543
22544         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
22545         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
22546         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
22547         as they are needed only for configure's test case.
22548         This removes two unnecessary symbols from config.h.
22549
22550         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
22551         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
22552         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
22553         AC_CHECK_HEADERS_ONCE on a header that we also invoke
22554         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
22555         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
22556         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
22557         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
22558         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22559         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22560         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
22561         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22562         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22563         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22564         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
22565         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22566         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
22567         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22568
22569 2011-01-21  Eric Blake  <eblake@redhat.com>
22570
22571         maintainer-makefile: work with older git for submodule check
22572         * top/maint.mk (public-submodule-commit): Rewrite to avoid
22573         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
22574         Reported by Matthias Bolte.
22575
22576         bootstrap: minor portability fixes
22577         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
22578         (usage): Omit leading capital and trailing . on help phrases, per
22579         GNU Coding Standards.
22580         (check_versions, top level): Prefix messages with script name.
22581
22582 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
22583
22584         bootstrap: support --no-git option
22585         * build-aux/bootstrap: Add --no-git option, to be used when
22586         --gnulib-srcdir points to the exact desired checkout.
22587
22588 2011-01-21  Eric Blake  <eblake@redhat.com>
22589
22590         strerror_r-posix: work with glibc 2.13
22591         * lib/strerror_r.c (strerror_r): Fix return type.
22592
22593 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22594             Bruno Haible  <bruno@clisp.org>
22595
22596         uN_strstr: New unit tests.
22597         * modules/unistr/u8-strstr-tests: New file.
22598         * modules/unistr/u16-strstr-tests: New file.
22599         * modules/unistr/u32-strstr-tests: New file.
22600         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
22601         * tests/unistr/test-u8-strstr.c: New file.
22602         * tests/unistr/test-u16-strstr.c: New file.
22603         * tests/unistr/test-u32-strstr.c: New file.
22604
22605 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22606             Bruno Haible  <bruno@clisp.org>
22607
22608         Make uN_strstr functions O(n) worst-case.
22609         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
22610         16-bit and 32-bit unit cases, use the unibyte algorithm from
22611         lib/mbsstr.c.
22612         * lib/unistr/u8-strstr.c: Include <string.h>.
22613         (UNIT_IS_UINT8_T): New macro.
22614         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
22615         (U_STRLEN, U_STRNLEN): New macros.
22616         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
22617         (U_STRLEN, U_STRNLEN): New macros.
22618         * modules/unistr/u8-strstr (Depends-on): Add strstr.
22619         (configure.ac): Update required libunistring version.
22620         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
22621         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
22622         malloca.
22623         (configure.ac): Update required libunistring version.
22624         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
22625         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
22626         malloca.
22627         (configure.ac): Update required libunistring version.
22628
22629 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22630             Bruno Haible  <bruno@clisp.org>
22631
22632         Prepare for faster uN_strstr functions.
22633         * lib/str-kmp.h: Support definable UNITs.
22634         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
22635         needle_len argument.
22636         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
22637         * lib/mbscasestr.c (mbscasestr): Likewise.
22638
22639 2011-01-21  Pádraig Brady <P@draigBrady.com>
22640
22641         malloca-tests: make faster by unsetting MALLOC_PERTURB_
22642         * tests/test-malloca.c (main): Unset the environment variable
22643         to greatly speed up the test.
22644         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
22645         * modules/malloca-tests: Depend on unsetenv.
22646
22647 2011-01-21  Pádraig Brady <P@draigBrady.com>
22648
22649         ignore-value: remove stdint dependency
22650         * lib/ignore-value.h: Remove <stdint.h>
22651         * modules/ignore-value: Remove stdint dependency.
22652
22653 2011-01-21  Jim Meyering  <meyering@redhat.com>
22654
22655         maint.mk: adjust variable name to be consistent with other gl_ vars
22656         * top/maint.mk (gl_public_submodule_commit): Rename the variable
22657         to be lower case.
22658
22659 2011-01-20  Jim Meyering  <meyering@redhat.com>
22660
22661         maint.mk: make "check" depend on public-submodule-commit by default
22662         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
22663
22664 2011-01-20  Bruno Haible  <bruno@clisp.org>
22665
22666         mbfile, mbiter: Complete change from 2008-12-21.
22667         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
22668         * m4/mbiter.m4 (gl_MBITER): Likewise.
22669
22670 2011-01-20  Jim Meyering  <meyering@redhat.com>
22671
22672         init.sh: insert space between each function name and "()"
22673         * tests/init.sh: Make it a little easier to see that a function's
22674         name is "warn_", and not "warn" when looking at the first part of
22675         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
22676
22677 2011-01-20  Jim Meyering  <meyering@redhat.com>
22678
22679         mountlist: clean up code formatting
22680         * lib/mountlist.c (read_file_system_list): Split a long line,
22681         correct bracing style, use NULL in place of "(struct statfs *)0",
22682         don't parenthesize return value, add spaces around "=" and after
22683         ";-in-for-stmt".
22684
22685 2011-01-14  Markus Duft <mduft@gentoo.org>
22686
22687         mountlist: add support for Interix
22688         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
22689         Apply statvfs to all entries of /dev/fs.
22690         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
22691         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
22692
22693 2011-01-20  Jim Meyering  <meyering@redhat.com>
22694
22695         maint.mk: improve the public-submodule-commit rule
22696         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
22697         to suppress printing of its commands... unless V=1.
22698         Add git submodule's --quiet option to suppress printing of e.g.,
22699         "Entering gnulib" output.
22700         "cd" into $(srcdir) before running git submodule.
22701
22702 2011-01-20  Bruno Haible  <bruno@clisp.org>
22703
22704         include_next: Fix bug introduced on 2011-01-18.
22705         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
22706         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
22707         ac_cv_header_... variable if the second argument is not 'check'.
22708         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
22709         gl_NEXT_HEADERS_INTERNAL.
22710
22711 2011-01-20  Bruno Haible  <bruno@clisp.org>
22712
22713         Allow the user to avoid the GNULIB_TEST_* macros.
22714         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
22715         Suggested by Paul Eggert.
22716
22717 2011-01-14  Jim Meyering  <meyering@redhat.com>
22718
22719         bootstrap: avoid failure when there is no .gitmodules file
22720         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
22721         has been assigned to, even when its value is the empty string.
22722         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
22723         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
22724         Reported by John W. Eaton <jwe@gnu.org>.
22725
22726 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
22727
22728         assume <ctype.h>, ..., <time.h> exist
22729         For years gnulib has been assuming the existence of the headers
22730         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
22731         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
22732         them, since they don't appear to be needed.
22733         * README (Portability guidelines): Document this.
22734         * lib/flock.c: Assume <fcntl.h> exists.
22735         * lib/regex_internal.h: Assume <locale.h> exists.
22736         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
22737         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
22738         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
22739         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
22740         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
22741         * m4/regex.m4 (gl_REGEX): Likewise.
22742         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
22743         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
22744         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
22745         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
22746         * tests/test-argp.c: Likewise.
22747         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
22748
22749         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
22750         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
22751         AA_APPLE_UNIVERSAL_BUILD.  See
22752         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
22753         * NEWS: Document this.
22754
22755 2011-01-19  Eric Blake  <eblake@redhat.com>
22756
22757         c-stack: assume stack overflow if SA_SIGINFO unsupported
22758         * lib/c-stack.c (SIGACTION_WORKS): Rename...
22759         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
22760         sigaction will work.
22761         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
22762         behavior match Linux.
22763         * tests/test-c-stack.c (main): Prefer NULL for pointers.
22764
22765         stdbool-tests: accommodate Haiku
22766         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
22767
22768         binary-io: fix O_TEXT on Haiku
22769         * modules/binary-io (Depends-on): Add fcntl-h.
22770         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
22771         than blindly undefining O_TEXT.
22772         Reported by Scott McCreary.
22773
22774 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22775
22776         include_next: do not check for standard headers like stddef.h
22777
22778         I found this problem when modifying Emacs to use gnulib.
22779         I noticed that it added HAVE_STDDEF_H to config.h, even though
22780         gnulib always assumes <stddef.h> exists as per README and this
22781         symbol is unnecessary.
22782         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
22783         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
22784         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
22785         faster for headers like stddef.h that are known to exist.
22786         (gl_CHECK_NEXT_HEADERS): Use it.
22787         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
22788         rather than gl_CHECK_NEXT_HEADERS.
22789         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
22790         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
22791
22792 2011-01-18  Eric Blake  <eblake@redhat.com>
22793
22794         ansi-c++-opt: skip C++ dependency style if C++ is unused
22795         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
22796         tests when we know C++ compilation is not desired.
22797         Reported by Scott McCreary.
22798
22799 2011-01-18  Bruno Haible  <bruno@clisp.org>
22800
22801         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
22802         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
22803         (main): Perform test also when getrlimit and setrlimit don't exist or
22804         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
22805         limiting the address space size using setrlimit, compare the address
22806         space size before and after the the test.
22807         * tests/test-dprintf-posix2.c: Likewise.
22808         * tests/test-fprintf-posix3.sh: Update skip messages.
22809         * tests/test-dprintf-posix2.sh: Likewise.
22810         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
22811         * modules/dprintf-posix-tests (Depends-on): Likewise.
22812         Reported by Bruce Korb <bkorb@gnu.org> and
22813         Gary V. Vaughan <gary@gnu.org>.
22814
22815 2011-01-18  Bruno Haible  <bruno@clisp.org>
22816
22817         get-rusage-as: Improvement for Cygwin.
22818         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
22819         areas that are merely reserved.
22820
22821 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22822
22823         strftime: remove dependencies on multibyte modules
22824
22825         strftime depended on mbrlen, mbsinit, and wchar, but these modules
22826         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
22827         only if __osf__ is defined, and I suspect OSF doesn't need these
22828         other modules.  If my guess is wrong, we'll need to come up with a
22829         variant of strftime that doesn't need the multibyte modules.
22830
22831         I discovered this problem when attempting modify Emacs to use the
22832         strftime module.  With the previous gnulib, this caused Emacs to
22833         need 31 new files, ranging from lib/config.charset to
22834         m4/wint_t.m4.  This was overkill and I expect would be offputting
22835         to the Emacs maintainers.  After this change, only 6 new files are
22836         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
22837         stdbool.m4, and tm_gmtoff.m4.
22838
22839         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
22840         Suggested by Bruno Haible in
22841         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
22842         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
22843         and do not check for wchar.h.
22844         * modules/strftime (Files): Remove m4/mbstate_t.m4.
22845         (Depends-on): Remove mbrlen, mbsinit, wchar.
22846
22847 2011-01-18  Bruno Haible  <bruno@clisp.org>
22848
22849         Tests for module 'get-rusage-as'.
22850         * modules/get-rusage-as-tests: New file.
22851         * tests/test-get-rusage-as.c: New file.
22852
22853         New module 'get-rusage-as'.
22854         * modules/get-rusage-as: New file.
22855         * lib/resource-ext.h: New file.
22856         * lib/get-rusage-as.c: New file.
22857
22858 2011-01-17  Eric Blake  <eblake@redhat.com>
22859
22860         sigaction: relax license from LGPLv3+ to LGPLv2+
22861         * modules/sigaction (License): Relax to LGPLv2+.
22862
22863 2011-01-14  Bruno Haible  <bruno@clisp.org>
22864
22865         filemode: Make function declarations usable in C++ mode.
22866         * lib/filemode.h: Enclose function declarations in extern "C" block.
22867         Reported by John W. Eaton <jwe@gnu.org>.
22868
22869 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
22870
22871         save-cwd: no longer include "xgetcwd.h"
22872         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
22873         This avoids a compilation failure in projects that use save-cwd
22874         without also using the xgetcwd module.
22875
22876 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22877
22878         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
22879         This is so that a program like Emacs, which needs only dtoastr,
22880         does not have to bother with distributing and compiling ftoastr
22881         and ldtoastr.
22882         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
22883         * modules/dtoastr, modules/ldtoastr: New files.
22884         * modules/ftoastr: Now works just for 'float'.
22885         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
22886         (Makefile.am): Remove ftoastr.h (not needed and no effect),
22887         dtoastr.c, ldtoastr.c.
22888
22889 2011-01-11  Jim Meyering  <meyering@redhat.com>
22890
22891         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
22892         There is no need to work around the lack of the fchdir function,
22893         since gnulib can now provide a replacement when required.
22894         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
22895         * modules/save-cwd (Depends-on): Add fchdir.
22896
22897 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22898
22899         openat, save-cwd: avoid xmalloc
22900
22901         This removes a direct (but undocumented) dependency of openat on
22902         xalloc, along with an indirect dependency via save-cwd.  It also
22903         removes a dependency of save-cwd on xgetcwd, and thereby
22904         indirectly on xalloc.  This change causes the openat substitute
22905         to fall back on save_cwd when memory is tight, and for save_cwd to
22906         fail instead of dying when memory is tight, but that's good enough.
22907         Problem and initial idea for fix reported by Bastien Roucaries in
22908         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
22909
22910         * lib/openat-proc.c: Include stdlib.h (for malloc), not
22911         xalloc.h (for xmalloc).
22912         (openat_proc_name): Use malloc, not xmalloc.
22913         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
22914         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
22915
22916         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
22917         This avoids heap allocation for file names whose lengths are in
22918         the range 512..1023, with the upper bound increasing to at most
22919         4031 depending on the platform's PATH_MAX.  (We do not want
22920         pathmax.h here as it might supply a non-constant PATH_MAX.)
22921         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
22922         Perhaps they should be moved to malloca.h?
22923         (OPENAT_BUFFER_SIZE): Use them.
22924
22925 2011-01-10  Bruno Haible  <bruno@clisp.org>
22926
22927         doc: Update users.txt.
22928         * users.txt: Add recutils.
22929
22930 2011-01-09  Karl Berry  <karl@gnu.org>
22931
22932         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
22933
22934         * doc/configmake.texi: New file.
22935         * doc/gnulib.texi: Include it.
22936         * modules/configmake: Move documentation from here.
22937
22938 2011-01-09  Bruno Haible  <bruno@clisp.org>
22939
22940         Update to Unicode 6.0.0.
22941         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
22942         (get_lbp): Update for Unicode 6.0.0.
22943         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
22944         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
22945         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
22946         U+11001, U+11038..U+11046. Remove U+06DE.
22947         (uc_width): Fix bounds of planes.
22948         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22949         lib/uniwidth/width.c.
22950         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
22951         trailing whitespace removed.
22952         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
22953         without comments, but with the original copyright notice.
22954         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
22955         * lib/unicase/ignorable.h: Likewise.
22956         * lib/unicase/tocasefold.h: Likewise.
22957         * lib/unicase/tolower.h: Likewise.
22958         * lib/unicase/totitle.h: Likewise.
22959         * lib/unicase/toupper.h: Likewise.
22960         * lib/unictype/bidi_of.h: Likewise.
22961         * lib/unictype/blocks.h: Likewise.
22962         * lib/unictype/categ_C.h: Likewise.
22963         * lib/unictype/categ_Cn.h: Likewise.
22964         * lib/unictype/categ_L.h: Likewise.
22965         * lib/unictype/categ_Ll.h: Likewise.
22966         * lib/unictype/categ_Lm.h: Likewise.
22967         * lib/unictype/categ_Lo.h: Likewise.
22968         * lib/unictype/categ_Lu.h: Likewise.
22969         * lib/unictype/categ_M.h: Likewise.
22970         * lib/unictype/categ_Mc.h: Likewise.
22971         * lib/unictype/categ_Me.h: Likewise.
22972         * lib/unictype/categ_Mn.h: Likewise.
22973         * lib/unictype/categ_N.h: Likewise.
22974         * lib/unictype/categ_Nd.h: Likewise.
22975         * lib/unictype/categ_No.h: Likewise.
22976         * lib/unictype/categ_P.h: Likewise.
22977         * lib/unictype/categ_Po.h: Likewise.
22978         * lib/unictype/categ_S.h: Likewise.
22979         * lib/unictype/categ_Sc.h: Likewise.
22980         * lib/unictype/categ_Sk.h: Likewise.
22981         * lib/unictype/categ_Sm.h: Likewise.
22982         * lib/unictype/categ_So.h: Likewise.
22983         * lib/unictype/categ_of.h: Likewise.
22984         * lib/unictype/combining.h: Likewise.
22985         * lib/unictype/ctype_alnum.h: Likewise.
22986         * lib/unictype/ctype_alpha.h: Likewise.
22987         * lib/unictype/ctype_graph.h: Likewise.
22988         * lib/unictype/ctype_lower.h: Likewise.
22989         * lib/unictype/ctype_print.h: Likewise.
22990         * lib/unictype/ctype_punct.h: Likewise.
22991         * lib/unictype/ctype_upper.h: Likewise.
22992         * lib/unictype/decdigit.h: Likewise.
22993         * lib/unictype/digit.h: Likewise.
22994         * lib/unictype/numeric.h: Likewise.
22995         * lib/unictype/pr_alphabetic.h: Likewise.
22996         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22997         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22998         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22999         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
23000         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
23001         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
23002         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
23003         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
23004         * lib/unictype/pr_case_ignorable.h: Likewise.
23005         * lib/unictype/pr_cased.h: Likewise.
23006         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
23007         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
23008         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
23009         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
23010         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
23011         * lib/unictype/pr_combining.h: Likewise.
23012         * lib/unictype/pr_composite.h: Likewise.
23013         * lib/unictype/pr_currency_symbol.h: Likewise.
23014         * lib/unictype/pr_decimal_digit.h: Likewise.
23015         * lib/unictype/pr_deprecated.h: Likewise.
23016         * lib/unictype/pr_format_control.h: Likewise.
23017         * lib/unictype/pr_grapheme_base.h: Likewise.
23018         * lib/unictype/pr_grapheme_extend.h: Likewise.
23019         * lib/unictype/pr_grapheme_link.h: Likewise.
23020         * lib/unictype/pr_id_continue.h: Likewise.
23021         * lib/unictype/pr_id_start.h: Likewise.
23022         * lib/unictype/pr_ideographic.h: Likewise.
23023         * lib/unictype/pr_lowercase.h: Likewise.
23024         * lib/unictype/pr_math.h: Likewise.
23025         * lib/unictype/pr_numeric.h: Likewise.
23026         * lib/unictype/pr_other_alphabetic.h: Likewise.
23027         * lib/unictype/pr_other_id_continue.h: Likewise.
23028         * lib/unictype/pr_other_math.h: Likewise.
23029         * lib/unictype/pr_punctuation.h: Likewise.
23030         * lib/unictype/pr_sentence_terminal.h: Likewise.
23031         * lib/unictype/pr_terminal_punctuation.h: Likewise.
23032         * lib/unictype/pr_unassigned_code_value.h: Likewise.
23033         * lib/unictype/pr_unified_ideograph.h: Likewise.
23034         * lib/unictype/pr_uppercase.h: Likewise.
23035         * lib/unictype/pr_xid_continue.h: Likewise.
23036         * lib/unictype/pr_xid_start.h: Likewise.
23037         * lib/unictype/scripts.h: Likewise.
23038         * lib/unictype/scripts_byname.gperf: Likewise.
23039         * lib/unictype/sy_java_ident.h: Likewise.
23040         * lib/unigbrk/gbrkprop.h: Likewise.
23041         * lib/unilbrk/lbrkprop1.h: Likewise.
23042         * lib/unilbrk/lbrkprop2.h: Likewise.
23043         * lib/uninorm/decomposition-table2.h: Likewise.
23044         * lib/uniwbrk/wbrkprop.h: Likewise.
23045         * tests/unicase/test-cased.c: Likewise.
23046         * tests/unicase/test-ignorable.c: Likewise.
23047         * tests/unicase/test-uc_tolower.c: Likewise.
23048         * tests/unicase/test-uc_totitle.c: Likewise.
23049         * tests/unicase/test-uc_toupper.c: Likewise.
23050         * tests/unictype/test-categ_C.c: Likewise.
23051         * tests/unictype/test-categ_Cn.c: Likewise.
23052         * tests/unictype/test-categ_L.c: Likewise.
23053         * tests/unictype/test-categ_Ll.c: Likewise.
23054         * tests/unictype/test-categ_Lm.c: Likewise.
23055         * tests/unictype/test-categ_Lo.c: Likewise.
23056         * tests/unictype/test-categ_Lu.c: Likewise.
23057         * tests/unictype/test-categ_M.c: Likewise.
23058         * tests/unictype/test-categ_Mc.c: Likewise.
23059         * tests/unictype/test-categ_Me.c: Likewise.
23060         * tests/unictype/test-categ_Mn.c: Likewise.
23061         * tests/unictype/test-categ_N.c: Likewise.
23062         * tests/unictype/test-categ_Nd.c: Likewise.
23063         * tests/unictype/test-categ_No.c: Likewise.
23064         * tests/unictype/test-categ_P.c: Likewise.
23065         * tests/unictype/test-categ_Po.c: Likewise.
23066         * tests/unictype/test-categ_S.c: Likewise.
23067         * tests/unictype/test-categ_Sc.c: Likewise.
23068         * tests/unictype/test-categ_Sk.c: Likewise.
23069         * tests/unictype/test-categ_Sm.c: Likewise.
23070         * tests/unictype/test-categ_So.c: Likewise.
23071         * tests/unictype/test-ctype_alnum.c: Likewise.
23072         * tests/unictype/test-ctype_alpha.c: Likewise.
23073         * tests/unictype/test-ctype_graph.c: Likewise.
23074         * tests/unictype/test-ctype_lower.c: Likewise.
23075         * tests/unictype/test-ctype_print.c: Likewise.
23076         * tests/unictype/test-ctype_punct.c: Likewise.
23077         * tests/unictype/test-ctype_upper.c: Likewise.
23078         * tests/unictype/test-decdigit.h: Likewise.
23079         * tests/unictype/test-digit.h: Likewise.
23080         * tests/unictype/test-numeric.h: Likewise.
23081         * tests/unictype/test-pr_alphabetic.c: Likewise.
23082         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
23083         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
23084         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
23085         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
23086         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
23087         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
23088         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
23089         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
23090         * tests/unictype/test-pr_case_ignorable.c: Likewise.
23091         * tests/unictype/test-pr_cased.c: Likewise.
23092         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
23093         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
23094         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
23095         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
23096         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
23097         * tests/unictype/test-pr_combining.c: Likewise.
23098         * tests/unictype/test-pr_composite.c: Likewise.
23099         * tests/unictype/test-pr_currency_symbol.c: Likewise.
23100         * tests/unictype/test-pr_decimal_digit.c: Likewise.
23101         * tests/unictype/test-pr_deprecated.c: Likewise.
23102         * tests/unictype/test-pr_format_control.c: Likewise.
23103         * tests/unictype/test-pr_grapheme_base.c: Likewise.
23104         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
23105         * tests/unictype/test-pr_grapheme_link.c: Likewise.
23106         * tests/unictype/test-pr_id_continue.c: Likewise.
23107         * tests/unictype/test-pr_id_start.c: Likewise.
23108         * tests/unictype/test-pr_ideographic.c: Likewise.
23109         * tests/unictype/test-pr_lowercase.c: Likewise.
23110         * tests/unictype/test-pr_math.c: Likewise.
23111         * tests/unictype/test-pr_numeric.c: Likewise.
23112         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
23113         * tests/unictype/test-pr_other_id_continue.c: Likewise.
23114         * tests/unictype/test-pr_other_math.c: Likewise.
23115         * tests/unictype/test-pr_punctuation.c: Likewise.
23116         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
23117         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
23118         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
23119         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
23120         * tests/unictype/test-pr_uppercase.c: Likewise.
23121         * tests/unictype/test-pr_xid_continue.c: Likewise.
23122         * tests/unictype/test-pr_xid_start.c: Likewise.
23123         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
23124         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
23125         changes.
23126         * lib/unictype/categ_Cc.h: Likewise.
23127         * lib/unictype/categ_Cf.h: Likewise.
23128         * lib/unictype/categ_Co.h: Likewise.
23129         * lib/unictype/categ_Cs.h: Likewise.
23130         * lib/unictype/categ_Lt.h: Likewise.
23131         * lib/unictype/categ_Nl.h: Likewise.
23132         * lib/unictype/categ_Pc.h: Likewise.
23133         * lib/unictype/categ_Pd.h: Likewise.
23134         * lib/unictype/categ_Pe.h: Likewise.
23135         * lib/unictype/categ_Pf.h: Likewise.
23136         * lib/unictype/categ_Pi.h: Likewise.
23137         * lib/unictype/categ_Ps.h: Likewise.
23138         * lib/unictype/categ_Z.h: Likewise.
23139         * lib/unictype/categ_Zl.h: Likewise.
23140         * lib/unictype/categ_Zp.h: Likewise.
23141         * lib/unictype/categ_Zs.h: Likewise.
23142         * lib/unictype/ctype_blank.h: Likewise.
23143         * lib/unictype/ctype_cntrl.h: Likewise.
23144         * lib/unictype/ctype_digit.h: Likewise.
23145         * lib/unictype/ctype_space.h: Likewise.
23146         * lib/unictype/ctype_xdigit.h: Likewise.
23147         * lib/unictype/mirror.h: Likewise.
23148         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
23149         * lib/unictype/pr_bidi_block_separator.h: Likewise.
23150         * lib/unictype/pr_bidi_common_separator.h: Likewise.
23151         * lib/unictype/pr_bidi_control.h: Likewise.
23152         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
23153         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
23154         * lib/unictype/pr_bidi_european_digit.h: Likewise.
23155         * lib/unictype/pr_bidi_pdf.h: Likewise.
23156         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
23157         * lib/unictype/pr_bidi_whitespace.h: Likewise.
23158         * lib/unictype/pr_dash.h: Likewise.
23159         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
23160         * lib/unictype/pr_diacritic.h: Likewise.
23161         * lib/unictype/pr_extender.h: Likewise.
23162         * lib/unictype/pr_hex_digit.h: Likewise.
23163         * lib/unictype/pr_hyphen.h: Likewise.
23164         * lib/unictype/pr_ids_binary_operator.h: Likewise.
23165         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
23166         * lib/unictype/pr_ignorable_control.h: Likewise.
23167         * lib/unictype/pr_iso_control.h: Likewise.
23168         * lib/unictype/pr_join_control.h: Likewise.
23169         * lib/unictype/pr_left_of_pair.h: Likewise.
23170         * lib/unictype/pr_line_separator.h: Likewise.
23171         * lib/unictype/pr_logical_order_exception.h: Likewise.
23172         * lib/unictype/pr_non_break.h: Likewise.
23173         * lib/unictype/pr_not_a_character.h: Likewise.
23174         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
23175         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
23176         * lib/unictype/pr_other_id_start.h: Likewise.
23177         * lib/unictype/pr_other_lowercase.h: Likewise.
23178         * lib/unictype/pr_other_uppercase.h: Likewise.
23179         * lib/unictype/pr_paired_punctuation.h: Likewise.
23180         * lib/unictype/pr_paragraph_separator.h: Likewise.
23181         * lib/unictype/pr_pattern_syntax.h: Likewise.
23182         * lib/unictype/pr_pattern_white_space.h: Likewise.
23183         * lib/unictype/pr_private_use.h: Likewise.
23184         * lib/unictype/pr_quotation_mark.h: Likewise.
23185         * lib/unictype/pr_radical.h: Likewise.
23186         * lib/unictype/pr_soft_dotted.h: Likewise.
23187         * lib/unictype/pr_space.h: Likewise.
23188         * lib/unictype/pr_titlecase.h: Likewise.
23189         * lib/unictype/pr_variation_selector.h: Likewise.
23190         * lib/unictype/pr_white_space.h: Likewise.
23191         * lib/unictype/pr_zero_width.h: Likewise.
23192         * lib/unictype/sy_c_ident.h: Likewise.
23193         * lib/unictype/sy_c_whitespace.h: Likewise.
23194         * lib/unictype/sy_java_whitespace.h: Likewise.
23195         * lib/uninorm/composition-table.gperf: Likewise.
23196         * lib/uninorm/decomposition-table1.h: Likewise.
23197         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
23198         LB8.
23199         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23200         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23201         * modules/unictype/*: Bump version number of expected libunistring
23202         version.
23203
23204 2011-01-09  Bruno Haible  <bruno@clisp.org>
23205
23206         Update to Unicode 5.2.0.
23207         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
23208         trailing whitespace removed.
23209
23210 2011-01-09  Bruno Haible  <bruno@clisp.org>
23211
23212         New Unicode character properties, from Unicode 5.2.0.
23213         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
23214         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
23215         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
23216         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
23217         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
23218         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
23219         uc_is_property_cased, uc_is_property_case_ignorable,
23220         uc_is_property_changes_when_lowercased,
23221         uc_is_property_changes_when_uppercased,
23222         uc_is_property_changes_when_titlecased,
23223         uc_is_property_changes_when_casefolded,
23224         uc_is_property_changes_when_casemapped): New declarations.
23225         * lib/unictype/pr_byname.gperf: Add the new properties.
23226         * modules/unictype/property-byname (Depends-on): Depend on the new
23227         properties modules.
23228         * modules/unictype/property-all (Depends-on): Likewise.
23229         * MODULES.html.sh (Unicode string functions): Add
23230         unictype/property-case-ignorable, unictype/property-cased,
23231         unictype/property-changes-when-casefolded,
23232         unictype/property-changes-when-casemapped,
23233         unictype/property-changes-when-lowercased,
23234         unictype/property-changes-when-titlecased,
23235         unictype/property-changes-when-uppercased.
23236
23237         New module 'unictype/property-changes-when-casemapped'.
23238         * modules/unictype/property-changes-when-casemapped: New file.
23239         * lib/unictype/pr_changes_when_casemapped.c: New file.
23240         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
23241         generated by gen-uni-tables.
23242         * modules/unictype/property-changes-when-casemapped-tests: New file.
23243         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
23244         automatically generated by gen-uni-tables.
23245
23246         New module 'unictype/property-changes-when-casefolded'.
23247         * modules/unictype/property-changes-when-casefolded: New file.
23248         * lib/unictype/pr_changes_when_casefolded.c: New file.
23249         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
23250         generated by gen-uni-tables.
23251         * modules/unictype/property-changes-when-casefolded-tests: New file.
23252         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
23253         automatically generated by gen-uni-tables.
23254
23255         New module 'unictype/property-changes-when-titlecased'.
23256         * modules/unictype/property-changes-when-titlecased: New file.
23257         * lib/unictype/pr_changes_when_titlecased.c: New file.
23258         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
23259         generated by gen-uni-tables.
23260         * modules/unictype/property-changes-when-titlecased-tests: New file.
23261         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
23262         automatically generated by gen-uni-tables.
23263
23264         New module 'unictype/property-changes-when-uppercased'.
23265         * modules/unictype/property-changes-when-uppercased: New file.
23266         * lib/unictype/pr_changes_when_uppercased.c: New file.
23267         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
23268         generated by gen-uni-tables.
23269         * modules/unictype/property-changes-when-uppercased-tests: New file.
23270         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
23271         automatically generated by gen-uni-tables.
23272
23273         New module 'unictype/property-changes-when-lowercased'.
23274         * modules/unictype/property-changes-when-lowercased: New file.
23275         * lib/unictype/pr_changes_when_lowercased.c: New file.
23276         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
23277         generated by gen-uni-tables.
23278         * modules/unictype/property-changes-when-lowercased-tests: New file.
23279         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
23280         automatically generated by gen-uni-tables.
23281
23282         New module 'unictype/property-case-ignorable'.
23283         * modules/unictype/property-case-ignorable: New file.
23284         * lib/unictype/pr_case_ignorable.c: New file.
23285         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
23286         by gen-uni-tables.
23287         * modules/unictype/property-case-ignorable-tests: New file.
23288         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
23289         generated by gen-uni-tables.
23290
23291         New module 'unictype/property-cased'.
23292         * modules/unictype/property-cased: New file.
23293         * lib/unictype/pr_cased.c: New file.
23294         * lib/unictype/pr_cased.h: New file, automatically generated by
23295         gen-uni-tables.
23296         * modules/unictype/property-cased-tests: New file.
23297         * tests/unictype/test-pr_cased.c: New file, automatically generated by
23298         gen-uni-tables.
23299
23300 2011-01-09  Bruno Haible  <bruno@clisp.org>
23301
23302         Update to Unicode 5.2.0.
23303         * lib/gen-uni-tables.c (output_predicate, output_category,
23304         output_combclass, output_bidi_category, output_decimal_digit_test,
23305         output_decimal_digit, output_digit_test, output_digit,
23306         output_numeric_test, output_numeric, output_mirror, output_scripts,
23307         output_scripts_byname, output_blocks, output_ident_category): Fix
23308         comment header.
23309         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
23310         get_wbp.
23311         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
23312         items.
23313         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
23314         Changes_When_Lowercased, Changes_When_Uppercased,
23315         Changes_When_Titlecased, Changes_When_Casefolded,
23316         Changes_When_Casemapped.
23317         (is_property_alphabetic, is_property_default_ignorable_code_point):
23318         Update for Unicode 5.2.0.
23319         (is_property_cased, is_property_case_ignorable,
23320         is_property_changes_when_lowercased,
23321         is_property_changes_when_uppercased,
23322         is_property_changes_when_titlecased,
23323         is_property_changes_when_casefolded,
23324         is_property_changes_when_casemapped): New functions.
23325         (output_properties): Output also the properties cased, case_ignorable,
23326         changes_when_lowercased, changes_when_uppercased,
23327         changes_when_titlecased, changes_when_casefolded,
23328         changes_when_casemapped.
23329         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
23330         Unicode TR#11 revision 17 -> 19.
23331         (LBP_CP): New enumeration value.
23332         (LBP_*): Adjust values accordingly.
23333         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
23334         TR#14 revision 22 -> 24.
23335         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
23336         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
23337         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
23338         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
23339         is_WBP_MIDLETTER.
23340         (output_composition_tables): Allow for 24 bits instead of 16 bits in
23341         the code1 and code2 of each composition rule.
23342         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
23343         * lib/unicase/ignorable.h: Likewise.
23344         * lib/unicase/tocasefold.h: Likewise.
23345         * lib/unicase/tolower.h: Likewise.
23346         * lib/unicase/totitle.h: Likewise.
23347         * lib/unicase/toupper.h: Likewise.
23348         * lib/unictype/bidi_of.h: Likewise.
23349         * lib/unictype/blocks.h: Likewise.
23350         * lib/unictype/categ_C.h: Likewise.
23351         * lib/unictype/categ_Cf.h: Likewise.
23352         * lib/unictype/categ_Cn.h: Likewise.
23353         * lib/unictype/categ_L.h: Likewise.
23354         * lib/unictype/categ_Ll.h: Likewise.
23355         * lib/unictype/categ_Lm.h: Likewise.
23356         * lib/unictype/categ_Lo.h: Likewise.
23357         * lib/unictype/categ_Lu.h: Likewise.
23358         * lib/unictype/categ_M.h: Likewise.
23359         * lib/unictype/categ_Mc.h: Likewise.
23360         * lib/unictype/categ_Mn.h: Likewise.
23361         * lib/unictype/categ_N.h: Likewise.
23362         * lib/unictype/categ_Nd.h: Likewise.
23363         * lib/unictype/categ_Nl.h: Likewise.
23364         * lib/unictype/categ_No.h: Likewise.
23365         * lib/unictype/categ_P.h: Likewise.
23366         * lib/unictype/categ_Pd.h: Likewise.
23367         * lib/unictype/categ_Po.h: Likewise.
23368         * lib/unictype/categ_S.h: Likewise.
23369         * lib/unictype/categ_Sc.h: Likewise.
23370         * lib/unictype/categ_So.h: Likewise.
23371         * lib/unictype/categ_of.h: Likewise.
23372         * lib/unictype/combining.h: Likewise.
23373         * lib/unictype/ctype_alnum.h: Likewise.
23374         * lib/unictype/ctype_alpha.h: Likewise.
23375         * lib/unictype/ctype_graph.h: Likewise.
23376         * lib/unictype/ctype_lower.h: Likewise.
23377         * lib/unictype/ctype_print.h: Likewise.
23378         * lib/unictype/ctype_punct.h: Likewise.
23379         * lib/unictype/ctype_upper.h: Likewise.
23380         * lib/unictype/decdigit.h: Likewise.
23381         * lib/unictype/digit.h: Likewise.
23382         * lib/unictype/numeric.h: Likewise.
23383         * lib/unictype/pr_alphabetic.h: Likewise.
23384         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
23385         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
23386         * lib/unictype/pr_bidi_european_digit.h: Likewise.
23387         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
23388         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
23389         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
23390         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
23391         * lib/unictype/pr_combining.h: Likewise.
23392         * lib/unictype/pr_composite.h: Likewise.
23393         * lib/unictype/pr_currency_symbol.h: Likewise.
23394         * lib/unictype/pr_dash.h: Likewise.
23395         * lib/unictype/pr_decimal_digit.h: Likewise.
23396         * lib/unictype/pr_deprecated.h: Likewise.
23397         * lib/unictype/pr_diacritic.h: Likewise.
23398         * lib/unictype/pr_extender.h: Likewise.
23399         * lib/unictype/pr_grapheme_base.h: Likewise.
23400         * lib/unictype/pr_grapheme_extend.h: Likewise.
23401         * lib/unictype/pr_grapheme_link.h: Likewise.
23402         * lib/unictype/pr_id_continue.h: Likewise.
23403         * lib/unictype/pr_id_start.h: Likewise.
23404         * lib/unictype/pr_ideographic.h: Likewise.
23405         * lib/unictype/pr_ignorable_control.h: Likewise.
23406         * lib/unictype/pr_logical_order_exception.h: Likewise.
23407         * lib/unictype/pr_lowercase.h: Likewise.
23408         * lib/unictype/pr_numeric.h: Likewise.
23409         * lib/unictype/pr_other_alphabetic.h: Likewise.
23410         * lib/unictype/pr_punctuation.h: Likewise.
23411         * lib/unictype/pr_sentence_terminal.h: Likewise.
23412         * lib/unictype/pr_terminal_punctuation.h: Likewise.
23413         * lib/unictype/pr_unassigned_code_value.h: Likewise.
23414         * lib/unictype/pr_unified_ideograph.h: Likewise.
23415         * lib/unictype/pr_uppercase.h: Likewise.
23416         * lib/unictype/pr_xid_continue.h: Likewise.
23417         * lib/unictype/pr_xid_start.h: Likewise.
23418         * lib/unictype/pr_zero_width.h: Likewise.
23419         * lib/unictype/scripts.h: Likewise.
23420         * lib/unictype/scripts_byname.gperf: Likewise.
23421         * lib/unictype/sy_java_ident.h: Likewise.
23422         * lib/unigbrk/gbrkprop.h: Likewise.
23423         * lib/unilbrk/lbrkprop1.h: Likewise.
23424         * lib/unilbrk/lbrkprop2.h: Likewise.
23425         * lib/unilbrk/lbrktables.h: Likewise.
23426         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
23427         LBP_CP. Implement rule LB30.
23428         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
23429         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
23430         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
23431         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
23432         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
23433         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
23434         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
23435         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
23436         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
23437         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
23438         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
23439         bits instead of 16 bits in the code1 and code2 of each composition
23440         rule.
23441         (uc_composition): Update for Unicode 5.2.0.
23442         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
23443         * lib/uninorm/decomposition-table2.h: Likewise.
23444         * lib/uniwbrk/wbrkprop.h: Likewise.
23445         * tests/unicase/test-cased.c: Likewise.
23446         * tests/unicase/test-ignorable.c: Likewise.
23447         * tests/unicase/test-uc_tolower.c: Likewise.
23448         * tests/unicase/test-uc_totitle.c: Likewise.
23449         * tests/unicase/test-uc_toupper.c: Likewise.
23450         * tests/unictype/test-categ_C.c: Likewise.
23451         * tests/unictype/test-categ_Cf.c: Likewise.
23452         * tests/unictype/test-categ_Cn.c: Likewise.
23453         * tests/unictype/test-categ_L.c: Likewise.
23454         * tests/unictype/test-categ_Ll.c: Likewise.
23455         * tests/unictype/test-categ_Lm.c: Likewise.
23456         * tests/unictype/test-categ_Lo.c: Likewise.
23457         * tests/unictype/test-categ_Lu.c: Likewise.
23458         * tests/unictype/test-categ_M.c: Likewise.
23459         * tests/unictype/test-categ_Mc.c: Likewise.
23460         * tests/unictype/test-categ_Mn.c: Likewise.
23461         * tests/unictype/test-categ_N.c: Likewise.
23462         * tests/unictype/test-categ_Nd.c: Likewise.
23463         * tests/unictype/test-categ_Nl.c: Likewise.
23464         * tests/unictype/test-categ_No.c: Likewise.
23465         * tests/unictype/test-categ_P.c: Likewise.
23466         * tests/unictype/test-categ_Pd.c: Likewise.
23467         * tests/unictype/test-categ_Po.c: Likewise.
23468         * tests/unictype/test-categ_S.c: Likewise.
23469         * tests/unictype/test-categ_Sc.c: Likewise.
23470         * tests/unictype/test-categ_So.c: Likewise.
23471         * tests/unictype/test-ctype_alnum.c: Likewise.
23472         * tests/unictype/test-ctype_alpha.c: Likewise.
23473         * tests/unictype/test-ctype_graph.c: Likewise.
23474         * tests/unictype/test-ctype_lower.c: Likewise.
23475         * tests/unictype/test-ctype_print.c: Likewise.
23476         * tests/unictype/test-ctype_punct.c: Likewise.
23477         * tests/unictype/test-ctype_upper.c: Likewise.
23478         * tests/unictype/test-decdigit.h: Likewise.
23479         * tests/unictype/test-digit.h: Likewise.
23480         * tests/unictype/test-numeric.h: Likewise.
23481         * tests/unictype/test-pr_alphabetic.c: Likewise.
23482         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
23483         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
23484         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
23485         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
23486         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
23487         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
23488         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
23489         * tests/unictype/test-pr_combining.c: Likewise.
23490         * tests/unictype/test-pr_composite.c: Likewise.
23491         * tests/unictype/test-pr_currency_symbol.c: Likewise.
23492         * tests/unictype/test-pr_dash.c: Likewise.
23493         * tests/unictype/test-pr_decimal_digit.c: Likewise.
23494         * tests/unictype/test-pr_deprecated.c: Likewise.
23495         * tests/unictype/test-pr_diacritic.c: Likewise.
23496         * tests/unictype/test-pr_extender.c: Likewise.
23497         * tests/unictype/test-pr_grapheme_base.c: Likewise.
23498         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
23499         * tests/unictype/test-pr_grapheme_link.c: Likewise.
23500         * tests/unictype/test-pr_id_continue.c: Likewise.
23501         * tests/unictype/test-pr_id_start.c: Likewise.
23502         * tests/unictype/test-pr_ideographic.c: Likewise.
23503         * tests/unictype/test-pr_ignorable_control.c: Likewise.
23504         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
23505         * tests/unictype/test-pr_lowercase.c: Likewise.
23506         * tests/unictype/test-pr_numeric.c: Likewise.
23507         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
23508         * tests/unictype/test-pr_punctuation.c: Likewise.
23509         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
23510         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
23511         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
23512         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
23513         * tests/unictype/test-pr_uppercase.c: Likewise.
23514         * tests/unictype/test-pr_xid_continue.c: Likewise.
23515         * tests/unictype/test-pr_xid_start.c: Likewise.
23516         * tests/unictype/test-pr_zero_width.c: Likewise.
23517         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
23518         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
23519         changed behaviour: line breaking is now disallowed between a letter
23520         or '=' and '('.
23521         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23522         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23523         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23524         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
23525         * tests/uniwidth/test-uc_width2.sh: Same updates as in
23526         lib/uniwidth/width.c.
23527         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
23528         without comments, but with the original copyright notice.
23529         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
23530         changes.
23531         * lib/unictype/categ_Cc.h: Likewise.
23532         * lib/unictype/categ_Co.h: Likewise.
23533         * lib/unictype/categ_Cs.h: Likewise.
23534         * lib/unictype/categ_Lt.h: Likewise.
23535         * lib/unictype/categ_Me.h: Likewise.
23536         * lib/unictype/categ_Pc.h: Likewise.
23537         * lib/unictype/categ_Pe.h: Likewise.
23538         * lib/unictype/categ_Pf.h: Likewise.
23539         * lib/unictype/categ_Pi.h: Likewise.
23540         * lib/unictype/categ_Ps.h: Likewise.
23541         * lib/unictype/categ_Sk.h: Likewise.
23542         * lib/unictype/categ_Sm.h: Likewise.
23543         * lib/unictype/categ_Z.h: Likewise.
23544         * lib/unictype/categ_Zl.h: Likewise.
23545         * lib/unictype/categ_Zp.h: Likewise.
23546         * lib/unictype/categ_Zs.h: Likewise.
23547         * lib/unictype/ctype_blank.h: Likewise.
23548         * lib/unictype/ctype_cntrl.h: Likewise.
23549         * lib/unictype/ctype_digit.h: Likewise.
23550         * lib/unictype/ctype_space.h: Likewise.
23551         * lib/unictype/ctype_xdigit.h: Likewise.
23552         * lib/unictype/mirror.h: Likewise.
23553         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
23554         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
23555         * lib/unictype/pr_bidi_block_separator.h: Likewise.
23556         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
23557         * lib/unictype/pr_bidi_common_separator.h: Likewise.
23558         * lib/unictype/pr_bidi_control.h: Likewise.
23559         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
23560         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
23561         * lib/unictype/pr_bidi_pdf.h: Likewise.
23562         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
23563         * lib/unictype/pr_bidi_whitespace.h: Likewise.
23564         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
23565         * lib/unictype/pr_format_control.h: Likewise.
23566         * lib/unictype/pr_hex_digit.h: Likewise.
23567         * lib/unictype/pr_hyphen.h: Likewise.
23568         * lib/unictype/pr_ids_binary_operator.h: Likewise.
23569         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
23570         * lib/unictype/pr_iso_control.h: Likewise.
23571         * lib/unictype/pr_join_control.h: Likewise.
23572         * lib/unictype/pr_left_of_pair.h: Likewise.
23573         * lib/unictype/pr_line_separator.h: Likewise.
23574         * lib/unictype/pr_math.h: Likewise.
23575         * lib/unictype/pr_non_break.h: Likewise.
23576         * lib/unictype/pr_not_a_character.h: Likewise.
23577         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
23578         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
23579         * lib/unictype/pr_other_id_continue.h: Likewise.
23580         * lib/unictype/pr_other_id_start.h: Likewise.
23581         * lib/unictype/pr_other_lowercase.h: Likewise.
23582         * lib/unictype/pr_other_math.h: Likewise.
23583         * lib/unictype/pr_other_uppercase.h: Likewise.
23584         * lib/unictype/pr_paired_punctuation.h: Likewise.
23585         * lib/unictype/pr_paragraph_separator.h: Likewise.
23586         * lib/unictype/pr_pattern_syntax.h: Likewise.
23587         * lib/unictype/pr_pattern_white_space.h: Likewise.
23588         * lib/unictype/pr_private_use.h: Likewise.
23589         * lib/unictype/pr_quotation_mark.h: Likewise.
23590         * lib/unictype/pr_radical.h: Likewise.
23591         * lib/unictype/pr_soft_dotted.h: Likewise.
23592         * lib/unictype/pr_space.h: Likewise.
23593         * lib/unictype/pr_titlecase.h: Likewise.
23594         * lib/unictype/pr_variation_selector.h: Likewise.
23595         * lib/unictype/pr_white_space.h: Likewise.
23596         * lib/unictype/sy_c_ident.h: Likewise.
23597         * lib/unictype/sy_c_whitespace.h: Likewise.
23598         * lib/unictype/sy_java_whitespace.h: Likewise.
23599         * modules/uni*/*: Bump version number of expected libunistring version.
23600         Reported by Simon Josefsson.
23601
23602 2011-01-09  Karl Heuer  <kwzh@gnu.org>
23603
23604         useless-if-before-free: fix typo in --help and make the internal,
23605         automatic version date update process work once again.
23606         --help output contained a NUL character instead of the
23607         backslash-zero that was intended.  Also, the "must lie within
23608         the first 8 lines" line is on line 9, and hence not getting
23609         automatically updated.
23610         * build-aux/useless-if-before-free: Fix the former by adding a
23611         backslash, and the latter by condensing the three lines of what-it-does
23612         to a single line, leaving one line of slack for the future.
23613
23614 2011-01-09  Bruno Haible  <bruno@clisp.org>
23615
23616         uniwidth/width: Fix width of U+1D173..U+1D17A.
23617         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
23618         symbolic_width, output_width_property_test): New functions.
23619         (main): Invoke output_nonspacing_property, output_width_property_test.
23620         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
23621         U+1D173..U+1D17A.
23622         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
23623         1.
23624         * modules/uniwidth/*: Bump version number of expected libunistring
23625         version.
23626         * modules/unilbrk/*: Likewise.
23627
23628 2011-01-08  Bruno Haible  <bruno@clisp.org>
23629
23630         uninorm tests: Preserve copyright of Unicode data file.
23631         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
23632         Mention modifications.
23633
23634 2011-01-08  Bruno Haible  <bruno@clisp.org>
23635
23636         gen-uni-tables: Prepare for Unicode 5.2.0.
23637         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
23638         (debug_output_lbp, output_lbp): Update.
23639
23640 2011-01-08  Bruno Haible  <bruno@clisp.org>
23641
23642         unilbrk: Clarify gen-uni-tables.c code.
23643         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
23644         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
23645         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
23646
23647 2011-01-07  Bruno Haible  <bruno@clisp.org>
23648
23649         strtod: Restore errno when successfully parsing Infinity or NaN.
23650         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
23651         restore the original errno.
23652
23653 2011-01-07  Bruno Haible  <bruno@clisp.org>
23654
23655         remove test: Avoid failure on HP-UX 11.
23656         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
23657
23658 2011-01-07  Bruno Haible  <bruno@clisp.org>
23659
23660         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
23661         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
23662         error code.
23663
23664 2011-01-07  Pádraig Brady <P@draigBrady.com>
23665
23666         ignore-value: fixup comments, and add Eric Blake
23667         as an author since he rewrote the macros.
23668         * lib/ignore-value.h (ignore_value):  State that
23669         we now support aggregates.  Also specify exactly
23670         when the GCC warn_unused_result feature was added.
23671
23672 2011-01-06  Eric Blake  <eblake@redhat.com>
23673
23674         ignore-value: support aggregate types
23675         * lib/ignore-value.h (ignore_value): Provide separate gcc
23676         definition.
23677         * modules/ignore-value-tests: New test module.
23678         * tests/test-ignore-value.c: New test.
23679
23680         maint.mk: improve sc_prohibit_strcmp regex
23681         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
23682         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
23683         definition of STRNEQ.
23684
23685         signal: work around Haiku issue with SIGBUS
23686         * lib/siglist.h: Add comment.
23687         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
23688         strsignal's favoring of SIGSEGV.
23689         * tests/test-signal.c (main): Avoid test failure.
23690         * doc/posix-headers/signal.texi (signal.h): Document the issue.
23691         Reported by Scott McCreary.
23692
23693         maint.mk: add pre-release check to ensure submodule commits are public
23694         * top/maint.mk (public-submodule-commit): New rule.
23695         (submodule-checks): New variable.
23696         (alpha beta stable): Depend on the variable.
23697
23698 2011-01-05  Pádraig Brady <P@draigBrady.com>
23699         and Jim Meyering  <meyering@redhat.com>
23700
23701         ignore-value: make ignore_value more generic; deprecate ignore_ptr
23702         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
23703         (ATTRIBUTE_DEPRECATED): Define.
23704         (_ignore_case): New function.
23705         (ignore_value): New macro, to replace the old function.
23706         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
23707         * modules/ignore-value (Depends-on): Add stdint.
23708
23709 2011-01-04  Eric Blake  <eblake@redhat.com>
23710
23711         doc: regenerate INSTALL
23712         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
23713         @firstparagraphindent support, now that autoconf dropped it.
23714         (INSTALL_PRELUDE): Reinstate old macro.
23715         * doc/install.texi: Resync from autoconf.
23716         * doc/INSTALL: Reflect recent autoconf update.
23717         * doc/INSTALL.ISO: Likewise.
23718         * doc/INSTALL.UTF-8: Likewise.
23719         Reported by Karl Berry.
23720
23721 2011-01-04  Bruce Korb  <address@hidden>
23722
23723         git-version-gen: avoid a sub-shell
23724         * build-aux/git-version-gen: Redirect stderr in `...` via
23725         "exec 2>...", rather than via an added sub-shell.
23726
23727 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
23728
23729         git-version-gen: use (...) rather than sh -c '...'
23730         * build-aux/git-version-gen: Rather than hard-coding a shell's name
23731         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
23732
23733 2011-01-03  Jim Meyering  <meyering@redhat.com>
23734
23735         git-version-gen: convert leading TABs to spaces
23736         * build-aux/git-version-gen: Expand leading TABs.
23737
23738         git-version-gen: handle failed "git rev-list"
23739         * build-aux/git-version-gen: Rather than leaking a "fatal" error
23740         from git and proceeding as if it had succeeded but printed no SHA1
23741         checksums, suppress the diagnostic and handle the failure.
23742         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
23743
23744         git-version-gen: include command name in one more diagnostic
23745         * build-aux/git-version-gen: When the required .tarball-version file
23746         was missing or unreadable, you might see the diagnostic from "cat",
23747         but no trace of the name of the invoking script.  Now, you still see
23748         the diagnostic from cat, but also get one from "git-version-gen: ".
23749         Inspired by a patch from Bruce Korb.
23750
23751         update-copyright: adjust test to match changed code
23752         * tests/test-update-copyright.sh: Change test's expected output
23753         to match new actual output.
23754
23755 2011-01-02  Bruno Haible  <bruno@clisp.org>
23756
23757         getlogin_r: Avoid test failure on HP-UX 11.
23758         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
23759         ERANGE when the second argument is zero.
23760         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
23761         portability problem.
23762
23763 2011-01-02  Bruce Korb  <bkorb@gnu.org>
23764
23765         * build-aux/update-copyright: doc Simon's changes
23766
23767 2011-01-02  Simon Josefsson  <simon@josefsson.org>
23768
23769         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
23770         environment variable.
23771
23772 2011-01-02  Bruno Haible  <bruno@clisp.org>
23773
23774         unigbrk: Avoid gcc warnings.
23775         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
23776         unused variable.
23777         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
23778         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
23779         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
23780         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
23781         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
23782         Change type of first argument to 'const char *'.
23783         (main): Remove unused variable.
23784         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
23785         type of first argument to 'const char *'.
23786         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
23787         Likewise.
23788         (main): Change type of variable 's'.
23789         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
23790         to 'int'.
23791
23792 2011-01-02  Bruno Haible  <bruno@clisp.org>
23793
23794         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
23795         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
23796         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
23797         bug.
23798         * lib/pwrite.c: Undo 2010-12-31 patch.
23799         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
23800
23801 2011-01-02  Bruno Haible  <bruno@clisp.org>
23802
23803         pread: Fix test whether it works.
23804         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
23805
23806 2011-01-02  Bruno Haible  <bruno@clisp.org>
23807
23808         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
23809         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
23810         ends in "6". Don't require a specific month name. Try also the locale
23811         names found on HP-UX 11 and Solaris 7.
23812
23813 2011-01-02  Bruno Haible  <bruno@clisp.org>
23814
23815         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
23816         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
23817         C linkage.
23818         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
23819
23820 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23821
23822         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
23823         for consistency, since the "cluster" term is not used elsewhere.
23824         * lib/unigbrk.in.h: Update name.
23825         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
23826         * lib/unigbrk/u16-grapheme-next.c: Update name.
23827         * lib/unigbrk/u16-grapheme-prev.c: Update name.
23828         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
23829         * lib/unigbrk/u32-grapheme-next.c: Update name.
23830         * lib/unigbrk/u32-grapheme-prev.c: Update name.
23831         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
23832         * lib/unigbrk/u8-grapheme-next.c: Update name.
23833         * lib/unigbrk/u8-grapheme-prev.c: Update name.
23834         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
23835         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
23836         Suggested by Bruno Haible.
23837
23838 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23839
23840         Remove module 'u8-grapheme-len' as too redundant with
23841         'u8-grapheme-next'.
23842         * modules/unigbrk/u8-grapheme-len: Delete file.
23843         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
23844         * lib/unigbrk.in.h: Remove prototype for deleted function.
23845         * lib/unigbrk/u8-grapheme-len.c: Delete file.
23846         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
23847
23848         Remove module 'u16-grapheme-len' as too redundant with
23849         'u16-grapheme-next'.
23850         * modules/unigbrk/u16-grapheme-len: Delete file.
23851         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
23852         * lib/unigbrk.in.h: Remove prototype for deleted function.
23853         * lib/unigbrk/u16-grapheme-len.c: Delete file.
23854         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
23855
23856         Remove module 'u32-grapheme-len' as too redundant with
23857         'u32-grapheme-next'.
23858         * modules/unigbrk/u32-grapheme-len: Delete file.
23859         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
23860         * lib/unigbrk.in.h: Remove prototype for deleted function.
23861         * lib/unigbrk/u32-grapheme-len.c: Delete file.
23862         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
23863
23864         Suggested by Bruno Haible.
23865
23866 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23867
23868         * unigbrk.in.h: Fix typo: "ben" => "been".
23869         Reported by Bruno Haible.
23870
23871 2011-01-01  Jim Meyering  <meyering@redhat.com>
23872
23873         maint: update almost all copyright ranges to include 2011
23874         Run the new "make update-copyright" rule.
23875
23876 2011-01-01  Jim Meyering  <meyering@redhat.com>
23877
23878         maint: update-copyright: exempt doc/INSTALL*
23879         * Makefile (update-copyright): Also exclude doc/INSTALL*,
23880         since they are generated.  Suggested by Bruno Haible.
23881
23882 2011-01-01  Jim Meyering  <meyering@redhat.com>
23883
23884         maint: refine the update-copyright rule
23885         * Makefile (update-copyright): Also exclude any file that includes
23886         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
23887         code that merely generates the comment.
23888
23889 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23890
23891         New module 'u8-grapheme-len'.
23892         * modules/unigbrk/u8-grapheme-len: New file.
23893         * modules/unigbrk/u8-grapheme-len-tests: New file.
23894         * lib/unigbrk.in.h: Add prototype for new function.
23895         * lib/unigbrk/u8-grapheme-len.c: New file.
23896         * tests/unigbrk/test-u8-grapheme-len.c: New file.
23897
23898         New module 'u16-grapheme-len'.
23899         * modules/unigbrk/u16-grapheme-len: New file.
23900         * modules/unigbrk/u16-grapheme-len-tests: New file.
23901         * lib/unigbrk.in.h: Add prototype for new function.
23902         * lib/unigbrk/u16-grapheme-len.c: New file.
23903         * tests/unigbrk/test-u16-grapheme-len.c: New file.
23904
23905         New module 'u32-grapheme-len'.
23906         * modules/unigbrk/u32-grapheme-len: New file.
23907         * modules/unigbrk/u32-grapheme-len-tests: New file.
23908         * lib/unigbrk.in.h: Add prototype for new function.
23909         * lib/unigbrk/u32-grapheme-len.c: New file.
23910         * tests/unigbrk/test-u32-grapheme-len.c: New file.
23911
23912         New module 'u8-grapheme-next'.
23913         * modules/unigbrk/u8-grapheme-next: New file.
23914         * modules/unigbrk/u8-grapheme-next-tests: New file.
23915         * lib/unigbrk.in.h: Add prototype for new function.
23916         * lib/unigbrk/u8-grapheme-next.c: New file.
23917         * tests/unigbrk/test-u8-grapheme-next.c: New file.
23918
23919         New module 'u16-grapheme-next'.
23920         * modules/unigbrk/u16-grapheme-next: New file.
23921         * modules/unigbrk/u16-grapheme-next-tests: New file.
23922         * lib/unigbrk.in.h: Add prototype for new function.
23923         * lib/unigbrk/u16-grapheme-next.c: New file.
23924         * tests/unigbrk/test-u16-grapheme-next.c: New file.
23925
23926         New module 'u32-grapheme-next'.
23927         * modules/unigbrk/u32-grapheme-next: New file.
23928         * modules/unigbrk/u32-grapheme-next-tests: New file.
23929         * lib/unigbrk.in.h: Add prototype for new function.
23930         * lib/unigbrk/u32-grapheme-next.c: New file.
23931         * tests/unigbrk/test-u32-grapheme-next.c: New file.
23932
23933         New module 'u8-grapheme-prev'.
23934         * modules/unigbrk/u8-grapheme-prev: New file.
23935         * modules/unigbrk/u8-grapheme-prev-tests: New file.
23936         * lib/unigbrk.in.h: Add prototype for new function.
23937         * lib/unigbrk/u8-grapheme-prev.c: New file.
23938         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
23939
23940         New module 'u16-grapheme-prev'.
23941         * modules/unigbrk/u16-grapheme-prev: New file.
23942         * modules/unigbrk/u16-grapheme-prev-tests: New file.
23943         * lib/unigbrk.in.h: Add prototype for new function.
23944         * lib/unigbrk/u16-grapheme-prev.c: New file.
23945         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
23946
23947         New module 'u32-grapheme-prev'.
23948         * modules/unigbrk/u32-grapheme-prev: New file.
23949         * modules/unigbrk/u32-grapheme-prev-tests: New file.
23950         * lib/unigbrk.in.h: Add prototype for new function.
23951         * lib/unigbrk/u32-grapheme-prev.c: New file.
23952         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
23953
23954         New module 'u8-grapheme-breaks'.
23955         * modules/unigbrk/u8-grapheme-breaks: New file.
23956         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
23957         * lib/unigbrk.in.h: Add prototype for new function.
23958         * lib/unigbrk/u8-grapheme-breaks.c: New file.
23959         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
23960
23961         New module 'u16-grapheme-breaks'.
23962         * modules/unigbrk/u16-grapheme-breaks: New file.
23963         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
23964         * lib/unigbrk.in.h: Add prototype for new function.
23965         * lib/unigbrk/u16-grapheme-breaks.c: New file.
23966         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
23967
23968         New module 'u32-grapheme-breaks'.
23969         * modules/unigbrk/u32-grapheme-breaks: New file.
23970         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
23971         * lib/unigbrk.in.h: Add prototype for new function.
23972         * lib/unigbrk/u32-grapheme-breaks.c: New file.
23973         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
23974
23975         New module 'ulc-grapheme-breaks'.
23976         * modules/unigbrk/ulc-grapheme-breaks: New file.
23977         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
23978         * m4/locale-ar.m4: New file.
23979         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
23980         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
23981         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
23982
23983 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23984
23985         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
23986         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
23987         modified how this file was generated before I initially submitted
23988         the module, but failed to regenerate it.  This meant that several
23989         of the level2 entries were wrong.
23990         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
23991         Remove the division-by-2 that is folded into the table now that
23992         gbrkprop.h has been regenerated properly.  Now -1 entries are
23993         handled correctly.
23994
23995         New module 'unigbrk/uc-gbrk-prop-tests'.
23996         * modules/unigbrk/uc-gbrk-prop-tests: New file.
23997         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
23998         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
23999         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
24000
24001 2011-01-01  Bruno Haible  <bruno@clisp.org>
24002
24003         Avoid use of hexadecimal escapes.
24004         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
24005         instead of hexadecimal escapes.
24006
24007 2011-01-01  Jim Meyering  <meyering@redhat.com>
24008
24009         maint: new rule to update copyright year ranges
24010         * Makefile (update-copyright): New rule.
24011
24012         maint: indent with TABs in Makefile
24013         * Makefile: Expand leading sequences of spaces to TABs
24014
24015         version-etc: update the copyright year it reports
24016         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
24017
24018 2010-12-31  Bruno Haible  <bruno@clisp.org>
24019
24020         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
24021         * lib/isfinite.c (zerof, zerod, zerol): New variables.
24022         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
24023         zero.
24024
24025 2010-12-31  Bruno Haible  <bruno@clisp.org>
24026
24027         pwrite: Work around HP-UX 11.11 bug.
24028         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
24029         works and set REPLACE_PWRITE if not.
24030         * lib/pwrite.c (pwrite): Add an implementation that uses the system
24031         function.
24032         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
24033
24034 2010-12-31  Bruno Haible  <bruno@clisp.org>
24035
24036         pread: Work around HP-UX 11 bugs.
24037         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
24038         and set REPLACE_PREAD if not.
24039         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
24040
24041 2010-12-31  Eric Blake  <eblake@redhat.com>
24042
24043         nl_langinfo: fix YESEXPR on Irix 6.5
24044         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
24045         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
24046         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
24047         it.
24048
24049 2010-12-31  Bruno Haible  <bruno@clisp.org>
24050
24051         iconv: Document HP-UX 11 bug.
24052         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
24053
24054 2010-12-31  Bruno Haible  <bruno@clisp.org>
24055
24056         ldexpl: Fix link error on HP-UX 11.
24057         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
24058         LDEXPL_LIBM, using $ISNANL_LIBM.
24059
24060 2010-12-31  Eric Blake  <eblake@redhat.com>
24061
24062         ftello: avoid compilation failure with SunStudio c89
24063         * lib/ftello.c (ftello): Use lseek, not llseek.
24064
24065         tests: avoid failing coreutils tests on cygwin
24066         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
24067         (create_exe_shims_): Return 0 when skipping.
24068
24069 2010-12-31  Bruno Haible  <bruno@clisp.org>
24070
24071         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
24072         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
24073
24074 2010-12-31  Bruno Haible  <bruno@clisp.org>
24075
24076         waitpid: Fix link error in C++ mode.
24077         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
24078
24079 2010-12-31  Bruno Haible  <bruno@clisp.org>
24080
24081         isnan: Use GCC built-ins when possible.
24082         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
24083         __builtin_isnan.
24084         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
24085         (isnan): Define using GCC built-ins for GCC >= 4.0.
24086
24087 2010-12-31  Bruno Haible  <bruno@clisp.org>
24088
24089         isnand: Fix mistake.
24090         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
24091         __builtin_isnand.
24092
24093 2010-12-31  Bruno Haible  <bruno@clisp.org>
24094
24095         open: Avoid C++ error on HP-UX 11.
24096         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
24097
24098 2010-12-31  Bruno Haible  <bruno@clisp.org>
24099
24100         time_r: Add missing declarations on HP-UX 11.
24101         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
24102         instead of HAVE_LOCALTIME_R.
24103         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
24104         HAVE_LOCALTIME_R always.
24105         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
24106         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
24107         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
24108         HAVE_LOCALTIME_R.
24109         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
24110         * doc/posix-functions/localtime_r.texi: Likewise.
24111
24112 2010-12-29  Eric Blake  <eblake@redhat.com>
24113
24114         mountlist: tweak previous commit
24115         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
24116         Reported by Paul Eggert.
24117
24118         mountlist: fix local drive detection on cygwin
24119         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
24120         that works for cygwin.
24121
24122 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
24123
24124         ftoastr, snprintf: ftoastr + snprintf module
24125         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
24126         since the snprintf module now should be good enough here.
24127         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
24128         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
24129         and gl_MODULE_INDICATOR([snprintf]), but the former enables
24130         GNULIB_SNPRINTF only for the test directory, and the latter
24131         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
24132         seems to suffice by itself.
24133
24134 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
24135
24136         alloca: one step towards thread-safety
24137         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
24138         need for a static variable.  All callers changed.  This does not
24139         make the alloca replacement thread-safe, but it's one step.
24140
24141         tests: minor indenting change
24142         * tests/init.sh: Sync from coreutils housekeeping patch
24143         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
24144         to keep lines within 80 columns.
24145
24146 2010-12-28  Jim Meyering  <meyering@redhat.com>
24147
24148         regex: don't infloop on persistent failing calloc
24149         * lib/regexec.c (build_trtable): Return failure indication upon
24150         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
24151         In glibc, this was fixed for version 2.13:
24152         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
24153
24154 2010-12-28  Bruno Haible  <bruno@clisp.org>
24155             Paul Eggert <eggert@cs.ucla.edu>
24156
24157         linkat: Make implementation robust against system behaviour variations.
24158         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
24159         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
24160         way, and to -2 if it needs a generic runtime test.
24161         * lib/linkat.c (solaris_optimized_link_immediate,
24162         solaris_optimized_link_follow): New functions.
24163         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
24164         (check_same_link): Use it.
24165
24166 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
24167
24168         New module 'unigbrk/base'.
24169         * modules/unigbrk/base: New file.
24170         * lib/unigbrk.in.h: New file.
24171
24172         New module 'unigbrk/uc-gbrk-prop'.
24173         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
24174         * modules/unigbrk/uc-gbrk-prop: New file.
24175         * lib/unigbrk/gbrkprop.h: New file.
24176         * lib/unigbrk/uc-gbrk-prop.c: New file.
24177
24178         New module 'unigbrk/uc-is-grapheme-break'.
24179         * modules/unigbrk/uc-is-grapheme-break: New file.
24180         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
24181         * lib/unigbrk/uc-is-grapheme-break.c: New file.
24182         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
24183         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
24184         * tests/unigbrk/GraphemeBreakTest.txt: New file.
24185
24186         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
24187
24188 2010-12-27  Bruno Haible  <bruno@clisp.org>
24189
24190         linkat test: Avoid failure on Solaris 11 2010-11.
24191         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
24192
24193 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
24194
24195         utimens: work around glibc rounding bug on more platforms
24196         * lib/utimens.c (fdutimens): Work around rounding bug even if
24197         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
24198         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
24199
24200 2010-12-27  Bruno Haible  <bruno@clisp.org>
24201
24202         select tests: Improve comments.
24203         * tests/test-select.c (do_select): Add comments.
24204
24205 2010-12-27  Bruno Haible  <bruno@clisp.org>
24206
24207         select tests: Safer way of handling timeout.
24208         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
24209         at every invocation.
24210
24211 2010-12-27  Bruno Haible  <bruno@clisp.org>
24212
24213         select tests: Use 'bool' where appropriate.
24214         * tests/test-select.c (connect_to_socket): Change argument type to
24215         'bool'.
24216
24217 2010-12-27  Bruno Haible  <bruno@clisp.org>
24218
24219         select tests: Use existing modules.
24220         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
24221         (configure.ac): Don't test for unistd.h.
24222         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
24223         declared in <unistd.h>.
24224
24225 2010-12-27  Bruno Haible  <bruno@clisp.org>
24226
24227         mbrtowc: Work around a Solaris 7 bug.
24228         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
24229         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
24230         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
24231         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
24232         MBRTOWC_NULL_ARG1_BUG.
24233         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
24234         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
24235         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
24236         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
24237
24238 2010-12-27  Jim Meyering  <meyering@redhat.com>
24239
24240         read-file.c: tweak syntax
24241         * lib/read-file.c (fread_file): Remove space after "*" in function
24242         definitions.
24243
24244 2010-12-27  Bruno Haible  <bruno@clisp.org>
24245
24246         times test: Avoid gcc warnings on OSF/1.
24247         * tests/test-times.c (main): Cast printf arguments from clock_t to
24248         'long int'.
24249
24250 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
24251
24252         utimens: work around glibc rounding bug on older Linux kernels
24253         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
24254         on Linux with a glibc whose utimes might not work, then work
24255         around a longstanding glibc bug involving rounding rather than
24256         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
24257         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
24258
24259 2010-12-26  Bruno Haible  <bruno@clisp.org>
24260
24261         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
24262         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
24263         _GL_CXXALIAS_SYS.
24264         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24265
24266 2010-12-26  Bruno Haible  <bruno@clisp.org>
24267
24268         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
24269         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
24270         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24271         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
24272         looking for the declaration.
24273         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
24274         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
24275         problem.
24276         * doc/posix-functions/inet_pton.texi: Likewise.
24277
24278 2010-12-26  Bruno Haible  <bruno@clisp.org>
24279
24280         arpa_inet: Use the common idioms with C++ support.
24281         * lib/arpa_inet.in.h: Include c++defs.h.
24282         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
24283         support.
24284         * modules/arpa_inet (Depends-on): Add c++defs.
24285         (Makefile.am): Substitute the contents of c++defs.h.
24286         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
24287         * modules/arpa_inet-c++-tests: New file.
24288         * tests/test-arpa_inet-c++.cc: New file.
24289
24290 2010-12-25  Bruno Haible  <bruno@clisp.org>
24291
24292         Fix more C++ link errors on Solaris 8.
24293         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
24294         $(LIB_EACCESS).
24295         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
24296         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
24297         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
24298         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
24299         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
24300
24301 2010-12-25  Bruno Haible  <bruno@clisp.org>
24302
24303         printf-posix: Fix link error when a non-GCC compiler is used.
24304         * lib/stdio.in.h (printf): When not using GCC, override printf
24305         correctly.
24306         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24307
24308 2010-12-25  Bruno Haible  <bruno@clisp.org>
24309
24310         strerror_r-posix: Update doc.
24311         * doc/posix-functions/strerror_r.texi: Update doc about the return
24312         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
24313
24314 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
24315
24316         utimens: simplify the logic of the previous change
24317         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
24318         This should not affect whether the test succeeds or fails.
24319
24320         utimens: configure better on hosts with NFS clock skew
24321         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
24322         uses the clock of the local host.  It might use the clock of the
24323         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
24324         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
24325
24326 2010-12-25  Bruno Haible  <bruno@clisp.org>
24327
24328         ptsname test: Avoid failure on Solaris.
24329         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
24330         open a pseudo-terminal; don't use BSD-style ptys.
24331         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
24332
24333 2010-12-25  Bruno Haible  <bruno@clisp.org>
24334
24335         ptsname: Avoid ERANGE failure on some systems.
24336         * lib/ptsname.c (buffer): Increase size.
24337
24338 2010-12-25  Bruno Haible  <bruno@clisp.org>
24339
24340         rename, renameat: Avoid test failures at NFS mounted locations.
24341         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
24342         so that subsequent mkdir calls succeed.
24343
24344 2010-12-25  Bruno Haible  <bruno@clisp.org>
24345
24346         iswblank: Fix C++ link error on Solaris 8.
24347         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
24348         _GL_FUNCDECL_SYS.
24349
24350 2010-12-25  Bruno Haible  <bruno@clisp.org>
24351
24352         unistd: Fix C++ link error on Solaris 8.
24353         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
24354
24355 2010-12-25  Bruno Haible  <bruno@clisp.org>
24356
24357         readlink doc: Mention an old glibc bug.
24358         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
24359
24360 2010-12-25  Bruno Haible  <bruno@clisp.org>
24361
24362         fcntl-h: Fix for use of C++ on glibc systems.
24363         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24364         also on glibc systems in C++ mode.
24365         Reported by Gary V. Vaughan <gary@gnu.org>.
24366
24367 2010-12-25  Bruno Haible  <bruno@clisp.org>
24368
24369         roundl-ieee: Make it work on OSF/1 5.1 with cc.
24370         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
24371
24372 2010-12-25  Bruno Haible  <bruno@clisp.org>
24373
24374         truncl-ieee: Make it work on OSF/1 5.1 with cc.
24375         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
24376         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
24377         test whether truncl works according to ISO C 99 with IEC 60559.
24378         * m4/truncl-ieee.m4: New file.
24379         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
24380         m4/signbit.m4.
24381         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
24382
24383 2010-12-25  Bruno Haible  <bruno@clisp.org>
24384
24385         ceill-ieee: Make it work on OSF/1 5.1 with cc.
24386         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
24387         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
24388         test whether ceill works according to ISO C 99 with IEC 60559.
24389         * m4/ceill-ieee.m4: New file.
24390         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
24391         m4/signbit.m4.
24392         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
24393
24394 2010-12-25  Bruno Haible  <bruno@clisp.org>
24395
24396         Ensure all prerequisites of <wchar.h> are included.
24397         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
24398         before <wchar.h>.
24399         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
24400         gl_MBRLEN_NUL_RETVAL): Likewise.
24401         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
24402         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
24403         AC_FUNC_MBRTOWC): Likewise.
24404         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24405         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24406         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24407         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
24408         Likewise.
24409         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
24410         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
24411         (gl_WCHAR_H): Improve comments.
24412         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24413
24414 2010-12-25  Bruno Haible  <bruno@clisp.org>
24415
24416         strtok_r: Fix C syntax error in autoconf macro.
24417         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
24418         characters in test program.
24419
24420 2010-12-24  Bruno Haible  <bruno@clisp.org>
24421
24422         ceil, trunc, round: Fix gcc warnings.
24423         * lib/ceil.c (MIN): Undefine before redefining.
24424         * lib/trunc.c (MIN): Likewise.
24425         * lib/round.c (MIN): Likewise.
24426         Include <math.h> first.
24427
24428 2010-12-24  Bruno Haible  <bruno@clisp.org>
24429
24430         select tests: Avoid failures on OSF/1 5.1.
24431         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
24432         failure of closing the last socket; it may fail with ECONNRESET.
24433
24434 2010-12-24  Eric Blake  <eblake@redhat.com>
24435
24436         stdint: avoid HP-UX 10.20 preprocessor bug
24437         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
24438         than #if.
24439         * tests/test-floor2.c (main): Likewise.
24440         Reported by Peter O'Gorman.
24441
24442         pipe: make obsoletion transition easier
24443         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
24444         * modules/pipe (Files): Include revived file.
24445         (Include): Drop reference, to mirror getdate's behavior.
24446
24447 2010-12-24  Bruno Haible  <bruno@clisp.org>
24448
24449         sys_socket: Hide mismatch of declarations on NonStop Kernel.
24450         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
24451         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
24452         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24453
24454 2010-12-24  Bruno Haible  <bruno@clisp.org>
24455
24456         gethostname: Ensure declaration on NonStop Kernel.
24457         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
24458         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24459
24460 2010-12-24  Bruno Haible  <bruno@clisp.org>
24461
24462         sys_select: Ensure all necessary types on NonStop Kernel.
24463         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
24464         include <sys/time.h>.
24465         * doc/posix-headers/sys_select.texi: Mention that it's missing on
24466         NonStop Kernel.
24467         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24468
24469 2010-12-24  Bruno Haible  <bruno@clisp.org>
24470
24471         sys_select: Remove unneeded include.
24472         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
24473         have <sys/select.h>.
24474
24475 2010-12-24  Bruno Haible  <bruno@clisp.org>
24476
24477         gethostname: Provide a fallback for HOST_NAME_MAX.
24478         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
24479         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
24480         instead.
24481         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24482
24483 2010-12-24  Bruno Haible  <bruno@clisp.org>
24484
24485         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
24486         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
24487         (SA_RESTART): Likewise.
24488         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24489
24490 2010-12-24  Bruno Haible  <bruno@clisp.org>
24491
24492         signal: Define NSIG.
24493         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
24494         * tests/test-signal.c (nsig): New variable.
24495         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24496
24497 2010-12-24  Bruno Haible  <bruno@clisp.org>
24498
24499         rename, renameat: Avoid test failures on OSF/1 5.1.
24500         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
24501         alternative error codes.
24502         * tests/test-renameat.c (main): Likewise.
24503
24504 2010-12-24  Bruno Haible  <bruno@clisp.org>
24505
24506         *printf: Detect large precisions bug on Solaris 10/SPARC.
24507         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
24508         by Paul Eggert.
24509         * tests/test-snprintf-posix.h (test_function): Add this test code here
24510         too.
24511         * tests/test-sprintf-posix.h (test_function): Likewise.
24512         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24513         * tests/test-vasprintf-posix.c (test_function): Likewise.
24514         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
24515         around by gnulib.
24516         * doc/posix-functions/printf.texi: Likewise.
24517         * doc/posix-functions/snprintf.texi: Likewise.
24518         * doc/posix-functions/sprintf.texi: Likewise.
24519         * doc/posix-functions/vfprintf.texi: Likewise.
24520         * doc/posix-functions/vprintf.texi: Likewise.
24521         * doc/posix-functions/vsnprintf.texi: Likewise.
24522         * doc/posix-functions/vsprintf.texi: Likewise.
24523         * doc/posix-functions/dprintf.texi: Undo last commit.
24524         * doc/posix-functions/vdprintf.texi: Likewise.
24525
24526 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
24527
24528         tests: port test-fdutimensat.c to Solaris 8
24529         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
24530         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
24531         On Solaris 8, it fails with errno == ENOSYS, because there is no
24532         futimens (so it can't use the fd), and there is no lutimens (so it
24533         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
24534
24535         vsnprintf: make more consistent with snprintf; doc fixes
24536
24537         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
24538         the byte count return problem was promoted from the snprintf-posix
24539         to the snprintf module.
24540         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
24541         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
24542         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
24543         * tests/test-snprintf.c (main): Check the byte count returned.
24544         * tests/test-vsnprintf.c (main): Likewise.
24545
24546 2010-12-23  Eric Blake  <eblake@redhat.com>
24547
24548         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
24549         * modules/sigpipe (License): Relax license.
24550
24551 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24552
24553         doc: document Solaris printf bug with large float precisions
24554         * doc/posix-functions/dprintf.texi (dprintf):
24555         * doc/posix-functions/fprintf.texi (fprintf):
24556         * doc/posix-functions/printf.texi (printf):
24557         * doc/posix-functions/snprintf.texi (snprintf):
24558         * doc/posix-functions/sprintf.texi (sprintf):
24559         * doc/posix-functions/vdprintf.texi (vdprintf):
24560         * doc/posix-functions/vfprintf.texi (vfprintf):
24561         * doc/posix-functions/vprintf.texi (vprintf):
24562         * doc/posix-functions/vsnprintf.texi (vsnprintf):
24563         * doc/posix-functions/vsprintf.texi (vsprintf):
24564         Mention that these functions mishandle large floating point
24565         precisions on Solaris 10.  The same bug is also present in Solaris
24566         8, and I assume earlier.  This causes "cd gnulib-tests; make
24567         check" to fail on Solaris 8 (and I assume, later) when building
24568         the latest coreutils, in test-vasprintf-posix's call to
24569         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
24570         the wide flavors (e.g., wprintf) so this patch just updates the
24571         documentation for the narrow ones.
24572
24573         test-posixtm.c: add two tests
24574         * tests/test-posixtm.c: Add two tests, to highlight the
24575         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
24576         around this bug; this is merely to document it.
24577
24578 2010-12-22  Bruno Haible  <bruno@clisp.org>
24579
24580         getlogin_r: Work around portability problem on OSF/1.
24581         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
24582         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
24583         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
24584         test for a truncated result.
24585         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
24586         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
24587         * modules/getlogin_r (Depends-on): Add memchr.
24588         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
24589
24590 2010-12-22  Bruno Haible  <bruno@clisp.org>
24591
24592         ptsname: Avoid test failure on OSF/1 5.1.
24593         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
24594         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
24595         (same_slave): New function.
24596         (main): Use it to compare ptsname's result with the expected file name.
24597
24598 2010-12-22  Bruno Haible  <bruno@clisp.org>
24599
24600         Port extended stdio modules to HP NonStop Kernel.
24601         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
24602         macros.
24603         * lib/fbufmode.c: Update comments.
24604         * lib/fflush.c: Likewise.
24605         * lib/fpurge.c: Likewise.
24606         * lib/freadable.c: Likewise.
24607         * lib/freadahead.c: Likewise.
24608         * lib/freading.c: Likewise.
24609         * lib/freadptr.c: Likewise.
24610         * lib/freadseek.c: Likewise.
24611         * lib/fseeko.c: Likewise.
24612         * lib/fseterr.c: Likewise.
24613         * lib/fwritable.c: Likewise.
24614         * lib/fwriting.c: Likewise.
24615         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24616
24617 2010-12-22  Bruno Haible  <bruno@clisp.org>
24618
24619         ttyname_r: Work around bug on OSF/1 5.1.
24620         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
24621         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
24622         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
24623         present.
24624         * lib/ttyname_r.c (ttyname_r): Update comments.
24625
24626 2010-12-22  Bruno Haible  <bruno@clisp.org>
24627
24628         round: Implement result sign according to IEEE 754.
24629         * lib/round.c (MIN, MINUS_ZERO): New macros.
24630         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
24631         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
24632         * tests/test-round-ieee.c (main): Likewise.
24633         * tests/test-roundl-ieee.c (main): Likewise.
24634
24635         trunc: Implement result sign according to IEEE 754.
24636         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
24637         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
24638         * tests/test-trunc2.c: Include minus-zero.h.
24639         (MINUS_ZERO): New macro.
24640         (trunc_reference): Keep in sync with lib/trunc.c.
24641         * tests/test-truncf2.c: Include minus-zero.h.
24642         (MINUS_ZERO): New macro.
24643         (truncf_reference): Keep in sync with lib/trunc.c.
24644         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
24645         * tests/test-trunc-ieee.c (main): Likewise.
24646         * tests/test-truncl-ieee.c (main): Likewise.
24647
24648         ceil: Implement result sign according to IEEE 754.
24649         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
24650         (FUNC): Return -0.0 for -1 < x < 0.
24651         * tests/test-ceil2.c: Include minus-zero.h.
24652         (MINUS_ZERO): New macro.
24653         (ceil_reference): Keep in sync with lib/ceil.c.
24654         * tests/test-ceilf2.c: Include minus-zero.h.
24655         (MINUS_ZERO): New macro.
24656         (ceilf_reference): Keep in sync with lib/ceil.c.
24657         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
24658         * tests/test-ceil-ieee.c (main): Likewise.
24659         * tests/test-ceill-ieee.c (main): Likewise.
24660
24661         floor: Implement result sign according to IEEE 754.
24662         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
24663         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
24664         * tests/test-floorf2.c (floorf_reference): Likewise.
24665         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
24666         * tests/test-floor-ieee.c (main): Likewise.
24667         * tests/test-floorl-ieee.c (main): Likewise.
24668
24669 2010-12-22  Bruno Haible  <bruno@clisp.org>
24670
24671         getaddrinfo: Update doc.
24672         * doc/posix-functions/gai_strerror.texi: Return type is also different
24673         on AIX and HP-UX.
24674
24675 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24676
24677         getaddrinfo, inet_ntop: Update doc for Solaris.
24678         * doc/posix-functions/gai_strerror.texi: Return type is also an
24679         issue on Solaris 9 and earlier.
24680         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
24681         on Solaris 10 and earlier.
24682
24683 2010-12-21  Bruno Haible  <bruno@clisp.org>
24684
24685         New module 'roundl-ieee'.
24686         * modules/roundl-ieee: New file.
24687         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
24688         test whether roundl works according to ISO C 99 with IEC 60559.
24689         * m4/roundl-ieee.m4: New file.
24690         * modules/roundl-ieee-tests: New file.
24691         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
24692         * tests/test-roundl.c (main): Remove signbit tests.
24693         * modules/roundl-tests (Depends-on): Remove signbit.
24694         * doc/posix-functions/roundl.texi: Mention the new module.
24695
24696 2010-12-21  Bruno Haible  <bruno@clisp.org>
24697
24698         New module 'truncl-ieee'.
24699         * modules/truncl-ieee: New file.
24700         * modules/truncl-ieee-tests: New file.
24701         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
24702         * tests/test-truncl.c (main): Remove signbit tests.
24703         * modules/truncl-tests (Depends-on): Remove signbit.
24704         * doc/posix-functions/truncl.texi: Mention the new module.
24705
24706 2010-12-21  Bruno Haible  <bruno@clisp.org>
24707
24708         New module 'ceill-ieee'.
24709         * modules/ceill-ieee: New file.
24710         * modules/ceill-ieee-tests: New file.
24711         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
24712         * tests/test-ceill.c (main): Remove signbit tests.
24713         * modules/ceill-tests (Depends-on): Remove signbit.
24714         * doc/posix-functions/ceill.texi: Mention the new module.
24715
24716 2010-12-21  Bruno Haible  <bruno@clisp.org>
24717
24718         New module 'floorl-ieee'.
24719         * modules/floorl-ieee: New file.
24720         * modules/floorl-ieee-tests: New file.
24721         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
24722         * tests/test-floorl.c (main): Remove signbit tests.
24723         * modules/floorl-tests (Depends-on): Remove signbit.
24724         * doc/posix-functions/floorl.texi: Mention the new module.
24725
24726 2010-12-21  Bruno Haible  <bruno@clisp.org>
24727
24728         New module 'round-ieee'.
24729         * modules/round-ieee: New file.
24730         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
24731         whether round works according to ISO C 99 with IEC 60559.
24732         * m4/round-ieee.m4: New file.
24733         * modules/round-ieee-tests: New file.
24734         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
24735         * tests/test-round1.c (main): Remove signbit tests.
24736         * modules/round-tests (Depends-on): Remove 'signbit'.
24737         * doc/posix-functions/round.texi: Mention the new module.
24738
24739 2010-12-21  Bruno Haible  <bruno@clisp.org>
24740
24741         New module 'trunc-ieee'.
24742         * modules/trunc-ieee: New file.
24743         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
24744         whether trunc works according to ISO C 99 with IEC 60559.
24745         * m4/trunc-ieee.m4: New file.
24746         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
24747         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
24748         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
24749         * modules/trunc-ieee-tests: New file.
24750         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
24751         * tests/test-trunc1.c (main): Remove signbit tests.
24752         * modules/trunc-tests (Depends-on): Remove 'signbit'.
24753         * doc/posix-functions/trunc.texi: Mention the new module.
24754
24755 2010-12-21  Bruno Haible  <bruno@clisp.org>
24756
24757         New module 'ceil-ieee'.
24758         * modules/ceil-ieee: New file.
24759         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
24760         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
24761         ISO C 99 with IEC 60559.
24762         * m4/ceil-ieee.m4: New file.
24763         * modules/ceil (Files): Add lib/ceil.c.
24764         (Depends-on): Add 'float'.
24765         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24766         * lib/math.in.h (ceil): New declaration.
24767         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
24768         REPLACE_CEIL.
24769         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
24770         * modules/ceil-ieee-tests: New file.
24771         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
24772         * tests/test-math-c++.cc: Check the signature of 'ceil'.
24773         * doc/posix-functions/ceil.texi: Mention the new module.
24774
24775 2010-12-21  Bruno Haible  <bruno@clisp.org>
24776
24777         New module 'floor-ieee'.
24778         * modules/floor-ieee: New file.
24779         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
24780         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
24781         ISO C 99 with IEC 60559.
24782         * m4/floor-ieee.m4: New file.
24783         * modules/floor (Files): Add lib/floor.c.
24784         (Depends-on): Add 'float'.
24785         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24786         * lib/math.in.h (floor): New declaration.
24787         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
24788         REPLACE_FLOOR.
24789         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
24790         * modules/floor-ieee-tests: New file.
24791         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
24792         * tests/test-math-c++.cc: Check the signature of 'floor'.
24793         * doc/posix-functions/floor.texi: Mention the new module.
24794
24795 2010-12-21  Bruno Haible  <bruno@clisp.org>
24796
24797         New module 'roundf-ieee'.
24798         * modules/roundf-ieee: New file.
24799         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
24800         test whether roundf works according to ISO C 99 with IEC 60559.
24801         * m4/roundf-ieee.m4: New file.
24802         * modules/roundf-ieee-tests: New file.
24803         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
24804         * tests/test-roundf1.c (main): Remove signbit tests.
24805         * modules/roundf-tests (Depends-on): Remove 'signbit'.
24806         * doc/posix-functions/roundf.texi: Mention the new module.
24807
24808 2010-12-21  Bruno Haible  <bruno@clisp.org>
24809
24810         New module 'truncf-ieee'.
24811         * modules/truncf-ieee: New file.
24812         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
24813         test whether truncf works according to ISO C 99 with IEC 60559.
24814         * m4/truncf-ieee.m4: New file.
24815         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
24816         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
24817         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
24818         * modules/truncf-ieee-tests: New file.
24819         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
24820         * tests/test-truncf1.c (main): Remove signbit tests.
24821         * modules/truncf-tests (Depends-on): Remove 'signbit'.
24822         * doc/posix-functions/truncf.texi: Mention the new module.
24823
24824 2010-12-21  Bruno Haible  <bruno@clisp.org>
24825
24826         New module 'ceilf-ieee'.
24827         * modules/ceilf-ieee: New file.
24828         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
24829         test whether ceilf works according to ISO C 99 with IEC 60559.
24830         * m4/ceilf-ieee.m4: New file.
24831         * modules/ceilf-ieee-tests: New file.
24832         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
24833         * tests/test-ceilf1.c (main): Remove signbit tests.
24834         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
24835         * doc/posix-functions/ceilf.texi: Mention the new module.
24836
24837 2010-12-21  Bruno Haible  <bruno@clisp.org>
24838
24839         New module 'floorf-ieee'.
24840         * modules/floorf-ieee: New file.
24841         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
24842         test whether floorf works according to ISO C 99 with IEC 60559.
24843         * m4/floorf-ieee.m4: New file.
24844         * modules/floorf-ieee-tests: New file.
24845         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
24846         * tests/test-floorf1.c (main): Remove signbit tests.
24847         * modules/floorf-tests (Depends-on): Remove 'signbit'.
24848         * doc/posix-functions/floorf.texi: Mention the new module.
24849
24850 2010-12-21  Bruno Haible  <bruno@clisp.org>
24851
24852         Support for minus zero in autoconf macros.
24853         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
24854         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
24855         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
24856         * tests/minus-zero.h: Update comments.
24857
24858 2010-12-21  Bruno Haible  <bruno@clisp.org>
24859
24860         Tests for module 'ceil'.
24861         * modules/ceil-tests: New file.
24862         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
24863         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
24864
24865 2010-12-21  Bruno Haible  <bruno@clisp.org>
24866
24867         Tests for module 'floor'.
24868         * modules/floor-tests: New file.
24869         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
24870         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
24871
24872 2010-12-21  Bruno Haible  <bruno@clisp.org>
24873
24874         math: Fix indentation.
24875         * lib/math.in.h (floorf): Fix indentation.
24876
24877 2010-12-21  Bruno Haible  <bruno@clisp.org>
24878
24879         Fix cross-compilation guesses on Solaris.
24880         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
24881         not match "solaris2.10".
24882         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24883         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
24884         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
24885
24886 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
24887
24888         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
24889         This fixes a problem observed with the latest coreutils snapshot
24890         that caused a test to fail on Solaris 8.  src/csplit.c's call
24891         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
24892         earlier, instead of returning the number of bytes that would have
24893         been generated; this causes csplit to incorrectly report memory
24894         exhaustion.
24895         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
24896         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
24897         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
24898         comments to match.
24899         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
24900         Fix typo in matching older versions of Solaris: "solaris2.10"
24901         is matched by the shell pattern "solaris2.[0-9]*".  This matters
24902         only for guessing while cross-compiling.
24903         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
24904
24905 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
24906
24907         ftoastr: fix comment again
24908         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24909         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
24910         Also, simplify example a bit by using flags = 0.
24911
24912 2010-12-20  Bruno Haible  <bruno@clisp.org>
24913
24914         round*, trunc*: Update documentation regarding glibc.
24915         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
24916         * doc/posix-functions/round.texi: Likewise.
24917         * doc/posix-functions/roundl.texi: Likewise.
24918         * doc/posix-functions/truncf.texi: Likewise.
24919         * doc/posix-functions/trunc.texi: Likewise.
24920         * doc/posix-functions/truncl.texi: Likewise.
24921
24922 2010-12-20  Bruno Haible  <bruno@clisp.org>
24923
24924         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
24925         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
24926         * doc/posix-functions/round.texi: Likewise.
24927         * doc/posix-functions/roundl.texi: Likewise.
24928
24929 2010-12-20  Bruno Haible  <bruno@clisp.org>
24930
24931         ttyname_r: Add missing declaration on HP-UX 11.
24932         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
24933         HAVE_TTYNAME_R.
24934         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
24935         declared. Set HAVE_TTYNAME_R always.
24936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24937         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
24938         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
24939         HAVE_TTYNAME_R.
24940         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
24941
24942 2010-12-20  Bruno Haible  <bruno@clisp.org>
24943
24944         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
24945         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
24946         * doc/posix-functions/getlogin_r.texi: Likewise.
24947         * tests/test-getlogin.c: Include <errno.h>.
24948         (main): Avoid test failure on HP-UX 11.11.
24949         * tests/test-getlogin_r.c (main): Likewise.
24950
24951 2010-12-20  Bruno Haible  <bruno@clisp.org>
24952
24953         getlogin_r: Add missing declaration on HP-UX 11.
24954         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
24955         declared also when it exists as a function.
24956         * doc/posix-functions/getlogin_r.texi: Document this workaround.
24957
24958 2010-12-20  Bruno Haible  <bruno@clisp.org>
24959
24960         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
24961         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
24962         through wcrtomb.
24963
24964 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
24965
24966         ftoastr: fix comment
24967         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24968         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
24969
24970 2010-12-19  Bruno Haible  <bruno@clisp.org>
24971
24972         isnan: Ensure it is a macro.
24973         * lib/math.in.h (isnan): Define as a macro if not already a macro.
24974         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
24975         Solaris.
24976
24977 2010-12-19  Bruno Haible  <bruno@clisp.org>
24978
24979         ldexpl test: Fix link error on OSF/1 5.1.
24980         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
24981
24982 2010-12-19  Bruno Haible  <bruno@clisp.org>
24983
24984         wctype: Make it work in C++ mode on OSF/1 5.1.
24985         * lib/wctype.in.h (iswblank): Declare but not define here.
24986         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
24987         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
24988         * modules/wctype (Files): Add lib/iswblank.c.
24989
24990 2010-12-19  Bruno Haible  <bruno@clisp.org>
24991
24992         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
24993         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
24994         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
24995
24996 2010-12-19  Bruno Haible  <bruno@clisp.org>
24997
24998         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
24999         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
25000         _POSIX_PII_SOCKET.
25001         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
25002         * doc/posix-functions/recvfrom.texi: Likewise.
25003         * doc/posix-functions/send.texi: Likewise.
25004         * doc/posix-functions/sendto.texi: Likewise.
25005
25006 2010-12-19  Bruno Haible  <bruno@clisp.org>
25007
25008         tcgetsid: Add missing declaration on OSF/1 5.1.
25009         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
25010         HAVE_TCGETSID.
25011         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
25012         Don't set HAVE_TCGETSID.
25013         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
25014         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
25015         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
25016         HAVE_TCGETSID.
25017         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
25018
25019 2010-12-19  Bruno Haible  <bruno@clisp.org>
25020
25021         stdio: Fix problem with popen() declaration on OSF/1 5.1.
25022         * lib/stdio.in.h: During the include_next statement, let recursive
25023         includes of this file include only the system header file.
25024
25025 2010-12-19  Bruno Haible  <bruno@clisp.org>
25026
25027         iconv_open: Fix regression from 2010-12-04.
25028         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
25029         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
25030
25031 2010-12-19  Bruno Haible  <bruno@clisp.org>
25032
25033         stdbool test: Avoid a gcc warning.
25034         * tests/test-stdbool.c (main): Fail if e1 is false.
25035         Reported by Jim Meyering.
25036
25037 2010-12-19  Jim Meyering  <meyering@redhat.com>
25038
25039         setenv: restore to working order
25040         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
25041         mistakenly removed.
25042         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
25043         HAVE_SETENV.
25044         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
25045         HAVE_SETENV.
25046
25047 2010-12-19  Bruno Haible  <bruno@clisp.org>
25048
25049         Document some different function declarations on OSF/1 5.1.
25050         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
25051         * doc/posix-functions/inet_ntop.texi: Likewise.
25052         * doc/posix-functions/gethostname.texi: Likewise.
25053         * lib/unistd.in.h (gethostname): Update comment.
25054
25055 2010-12-19  Bruno Haible  <bruno@clisp.org>
25056
25057         doc: Mention vasprintf-posix module.
25058         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
25059         the 'vasprintf-posix' module.
25060         * doc/glibc-functions/vasprintf.texi: Likewise.
25061
25062 2010-12-19  Bruno Haible  <bruno@clisp.org>
25063
25064         unsetenv: Add missing declaration on OSF/1 5.1.
25065         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
25066         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
25067         Don't set HAVE_UNSETENV. In the test program, set _BSD.
25068         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
25069         not HAVE_UNSETENV.
25070         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
25071         HAVE_UNSETENV.
25072         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
25073
25074 2010-12-19  Bruno Haible  <bruno@clisp.org>
25075
25076         setenv: Add missing declaration on OSF/1 5.1.
25077         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
25078         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
25079         declared. Don't set HAVE_SETENV.
25080         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
25081         not HAVE_SETENV.
25082         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
25083         HAVE_SETENV.
25084         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
25085
25086 2010-12-19  Bruno Haible  <bruno@clisp.org>
25087
25088         nl_langinfo tests: Avoid gcc warning.
25089         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
25090
25091 2010-12-19  Bruno Haible  <bruno@clisp.org>
25092
25093         mknod: Avoid error in C++ mode on OSF/1 with GCC.
25094         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
25095         _GL_CXXALIAS_SYS.
25096
25097 2010-12-19  Bruno Haible  <bruno@clisp.org>
25098
25099         stdbool: Relax test.
25100         * tests/test-stdbool.c (e): Don't require that casts from a variable's
25101         address to 'bool' work in static initializer, for compilers other than
25102         GCC.
25103
25104 2010-12-19  Bruno Haible  <bruno@clisp.org>
25105
25106         ftello: Add missing declaration on OSF/1 5.1.
25107         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
25108         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
25109         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
25110         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
25111         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
25112
25113 2010-12-19  Bruno Haible  <bruno@clisp.org>
25114
25115         fseeko: Add missing declaration on OSF/1 5.1.
25116         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
25117         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
25118         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
25119         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
25120         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
25121
25122 2010-12-19  Bruno Haible  <bruno@clisp.org>
25123
25124         fchdir: Add missing declaration on OSF/1 5.1.
25125         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
25126         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
25127         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
25128         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
25129         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
25130
25131 2010-12-19  Bruno Haible  <bruno@clisp.org>
25132
25133         relocatable-prog-wrapper: Separate from relocatable-prog.
25134         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
25135         uninstall-relocwrapper rule here.
25136         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
25137         Reported by Ian Beckwith <ianb@erislabs.net>.
25138
25139 2010-12-19  Bruno Haible  <bruno@clisp.org>
25140
25141         unistr/u8-mbsnlen: Add missing dependency.
25142         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
25143         Reported by Ian Beckwith <ianb@erislabs.net>.
25144
25145 2010-12-19  Bruno Haible  <bruno@clisp.org>
25146
25147         iconv: Make it possible again to use this module without 'iconv-h'.
25148         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
25149         if it is not defined.
25150         Reported by Ian Beckwith <ianb@erislabs.net>.
25151
25152 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
25153
25154         acl: port to Solaris 8 when copying from tmpfs to ufs
25155         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
25156         error number.  Problem observed on Solaris 8 with latest
25157         coreutils, with "mv A B", where A is on a tmpfs file system and B
25158         is on a ufs file system.  This caused coreutils' mv/part-symlink
25159         test to fail.
25160
25161         tests: set fail=0 at start
25162         * tests/init.sh (setup_): Move fail=0 initialization here ...
25163         (mktempd_): ... from here, so that tests can rely on fail being
25164         set to 0 initially.  This fixes a problem in coreutils; see:
25165         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
25166
25167 2010-12-18  Bruno Haible  <bruno@clisp.org>
25168
25169         memmem-simple: Stylistic changes.
25170         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
25171         Fix preprocessor directive indentation.
25172
25173 2010-12-15  Pádraig Brady <P@draigBrady.com>
25174
25175         memmem, memmem-simple: reorganize and expand empty needle check
25176         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
25177         functional checks to memmem-simple so that one has a fully functional
25178         memmem by using just this module.
25179         Restrict the performance only check to the memmem module.
25180         Also expand the empty needle check to ensure the correct
25181         pointer is returned, not just a non NULL pointer.
25182         * doc/glibc-functions/memmem.texi: Rearrange the portability
25183         documentation to correlate with the rearranged checks.
25184         Clarify exactly how the memmem and memmem-simple modules
25185         relate to each other.
25186
25187 2010-12-15  Pádraig Brady <P@draigBrady.com>
25188             Bruno Haible  <bruno@clisp.org>
25189
25190         Improve cross-compilation guesses for uClibc.
25191         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
25192         that uClibc does not have the glibc bug.
25193         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
25194         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
25195
25196 2010-12-14  Eric Blake  <eblake@redhat.com>
25197
25198         configmake: provide fallbacks for oldest supported autotools
25199         * m4/configmake.m4: New file.
25200         * modules/configmake (Files): Ship it.
25201         (configure.ac): Use it to guarantee fallbacks.
25202
25203 2010-12-13  Pádraig Brady <P@draigBrady.com>
25204
25205         read-file: Improve handling of large files
25206         * lib/read-file.c (fread_file): Minimize realloc()s
25207         for regular files, and better manage sizes around SIZE_MAX.
25208
25209 2010-12-13  Eric Blake  <eblake@redhat.com>
25210
25211         cloexec, fcntl: relax license
25212         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
25213         consent from all contributors.
25214         * modules/fcntl (License): Likewise.
25215
25216 2010-12-10  Bruno Haible  <bruno@clisp.org>
25217
25218         Tests for module 'pipe-posix'.
25219         * modules/pipe-posix-tests: New file.
25220         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
25221
25222 2010-12-10  Bruno Haible  <bruno@clisp.org>
25223
25224         pipe-posix: Make it work in C++ mode.
25225         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
25226         (pipe): Use common idiom, not a macro definition.
25227         * lib/pipe.c: New file.
25228         * m4/pipe.m4: New file.
25229         * modules/pipe-posix (Description): Enhance.
25230         (Files): Add lib/pipe.c, m4/pipe.m4.
25231         (configure.ac): Invoke gl_FUNC_PIPE.
25232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
25233         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
25234         * tests/test-unistd-c++.cc: Check the signature of pipe.
25235
25236 2010-12-10  Bruno Haible  <bruno@clisp.org>
25237
25238         Rename module 'pipe' to 'spawn-pipe'.
25239         * modules/spawn-pipe: New file, renamed from modules/pipe.
25240         (Files, configure.ac, Makefile.am): Update.
25241         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
25242         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
25243         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
25244         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
25245         "spawn-pipe.h" instead of "pipe.h".
25246         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
25247         to gl_SPAWN_PIPE.
25248         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
25249         (Files, Makefile.am): Update.
25250         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
25251         Update.
25252         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
25253         Include "spawn-pipe.h" instead of "pipe.h".
25254         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
25255         * lib/javacomp.c: Likewise.
25256         * lib/javaversion.c: Likewise.
25257         * lib/pipe-filter-gi.c: Likewise.
25258         * lib/pipe-filter-ii.c: Likewise.
25259         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
25260         * modules/javacomp (Depends-on): Likewise.
25261         * modules/javaversion (Depends-on): Likewise.
25262         * modules/pipe-filter-gi (Depends-on): Likewise.
25263         * modules/pipe-filter-ii (Depends-on): Likewise.
25264         * MODULES.html.sh (Executing programs): Update.
25265         * NEWS: Mention the change.
25266
25267 2010-12-10  Eric Blake  <eblake@redhat.com>
25268
25269         pipe-posix: new module
25270         * modules/pipe-posix: New file.
25271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
25272         (gl_UNISTD_H): Check for declaration.
25273         * modules/unistd (Makefile.am): Substitute it.
25274         * lib/unistd.in.h (pipe): Provide it for mingw.
25275         * doc/posix-functions/pipe.texi (pipe): Update documentation.
25276         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
25277
25278 2010-12-07  Bruno Haible  <bruno@clisp.org>
25279
25280         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
25281         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
25282         u8_strcmp_gnu.
25283         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
25284
25285 2010-12-06  Bruno Haible  <bruno@clisp.org>
25286
25287         Update internal documentation.
25288         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
25289
25290 2010-12-04  Bruno Haible  <bruno@clisp.org>
25291
25292         Put more information about failed tests into the test return codes.
25293         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
25294         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
25295         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
25296         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
25297         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
25298         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25299         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25300         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25301         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
25302         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25303         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
25304         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25305         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
25306         * m4/stdint.m4 (gl_STDINT_H): Likewise.
25307         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
25308         returns a bit mask.
25309         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
25310         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
25311         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
25312         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
25313         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25314         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25315         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25316         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25317         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25318         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25319         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25320         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25321         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25322         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25323         * m4/link.m4 (gl_FUNC_LINK): Likewise.
25324         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
25325         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
25326         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
25327         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25328         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
25329         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25330         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
25331         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
25332         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25333         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25334         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
25335         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
25336         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25337         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25338         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
25339         gl_PRINTF_PRECISION): Likewise.
25340         * m4/regex.m4 (gl_REGEX): Likewise.
25341         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
25342         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
25343         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
25344         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25345         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25346         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25347         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
25348         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
25349         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25350         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25351         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
25352         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
25353         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
25354         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
25355         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
25356         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25357         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
25358         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25359         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25360         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
25361         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
25362         enumerated value.
25363         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
25364
25365 2010-12-04  Bruno Haible  <bruno@clisp.org>
25366
25367         Update for Solaris 11 2010-11.
25368         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
25369         Express, released in November 2010.
25370
25371 2010-12-04  Bruno Haible  <bruno@clisp.org>
25372
25373         nproc: Relax license.
25374         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
25375         and Paul Eggert.
25376         Requested by Ludovic Courtès <ludo@gnu.org>.
25377
25378 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
25379
25380         utimecmp: fine-grained src to nearby coarse-grained dest
25381
25382         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
25383         and the source is on a file system with higher-resolution time
25384         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
25385         not work, and the time stamps are close together, the algorithm to
25386         determine the exact resolution from the read-back mtime was buggy:
25387         it had a "!=" where it should have had an "==".  This bug has been
25388         in the code ever since it was introduced to gnulib.
25389         Problem reported by Dan Jacobson in
25390         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
25391
25392 2010-11-30  Bruno Haible  <bruno@clisp.org>
25393
25394         strerror_r-posix: Fix autoconf test.
25395         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
25396
25397 2010-11-28  Bruno Haible  <bruno@clisp.org>
25398             Paul Eggert  <eggert@cs.ucla.edu>
25399
25400         Tests for module 'getdomainname'.
25401         * modules/getdomainname-tests: New file.
25402         * tests/test-getdomainname.c: New file, based on
25403         tests/test-gethostname.c.
25404
25405 2010-11-28  Bruno Haible  <bruno@clisp.org>
25406             Paul Eggert  <eggert@cs.ucla.edu>
25407
25408         getdomainname: Use the system function when possible.
25409         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
25410         (getdomainname): Replace if needed. Provide the declaration if it is
25411         missing. Don't use _GL_CXXALIAS_SYS_CAST.
25412         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
25413         (getdomainname): When the system has getdomainname, call the system
25414         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
25415         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
25416         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
25417         found in libnsl. Look for the declaration also in <netdb.h>. Replace
25418         the function if its second argument is of type 'int' or if it is found
25419         in libnsl.
25420         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
25421         <sys/systeminfo.h> and sysinfo().
25422         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
25423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25424         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
25425         HAVE_GETDOMAINNAME.
25426         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
25427         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
25428         * doc/glibc-functions/getdomainname.texi: Document the problems with
25429         the getdomainname declaration.
25430
25431 2010-11-28  Bruno Haible  <bruno@clisp.org>
25432
25433         sys_socket: Ensure ss_family field on AIX.
25434         * lib/sys_socket.in.h (ss_family): New macro definition.
25435         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
25436         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
25437         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25438         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
25439         * modules/sys_socket (Makefile.am): Substitute
25440         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
25441         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
25442
25443 2010-11-27  Bruno Haible  <bruno@clisp.org>
25444
25445         readline: Improve configure output.
25446         * m4/readline.m4 (gl_FUNC_READLINE): Make the
25447         "checking for readline..." result understandable.
25448
25449 2010-11-27  Bruno Haible  <bruno@clisp.org>
25450
25451         *printf-posix: Detect a bug on Solaris 10/x86.
25452         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
25453         for floating-point output.
25454         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
25455         directive.
25456         * tests/test-snprintf-posix.h (test_function): Likewise.
25457         * tests/test-sprintf-posix.h (test_function): Likewise.
25458         * tests/test-vasprintf-posix.c (test_function): Likewise.
25459         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
25460         * doc/posix-functions/printf.texi: Likewise.
25461         * doc/posix-functions/snprintf.texi: Likewise.
25462         * doc/posix-functions/sprintf.texi: Likewise.
25463         * doc/posix-functions/vfprintf.texi: Likewise.
25464         * doc/posix-functions/vprintf.texi: Likewise.
25465         * doc/posix-functions/vsnprintf.texi: Likewise.
25466         * doc/posix-functions/vsprintf.texi: Likewise.
25467         * doc/glibc-functions/obstack_printf.texi: Likewise.
25468         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
25469
25470 2010-11-27  Bruno Haible  <bruno@clisp.org>
25471
25472         Fix link error when module libunistring-optional is in use.
25473         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
25474         * modules/striconveha-tests (Makefile.am): Likewise.
25475
25476 2010-11-27  Bruno Haible  <bruno@clisp.org>
25477
25478         regex: Mention link dependencies.
25479         * modules/regex (Link): New section.
25480         * modules/rpmatch (Link): Likewise.
25481         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
25482
25483 2010-11-27  Bruno Haible  <bruno@clisp.org>
25484
25485         ftoastr: Fix compilation error on Solaris.
25486         * lib/ftoastr.c: Include <config.h>.
25487
25488 2010-11-27  Bruno Haible  <bruno@clisp.org>
25489
25490         getloadavg: Update documentation.
25491         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
25492
25493 2010-11-27  Bruno Haible  <bruno@clisp.org>
25494
25495         sys_socket: Fix test whether the functions are declared.
25496         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
25497         not <sys/select.h>.
25498
25499 2010-11-27  Bruno Haible  <bruno@clisp.org>
25500
25501         getpass: Make sure to get system declaration on some platforms.
25502         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
25503         gl_USE_SYSTEM_EXTENSIONS.
25504         * modules/getpass (Depends-on): Add extensions.
25505
25506 2010-11-26  Bruno Haible  <bruno@clisp.org>
25507
25508         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
25509         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
25510         'iconv' module is present.
25511         (ICONV_CONST): New macro.
25512         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
25513         ICONV_CONST.
25514         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
25515         set ICONV_CONST.
25516         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
25517         here.
25518         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
25519         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
25520         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
25521         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
25522         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
25523         present.
25524
25525 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
25526
25527         ftoastr: comment fix
25528         * lib/ftoastr.c: "little" -> "little or no" in comment
25529
25530 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
25531
25532         stdint: port to GCC 4.3 + OSX + Octave
25533         On this platform, stdint.h is buggy and defines int64_t to long
25534         long int.  The replacement defined it to long int, causing
25535         problems with C++ style name mangling.  Instead, trust the system
25536         definition if INT64_MAX is defined, and likewise for the unsigned
25537         variant.   Problem reported by Jarno Rajahalme in
25538         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
25539         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
25540         and don't mess with int64_t and INT64_MAX in this case.
25541         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
25542
25543 2010-11-24  Bruno Haible  <bruno@clisp.org>
25544
25545         doc: Corrections regarding MacOS X 10.4 and 10.5.
25546         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
25547         MacOS X.
25548         Reported by Simon Josefsson.
25549
25550 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
25551
25552         Uninstall ".bin" files installed by relocwrapper.
25553         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
25554         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
25555         unless it is already there.
25556
25557 2010-11-21  Bruno Haible  <bruno@clisp.org>
25558
25559         Update for NetBSD 5.0.
25560         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
25561         NetBSD; the test fails on NetBSD 5.0.
25562         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
25563         about NetBSD.
25564
25565 2010-11-21  Bruno Haible  <bruno@clisp.org>
25566
25567         Update for HP-UX 11.23 and HP-UX 11.31.
25568         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
25569         HP-UX.
25570
25571 2010-11-21  Bruno Haible  <bruno@clisp.org>
25572
25573         Update for MacOS X 10.5.
25574         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
25575         MacOS X; the test fails on MacOS X 10.5.8.
25576         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
25577         about MacOS X.
25578
25579 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
25580
25581         bootstrap: add bootstrap_sync option.
25582         See discussion at
25583         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
25584         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
25585         * build-aux/bootstrap: Accept --bootstrap-sync to update
25586         bootstrap if it is not identical to the local gnulib's
25587         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
25588         enable this by default.  Accept --no-bootstrap-sync to disable
25589         it.
25590
25591 2010-11-20  Bruno Haible  <bruno@clisp.org>
25592
25593         Ensure that <features.h> is included before __GLIBC__ is tested.
25594         * lib/printf-parse.h: Include <features.h>.
25595         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
25596         Reported by Mike Frysinger <vapier@gentoo.org>.
25597
25598         Ensure that <features.h> is included before __GLIBC__ is tested.
25599         * lib/wchar.in.h: Include <features.h>.
25600         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
25601         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
25602         Reported by Mike Frysinger <vapier@gentoo.org>.
25603
25604         Ensure that <features.h> is included before __GLIBC__ is tested.
25605         * lib/arpa_inet.in.h: Include <features.h>.
25606         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
25607         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
25608         Reported by Mike Frysinger <vapier@gentoo.org>.
25609
25610         Ensure that <features.h> is included before __GLIBC__ is tested.
25611         * build-aux/link-warning.h: Include <features.h>.
25612         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
25613         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
25614         Reported by Mike Frysinger <vapier@gentoo.org>.
25615
25616         Ensure that <features.h> is included before __GLIBC__ is tested.
25617         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
25618         Reported by Mike Frysinger <vapier@gentoo.org>.
25619
25620 2010-11-20  Bruno Haible  <bruno@clisp.org>
25621
25622         memmem: Fix autoconf test.
25623         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
25624
25625 2010-11-20  Bruno Haible  <bruno@clisp.org>
25626
25627         Port to uClibc.
25628         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
25629         * lib/fcntl.in.h: Likewise.
25630         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
25631         * lib/mbrtowc.c (mbrtowc): Likewise.
25632         * lib/relocatable.c (find_shared_library_fullname): Likewise.
25633         * lib/strerror_r.c: Likewise.
25634         * lib/unistr/u8-strnlen.c: Likewise.
25635         * lib/vasnprintf.c (decimal_point_char): Likewise.
25636         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25637         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25638         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25639         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
25640         * tests/test-sigaction.c (handler, main): Likewise.
25641         * lib/freading.h: Treat uClibc like a non-glibc platform.
25642         * lib/freading.c: Likewise.
25643         * lib/gettext.h: Likewise.
25644         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
25645         Likewise.
25646         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
25647         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
25648         * lib/propername.c (proper_name_utf8): Likewise.
25649         * lib/spawn.in.h: Likewise.
25650         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
25651         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
25652         mem_cd_iconveh_internal): Likewise.
25653         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
25654         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25655         strstr, strcasestr): Likewise.
25656         * lib/unicodeio.c (unicode_to_mb): Likewise.
25657         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
25658         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
25659         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
25660         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
25661         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
25662         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
25663         * lib/unistr/u8-stpncpy.c: Likewise.
25664         * lib/vasnprintf.c (VASNPRINTF): Likewise.
25665         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
25666         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25667         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25668         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
25669         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
25670         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
25671         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
25672         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
25673         Likewise.
25674         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25675         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25676         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
25677         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25678         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25679         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25680         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25681         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25682         * tests/test-getopt.h (OPTIND_MIN): Likewise.
25683         * tests/test-striconveha.c (main): Likewise.
25684         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25685         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
25686         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
25687         * doc/posix-functions/getline.texi: Likewise.
25688         Reported by Mike Frysinger <vapier@gentoo.org>.
25689
25690 2010-11-20  Bruno Haible  <bruno@clisp.org>
25691
25692         nproc: Fix condition.
25693         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
25694         HAVE_PTHREAD_AFFINITY_NP.
25695
25696 2010-11-20  Bruno Haible  <bruno@clisp.org>
25697
25698         Fix a comment.
25699         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
25700
25701 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
25702
25703         ftoastr: don't assume snprintf
25704         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
25705         Implement a subset of snprintf here, by using sprintf safely.
25706         * modules/ftoastr (Depends-on): Remove snprintf.
25707
25708 2010-11-19  Jim Meyering  <meyering@redhat.com>
25709
25710         test-rename.h: fix compilation failure
25711         * tests/test-rename.h (test_rename): Add omitted "}".
25712
25713 2010-11-17  Jim Meyering  <meyering@redhat.com>
25714
25715         maint.mk: add a URL discussing the no-@acronym policy
25716         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
25717
25718 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
25719
25720         ftoastr: depend on snprintf, improve comments
25721         * lib/ftoastr.c: Also mention Loitsch's draft.
25722         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
25723         needed in the current implementation, but it might simplify
25724         speeding up the code later.
25725         * modules/ftoastr: Depend on snprintf; this improves portability.
25726         Suggested by Bruno Haible in the same email.
25727
25728         ftoastr: port to hosts lacking strtof and strtold
25729         Problem reported by Bruno Haible in
25730         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
25731         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
25732         environment and strtold (and presumably strtof) are not available.
25733         * modules/ftoastr (Files): Add m4/c-strtod.m4.
25734         (configure.ac): Require gl_C99_STRTOLD.
25735
25736 2010-11-18  Bruno Haible  <bruno@clisp.org>
25737
25738         c-strtold: Avoid link error on AIX 7.
25739         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
25740         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
25741         (gl_C_STRTOLD): Test whether strtold_l exists.
25742         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25743
25744 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
25745
25746         intprops: new macro INT_BITS_STRLEN_BOUND
25747         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
25748         ftoastr.h.  This exposes an internal of intprops.h that was formerly
25749         not exposed.  Also, it uses a slightly tighter bound than before;
25750         though this makes no practical difference, we might as well be as
25751         tight as we easily can.
25752
25753         ftoastr: new module, for lossless conversion of floats to short strings
25754         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
25755         * modules/ftoastr: New files.
25756
25757 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
25758
25759         bootstrap: port to Solaris sed
25760         * build-aux/bootstrap (get_version): Port to Solaris sed.
25761         See Ralf Wildenhues's note in
25762         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
25763
25764 2010-11-14  Jim Meyering  <meyering@redhat.com>
25765
25766         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
25767         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
25768         and move definition closer to sole use.
25769
25770 2010-11-13  Jim Meyering  <meyering@redhat.com>
25771
25772         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
25773         Now we require at least autoconf-2.59, which means the work-around
25774         is no longer needed.
25775         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
25776         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25777         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
25778         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
25779         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
25780
25781 2010-11-13  Bruno Haible  <bruno@clisp.org>
25782
25783         rename, renameat: Avoid test failures at NFS mounted locations.
25784         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
25785         functions.
25786         (test_rename): Use assert_nonexistent.
25787         * tests/test-rename.c: Include <dirent.h>.
25788         * tests/test-renameat.c: Likewise.
25789         Reported by Gary V. Vaughan <gary@gnu.org>.
25790
25791         rename, renameat: Document Linux bug with NFS
25792         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
25793         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
25794         * doc/posix-functions/renameat.texi: Likewise.
25795         Suggested by Eric Blake.
25796
25797 2010-11-13  Bruno Haible  <bruno@clisp.org>
25798
25799         rename test: Add comments.
25800         * tests/test-rename.h (test_rename): Add structure and comments.
25801
25802 2010-11-13  Eric Blake  <eblake@redhat.com>
25803
25804         maintainer-makefile: cover a few more files
25805         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
25806         scripts generated within C files, for libvirt.
25807
25808 2010-11-13  Bruno Haible  <bruno@clisp.org>
25809
25810         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
25811         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
25812         character, return the number of bytes that belong together, not always
25813         1.
25814         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
25815         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
25816         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
25817         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
25818         number of bytes of an invalid character.
25819         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
25820         (main): Invoke it.
25821         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
25822         results.
25823         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
25824         malformed byte sequences.
25825         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
25826         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
25827         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
25828         Reported by Ben Pfaff and Paolo Bonzini.
25829
25830 2010-11-13  Bruno Haible  <bruno@clisp.org>
25831
25832         openat: Work around glibc bug with fchownat() and empty file names.
25833         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
25834         (gl_FUNC_FCHOWNAT): Invoke it.
25835         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
25836         * doc/posix-functions/fchownat.texi: Document the glibc bug.
25837         Reported by Gary V. Vaughan <gary@gnu.org>.
25838
25839 2010-11-13  Bruno Haible  <bruno@clisp.org>
25840
25841         openat: Ensure autoconf macro ordering.
25842         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
25843         gl_USE_SYSTEM_EXTENSIONS.
25844         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
25845
25846 2010-11-13  Bruno Haible  <bruno@clisp.org>
25847
25848         Update comments.
25849         * lib/unistr/u8-check.c: Update file name in comments.
25850         * lib/unistr/u8-mblen.c: Likewise.
25851         * lib/unistr/u8-prev.c: Likewise.
25852         * lib/unistr/u8-strmblen.c: Likewise.
25853         * lib/unistr/u8-strmbtouc.c: Likewise.
25854
25855 2010-11-13  Jim Meyering  <meyering@redhat.com>
25856
25857         tests: avoid test failure on Solaris 10 due to lack of PATH export
25858         * tests/test-update-copyright.sh: Don't forget to export PATH.
25859
25860         init.sh: ensure that IFS is defined, just in case...
25861         * tests/init.sh (setup_): Ensure that IFS is defined,
25862         so that saving and restoring it works as expected.  This
25863         appears to be useful at least for an old version of dash
25864         from a long time ago (RH 6).  See here for details:
25865         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
25866
25867         maint.mk: tighten "test a == b" check
25868         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
25869         test to files that contain something like #!/bin/sh.
25870         Without this, coreutils would get two false positives in
25871         the comments of C source files.
25872
25873 2010-11-12  Eric Blake  <eblake@redhat.com>
25874
25875         bootstrap: fix typo in previous attempt
25876         * build-aux/bootstrap (buildreq): Correct the grouping.
25877         Reported by Paul Eggert.
25878
25879         maintainer-makefile: prohibit test x == x
25880         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
25881         Based on a report by Matthias Bolte.
25882
25883         bootstrap: allow FreeBSD gzip
25884         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
25885         which has no '.' and goes to stderr.
25886         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
25887         Reported by Matthias Bolte.
25888
25889         maintainer-makefile: check for i18n setup
25890         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
25891         will likely work.
25892
25893 2010-11-12  Bruno Haible  <bruno@clisp.org>
25894
25895         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
25896         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
25897         * lib/nanosleep.c (nanosleep): Likewise.
25898
25899 2010-11-11  Bruno Haible  <bruno@clisp.org>
25900
25901         fcntl-h: Fix for use of C++ on glibc systems.
25902         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25903         also on glibc systems in C++ mode.
25904         Reported by Gary V. Vaughan <gary@gnu.org>.
25905
25906 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25907
25908         mknod: avoid false failure with dash
25909         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
25910
25911 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
25912
25913         unlink: Fix "is it should" typo in diagnostic.
25914         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
25915         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
25916
25917 2010-11-11  Bruno Haible  <bruno@clisp.org>
25918
25919         Tests for module 'strerror_r-posix'.
25920         * modules/strerror_r-posix-tests: New file.
25921         * tests/test-strerror_r.c: New file.
25922         * tests/test-string-c++.cc: Check the signature of strerror_r.
25923
25924         New module 'strerror_r-posix'.
25925         * lib/string.in.h (strerror_r): New declaration.
25926         * lib/strerror_r.c: New file.
25927         * m4/strerror_r.m4: New file.
25928         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
25929         of strerror_r.
25930         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
25931         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25932         * modules/strerror_r-posix: New file.
25933         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
25934         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25935         * doc/posix-functions/strerror_r.texi: Mention the new module and the
25936         portability problems.
25937
25938 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
25939
25940         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
25941         line is also considered for output. Quoted function name in shell
25942         command, so temporary files for functions like MyClass::operator()
25943         are removed correctly without errors.
25944
25945 2010-11-09  Bruno Haible  <bruno@clisp.org>
25946
25947         * doc/posix-functions/strerror.texi: List more failing platforms.
25948
25949         * doc/posix-functions/strerror.texi: Add a comment.
25950
25951 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
25952
25953         fdopendir: fix bug on MacOS X when low on file descriptors
25954
25955         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
25956         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
25957         All callers changed.
25958         (fdopendir): Invoke save_cwd at the top level, not after using
25959         multiple dup() calls to use up file descriptors.  Then retry
25960         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
25961         less than the maximum number of open file descriptors, because
25962         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
25963         on Mac OS X 10.6.4 for tar 1.24
25964         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
25965         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
25966         and for tar 1.25
25967         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
25968
25969 2010-11-07  Bruno Haible  <bruno@clisp.org>
25970
25971         vasnprintf: Support I flag on glibc systems.
25972         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
25973         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
25974         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
25975         snprintf function.
25976         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
25977         glibc systems.
25978         * tests/test-vasnprintf-posix3.c: New file.
25979         * modules/vasnprintf-posix-tests (Files): Add it.
25980         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
25981
25982 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25983
25984         [html] Fix copy/paste bug: Use unique name for compiler warnings.
25985         * MODULES.html.sh: For compiler warnings, use name
25986         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
25987
25988 2010-11-05  Eric Blake  <eblake@redhat.com>
25989
25990         ceil, floor: avoid spurious failure with icc
25991         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
25992         [denormals-as-zero] when optimizing without -mieee-fp option.
25993         * tests/test-floorf2.c (floorf_reference): Likewise.
25994         * tests/test-ceilf1.c (dummy): New function.
25995         (main): Use it to outsmart icc's optimization.
25996         * tests/test-floorf1.c (dummy, main): Likewise.
25997
25998         tests: require working signbit
25999         * modules/ceilf-tests (Depends-on): Add signbit.
26000         * modules/ceill-tests (Depends-on): Likewise.
26001         * modules/floorf-tests (Depends-on): Likewise.
26002         * modules/floorl-tests (Depends-on): Likewise.
26003         * modules/round-tests (Depends-on): Likewise.
26004         * modules/roundf-tests (Depends-on): Likewise.
26005         * modules/roundl-tests (Depends-on): Likewise.
26006         * modules/trunc-tests (Depends-on): Likewise.
26007         * modules/truncf-tests (Depends-on): Likewise.
26008         * modules/truncl-tests (Depends-on): Likewise.
26009
26010         strtod: work around icc bug
26011         * lib/strtod.c (minus_zero): Define to working value.
26012         (strtod): Use it to avoid icc bug.
26013
26014         copysign: enhance tests
26015         * modules/copysign-tests (Files): Add minus-zero.h.
26016         * tests/test-copysign.c (main): Also test zeros.
26017
26018 2010-11-04  Eric Blake  <eblake@redhat.com>
26019
26020         ceil, floor, round, trunc: enhance tests of -0
26021         * tests/test-ceilf1.c (main): Ensure correct sign of result.
26022         * tests/test-ceill.c (main): Likewise.
26023         * tests/test-floorf1.c (main): Likewise.
26024         * tests/test-floorl.c (main): Likewise.
26025         * tests/test-round1.c (main): Likewise.
26026         * tests/test-roundf1.c (main): Likewise.
26027         * tests/test-roundl.c (main): Likewise.
26028         * tests/test-trunc1.c (main): Likewise.
26029         * tests/test-truncf1.c (main): Likewise.
26030         * tests/test-truncl.c (main): Likewise.
26031
26032 2010-11-04  Eric Blake  <eblake@redhat.com>
26033
26034         frexp, tests: work around ICC bug with -zero
26035         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
26036         works with more compilers.
26037         * tests/minus-zero.h: New file.
26038         * modules/ceilf-tests (Files): Include it.
26039         * modules/ceill-tests (Files): Likewise.
26040         * modules/floorf-tests (Files): Likewise.
26041         * modules/floorl-tests (Files): Likewise.
26042         * modules/frexp-nolibm-tests (Files): Likewise.
26043         * modules/frexp-tests (Files): Likewise.
26044         * modules/frexpl-nolibm-tests (Files): Likewise.
26045         * modules/frexpl-tests (Files): Likewise.
26046         * modules/isnan-tests (Files): Likewise.
26047         * modules/isnand-nolibm-tests (Files): Likewise.
26048         * modules/isnand-tests (Files): Likewise.
26049         * modules/isnanf-nolibm-tests (Files): Likewise.
26050         * modules/isnanf-tests (Files): Likewise.
26051         * modules/isnanl-nolibm-tests (Files): Likewise.
26052         * modules/isnanl-tests (Files): Likewise.
26053         * modules/round-tests (Files): Likewise.
26054         * modules/roundf-tests (Files): Likewise.
26055         * modules/roundl-tests (Files): Likewise.
26056         * modules/ldexpl-tests (Files): Likewise.
26057         * modules/signbit-tests (Files): Likewise.
26058         * modules/snprintf-posix-tests (Files): Likewise.
26059         * modules/sprintf-posix-tests (Files): Likewise.
26060         * modules/strtod-tests (Files): Likewise.
26061         * modules/trunc-tests (Files): Likewise.
26062         * modules/truncf-tests (Files): Likewise.
26063         * modules/truncl-tests (Files): Likewise.
26064         * modules/vsnprintf-posix-tests (Files): Likewise.
26065         * modules/vsprintf-posix-tests (Files): Likewise.
26066         * modules/vasnprintf-posix-tests (Files): Likewise.
26067         * modules/vasprintf-posix-tests (Files): Likewise.
26068         * tests/test-ceilf1.c (main): Use it.
26069         * tests/test-ceill.c (main): Likewise.
26070         * tests/test-floorf1.c (main): Likewise.
26071         * tests/test-floorl.c (main): Likewise.
26072         * tests/test-frexp.c (main): Likewise.
26073         * tests/test-frexpl.c (main): Likewise.
26074         * tests/test-isnan.c (main): Likewise.
26075         * tests/test-isnand.h (main): Likewise.
26076         * tests/test-isnanf.h (main): Likewise.
26077         * tests/test-isnanl.h (main): Likewise.
26078         * tests/test-ldexpl.c (main): Likewise.
26079         * tests/test-round.c (main): Likewise.
26080         * tests/test-roundf.c (main): Likewise.
26081         * tests/test-roundl.c (main): Likewise.
26082         * tests/test-signbit.c (test_signbitf, test_signbitd)
26083         (test_signbitl): Likewise.
26084         * tests/test-snprintf-posix.h (test_function): Likewise.
26085         * tests/test-sprintf-posix.h (test_function): Likewise.
26086         * tests/test-strtod.c (main): Likewise.
26087         * tests/test-trunc1.c (main): Likewise.
26088         * tests/test-truncf1.c (main): Likewise.
26089         * tests/test-truncl.c (main): Likewise.
26090
26091         isnanl: work around icc bug
26092         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
26093
26094 2010-11-03  Eric Blake  <eblake@redhat.com>
26095
26096         tests: fix compiler warnings
26097         * tests/test-getopt.h (test_getopt): Fix condition.
26098         * tests/test-getopt_long.h (test_getopt_long): Likewise.
26099         * tests/test-pipe2.c (main): Likewise.
26100         * tests/test-quotearg-simple.c (main): Avoid icc warning.
26101
26102         utimens: fix broken m4 test
26103         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
26104
26105 2010-10-28  Bruno Haible  <bruno@clisp.org>
26106
26107         posix_spawn*, getdtablesize: Relax license.
26108         * modules/posix_spawn (License): Change to LGPLv2+.
26109         * modules/posix_spawnp (License): Likewise.
26110         * modules/posix_spawn-internal (License): Likewise.
26111         * modules/posix_spawnattr_init (License): Likewise.
26112         * modules/posix_spawnattr_getflags (License): Likewise.
26113         * modules/posix_spawnattr_setflags (License): Likewise.
26114         * modules/posix_spawnattr_getpgroup (License): Likewise.
26115         * modules/posix_spawnattr_setpgroup (License): Likewise.
26116         * modules/posix_spawnattr_getschedparam (License): Likewise.
26117         * modules/posix_spawnattr_setschedparam (License): Likewise.
26118         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
26119         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
26120         * modules/posix_spawnattr_getsigdefault (License): Likewise.
26121         * modules/posix_spawnattr_setsigdefault (License): Likewise.
26122         * modules/posix_spawnattr_getsigmask (License): Likewise.
26123         * modules/posix_spawnattr_setsigmask (License): Likewise.
26124         * modules/posix_spawnattr_destroy (License): Likewise.
26125         * modules/posix_spawn_file_actions_init (License): Likewise.
26126         * modules/posix_spawn_file_actions_addclose (License): Likewise.
26127         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
26128         * modules/posix_spawn_file_actions_addopen (License): Likewise.
26129         * modules/posix_spawn_file_actions_destroy (License): Likewise.
26130         * modules/getdtablesize (License): Likewise.
26131         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
26132
26133 2010-10-26  Bruno Haible  <bruno@clisp.org>
26134
26135         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
26136         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
26137         Cygwin and mingw.
26138         Suggested by Eric Blake.
26139
26140 2010-10-26  Bruno Haible  <bruno@clisp.org>
26141
26142         stdio: Work around compilation error due to renameat() on Solaris 10.
26143         * lib/stdio.in.h: Include <unistd.h> on Solaris.
26144         * lib/renameat.c: Don't include <unistd.h> here.
26145         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
26146         Reported by Paul Eggert and Eric Blake.
26147
26148 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
26149
26150         renameat: port to Solaris 10, which declares renameat in unistd.h
26151
26152         * lib/renameat.c: Include unistd.h before stdio.h, because
26153         Solaris 10 declares renameat in unistd.h.  Problem encountered
26154         when building GNU tar 1.24 on Solaris 10.
26155
26156 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26157
26158         fdopendir: fix C89 compilation
26159         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
26160         compilers.
26161
26162 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
26163
26164         inttostr: simplify by removing unnecessary redundancy
26165         * lib/anytostr.c: Don't include verify.h.
26166         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
26167         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
26168         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
26169         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
26170         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
26171         Likewise.
26172         * modules/inttostr (Depends-on): Remove 'verify'.
26173
26174 2010-10-23  Bruno Haible  <bruno@clisp.org>
26175
26176         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
26177         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
26178         Reported by Eric Blake.
26179
26180 2010-10-23  Bruno Haible  <bruno@clisp.org>
26181
26182         Tests: Fix LOCALE_JA on MirBSD 10.
26183         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
26184         to an UTF-8 locale.
26185         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
26186         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26187         Reported by Eric Blake.
26188
26189 2010-10-21  Bruno Haible  <bruno@clisp.org>
26190
26191         nl_langinfo test: Avoid test failure on NetBSD 5.
26192         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
26193         Reported by Eric Blake.
26194
26195 2010-10-21  Eric Blake  <eblake@redhat.com>
26196
26197         c-stack: work around libsigsegv 2.8 bug
26198         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
26199         overflow on at least PowerPC64.
26200
26201 2010-10-17  Bruno Haible  <bruno@clisp.org>
26202
26203         userspec: Drop redundant file.
26204         * modules/userspec (Files): Remove lib/inttostr.h.
26205
26206 2010-10-17  Bruno Haible  <bruno@clisp.org>
26207
26208         nl_langinfo tests: Silence some warnings.
26209         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
26210         Reported by Jim Meyering.
26211
26212 2010-10-17  Bruno Haible  <bruno@clisp.org>
26213
26214         Make use of GCC's attribute __alloc_size__.
26215         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
26216         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
26217         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
26218         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
26219         __alloc_size__.
26220         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
26221         Suggested by Jim Meyering.
26222
26223 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
26224
26225         bootstrap: anchor .gitignore entries.
26226         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
26227         with...
26228         (insert_vc_ignore): ... this new function, which prepends `/' to
26229         all .gitignore entries before passing them to
26230         insert_sorted_if_absent.
26231
26232 2010-10-16  Bruno Haible  <bruno@clisp.org>
26233
26234         nextafter: Fix configure check.
26235         * modules/nextafter (configure.ac): Correct expected prototype.
26236
26237 2010-10-16  Bruno Haible  <bruno@clisp.org>
26238
26239         termios: Update documentation.
26240         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
26241
26242 2010-10-16  Bruno Haible  <bruno@clisp.org>
26243
26244         tests: Make them compile with TinyCC.
26245         * tests/test-strstr.c (main): Remove parentheses around array
26246         initializer.
26247
26248 2010-10-15  Eric Blake  <eblake@redhat.com>
26249
26250         ignore-value: make header idempotent
26251         * lib/ignore-value.h: Add double-inclusion guards.
26252         Reported by Stefan Berger.
26253
26254 2010-10-15  Jim Meyering  <meyering@redhat.com>
26255
26256         GNUmakefile: handle "stable" target, not "major"
26257         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
26258         lists in maint.mk and announce-gen.  Without this, "make stable"
26259         would fail to ensure that $(VERSION) is up to date.
26260
26261 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
26262
26263         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
26264         & co.
26265
26266 2010-10-14  Bruno Haible  <bruno@clisp.org>
26267
26268         vasnprintf: Don't set errno to 0.
26269         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
26270         block that sets it to 0.
26271         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
26272
26273 2010-10-14  Bruno Haible  <bruno@clisp.org>
26274
26275         socketlib: Fix.
26276         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
26277         gl_PREREQ_SYS_H_WINSOCK2.
26278         Reported by Ian Beckwith <ianb@erislabs.net>.
26279
26280 2010-10-13  Jim Meyering  <meyering@redhat.com>
26281
26282         test-select-stdin.c: avoid warn_unused_result warnings
26283         * tests/test-select-stdin.c: Include "macros.h".
26284         ASSERT that read and fflush succeed.
26285
26286 2010-10-13  Jim Meyering  <meyering@redhat.com>
26287
26288         git-version-gen: do require git-VC'd files in cwd
26289         * build-aux/git-version-gen: Reject a git version string
26290         if there are no commits associated with the current directory.
26291         This avoids an unlikely false-positive (unrelated dir whose parent
26292         repository also contains a tag matching v*), as pointed out
26293         by Giuseppe Scrivano in
26294         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
26295
26296 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26297
26298         argv-iter: omit nonconforming declaration
26299         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
26300         enum arg_iter_err declaration, which doesn't conform to C99.
26301         Solaris 10 cc warns about this.
26302
26303 2010-10-13  Eric Blake  <eblake@redhat.com>
26304
26305         termios: fix compilation on mingw
26306         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
26307         (gl_TERMIOS_H): Adjust it on mingw.
26308         * modules/termios (Makefile.am): Substitute new key.
26309         * lib/termios.in.h (includes): Make include_next conditional.
26310         * doc/posix-headers/termios.texi (termios.h): Update
26311         documentation.
26312         Reported by Daniel P. Berrange.
26313
26314 2010-10-13  Jim Meyering  <meyering@redhat.com>
26315
26316         git-version-gen: don't require that .git/ be in the current dir
26317         * build-aux/git-version-gen: Adjust this script so that it works
26318         when run from any working directory beneath the top-level .git/-
26319         containing directory.  Inspired by a patch from Giuseppe Scrivano,
26320         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
26321
26322         test-select: avoid warn_unused_result warnings
26323         * tests/test-select.c: Include "macros.h".
26324         ASSERT that each call to read, write, and pipe succeeds.
26325         While not technically required, also check each "close".
26326         * modules/select-tests (Files): Add tests/macros.h.
26327
26328         test-symlinkat: remove declaration of unused local
26329         * tests/test-symlinkat.c (main): Remove unused local, "buf".
26330
26331         test-inttostr: avoid shadowing warnings
26332         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
26333         and use malloc rather than the stack for the same reason as
26334         mentioned in the comment justifying the other allocation.
26335
26336 2010-10-11  Bruno Haible  <bruno@clisp.org>
26337
26338         stdlib: Allow multiple gnulib generated replacements to coexist.
26339         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
26340         Reported by Sam Steingold <sds@gnu.org>.
26341
26342 2010-10-11  Jim Meyering  <meyering@redhat.com>
26343
26344         fix a documentation typo
26345         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
26346
26347 2010-10-11  Eric Blake  <eblake@redhat.com>
26348
26349         futimens: work around Solaris 11 bug
26350         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
26351         * tests/test-futimens.h (test_futimens): Enhance, rather than
26352         weaken test.
26353         * doc/posix-functions/futimens.texi (futimens): Document the bug.
26354
26355 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
26356
26357         Indentation.
26358         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
26359         higher-level operators more to the left.
26360
26361 2010-10-11  Jim Meyering  <meyering@redhat.com>
26362
26363         test-futimens: avoid unwarranted test failure on Solaris 5.11
26364         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
26365         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
26366         because it tries to dereference the NULL name argument.
26367
26368 2010-10-11  Bruno Haible  <bruno@clisp.org>
26369
26370         Indentation.
26371         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
26372         indentation.
26373
26374 2010-10-11  Jim Meyering  <meyering@redhat.com>
26375
26376         spawn.in.h: make indentation consistent with parentheses
26377         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
26378         Make indentation consistent with parentheses.
26379
26380 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
26381
26382         Fix mismatched parens in previous commit
26383         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
26384         parens.
26385
26386 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
26387
26388         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
26389
26390         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
26391         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
26392         * lib/malloca.c: Include "verify.h".
26393         (verify1): Remove, replacing with a verify call.
26394         * lib/relocwrapper.c (verify1): Likewise.
26395         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
26396         Likewise.
26397         * modules/malloca (Depends-on): Add 'verify'.
26398         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
26399         * modules/vasnprintf (Depends-on): Add 'verify'.
26400         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26401         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26402         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26403         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26404         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26405         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26406         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26407
26408         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
26409
26410         Formerly the style was sometimes 2*X - 1, because the C standard
26411         was wrongly thought to disallow ?: in integral constant expressions.
26412         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
26413         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
26414         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
26415         * lib/stdint.in.h (_verify_intmax_size): Likewise.
26416         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
26417         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
26418         verify that time_t cannot be floating.
26419
26420 2010-10-08  Eric Blake  <eblake@redhat.com>
26421
26422         time: enforce recent POSIX ruling that time_t is integral
26423         * lib/time.in.h (__time_t_must_be_integral): Detect any
26424         problematic systems, allowing the rest of gnulib to assume POSIX.
26425
26426 2010-10-08  Jim Meyering  <meyering@redhat.com>
26427
26428         fdopendir: fix a bug on systems lacking openat and /proc support
26429         OpenBSD 4.7 is one such system.  The most noticeable effect was
26430         failure of any application making nontrivial use of fts: rm, du,
26431         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
26432           ./rm: traversal failed: `a': Bad file descriptor
26433         Debugging that, you see that even though FD 6 was closed just
26434         prior to the opendir call in fd_clone_opendir, its resulting
26435         dir->dd_fd was 8, rather than the expected value of 6:
26436
26437         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
26438         93                close (fd);
26439         (gdb) n
26440         94                dir = fd_clone_opendir (dupfd);
26441         (gdb) n
26442         95                saved_errno = errno;
26443         (gdb) p dir->dd_fd
26444         $11 = 8
26445
26446         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
26447         The problem is that on OpenBSD, fd_clone_opendir has to resort
26448         to using the old-style save/restore CWD mechanism, due to its
26449         lack of openat/proc support, and *that* would steal the FD (6)
26450         that opendir was supposed to use.
26451
26452         The fix is to squirrel away the desired FD so that save_cwd uses a
26453         different one, and then free the dest FD right before calling opendir.
26454         That guarantees opendir will use the required file descriptor.
26455
26456         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
26457
26458 2010-10-08  Bruno Haible  <bruno@clisp.org>
26459
26460         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
26461         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
26462
26463 2010-10-08  Bruno Haible  <bruno@clisp.org>
26464
26465         nanosleep: Make replacement POSIX compliant.
26466         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
26467         is out of range.
26468         Reported by Jim Meyering.
26469
26470 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
26471
26472         bootstrap: add hook for altering gnulib.mk, for Bison
26473         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
26474         the Bison bootstrapping process can rewrite file names and variables
26475         in this file before later parts of 'bootstrap' use the file.
26476         Bison wants to include lib/gnulib.mk from the top-level makefile,
26477         so it needs the file names in this file to be relative to the top
26478         level, not relative to lib; plus it needs variable names to be
26479         rewritten.
26480         (slurp): Use the new function.
26481
26482         bootstrap: reformat for readability
26483         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
26484
26485 2010-10-08  Eric Blake  <eblake@redhat.com>
26486
26487         docs: update cygwin progress
26488         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
26489         1.7.7.
26490         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
26491         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
26492         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
26493         * doc/posix-functions/carg.texi (carg): Likewise.
26494         * doc/posix-functions/cargf.texi (cargf): Likewise.
26495         * doc/posix-functions/casin.texi (casin): Likewise.
26496         * doc/posix-functions/casinf.texi (casinf): Likewise.
26497         * doc/posix-functions/casinh.texi (casinh): Likewise.
26498         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
26499         * doc/posix-functions/catan.texi (catan): Likewise.
26500         * doc/posix-functions/catanf.texi (catanf): Likewise.
26501         * doc/posix-functions/catanh.texi (catanh): Likewise.
26502         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
26503         * doc/posix-functions/ccos.texi (ccos): Likewise.
26504         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
26505         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
26506         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
26507         * doc/posix-functions/cexp.texi (cexp): Likewise.
26508         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
26509         * doc/posix-functions/cimag.texi (cimag): Likewise.
26510         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
26511         * doc/posix-functions/clog.texi (clog): Likewise.
26512         * doc/posix-functions/clogf.texi (clogf): Likewise.
26513         * doc/posix-functions/conj.texi (conj): Likewise.
26514         * doc/posix-functions/conjf.texi (conjf): Likewise.
26515         * doc/posix-functions/cpow.texi (cpow): Likewise.
26516         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
26517         * doc/posix-functions/cproj.texi (cproj): Likewise.
26518         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
26519         * doc/posix-functions/creal.texi (creal): Likewise.
26520         * doc/posix-functions/crealf.texi (crealf): Likewise.
26521         * doc/posix-functions/csin.texi (csin): Likewise.
26522         * doc/posix-functions/csinf.texi (csinf): Likewise.
26523         * doc/posix-functions/csinh.texi (csinh): Likewise.
26524         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
26525         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
26526         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
26527         * doc/posix-functions/ctan.texi (ctan): Likewise.
26528         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
26529         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
26530         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
26531         * doc/posix-headers/complex.texi (complex.h): Likewise.
26532
26533 2010-10-07  Jim Meyering  <meyering@redhat.com>
26534
26535         parse-datetime: avoid compilation failure on OpenBSD 4.7
26536         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
26537         This works around a compilation failure on OpenBSD 4.7:
26538         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
26539
26540 2010-10-07  Eric Blake  <eblake@redhat.com>
26541
26542         docs: update cygwin progress
26543         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
26544         1.7.6.
26545         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
26546         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
26547         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
26548         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
26549         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
26550         Likewise.
26551         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
26552         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
26553         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
26554         Likewise.
26555         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
26556         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
26557         Likewise.
26558         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
26559         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
26560         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
26561         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
26562         Likewise.
26563         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
26564         Likewise.
26565         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
26566
26567         docs: update parse-datetime history
26568         * doc/parse-datetime.texi (Authors of parse_datetime): Better
26569         documentation of this function's history and alternatives.
26570
26571         cygwin: use more robust version check
26572         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
26573         exclude an eventual cygwin 1.9.1.
26574         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26575         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
26576         (gl_FUNC_STRCASESTR): Likewise.
26577         Reported by Bruno Haible.
26578
26579 2010-10-06  Bruno Haible  <bruno@clisp.org>
26580
26581         string, sys_select: Avoid #including large headers unless necessary.
26582         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
26583         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
26584         OSF/1, BeOS, Haiku.
26585         Reported by Jim Meyering.
26586
26587 2010-10-05  Eric Blake  <eblake@redhat.com>
26588
26589         memmem, strstr, strcasestr: fix bug with long periodic needle
26590         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
26591         periodic needle having false positive.
26592         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
26593         and cygwin 1.7.7.
26594         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
26595         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
26596         (gl_FUNC_STRCASESTR): Likewise.
26597         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26598         * tests/test-memmem.c (main): Expose the bug.
26599         * tests/test-strcasestr.c (main): Likewise.
26600         * tests/test-strstr.c (main): Likewise.
26601         * tests/test-c-strcasestr.c (main): Likewise.
26602         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
26603         * doc/posix-functions/strstr.texi (strstr): Likewise.
26604         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
26605         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
26606
26607 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26608
26609         parse-datetime: do some more renaming
26610         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
26611         parse_datetime, not get_date.  Mention the renaming.
26612         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
26613         in comments.
26614         * m4/bison.m4: Likewise.
26615
26616 2010-10-05  Eric Blake  <eblake@redhat.com>
26617
26618         parse-datetime: better name than get_date
26619         * NEWS: Reword the deprecation notice.
26620         * modules/get_date: Rename to modules/parse-datetime.
26621         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
26622         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
26623         * lib/get_date.y: Rename to lib/parse-datetime.y.
26624         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
26625         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
26626         * doc/getdate.texi: Provide fallback wrapper.
26627         * lib/getdate.h: Move guts, and wrap...
26628         * lib/parse-datetime.h: ...new file.
26629         * lib/parse-datetime.y (get_date): Rename...
26630         (parse_datetime): ...to this.
26631         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
26632         (gl_PARSE_DATETIME): ...to this.
26633         * doc/posix-functions/getdate.texi (get_date): Provide fallback
26634         documentation.
26635         * modules/getdate (Files): Provide fallback docs and header.
26636         (Notice, Depends-on): Update references.
26637         * tests/test-parse-datetime.c: Likewise.
26638         * DEPENDENCIES: Likewise.
26639         * MODULES.html.sh (Date and time <time.h>): Likewise.
26640         * doc/parse-datetime.texi (Date input formats)
26641         (Authors of parse_datetime): Likewise.
26642         * modules/parse-datetime (Files, configure.ac, Makefile.am)
26643         (Include): Likewise.
26644         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
26645         * gnulib-tool: Likewise.
26646         * m4/bison.m4 (gl_BISON): Likewise.
26647         Suggested by Bruno Haible.
26648
26649 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26650
26651         more ports to Solaris tr, which needs [] around ranges
26652         * gnulib-tool: Solaris tr needs [] around ranges.
26653         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26654         * tests/test-pipe-filter-gi1.c (main): Likewise.
26655         * tests/test-pipe-filter-ii1.c (main): Likewise.
26656
26657 2010-10-05  Eric Blake  <eblake@redhat.com>
26658
26659         bootstrap: fix Solaris regression
26660         * build-aux/bootstrap (check_versions): Solaris tr still needs []
26661         around ranges.
26662         Reported by Pádraig Brady.
26663
26664         bootstrap: work with pkg-config
26665         * build-aux/bootstrap (check_versions): Also transliterate - in
26666         prerequisite name.
26667         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
26668         prerequisites that were already found, to avoid confusion.
26669         Reported by Justin Clift.
26670
26671         faccessat: remove unused wrappers
26672         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
26673         presence of these wrappers dragged in -lgen on Solaris.
26674         Reported by Clemens Brogi; fix suggested by Paul Eggert.
26675
26676 2010-10-05  Jim Meyering  <meyering@redhat.com>
26677
26678         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
26679         * Makefile (sc_pragma_columns): New syntax-check rule.
26680
26681 2010-10-04  Bruno Haible  <bruno@clisp.org>
26682
26683         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
26684         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
26685         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
26686         Reported by Bruce Korb and Eric Blake.
26687
26688 2010-10-04  Bruno Haible  <bruno@clisp.org>
26689
26690         threadlib: Make option --with-libpth-prefix work.
26691         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
26692         use $LIBPTH, not just -lpth.
26693
26694 2010-10-04  Bruno Haible  <bruno@clisp.org>
26695
26696         Avoid line length limitation from HP NonStop system header files.
26697         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
26698         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
26699         * lib/ctype.in.h: Likewise.
26700         * lib/dirent.in.h: Likewise.
26701         * lib/errno.in.h: Likewise.
26702         * lib/fcntl.in.h: Likewise.
26703         * lib/float.in.h: Likewise.
26704         * lib/getopt.in.h: Likewise.
26705         * lib/iconv.in.h: Likewise.
26706         * lib/inttypes.in.h: Likewise.
26707         * lib/langinfo.in.h: Likewise.
26708         * lib/locale.in.h: Likewise.
26709         * lib/math.in.h: Likewise.
26710         * lib/netdb.in.h: Likewise.
26711         * lib/netinet_in.in.h: Likewise.
26712         * lib/poll.in.h: Likewise.
26713         * lib/pthread.in.h: Likewise.
26714         * lib/pty.in.h: Likewise.
26715         * lib/sched.in.h: Likewise.
26716         * lib/se-selinux.in.h: Likewise.
26717         * lib/search.in.h: Likewise.
26718         * lib/signal.in.h: Likewise.
26719         * lib/spawn.in.h: Likewise.
26720         * lib/stdarg.in.h: Likewise.
26721         * lib/stddef.in.h: Likewise.
26722         * lib/stdint.in.h: Likewise.
26723         * lib/stdio.in.h: Likewise.
26724         * lib/stdlib.in.h: Likewise.
26725         * lib/string.in.h: Likewise.
26726         * lib/strings.in.h: Likewise.
26727         * lib/sys_file.in.h: Likewise.
26728         * lib/sys_ioctl.in.h: Likewise.
26729         * lib/sys_select.in.h: Likewise.
26730         * lib/sys_socket.in.h: Likewise.
26731         * lib/sys_stat.in.h: Likewise.
26732         * lib/sys_time.in.h: Likewise.
26733         * lib/sys_times.in.h: Likewise.
26734         * lib/sys_utsname.in.h: Likewise.
26735         * lib/sys_wait.in.h: Likewise.
26736         * lib/sysexits.in.h: Likewise.
26737         * lib/termios.in.h: Likewise.
26738         * lib/time.in.h: Likewise.
26739         * lib/unistd.in.h: Likewise.
26740         * lib/wchar.in.h: Likewise.
26741         * lib/wctype.in.h: Likewise.
26742         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
26743         * modules/ctype (Makefile.am): Likewise.
26744         * modules/dirent (Makefile.am): Likewise.
26745         * modules/errno (Makefile.am): Likewise.
26746         * modules/fcntl-h (Makefile.am): Likewise.
26747         * modules/float (Makefile.am): Likewise.
26748         * modules/getopt-posix (Makefile.am): Likewise.
26749         * modules/iconv-h (Makefile.am): Likewise.
26750         * modules/inttypes (Makefile.am): Likewise.
26751         * modules/langinfo (Makefile.am): Likewise.
26752         * modules/locale (Makefile.am): Likewise.
26753         * modules/math (Makefile.am): Likewise.
26754         * modules/netdb (Makefile.am): Likewise.
26755         * modules/netinet_in (Makefile.am): Likewise.
26756         * modules/poll-h (Makefile.am): Likewise.
26757         * modules/pthread (Makefile.am): Likewise.
26758         * modules/pty (Makefile.am): Likewise.
26759         * modules/sched (Makefile.am): Likewise.
26760         * modules/search (Makefile.am): Likewise.
26761         * modules/selinux-h (Makefile.am): Likewise.
26762         * modules/signal (Makefile.am): Likewise.
26763         * modules/spawn (Makefile.am): Likewise.
26764         * modules/stdarg (Makefile.am): Likewise.
26765         * modules/stddef (Makefile.am): Likewise.
26766         * modules/stdint (Makefile.am): Likewise.
26767         * modules/stdio (Makefile.am): Likewise.
26768         * modules/stdlib (Makefile.am): Likewise.
26769         * modules/string (Makefile.am): Likewise.
26770         * modules/strings (Makefile.am): Likewise.
26771         * modules/sys_file (Makefile.am): Likewise.
26772         * modules/sys_ioctl (Makefile.am): Likewise.
26773         * modules/sys_select (Makefile.am): Likewise.
26774         * modules/sys_socket (Makefile.am): Likewise.
26775         * modules/sys_stat (Makefile.am): Likewise.
26776         * modules/sys_time (Makefile.am): Likewise.
26777         * modules/sys_times (Makefile.am): Likewise.
26778         * modules/sys_utsname (Makefile.am): Likewise.
26779         * modules/sys_wait (Makefile.am): Likewise.
26780         * modules/sysexits (Makefile.am): Likewise.
26781         * modules/termios (Makefile.am): Likewise.
26782         * modules/time (Makefile.am): Likewise.
26783         * modules/unistd (Makefile.am): Likewise.
26784         * modules/wchar (Makefile.am): Likewise.
26785         * modules/wctype (Makefile.am): Likewise.
26786
26787 2010-10-04  Bruno Haible  <bruno@clisp.org>
26788
26789         read-file tests: Avoid a test failure on NonStop Kernel.
26790         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
26791         a regular file.
26792         Reported by Joachim Schmitz <schmitz@hp.com>.
26793
26794 2010-10-03  Bruno Haible  <bruno@clisp.org>
26795
26796         gnulib-tool: Fixes for --create-testdir with --libtool.
26797         * gnulib-tool (func_get_automake_snippet): Don't augment
26798         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
26799         an executable.
26800         (func_create_testdir): Handle module 'alloca' like func_import.
26801         Reported by Bruce Korb <bruce.korb@gmail.com>.
26802
26803 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
26804
26805         Avoid some lines longer than 80 characters.
26806         * lib/stdint.in.h: Break long comment lines.
26807         * lib/math.in.h: Likewise.
26808         (_GL_NUM_UINT_WORDS): New macro, for readability.
26809         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
26810         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
26811         * lib/stdlib.in.h: Likewise.
26812         * lib/spawn.in.h: Likewise.
26813         * lib/sys_socket.in.h: Update an URL.
26814         * lib/sys_stat.in.h: Break long line.
26815
26816 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
26817
26818         Improve pmccabe2html.
26819         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
26820         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
26821         when the sources change. Remove the line in the HTML about "Used
26822         ranges" (which implied that there might be other unused ranges),
26823         rename "Resume" to "Summary" (easier to understand for more users).
26824         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
26825         styles, and some unnecessary blank lines.
26826
26827 2010-10-03  Bruno Haible  <bruno@clisp.org>
26828             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
26829
26830         acl: Add support for ACLs on NonStop Kernel.
26831         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
26832         Check whether the function aclsort() exists.
26833         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
26834         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
26835         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26836         (acl_nontrivial [HAVE_ACLSORT]: New function.
26837         (file_has_acl): Implement for NonStop Kernel.
26838         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26839         (qset_acl): Implement for NonStop Kernel.
26840         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
26841         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26842         (main): Implement for NonStop Kernel.
26843         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
26844         Kernel. Handle this flavor.
26845         * tests/test-set-mode-acl.sh: Likewise.
26846         * tests/test-copy-acl.sh: Likewise.
26847         * tests/test-copy-file.sh: Likewise.
26848
26849 2010-10-03  Bruno Haible  <bruno@clisp.org>
26850
26851         Info about ACLs on NonStop Kernel.
26852         * doc/acl-resources.txt: Add info about NonStop Kernel.
26853         References by Joachim Schmitz <schmitz@hp.com>.
26854
26855 2010-10-02  Bruno Haible  <bruno@clisp.org>
26856
26857         Define missing EDQUOT on NonStop Kernel.
26858         * lib/errno.in.h (EDQUOT): Assign a value if missing.
26859         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
26860         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
26861         missing.
26862         * doc/posix-headers/errno.texi: Mention the NSK bug.
26863         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
26864         Reported by Joachim Schmitz <schmitz@hp.com>.
26865
26866 2010-10-02  Bruno Haible  <bruno@clisp.org>
26867
26868         Update doc for POSIX:2008.
26869         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
26870         Update URL of POSIX specification.
26871
26872 2010-10-02  Bruno Haible  <bruno@clisp.org>
26873
26874         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
26875         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
26876         from gnulib, not from Automake.
26877
26878 2010-10-02  Bruno Haible  <bruno@clisp.org>
26879
26880         New module 'system-posix'.
26881         * modules/system-posix: New file.
26882         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
26883         module is present.
26884         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
26885         GNULIB_SYSTEM_POSIX.
26886         * modules/stdlib (Depends-on): Remove sys_wait.
26887         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
26888         * doc/posix-functions/system.texi: Mention the new module.
26889         * doc/posix-headers/stdlib.texi: Likewise.
26890         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
26891         define test_sys_wait_macros to a no-op.
26892         Reported by Sam Steingold <sds@gnu.org>.
26893
26894 2010-09-30  Bruno Haible  <bruno@clisp.org>
26895
26896         More renaming from 'getdate' to 'get_date'.
26897         * doc/get_date.texi: Renamed from doc/getdate.texi.
26898         * modules/get_date (Files): Update.
26899         * MODULES.html.sh (Date and time <time.h>): Update.
26900         * DEPENDENCIES: Update.
26901         * gnulib-tool: Update comment.
26902         * m4/bison.m4 (gl_BISON): Likewise.
26903         * m4/get_date.m4 (gl_GET_DATE): Likewise.
26904
26905 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
26906
26907         bootstrap: support ACLOCAL_FLAGS during aclocal
26908         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
26909         can add additional -I dir for third-party .m4 files.
26910
26911 2010-09-30  Eric Blake  <eblake@redhat.com>
26912
26913         bootstrap: use glibtoolize on MacOS
26914         * build-aux/bootstrap (check_versions): Convert libtool into
26915         libtoolize.
26916         (tool search): Move libtool check earlier, and look for
26917         glibtoolize for MacOS.
26918         (gnulib_tool_options): Auto-add --libtool when appropriate.
26919         Reported by Justin Clift.
26920
26921         poll: fix typo that broke test on MacOS
26922         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
26923         Reported by Justin Clift.
26924
26925         getdate: rename to get_date
26926         Note: getdate.h is not renamed, to minimize client impact.
26927         * modules/getdate: Mark obsolete.  Move old contents...
26928         * modules/get_date: ...to new module name.
26929         * modules/getdate-tests: Move...
26930         * modules/get_date-tests: ...here.
26931         * m4/getdate.m4: Move...
26932         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
26933         * lib/getdate.y: Move...
26934         * lib/get_date.y: ...here.
26935         * tests/test-getdate.c: Move...
26936         * tests/test-get_date.c: ...here.
26937         * doc/posix-functions/getdate.texi (getdate): Update name.
26938         * NEWS: Mention the change.
26939
26940 2010-09-29  Bruno Haible  <bruno@clisp.org>
26941
26942         Separate the module 'waitpid' from the module 'sys_wait'.
26943         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
26944         present.
26945         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
26946         gl_MODULE_INDICATOR_FOR_TESTS.
26947         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
26948         * modules/sys_wait (Depends-on): Remove waitpid.
26949         (Makefile.am): Substitute GNULIB_WAITPID.
26950         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
26951         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
26952         signature only if the 'waitpid' module is present.
26953         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
26954         * NEWS: Mention the change.
26955         * modules/grantpt (Depends-on): Add waitpid.
26956         * modules/wait-process (Depends-on): Likewise.
26957
26958 2010-09-29  Bruno Haible  <bruno@clisp.org>
26959
26960         More tests for module 'sys_wait'.
26961         * modules/sys_wait-c++-tests: New file.
26962         * tests/test-sys_wait-c++.cc: New file.
26963         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
26964         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26965
26966 2010-09-29  Bruno Haible  <bruno@clisp.org>
26967
26968         New module 'waitpid'.
26969         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
26970         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
26971         Don't include <process.h>.
26972         (waitpid): Declare only, using modern idiom.
26973         * m4/waitpid.m4: New file.
26974         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
26975         * modules/waitpid: New file.
26976         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
26977         (Makefile.am): Update.
26978         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26979
26980 2010-09-28  Bruno Haible  <bruno@clisp.org>
26981
26982         poll: Assume ANSI C.
26983         * lib/poll.c (poll): Use an ANSI C declaration.
26984
26985 2010-09-28  Bruno Haible  <bruno@clisp.org>
26986
26987         poll-h: Create poll.h on all platforms.
26988         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
26989         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
26990         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
26991         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
26992         (gl_REPLACE_POLL_H): Don't set POLL_H.
26993         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
26994         * modules/poll-h (Depends-on): Add include_next.
26995         (Makefile.am): Create poll.h unconditionally. Substitute also
26996         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
26997
26998 2010-09-28  Bruno Haible  <bruno@clisp.org>
26999
27000         Tests for module 'poll-h'.
27001         * modules/poll-h-c++-tests: New file.
27002         * tests/test-poll-h-c++.cc: New file.
27003
27004         Tests for module 'poll-h'.
27005         * modules/poll-h-tests: New file.
27006         * tests/test-poll-h.c: New file.
27007
27008 2010-09-28  Bruno Haible  <bruno@clisp.org>
27009
27010         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
27011         * modules/poll-h (Depends-on): Add 'extensions'.
27012
27013 2010-09-28  Bruno Haible  <bruno@clisp.org>
27014
27015         New module 'poll-h'.
27016         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
27017         (poll): Use modern idiom.
27018         * modules/poll-h: New file.
27019         * modules/poll (Files): Remove lib/poll.in.h.
27020         (Depends-on): Add poll-h.
27021         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
27022         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
27023         * m4/poll_h.m4: New file.
27024         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
27025         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
27026         and invoke gl_REPLACE_POLL_H.
27027         * lib/poll.c: Use common idiom.
27028         * tests/test-poll.c: Likewise.
27029         * doc/posix-headers/poll.texi: Mention the poll-h module.
27030         Suggested by Eric Blake.
27031
27032 2010-09-26  Bruno Haible  <bruno@clisp.org>
27033
27034         sys_wait: Implement WSTOPSIG.
27035         * lib/sys_wait.in.h (WSTOPSIG): New macro.
27036         Reported by Simon Josefsson.
27037
27038 2010-09-26  Simon Josefsson  <simon@josefsson.org>
27039
27040         stdlib, sys_wait: Avoid compilation error on mingw.
27041         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
27042
27043 2010-09-26  Bruno Haible  <bruno@clisp.org>
27044
27045         stdlib tests: Avoid code duplication.
27046         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
27047         * modules/sys_wait-tests (Files): Likewise.
27048         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
27049         * tests/test-stdlib.c: Include test-sys_wait.h.
27050         (main): Invoke test_sys_wait_macros.
27051         * tests/test-sys_wait.c: Include test-sys_wait.h.
27052         (main): Invoke test_sys_wait_macros.
27053
27054 2010-09-25  Simon Josefsson  <simon@josefsson.org>
27055
27056         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
27057         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
27058         sure Windows sockets are working before calling getaddrinfo.
27059         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
27060         * doc/gnulib.texi (Windows sockets): Fix typo.
27061
27062 2010-09-25  Bruno Haible  <bruno@clisp.org>
27063
27064         Tests for module 'regex-quote'.
27065         * modules/regex-quote-tests: New file.
27066         * tests/test-regex-quote.c: New file.
27067
27068         New module 'regex-quote'.
27069         * lib/regex-quote.h: New file.
27070         * lib/regex-quote.c: New file.
27071         * modules/regex-quote: New file.
27072         Suggested by Reuben Thomas <rrt@sc3d.org>.
27073
27074 2010-09-24  Bruno Haible  <bruno@clisp.org>
27075
27076         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
27077         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
27078
27079 2010-09-23  Bruno Haible  <bruno@clisp.org>
27080
27081         setenv: Relax license.
27082         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
27083         Blake.
27084         Requested by Eric Blake.
27085
27086 2010-09-22  Bruno Haible  <bruno@clisp.org>
27087
27088         termios: Relax license.
27089         * modules/termios (License): Change to LGPLv2+.
27090         Requested by Eric Blake.
27091
27092 2010-09-22  Bruno Haible  <bruno@clisp.org>
27093
27094         threadlib: Allow the package to change the default to 'no'.
27095         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
27096         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
27097         Reported by Paul Eggert.
27098
27099 2010-09-22  Pádraig Brady  <P@draigbrady.com>
27100             Bruno Haible  <bruno@clisp.org>
27101
27102         Fix endless loop in mbmemcasecoll.
27103         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
27104         byte.
27105         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
27106
27107 2010-09-22  Bruno Haible  <bruno@clisp.org>
27108
27109         Tests for module 'memcoll'.
27110         * modules/memcoll-tests: New file.
27111         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
27112
27113         memcoll, xmemcoll: Clarify size vs. length.
27114         * modules/memcoll.c (memcoll0): Clarify specification.
27115         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
27116         passed to collate_error.
27117
27118 2010-09-22  Bruno Haible  <bruno@clisp.org>
27119
27120         Tests for module 'memcasecmp'.
27121         * modules/memcasecmp-tests: New file.
27122         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
27123
27124 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27125
27126         * lib/pthread.in.h: Add split double-inclusion guard, and include
27127         system <pthread.h> if there is one.  Use @@-style as in other
27128         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
27129         pthread.h doesn't.
27130         (pthread_mutexattr_destroy, pthread_mutexattr_init):
27131         (pthread_mutexattr_settype, pthread_mutex_trylock):
27132         New static inline functions, if there's no system <pthread.h>.
27133         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
27134         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
27135         Approximate with mutexes if the system lacks spinlocks, as in
27136         MacOS.
27137         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
27138         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
27139         @@-style.  Check for spinlocks separately.
27140         (gl_PTHREAD_DEFAULTS): New macro.
27141         * modules/pthread: Redo to use a more typical style for in.h files.
27142
27143 2010-09-21  Eric Blake  <eblake@redhat.com>
27144
27145         net_if: enhance tests
27146         * tests/test-net_if.c (main): Move signature checks earlier.
27147         Print failures to stderr.
27148         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
27149         Document the bug that we do not yet fix.
27150
27151 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
27152
27153         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
27154         about gnulib, not GSS.
27155
27156 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
27157
27158         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
27159         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
27160         for Emacs.
27161         * build-aux/pmccabe2html: Make Makefile.am example code more
27162         cut-and-paste friendly.
27163
27164 2010-09-21  Simon Josefsson  <simon@josefsson.org>
27165
27166         * tests/test-net_if.c: New file.
27167         * modules/net_if-tests: New file.
27168
27169 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
27170
27171         pthread: add pthread_spin_destroy
27172         * lib/pthread.in.h (pthread_spin_destroy): New function.
27173
27174 2010-09-19  Bruno Haible  <bruno@clisp.org>
27175
27176         gnulib-tool: Fix --help output.
27177         * gnulib-tool (func_usage): Fix help message.
27178         Reported by Reuben Thomas <rrt@sc3d.org>.
27179
27180 2010-09-18  Jim Meyering  <meyering@redhat.com>
27181
27182         maint.mk: avoid unexpanded \n in two diagnostics
27183         * top/maint.mk (sc_prohibit_always_true_header_tests):
27184         Don't use a literal \n in a halt=... assignment.  It would not be
27185         expanded, and the two \n bytes would appear in the diagnostic output
27186         rather than the desired newline.  Use halt=$$(printf ... instead.
27187         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
27188
27189 2010-09-18  Bruno Haible  <bruno@clisp.org>
27190
27191         netinet_in: Doc tweak.
27192         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
27193         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27194
27195 2010-09-18  Jim Meyering  <meyering@redhat.com>
27196
27197         init.sh: correct an outdated comment
27198         * tests/init.sh (create_exe_shims_):  s/function/alias/
27199
27200         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
27201         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
27202         a file named "*.exe" is removed between the glob expansion and the
27203         processing of that oddly named file.
27204
27205 2010-09-17  Eric Blake  <eblake@redhat.com>
27206
27207         mirbsd: add some more support
27208         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
27209         in BSD family.
27210         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
27211         devices as OpenBSD.
27212         * m4/host-os.m4 (mirbsd): Add MirBSD.
27213
27214         tests: fix unportable assumption on sys/wait.h
27215         * tests/test-sys_wait.c (main): Relax test.
27216         * tests/test-stdlib.c (main): Likewise.
27217
27218         init.sh: accommodate directory with no .exes
27219         * tests/init.sh: Accomodate directory containing only scripts.
27220
27221         tests: avoid compiler warning
27222         * tests/test-stdlib.c (main): Use the variable.
27223
27224         fdutimens, fdutimensat: update signature, again
27225         * lib/utimens.h (gl_futimens): Delete, and move signature...
27226         (fdutimens): ...here.
27227         (fdutimensat): Rearrange signature.
27228         (lutimensat): Rename variable for clarity.
27229         * lib/fdutimensat.c (fdutimensat): Update signature.
27230         * lib/utimens.c (fdutimens): Likewise.
27231         (gl_futimens): Delete.
27232         (utimens, lutimens): Update callers.
27233         * lib/futimens.c (futimens): Likewise.
27234         * tests/test-fdutimensat.c: Likewise.
27235         * tests/test-utimens.c: Likewise.
27236         * tests/test-futimens.h: Update comment.
27237         * NEWS: Mention this.
27238         Suggested by Paul Eggert.
27239
27240 2010-09-17  Bruno Haible  <bruno@clisp.org>
27241
27242         Take over the maintenance of some older macros from Autoconf.
27243         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
27244         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
27245         GNU Autoconf.
27246         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
27247         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
27248
27249 2010-09-17  Eric Blake  <eblake@redhat.com>
27250
27251         fdutimensat: drop atflag validation
27252         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
27253         with valid fd, to close a race scenario where futimens is
27254         unsupported and FILE was replaced by a symlink.
27255         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
27256         accordingly.
27257         Suggested by Paul Eggert.
27258
27259 2010-09-16  Bruno Haible  <bruno@clisp.org>
27260
27261         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
27262         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
27263
27264 2010-09-16  Bruno Haible  <bruno@clisp.org>
27265
27266         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
27267         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
27268         login_tty exists.
27269         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27270
27271 2010-09-16  Bruno Haible  <bruno@clisp.org>
27272
27273         login_tty: Make the replacement code work on BSD systems.
27274         * lib/login_tty.c: Include <sys/ioctl.h>.
27275         (login_tty): Use ioctl TIOCSCTTY when available.
27276         * modules/login_tty (Depends-on): Add sys_ioctl.
27277         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27278
27279 2010-09-16  Bruno Haible  <bruno@clisp.org>
27280
27281         login_tty: Stricter unit test.
27282         * modules/login_tty-tests (Depends-on): Add tcgetsid.
27283         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
27284         and tcgetsid() after login_tty.
27285         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27286
27287 2010-09-16  Bruno Haible  <bruno@clisp.org>
27288
27289         New module 'tcgetsid'.
27290         * lib/tcgetsid.c: New file.
27291         * m4/tcgetsid.m4: New file.
27292         * modules/tcgetsid: New file.
27293         * modules/termios (Depends-on): Add c++defs, warn-on-use.
27294         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
27295         GNULIB_TCGETSID, HAVE_TCGETSID.
27296         * lib/termios.in.h: Include <sys/types.h>.
27297         (tcgetsid): New declaration.
27298         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
27299         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
27300         * doc/posix-functions/tcgetsid.texi: Mention the new module.
27301         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
27302
27303 2010-09-16  Bruno Haible  <bruno@clisp.org>
27304
27305         Tests for module 'termios'.
27306         * modules/termios-c++-tests: New file.
27307         * modules/termios-tests: New file.
27308         * tests/test-termios-c++.cc: New file.
27309         * tests/test-termios.c: New file.
27310
27311         New module 'termios'.
27312         * modules/termios: New file.
27313         * lib/termios.in.h: New file.
27314         * m4/termios_h.m4: New file.
27315         * doc/posix-headers/termios.texi: Mention the new module.
27316
27317 2010-09-16  Eric Blake  <eblake@redhat.com>
27318
27319         fdutimensat: add an atflag parameter
27320         * lib/fdutimensat.c (fdutimensat): Add new parameter.
27321         * lib/utimens.h (fdutimensat): Update prototype.
27322         * tests/test-fdutimensat.c: Adjust test to match.
27323         * NEWS: Document the change.
27324         Suggested by Paul Eggert.
27325
27326 2010-09-16  Bruno Haible  <bruno@clisp.org>
27327
27328         Fix typos in comments.
27329         * lib/striconveh.h: Fix typo in comment.
27330         * lib/login_tty.c (login_tty): Likewise.
27331
27332 2010-09-15  Bruno Haible  <bruno@clisp.org>
27333
27334         stdlib: clarify MirBSD WEXITSTATUS bug
27335         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
27336         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27337
27338 2010-09-15  Eric Blake  <eblake@redhat.com>
27339
27340         stdlib: work around MirBSD WEXITSTATUS bug
27341         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
27342         * modules/stdlib (Depends-on): Add sys_wait.
27343         * tests/test-sys_wait.c (main): Enhance test.
27344         * tests/test-stdlib.c (main): Likewise.
27345         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
27346
27347         docs: mention MacOS issue with WEXITSTATUS(constant)
27348         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
27349         issue.
27350         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27351
27352         strnlen: add tests
27353         * modules/strnlen-tests: New file.
27354         * tests/test-strnlen.c: Likewise.
27355
27356 2010-09-14  Bruno Haible  <bruno@clisp.org>
27357
27358         unistr/base: Avoid link errors when module 'libunistring' is also used.
27359         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
27360         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
27361         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
27362         Declare also when HAVE_LIBUNISTRING is set.
27363         Reported by Pádraig Brady <P@draigbrady.com>.
27364
27365 2010-09-14  Eric Blake  <eblake@redhat.com>
27366
27367         test-rawmemchr: make more robust
27368         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
27369         (Depends-on, configure.ac): Add needed prerequisites to use it.
27370         * modules/memchr-tests (Files, Depends-on, configure.ac):
27371         Likewise, to avoid implicit reliance on memchr module prereqs.
27372         * tests/test-memchr.c (main): Ensure proper masking.
27373         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
27374         reads.
27375
27376         memchr: detect glibc Alpha bug
27377         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
27378         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
27379         Alpha.
27380         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
27381         * tests/test-memchr.c (main): Enhance test.
27382         Reported by Nelson H. F. Beebe.
27383
27384 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27385
27386         fts, getcwd, glob: audit for dirfd returning -1
27387         * lib/fts.c (opendir): Remove #define; no longer used.
27388         (opendirat): New arg PDIR_FD.  All callers changed.
27389         (fts_build, _opendir2): Use new opendirat to avoid the need for
27390         dirfd, or for checking whether dirfd returns a negative value.
27391         Don't use opendir; always use openat followed by fdopendir.
27392         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
27393         it.
27394         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
27395         returns -1 here.
27396         * modules/fts (Depends-on): Remove dirfd.
27397         * modules/getcwd (Depends-on): Likewise.
27398
27399 2010-09-13  Eric Blake  <eblake@redhat.com>
27400
27401         float: fix broken MirBSD header
27402         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
27403         * doc/posix-headers/float.texi (float.h): Document it.
27404
27405 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27406
27407         fts: use O_NOFOLLOW to avoid race condition when opening a directory
27408         * lib/fts.c (opendirat): New arg extra_flags.
27409         (__opendir2): Use it to avoid following symlinks when opening
27410         a directory, if symlinks are not supposed to be followed.  See
27411         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
27412
27413         fdopendir: preserve argument fd before returning
27414         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
27415         (fdopendir_with_dup, fd_clone_opendir): New static functions.
27416         (fdopendir): Use them, arranging for FD to be open to the same
27417         directory that it was when it started.  (It might be temporarily
27418         closed while fdopendir is running, so this not thread- or
27419         signal-safe.)  Be careful to do the right thing even when file
27420         descriptors are scarce and dup fails with errno == EMFILE.  See
27421         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
27422
27423 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
27424
27425         regex: Pass the system regex if its only problem is 32-bit regoff_t.
27426         * NEWS: Document change.
27427         * m4/regex.m4: Disable test for regoff_t size.
27428
27429 2010-09-13  Jim Meyering  <meyering@redhat.com>
27430
27431         fts: don't operate on an invalid file descriptor after failed dup
27432         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
27433         negative file descriptor.
27434
27435 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
27436
27437         savedir: add streamsavedir, deprecate fdsavedir
27438         * NEWS: Mention deprecation of fdsavedir.
27439         * lib/savedir.c (streamsavedir): New extern function, whose name
27440         ends in "savedir" to be consistent with the others.  This differs
27441         from savedirstream in that it doesn't close its argument.  The
27442         next version of GNU tar will use this instead of fdsavedir, to
27443         avoid some race conditions and conserve file descriptors.
27444         (savedirstream): Reimplement as a wrapper around streamsavedir.
27445         (fdsavedir): Add a comment deprecating this function.  As far as
27446         I know, only GNU tar used it, and GNU tar doesn't need it any more.
27447         * lib/savedir.h (streamsavedir): New decl.
27448         (fdsavedir): Add a comment deprecating this.
27449
27450 2010-09-10  Bruno Haible  <bruno@clisp.org>
27451
27452         langinfo: Fix last commit.
27453         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
27454         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
27455         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27456
27457 2010-09-10  Bruno Haible  <bruno@clisp.org>
27458
27459         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
27460         * lib/progreloc.c (O_EXEC): Define fallback.
27461
27462 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
27463
27464         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
27465         * NEWS: Document recent changes to fcntl-h.
27466         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
27467         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
27468         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
27469         Similarly for O_SEARCH; this last was already true, but not documented.
27470         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
27471         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
27472         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
27473         Likewise.
27474         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
27475         is zero, not whether it is defined.
27476         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
27477         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
27478         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
27479
27480 2010-09-10  Bruno Haible  <bruno@clisp.org>
27481
27482         langinfo, nl_langinfo: Fix for IRIX 5.3.
27483         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
27484         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
27485         HAVE_LANGINFO_YESEXPR.
27486         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
27487         HAVE_LANGINFO_YESEXPR.
27488         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
27489         HAVE_LANGINFO_T_FMT_AMPM is 0.
27490         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
27491         HAVE_LANGINFO_YESEXPR is 0.
27492         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
27493         NOEXPR.
27494         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
27495         * doc/posix-functions/nl_langinfo.texi: Likewise.
27496         Reported by Eric Blake.
27497
27498 2010-09-10  Bruno Haible  <bruno@clisp.org>
27499
27500         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
27501         * doc/glibc-functions/login_tty.texi: Mention the include file problem
27502         on FreeBSD 8.0 and OpenBSD 4.6.
27503         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
27504         * m4/pty_h.m4 (gl_PTY_H): Likewise.
27505         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
27506         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
27507         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
27508         ac_includes_default.
27509         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27510
27511 2010-09-09  Eric Blake  <eblake@redhat.com>
27512
27513         strsignal: work around NetBSD bug
27514         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
27515         * lib/string.in.h (includes): Likewise.
27516         * doc/posix-functions/strsignal.texi (strsignal): Document the
27517         bug.
27518         Reported by Nelson H. F. Beebe.
27519
27520         gnulib-tool: work with NetBSD /bin/sh
27521         * gnulib-tool (func_cache_var, func_cache_lookup_module)
27522         (func_get_description, func_get_comment, func_get_status)
27523         (func_get_notice, func_get_applicability, func_get_filelist)
27524         (func_get_dependencies, func_get_autoconf_early_snippet)
27525         (func_get_autoconf_snippet, func_get_automake_snippet)
27526         (func_get_include_directive, func_get_link_directive)
27527         (func_get_license, func_get_maintainer, func_import): Avoid
27528         shell syntax errors from parsing syntax extensions.
27529
27530 2010-09-09  Bruno Haible  <bruno@clisp.org>
27531
27532         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
27533         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
27534         a reliable way to determine whether the 'alias' command works.
27535
27536 2010-09-08  Jim Meyering  <meyering@redhat.com>
27537
27538         init.sh: penalize a set-x-impaired shell; don't disqualify it
27539         * tests/init.sh: Too many shells corrupt application stderr when
27540         you set -x, so we can't afford to disqualify them, since at least
27541         on Irix-6.5, that would disqualify all bourne shells.
27542         Instead, use a two-pass approach.
27543         On the first pass, try to find a shell that meets the stricter
27544         condition that set -x does not corrupt stderr.
27545         If no shell meets the stricter condition, retest each candidate
27546         shell, but without that extra condition.  Finally, when
27547         VERBOSE=yes is requested and set -x might cause trouble, simply
27548         issue a warning and refrain from enabling debug output.
27549
27550 2010-09-08  Eric Blake  <eblake@redhat.com>
27551
27552         unsetenv: fix OpenBSD bug
27553         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
27554         * doc/posix-functions/unsetenv.texi (unsetenv): Update
27555         documentation.
27556         Reported by Jim Meyering.
27557
27558         strtod: work around IRIX 6.5 bug
27559         * lib/strtod.c (strtod): Reparse number on shorter string if
27560         exponent parse was invalid.
27561         * tests/test-strtod.c (main): Add check for "0x1p 2".
27562         Reported by Tom G. Christensen.
27563
27564         getopt: optimize previous patch
27565         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
27566         empty variable.  Speed up awk script.
27567         Reported by Paolo Bonzini.
27568
27569 2010-09-08  Jim Meyering  <meyering@redhat.com>
27570
27571         test.sh: disqualify shells for which set -x corrupts stderr
27572         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
27573         and OpenBSD 4.7.  They make it so with "set -x", environment settings
27574         appear in stderr output.  For example, this command:
27575             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
27576         prints "P=1" on those two systems:
27577
27578 2010-09-08  Bruno Haible  <bruno@clisp.org>
27579
27580         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
27581         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
27582         commands, because some shells ignore redirections when there is an
27583         error in the command lookup.
27584         Reported by Eric Blake.
27585
27586 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
27587
27588         * lib/regex.h: Fix a mention of `regex_compile' (should be
27589         `re_compile_pattern').
27590         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
27591         (re_set_registers): Correct name of parameter in comment.
27592
27593         * doc/regex.texi: Add documentation for missing syntax flags.
27594         Remove commented-out documentation of defunct syntax option
27595         RE_NO_EMPTY_ALTS.
27596         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
27597         Add documentation of re_set_registers.
27598         Document trick to re-use a pattern buffer by setting fastmap manually.
27599         Update documentation of struct re_pattern_buffer per public members.
27600         Uncomment documentation of equivalence class operators and
27601         collating symbol operators, since they are now implemented,
27602         Explain leftmost-longest matching in relation to alternatives.
27603         Tidy documentation of substring matching.
27604         Remove POSIX documentation, which is done better in
27605         glibc, and refer the reader there. Keep BSD API documentation, as
27606         that is not readily available elsewhere.
27607
27608 2010-09-07  Eric Blake  <eblake@redhat.com>
27609
27610         getopt: handle POSIXLY_CORRECT set but not exported
27611         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
27612         export state of POSIXLY_CORRECT, due to bash set -o posix.
27613         Reported by Dustin J. Mitchell.
27614
27615 2010-09-05  Bruno Haible  <bruno@clisp.org>
27616
27617         gnulib-tool: Highlight the changed options.
27618         * gnulib-tool (func_usage): Display the --import, --add-import,
27619         --remove-import explanations in bold font.
27620
27621 2010-09-06  Karl Berry  <karl@gnu.org>
27622
27623         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
27624
27625 2010-09-05  Bruno Haible  <bruno@clisp.org>
27626
27627         uniwidth/width: Update comment.
27628         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
27629         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
27630
27631 2010-09-05  Bruno Haible  <bruno@clisp.org>
27632
27633         isinf, isnan: Relax license.
27634         * modules/isinf (License): Change from GPL to LGPL, with consent from
27635         Ben Pfaff.
27636         * modules/isnan (License): Likewise.
27637         Requested by Ludovic Courtès.
27638
27639 2010-09-04  Bruno Haible  <bruno@clisp.org>
27640
27641         gnulib-tool: Help migration from --import to --add-import or --update.
27642         * gnulib-tool: Emit a verbose error message when --import is used
27643         without any module name.
27644
27645 2010-09-04  Bruno Haible  <bruno@clisp.org>
27646
27647         Update doc about gnulib-tool.
27648         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
27649         'gnulib-tool --update' in more detail.
27650         Reported by Eric Blake.
27651
27652 2010-09-04  Bruno Haible  <bruno@clisp.org>
27653
27654         gnulib-tool: Change --import. New options --add/remove-import.
27655         * gnulib-tool: New options --add-import, --remove-import.
27656         (func_usage): Document them.
27657         (have_associative): Define always.
27658         (func_import): In import mode, don't merge the specified settings with
27659         the cached settings. Implement remove-import mode.
27660         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
27661         Explain when to use them versus --import.
27662         (Simple update): Use --add-import instead of --import.
27663         * NEWS: Mention the change.
27664
27665 2010-09-04  Bruno Haible  <bruno@clisp.org>
27666
27667         * doc/gnulib-tool.texi (Initial import): Update paragraph about
27668         separate gnulib.mk.
27669
27670 2010-09-04  Bruno Haible  <bruno@clisp.org>
27671
27672         gnulib-tool: Don't talk about CVS any more.
27673         * gnulib-tool (func_usage, func_import): Write "version control"
27674         instead of CVS.
27675
27676 2010-09-04  Jim Meyering  <meyering@redhat.com>
27677
27678         maint.mk: avoid obscure sc_copyright_check failure in coreutils
27679         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
27680         false positives (whose names may be ill-chosen) when searching
27681         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
27682         would cause a false-positive.
27683
27684         avoid coreutils "make distcheck" failure
27685         Coreutils tests with an absolute build directory name that contains
27686         a space.  Not quoting this directory name caused a failure.
27687         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
27688         * tests/test-vc-list-files-cvs.sh: Likewise.
27689
27690 2010-09-04  Bruno Haible  <bruno@clisp.org>
27691
27692         gnulib-tool: Avoid error when run in a package without Makefile.am.
27693         * gnulib-tool: When collecting the m4dirs in a package that does not
27694         have a Makefile.am, eliminate those directories that contain no
27695         gnulib-cache.m4. Fix expression that counts these directories.
27696
27697 2010-09-04  Bruno Haible  <bruno@clisp.org>
27698
27699         update-copyright test: Improve output when perl is missing or too old.
27700         * tests/test-update-copyright.sh: Move test of Perl version down after
27701         the test whether Perl exists. Provide an explanation relating Perl's
27702         error message to Automake's SKIP: message.
27703
27704 2010-09-04  Bruno Haible  <bruno@clisp.org>
27705
27706         Don't augment PATH in TESTS_ENVIRONMENT.
27707         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
27708         set abs_aux_dir instead of augmenting PATH.
27709         * modules/vc-list-files-tests (Makefile.am): Likewise.
27710         * tests/test-update-copyright.sh: Augment PATH here.
27711         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
27712         path_prepend_.
27713         * tests/test-vc-list-files-git.sh: Likewise.
27714
27715 2010-09-04  Jim Meyering  <meyering@redhat.com>
27716
27717         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
27718         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
27719
27720 2010-09-04  Bruno Haible  <bruno@clisp.org>
27721
27722         strdup: Fix compilation error in C++ mode.
27723         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
27724         the macro.
27725
27726 2010-09-04  Bruno Haible  <bruno@clisp.org>
27727
27728         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
27729         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
27730         macro into a function.
27731         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27732
27733 2010-09-04  Bruno Haible  <bruno@clisp.org>
27734
27735         Set PATH_SEPARATOR the same way autoconf does.
27736         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
27737         the value of PATH_SEPARATOR the same way autoconf-generated configure
27738         scripts do.
27739         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
27740         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
27741
27742 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27743
27744         Set PATH_SEPARATOR the same way autoconf does.
27745         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
27746         the same way autoconf-generated configure scripts do.
27747         * posix-modules: Likewise.
27748
27749 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
27750
27751         hash: fix safe_hasher const typo
27752         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
27753         const; otherwise, there is a type error later.
27754
27755 2010-09-02  Jim Meyering  <meyering@redhat.com>
27756
27757         test-update-copyright.sh: require perl 5.8.0
27758         * tests/test-update-copyright.sh: Require 5.8.0,
27759         which Tom G. Christensen has confirmed is adequate,
27760         while 5.6.1 is not.
27761
27762 2010-09-02  Eric Blake  <eblake@redhat.com>
27763
27764         tests: init.sh improvements for re-exec'ing with zsh
27765         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
27766         -vx through shell re-exec.
27767         Reported by Tom G. Christensen.
27768
27769         wctype: fix typo in previous commit
27770         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
27771         Reported by Ludovic Courtès.
27772
27773 2010-09-02  Jim Meyering  <meyering@redhat.com>
27774
27775         test-update-copyright.sh: skip test if Perl is too old
27776         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
27777         Reported by Tom G. Christensen.
27778
27779 2010-09-02  Bruno Haible  <bruno@clisp.org>
27780
27781         wctype: Avoid compilation error on IRIX 6.5.30.
27782         * lib/wctype.in.h (iswblank): Declare with a replacement if
27783         REPLACE_ISWBLANK is set.
27784         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
27785         declared. Set REPLACE_ISWBLANK.
27786         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
27787         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
27788         * doc/posix-headers/wctype.texi: Likewise.
27789         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27790
27791 2010-09-01  Bruno Haible  <bruno@clisp.org>
27792
27793         New module 'socketlib'.
27794         * modules/socketlib: New file.
27795         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
27796         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
27797         * modules/sockets (Depends-on): Add socketlib.
27798         Suggested by Sam Steingold <sds@gnu.org>.
27799
27800 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
27801
27802         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
27803
27804         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
27805         when one needs search access to a directory but not read access.
27806         On systems where it is available, it works in some cases where
27807         O_RDONLY does not, namely on directories that are searchable but
27808         not readable, and which need only to be searchable.  If O_SEARCH
27809         is not available, fall back to the traditional method of using
27810         O_RDONLY.
27811
27812         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
27813         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
27814         when opening a directory that needs only to be searchable.
27815         * lib/chdir-safer.c (chdir_no_follow): Likewise.
27816         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
27817         * lib/openat-proc.c (openat_proc_name): Likewise.
27818         * lib/openat.c (openat_needs_fchdir): Likewise.
27819         * lib/save-cwd.c (save_cwd): Likewise.
27820         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
27821
27822 2010-08-28  Bruno Haible  <bruno@clisp.org>
27823
27824         New module 'host-cpu-c-abi'.
27825         * modules/host-cpu-c-abi: New file.
27826         * m4/host-cpu-c-abi.m4: New file, based on part of
27827         clisp/src/m4/general.m4.
27828         Requested by Sam Steingold <sds@gnu.org>.
27829
27830 2010-08-31  Eric Blake  <eblake@redhat.com>
27831         and Jim Meyering  <meyering@redhat.com>
27832
27833         hash: factor, and guard against misbehaving hasher function
27834         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
27835         of table->hasher's return value.  Also protect against a hash value
27836         so large that adding it to table->bucket results in a NULL pointer.
27837         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
27838         Use it in place of open-coded check-and-abort.
27839
27840 2010-08-30  Bruno Haible  <bruno@clisp.org>
27841
27842         hash: silence spurious clang warning
27843         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
27844         Reported by Eric Blake.
27845
27846 2010-08-30  Eric Blake  <eblake@redhat.com>
27847
27848         strstr, memmem, strcasestr: avoid leaked shell message
27849         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
27850         FreeBSD.
27851         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27852         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27853
27854         tests: silence clang warning
27855         * tests/test-malloca.c (do_allocation): Avoid dead store.
27856
27857 2010-08-29  Bruno Haible  <bruno@clisp.org>
27858
27859         gettext: Fix recent mistake.
27860         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
27861
27862 2010-08-29  Bruno Haible  <bruno@clisp.org>
27863
27864         selinux-h: Offer a --without-selinux option.
27865         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
27866         --without-selinux was specified, skip all tests and define
27867         HAVE_SELINUX_SELINUX_H to 0.
27868         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
27869         set LIB_SELINUX to empty.
27870         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
27871         gl_LIBSELINUX. If --without-selinux was specified, replace
27872         selinux/context.h.
27873         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
27874
27875 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27876             Bruno Haible  <bruno@clisp.org>
27877
27878         Make the module 'realloc-gnu' work again on AIX and OSF/1.
27879         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
27880         of HAVE_REALLOC.
27881         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
27882         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
27883         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
27884         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27885
27886 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27887             Bruno Haible  <bruno@clisp.org>
27888
27889         Make the module 'calloc-gnu' work again on AIX and OSF/1.
27890         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
27891         HAVE_CALLOC.
27892         * lib/xmalloc.c: Update accordingly.
27893         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
27894         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
27895         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
27896
27897 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27898             Bruno Haible  <bruno@clisp.org>
27899
27900         Make the module 'malloc-gnu' work again on AIX and OSF/1.
27901         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
27902         HAVE_MALLOC.
27903         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
27904         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
27905         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27906
27907 2010-08-29  Bruno Haible  <bruno@clisp.org>
27908
27909         Update modules list.
27910         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
27911         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
27912         (String handling <string.h>): Add astrxfrm.
27913         (File system functions): Add readlinkat.
27914
27915 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27916
27917         Tests for module 'realloc-gnu'.
27918         * modules/realloc-gnu-tests: New file.
27919         * tests/test-realloc-gnu.c: New file.
27920
27921         Tests for module 'calloc-gnu'.
27922         * modules/calloc-gnu-tests: New file.
27923         * tests/test-calloc-gnu.c: New file.
27924
27925         Tests for module 'malloc-gnu'.
27926         * modules/malloc-gnu-tests: New file.
27927         * tests/test-malloc-gnu.c: New file.
27928
27929 2010-08-28  Bruno Haible  <bruno@clisp.org>
27930
27931         Rename module 'realloc' -> 'realloc-gnu'.
27932         * modules/realloc-gnu: New file, copied from modules/realloc.
27933         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
27934         obsolete.
27935         * modules/mgetgroups (Depends-on): Update.
27936         * doc/posix-functions/realloc.texi: Update.
27937         * NEWS: Mention the change.
27938
27939         Rename module 'calloc' -> 'calloc-gnu'.
27940         * modules/calloc-gnu: New file, copied from modules/calloc.
27941         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
27942         obsolete.
27943         * doc/posix-functions/calloc.texi: Update.
27944         * NEWS: Mention the change.
27945
27946         Rename module 'malloc' -> 'malloc-gnu'.
27947         * modules/malloc-gnu: New file, copied from modules/malloc.
27948         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
27949         obsolete.
27950         * modules/argp (Depends-on): Update.
27951         * modules/regex (Depends-on): Update.
27952         * doc/posix-functions/malloc.texi: Update.
27953         * NEWS: Mention the change.
27954
27955 2010-08-28  Eric Blake  <eblake@redhat.com>
27956
27957         pread, pwrite: add missing dependency
27958         * modules/pread (Depends-on): Add extensions.
27959         * modules/pwrite (Depends-on): Likewise.
27960
27961 2010-08-28  Bruno Haible  <bruno@clisp.org>
27962
27963         unistr/u*-strchr: Fix tests dependencies.
27964         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
27965         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
27966         Reported by Ian Beckwith <ianb@erislabs.net>.
27967
27968 2010-08-28  Bruno Haible  <bruno@clisp.org>
27969
27970         read-file: Don't occupy too much unused memory.
27971         * lib/read-file.c (fread_file): Shrink the buffer at the end.
27972
27973 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
27974             Eric Blake  <eblake@redhat.com>
27975             Bruno Haible  <bruno@clisp.org>
27976
27977         read-file: Avoid memory reallocations with regular files.
27978         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
27979         (fread_file): With regular files, use the remaining length as the
27980         initial buffer size.  Check against overflow.
27981         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
27982         sys_stat.
27983
27984 2010-08-28  Bruno Haible  <bruno@clisp.org>
27985
27986         ftello: Relax license.
27987         * modules/ftello (License): Relax to LGPLv2+.
27988         Reported by Eric Blake.
27989
27990 2010-08-28  Bruno Haible  <bruno@clisp.org>
27991
27992         Avoid relocwrapper link errors due to gnulib replacement functions.
27993         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
27994         function.
27995         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27996
27997 2010-08-28  Bruno Haible  <bruno@clisp.org>
27998
27999         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
28000         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
28001         defined.
28002         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
28003         Suggested by Eric Blake.
28004
28005 2010-08-28  Bruno Haible  <bruno@clisp.org>
28006
28007         sys_socket, netdb: Ensure socklen_t gets defined.
28008         * modules/sys_socket (Depends-on): Add socklen.
28009         * modules/netdb (Depends-on): Likewise.
28010         * modules/getaddrinfo (Depends-on): Remove socklen.
28011         * modules/getsockopt (Depends-on): Likewise.
28012         * modules/setsockopt (Depends-on): Likewise.
28013         * tests/test-sys_socket.c: Check that socklen_t is defined.
28014         * tests/test-netdb.c: Likewise.
28015         * m4/socklen.m4: Update comments.
28016         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28017
28018 2010-08-27  Eric Blake  <eblake@redhat.com>
28019
28020         login_tty: add missing dependency
28021         * modules/login_tty (Depends-on): Add pty.
28022
28023 2010-08-26  Eric Blake  <eblake@redhat.com>
28024
28025         lib-symbol-versions: fix m4 quoting
28026         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
28027         format for AC_LINK_IFELSE.
28028
28029         glob: fix compile test
28030         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
28031
28032         btowc: fix missing file
28033         * modules/btowc (Files): Also ship locale-fr.m4.
28034
28035         lseek: fix link test
28036         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
28037         AC_LINK_IFELSE.
28038
28039         include_next: silence autoconf 2.68 warning
28040         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
28041         AC_COMPILE_IFELSE as special.
28042         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
28043         autoconf < 2.68.
28044
28045         acl: fix compilation test
28046         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
28047         AC_COMPILE_IFELSE.
28048
28049 2010-08-26  Bruno Haible  <bruno@clisp.org>
28050
28051         Modernize AC_TRY_RUN invocations.
28052         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
28053         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
28054         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
28055         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
28056         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
28057         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
28058         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
28059         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
28060         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28061         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28062         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
28063         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28064         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
28065         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28066         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
28067         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
28068         gl_MBRLEN_NUL_RETVAL): Likewise.
28069         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28070         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
28071         Likewise.
28072         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28073         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28074         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
28075         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
28076         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
28077         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
28078         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
28079         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
28080         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
28081         Likewise.
28082         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
28083         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
28084         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28085         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
28086         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28087         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
28088         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28089         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
28090         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28091         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28092
28093 2010-08-26  Bruno Haible  <bruno@clisp.org>
28094
28095         Modernize AC_TRY_LINK invocations.
28096         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
28097         AC_TRY_LINK.
28098         * m4/argp.m4 (gl_ARGP): Likewise.
28099         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
28100         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28101         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
28102         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28103         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28104         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
28105         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
28106         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
28107         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28108         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
28109         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28110         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
28111         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
28112         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28113         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
28114         * m4/hostent.m4 (gl_HOSTENT): Likewise.
28115         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28116         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
28117         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
28118         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
28119         Likewise.
28120         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
28121         Likewise.
28122         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
28123         Likewise.
28124         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
28125         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
28126         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
28127         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
28128         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
28129         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
28130         * m4/servent.m4 (gl_SERVENT): Likewise.
28131         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
28132         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
28133         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
28134         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
28135         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
28136         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
28137         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
28138         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28139         * modules/tsearch-tests (configure.ac): Likewise.
28140
28141 2010-08-26  Bruno Haible  <bruno@clisp.org>
28142
28143         Modernize AC_TRY_COMPILE invocations.
28144         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
28145         AC_TRY_COMPILE.
28146         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
28147         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
28148         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
28149         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
28150         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
28151         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
28152         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28153         * m4/lock.m4 (gl_LOCK): Likewise.
28154         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
28155         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28156         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
28157         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
28158         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
28159         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
28160         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
28161         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
28162         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
28163         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
28164         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
28165         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
28166         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
28167         extraneous semicolon.
28168
28169 2010-08-26  Jim Meyering  <meyering@redhat.com>
28170
28171         stat-time: relax license LGPL
28172         * modules/stat-time (License): Change from GPL to LGPL,
28173         with consent from all contributors, for use in libguile.
28174         Requested by Ludovic Courtès.
28175
28176 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
28177
28178         poll: return immediately on POLLHUP.
28179         * lib/poll.c (poll): Always set timeout before wait_timeout is
28180         computed.
28181
28182 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28183
28184         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
28185         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
28186         rmdir ("dir/.//"), unlinkat.
28187
28188 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28189
28190         stdbool: avoid spurious failure with modern xlc
28191         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
28192
28193 2010-08-24  Bruno Haible  <bruno@clisp.org>
28194
28195         getloadavg: simplify code
28196         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
28197         gl_have_func. Update comments.
28198
28199 2010-08-24  Eric Blake  <eblake@redhat.com>
28200
28201         getloadavg: don't define SVR4 on cygwin
28202         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
28203         only define SVR4 when -lkvm is required.
28204         Reported by Yaakov Selkowitz.
28205
28206 2010-08-24  Bruno Haible  <bruno@clisp.org>
28207
28208         priv-set: fix comment
28209         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
28210
28211 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
28212
28213         priv-set: fix comments
28214         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
28215         to match code, as suggested by David Bartley in:
28216         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
28217
28218 2010-08-23  Eric Blake  <eblake@redhat.com>
28219
28220         stdbool: avoid rejecting clang
28221         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
28222         * tests/test-stdbool.c: Enable more tests if using the system
28223         <stdbool.h> instead of the gnulib replacement.
28224         (main): Move xlc bug test to a runtime test for all compilers.
28225         Reported by Anders Kaseorg.
28226
28227         argz: fix shell quoting issue
28228         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
28229         Reported by Charles Wilson.
28230
28231 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
28232             Erik Faye-Lund <kusmabite@gmail.com>
28233
28234         poll, select: handle ERROR_BROKEN_PIPE.
28235         * lib/poll.c (win32_compute_revents): Return POLLHUP when
28236         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
28237         * lib/select.c (win32_compute_revents): Do not mark a pipe
28238         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
28239
28240 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
28241
28242         fts: allow compilation with C++
28243         * lib/fts_.h: Specify extern "C" linkage with C++.
28244
28245 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28246
28247         Fix gnulib-tool sed script de-commentation for AIX sed.
28248         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
28249         sed.
28250
28251 2010-08-17  Eric Blake  <eblake@redhat.com>
28252
28253         test-stddef: test for (some) offsetof bugs
28254         * tests/test-stddef.c: Enhance test to ensure correct type of
28255         offsetof.
28256         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
28257         that we are not fixing at this time.
28258
28259 2010-08-15  Bruno Haible  <bruno@clisp.org>
28260
28261         stpncpy: Allow stpncpy to be defined as a macro.
28262         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
28263         if it's already correctly declared.
28264         * lib/string.in.h (stpncpy): Undefine before redefining.
28265         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
28266
28267 2010-08-14  Bruno Haible  <bruno@clisp.org>
28268
28269         Rename module 'memxfrm' to 'amemxfrm'.
28270         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
28271         (amemxfrm): Renamed from memxfrm.
28272         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
28273         (amemxfrm): Renamed from memxfrm.
28274         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
28275         * NEWS: Mention the change.
28276         * MODULES.html.sh (String handling <string.h>): Update.
28277         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
28278         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
28279         * lib/unicase/u16-casexfrm.c: Likewise.
28280         * lib/unicase/u32-casexfrm.c: Likewise.
28281         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
28282         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
28283         * lib/uninorm/u16-normxfrm.c: Likewise.
28284         * lib/uninorm/u32-normxfrm.c: Likewise.
28285         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
28286         memxfrm.
28287         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
28288         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
28289         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
28290         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
28291         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
28292         Suggested by Paul Eggert.
28293
28294 2010-08-14  Bruno Haible  <bruno@clisp.org>
28295
28296         Tests for module 'astrxfrm'.
28297         * modules/astrxfrm-tests: New file.
28298         * tests/test-astrxfrm.c: New file.
28299
28300         New module 'astrxfrm'.
28301         * lib/astrxfrm.h: New file.
28302         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
28303         * modules/astrxfrm: New file.
28304
28305 2010-08-14  Reuben Thomas <rrt@sc3d.org>
28306
28307         regex: Tweak doc.
28308         * doc/regex.texi (Overview): Don't mention regex.c.
28309         (GNU Regular Expression Compiling): Likewise.
28310         (Match-end-of-line Operator): Mention 'not_eol'.
28311
28312 2010-08-14  Brian Gough  <bjg@gnu.org>
28313             Bruno Haible  <bruno@clisp.org>
28314
28315         git-merge-changelog: add doc relating to use with bzr and hg.
28316         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
28317
28318 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
28319
28320         pthread: fix pthread.h creation for srcdir != builddir
28321         * modules/pthread (Makefile.am): Fix the rule to work also in a
28322         non-srcdir build.
28323
28324 2010-08-13  Karl Berry  <karl@gnu.org>
28325
28326         * doc/regex.texi (Predefined Syntaxes): @smallexample.
28327         * doc/posix-*/*: force line break before @url of POSIX
28328         specifications.
28329         Suggested by Werner Lemberg.
28330
28331 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
28332
28333         strtod: fix const diagnostic
28334         * lib/strtod.c (strtod): Don't assign const char * to char *,
28335         as this elicits a warning from GCC when warnings are enabled.
28336
28337 2010-08-10  Pádraig Brady <P@draigbrady.com>
28338         and Eric Blake  <eblake@redhat.com>
28339
28340         copy-acl: ignore ENOTSUP on HP-UX
28341         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
28342         so that it is available for HP-UX.
28343         * lib/copy-acl.c (qcopy_acl): Use it.
28344         Reported by Patrick M. Callahan.
28345
28346 2010-08-10  Eric Blake  <eblake@redhat.com>
28347
28348         open, chown: relax license
28349         * modules/open (License): Change to LGPLv2+, with consent by all
28350         authors, for use in augeas.
28351         * modules/chown (License): Likewise.
28352         * modules/lchown (Likewise): Likewise.
28353         Requested by Adam Stokes.
28354
28355 2010-08-09  Karl Berry  <karl@gnu.org>
28356
28357         * build-aux/ar-lib: new file, import from Automake.
28358         * config/srclist.txt: autocheck for updates.
28359
28360 2010-08-09  Eric Blake  <eblake@redhat.com>
28361
28362         readlinkat: adjust client modules
28363         * modules/areadlinkat (Depends-on): Use readlinkat, not
28364         symlinkat.
28365         * modules/areadlinkat-with-size (Depends-on): Likewise.
28366
28367         mknod: be more vocal about danger of running tests as root
28368         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
28369         root, since that is just asking for problems.
28370         Suggested by Bruno Haible, based on a report by Rainer Tammer.
28371
28372         readlinkat: split into its own module
28373         * modules/symlinkat: Split readlinkat...
28374         * modules/readlinkat: ...into separate module.
28375         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
28376         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
28377         * lib/symlinkat.c (readlinkat): Move...
28378         * lib/readlinkat.c: ...into new file.
28379         * modules/symlinkat-tests: Split readlinkat test...
28380         * modules/readlinkat-tests: ...into separate module.
28381         * tests/test-symlinkat.c: Split...
28382         * tests/test-readlinkat.c: ...into new file.
28383         * NEWS: Document the split.
28384         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28385         * lib/unistd.in.h (readlinkat): Likewise.
28386         Suggested by Bruno Haible.
28387
28388 2010-08-08  Bruno Haible  <bruno@clisp.org>
28389
28390         memxfrm: Speed up.
28391         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
28392         that usually only one call to strxfrm is necessary for each string
28393         part.
28394         Reported by Paul Eggert <eggert@cs.ucla.edu>.
28395
28396 2010-08-07  Karl Berry  <karl@gnu.org>
28397
28398         * doc/posix-headers/limits.texi,
28399         * doc/posix-functions/malloc.texi,
28400         * doc/posix-functions/strsignal.texi: missing @item.
28401         * doc/ld-version-script.texi: spurious leading i.
28402         * doc/regex.texi (Interval Operators): no commas inside @var.
28403
28404 2010-08-01  Bruno Haible  <bruno@clisp.org>
28405
28406         Integrate the regex documentation.
28407         * doc/gnulib.texi: Define 'cn' index.
28408         (Regular expressions): New a chapter that includes regex.texi and
28409         regexprops-generic.texi.
28410         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
28411         syntax.
28412
28413         Whitespace cleanup.
28414         * doc/regex.texi: Remove trailing spaces.
28415
28416         Add regex documentation.
28417         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
28418         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
28419         Written by Kathy A. Hargreaves and Karl Berry.
28420
28421 2010-08-01  Bruno Haible  <bruno@clisp.org>
28422
28423         link: Update documentation.
28424         * doc/posix-functions/link.texi: Update regarding Solaris.
28425
28426 2010-07-31  Bruno Haible  <bruno@clisp.org>
28427
28428         Update modules list.
28429         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
28430         (String handling <string.h>): Add memcmp2, memxfrm.
28431         (Container data structures): Add xlist, xsublist, xoset.
28432         (Core language properties): Add alignof, unused-parameter.
28433         (Process control, Numeric conversion functions <stdlib.h>): Renamed
28434         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
28435         (Unibyte characters <ctype.h>): New section.
28436         (String handling <string.h>): New section.
28437         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
28438         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
28439         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
28440         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
28441         tan, tanh, tanl, y0, y1, yn.
28442         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
28443         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
28444         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
28445         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
28446         unlockpt, vdprintf, vdprintf-posix.
28447         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
28448         (File system functions): Add concat-filename, sys_file, sys_ioctl,
28449         xconcat-filename.
28450         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
28451         getdtablesize, pipe2, pipe2-safer.
28452         (Security): New section.
28453         (Networking functions): Add accept4.
28454         (Signal handling): Add sigpipe.
28455         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
28456         mbmemcasecoll.
28457         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
28458         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
28459         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
28460         pipe-filter-ii.
28461         (Misc): Add argp-version-etc, login_tty, parse-duration.
28462
28463 2010-07-31  Bruno Haible  <bruno@clisp.org>
28464
28465         Improve doc in MODULES.html.
28466         * modules/linkat (Description): Add the word "function".
28467         * modules/mkfifo (Description): Likewise.
28468         * modules/mknod (Description): Likewise.
28469         * modules/remove (Description): Likewise.
28470         * modules/renameat (Description): Likewise.
28471         * modules/stat (Description): Likewise.
28472         * modules/symlink (Description): Likewise.
28473         * modules/unlink (Description): Likewise.
28474
28475 2010-07-31  Bruno Haible  <bruno@clisp.org>
28476
28477         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
28478         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
28479         option --enable/disable-c++ instead of --enable/disable-cxx.
28480         * NEWS: Mention the change.
28481
28482 2010-07-31  Bruno Haible  <bruno@clisp.org>
28483
28484         readlink, areadlink: Relax test a bit.
28485         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
28486         alternative to ENOTDIR.
28487         * tests/test-areadlink.h (test_areadlink): Likewise.
28488         Reported by Rainer Tammer.
28489
28490 2010-07-31  Bruno Haible  <bruno@clisp.org>
28491
28492         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
28493         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
28494         character, perform the search using U_STRCHR.
28495         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
28496         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
28497         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
28498         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
28499         Suggested by Paolo Bonzini.
28500
28501 2010-07-31  Bruno Haible  <bruno@clisp.org>
28502
28503         unistr/u*-strstr: Fix dependencies.
28504         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
28505         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
28506         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
28507
28508 2010-07-31  Bruno Haible  <bruno@clisp.org>
28509
28510         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
28511         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
28512         the beginning of the loop.
28513         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
28514         cases in 'switch' statement.
28515
28516         unistr/u8-strchr: Fix several bugs.
28517         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
28518         the string. When not found, return NULL, not a pointer near the end.
28519
28520         More tests for unistr/u8-strchr.
28521         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
28522         that the function does not read past the first occurrence of the byte
28523         being searched.
28524         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
28525         * tests/unistr/test-u16-strchr.c (main): New function.
28526         * tests/unistr/test-u32-strchr.c (main): New function.
28527
28528 2010-07-31  Bruno Haible  <bruno@clisp.org>
28529
28530         posix-modules: Ignore backup files of documentation files.
28531         * posix-modules: grep only through files named *.texi.
28532
28533 2010-07-31  Bruno Haible  <bruno@clisp.org>
28534
28535         symlinkat: Fix documentation.
28536         * doc/posix-functions/readlinkat.texi: Fix module name.
28537
28538 2010-07-31  Bruno Haible  <bruno@clisp.org>
28539
28540         fchownat: Replace also when chown has the trailing slash bug.
28541         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
28542         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
28543         introduced on 2010-04-10.
28544         Reported by Rainer Tammer.
28545
28546 2010-07-31  Bruno Haible  <bruno@clisp.org>
28547
28548         linkat: Work around AIX 7.1 bug.
28549         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
28550         whether linkat handles trailing slash correctly. If not, replace linkat
28551         and define LINKAT_TRAILING_SLASH_BUG.
28552         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
28553         check whether (fd1,file1) points to a directory if file1 or file2 ends
28554         in a slash. Code taken from lib/link.c.
28555         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
28556         Reported by Rainer Tammer.
28557
28558 2010-07-31  Bruno Haible  <bruno@clisp.org>
28559
28560         Correctly determine whether pow is available in libc on AIX 7 with xlc.
28561         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
28562         This disables an xlc optimization that was causing wrong test results.
28563         Reported by Rainer Tammer.
28564
28565 2010-07-31  Bruno Haible  <bruno@clisp.org>
28566
28567         iconv: Work around AIX 6.1..7.1 bug.
28568         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
28569         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
28570         cross-compiling, guess no on all versions of AIX.
28571         Reported by Rainer Tammer.
28572
28573 2010-07-31  Bruno Haible  <bruno@clisp.org>
28574
28575         readlink: Relax test a bit.
28576         * tests/test-readlink.h (test_readlink): Allow different errno value
28577         when readlink is called with a file name that ends in / and refers to
28578         a file.
28579         Suggested by Eric Blake.
28580         Reported by Rainer Tammer.
28581
28582 2010-07-31  Bruno Haible  <bruno@clisp.org>
28583
28584         copysign: Does not require -lm on glibc systems.
28585         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
28586         gl_COMMON_DOUBLE_MATHFUNC.
28587         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
28588
28589 2010-07-31  Bruno Haible  <bruno@clisp.org>
28590
28591         duplocale: Work around AIX 7.1 bug.
28592         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
28593         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
28594         * lib/duplocale.c (rpl_duplocale): Update comment.
28595         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
28596         Reported by Rainer Tammer.
28597
28598 2010-07-30  Bruno Haible  <bruno@clisp.org>
28599
28600         dirfd: Avoid link error on AIX 7.1.
28601         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
28602         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
28603         exist, set REPLACE_DIRFD.
28604         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
28605         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
28606         * doc/posix-functions/dirfd.texi: Update.
28607         Reported by Rainer Tammer.
28608
28609 2010-07-30  Eric Blake  <eblake@redhat.com>
28610
28611         strtod: next round of AIX fixes
28612         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
28613         exponent.
28614         * tests/test-strtod.c (main): Enhance tests.
28615         * doc/posix-functions/strtod.texi (strtod): Document next bug.
28616         Reported by Rainer Tammer.
28617
28618         futimens: fix configure check
28619         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
28620         Reported by Bruno Haible.
28621
28622 2010-07-30  Bruno Haible  <bruno@clisp.org>
28623
28624         getline: Update regarding AIX.
28625         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
28626         Reported by Rainer Tammer.
28627
28628 2010-07-30  Bruno Haible  <bruno@clisp.org>
28629
28630         wcwidth: Drop replacement on AIX 7.
28631         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
28632         AIX 7.
28633         Reported by Rainer Tammer.
28634
28635 2010-07-30  Bruno Haible  <bruno@clisp.org>
28636
28637         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
28638         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
28639         a 'char *'.
28640         Reported by Rainer Tammer.
28641
28642 2010-07-30  Bruno Haible  <bruno@clisp.org>
28643
28644         unlink: Update regarding AIX.
28645         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
28646         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
28647         Reported by Rainer Tammer.
28648
28649 2010-07-30  Bruno Haible  <bruno@clisp.org>
28650
28651         symlink: Update regarding AIX.
28652         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
28653         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
28654         Reported by Rainer Tammer.
28655
28656 2010-07-30  Bruno Haible  <bruno@clisp.org>
28657
28658         strndup: Update regarding AIX.
28659         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
28660         AIX 7.
28661         Reported by Rainer Tammer.
28662
28663 2010-07-30  Bruno Haible  <bruno@clisp.org>
28664
28665         stat: Update regarding AIX.
28666         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
28667         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
28668         Reported by Rainer Tammer.
28669
28670 2010-07-30  Bruno Haible  <bruno@clisp.org>
28671
28672         truncl: Fix autoconf test.
28673         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
28674         whether truncl works.
28675         Reported by Rainer Tammer.
28676
28677 2010-07-30  Bruno Haible  <bruno@clisp.org>
28678
28679         round: Update regarding AIX.
28680         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
28681         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
28682         Reported by Rainer Tammer.
28683
28684 2010-07-30  Bruno Haible  <bruno@clisp.org>
28685
28686         rename: Update regarding AIX.
28687         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
28688         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
28689         Reported by Rainer Tammer.
28690
28691 2010-07-30  Bruno Haible  <bruno@clisp.org>
28692
28693         printf.m4: Update regarding AIX.
28694         * m4/printf.m4: Update comments regarding AIX.
28695         Reported by Rainer Tammer.
28696
28697 2010-07-30  Bruno Haible  <bruno@clisp.org>
28698
28699         iconv: Update regarding AIX.
28700         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
28701         AIX 7.
28702         Reported by Rainer Tammer.
28703
28704 2010-07-30  Bruno Haible  <bruno@clisp.org>
28705
28706         getopt: Update regarding AIX.
28707         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
28708         no on AIX.
28709         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
28710         Reported by Rainer Tammer.
28711
28712 2010-07-30  Bruno Haible  <bruno@clisp.org>
28713
28714         ldexpl; Update regarding AIX.
28715         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
28716         on AIX 7.
28717         Reported by Rainer Tammer.
28718
28719 2010-07-30  Bruno Haible  <bruno@clisp.org>
28720
28721         frexpl: Update regarding AIX.
28722         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
28723         on AIX 7.
28724         Reported by Rainer Tammer.
28725
28726 2010-07-30  Bruno Haible  <bruno@clisp.org>
28727
28728         open, fopen: Update regarding AIX.
28729         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
28730         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
28731         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
28732         * doc/posix-functions/fopen.texi: Likewise.
28733         Reported by Rainer Tammer.
28734
28735 2010-07-30  Bruno Haible  <bruno@clisp.org>
28736
28737         chown: Update doc regarding AIX.
28738         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
28739         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
28740         Reported by Rainer Tammer.
28741
28742 2010-07-30  Eric Blake  <eblake@redhat.com>
28743
28744         strtod: fix bug in replacement function on AIX
28745         * lib/strtod.c (strtod): Special case broken "0x" parse in
28746         underlying strtod.
28747         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
28748         * doc/posix-functions/strtod.texi (strtod): Likewise.
28749         Reported by Rainer Tammer.
28750
28751 2010-07-30  Bruno Haible  <bruno@clisp.org>
28752
28753         mbrlen: Fix cross-compilation guess for AIX.
28754         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
28755         guess. Leftover from 2008-12-22.
28756
28757 2010-07-30  Bruno Haible  <bruno@clisp.org>
28758
28759         mbrtowc: Fix cross-compilation guess for AIX.
28760         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
28761         guess. Leftover from 2008-12-21.
28762
28763 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
28764
28765         init.sh: work around trap limitation of some shells
28766         * tests/init.sh (setup_): Move exit trap outside of shell function.
28767
28768 2010-07-29  Eric Blake  <eblake@redhat.com>
28769
28770         strtod: aid debugging
28771         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
28772         understanding why strtod is rejected.
28773
28774 2010-07-28  Bruno Haible  <bruno@clisp.org>
28775
28776         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
28777         * lib/unistr/u8-chr.c: Include <string.h>.
28778         * tests/unistr/test-u8-chr.c: Likewise.
28779         * tests/unistr/test-u16-chr.c: Likewise.
28780         * tests/unistr/test-u32-chr.c: Likewise.
28781         * tests/unistr/test-u8-strchr.c: Likewise.
28782         * tests/unistr/test-u16-strchr.c: Likewise.
28783         * tests/unistr/test-u32-strchr.c: Likewise.
28784         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
28785         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
28786         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
28787         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
28788
28789 2010-07-28  Bruno Haible  <bruno@clisp.org>
28790
28791         Use spaces for indentation, not tabs.
28792         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28793
28794 2010-07-27  Bruno Haible  <bruno@clisp.org>
28795
28796         mbspcasecmp: Fix function specification.
28797         * lib/string.in.h (mbspcasecmp): Fix specification comment.
28798         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
28799         Reported by Eric Blake <eblake@redhat.com>.
28800
28801 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
28802
28803         timespec: use cast and not conditional, as truncation isn't possible
28804         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
28805         instead of a conditional.  Comment about the situation in more detail.
28806         This undoes most of the 2009-10-29 patch.
28807
28808 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
28809
28810         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
28811         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
28812         * lib/unistr/u8-strchr.c: Likewise.
28813         * modules/unistr/u8-chr: Depend on memchr.
28814
28815         unistr/u*-strchr: add tests
28816         * modules/unistr/u8-strchr-tests: New file.
28817         * modules/unistr/u16-strchr-tests: New file.
28818         * modules/unistr/u32-strchr-tests: New file.
28819         * tests/unistr/test-strchr.h: New file.
28820         * tests/unistr/test-u8-strchr.c: New file.
28821         * tests/unistr/test-u16-strchr.c: New file.
28822         * tests/unistr/test-u32-strchr.c: New file.
28823
28824         unistr/u*-chr: test multibyte sequences more
28825         * tests/unistr/test-chr.h: Do complete testing of the characters in the
28826         test vector.
28827         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
28828         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
28829         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
28830
28831         unistr/u*-chr: test multibyte sequences
28832         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
28833
28834         unistr/u*-chr: prepare for multibyte tests
28835         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
28836         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
28837         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
28838         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
28839         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
28840         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
28841
28842 2010-07-18  Bruno Haible  <bruno@clisp.org>
28843
28844         unistr/u8-strchr: Optimize non-ASCII argument case.
28845         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
28846         because the first byte often matches anyway.
28847         Reported by Pádraig Brady <P@draigbrady.com>.
28848
28849 2010-07-15  Karl Berry  <karl@gnu.org>
28850
28851         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
28852
28853 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
28854
28855         getcwd: on Solaris, work better if ancestors are inaccessible
28856         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
28857         buffer and size, try again with a large buffer.  This works better
28858         on Solaris, since its getcwd succeeds even if the path to the root
28859         is inaccessible, and this is helpful in common cases such as .zfs
28860         hidden directories.  Problem reported by J Chapman Flack in
28861         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
28862         Use system getcwd if it's declared, not merely if it's partly
28863         working; use the partly-working test only to avoid needless effort
28864         if the system getcwd fails.
28865         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
28866         comment that was already obsolete and is now even more obsolete.
28867         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
28868         now might call strdup.
28869
28870 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
28871
28872         pthread: Add enough so that coreutils/src/sort.c compiles.
28873         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
28874         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
28875         gnulib. Include <sched.h> and <time.h>, as per POSIX.
28876         Include <sys/types.h>, in case it defines pthread_t.
28877         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
28878         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
28879         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
28880         (pthread_rwlockattr_t, pthread_spinlock_t):
28881         New typedefs, if HAVE_PTHREAD_T is not defined.
28882         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
28883         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
28884         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
28885         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
28886         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
28887         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
28888         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
28889         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
28890         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
28891         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
28892         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
28893         New macros.
28894         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
28895         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
28896         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
28897         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
28898         (pthread_spin_unlock): New dummy functions.
28899         (pthread_create): Return EAGAIN; don't set errno.
28900         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
28901         require AC_C_INLINE.
28902         * modules/pthread (Depends-on): Add sched, time.
28903         (pthread.h): Use AM_V_GEN.
28904
28905 2010-07-13  Bruno Haible  <bruno@clisp.org>
28906
28907         striconveh: Don't malloc memory if the result buffer is sufficient.
28908         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
28909         buffer if its size is sufficient.
28910         Reported by Ludovic Courtès <ludo@gnu.org>.
28911
28912 2010-07-13  Bruno Haible  <bruno@clisp.org>
28913
28914         strtod: Add safety check.
28915         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
28916
28917 2010-07-12  Bruno Haible  <bruno@clisp.org>
28918
28919         Unify tests that set gl_cv_func_ldexpl_no_libm.
28920         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
28921         gl_FUNC_LDEXPL.
28922         (gl_FUNC_LDEXPL): Invoke it.
28923         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28924
28925 2010-07-12  Bruno Haible  <bruno@clisp.org>
28926
28927         Unify tests that set gl_cv_func_ldexp_no_libm.
28928         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
28929         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
28930         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
28931         (configure.ac): Simply invoke gl_FUNC_LDEXP.
28932         * modules/strtod (Files): Add m4/ldexp.m4.
28933
28934 2010-07-12  Bruno Haible  <bruno@clisp.org>
28935
28936         Unify tests that set gl_cv_func_frexpl_no_libm.
28937         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
28938         gl_FUNC_FREXPL_NO_LIBM.
28939         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
28940         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28941
28942 2010-07-12  Bruno Haible  <bruno@clisp.org>
28943
28944         Unify tests that set gl_cv_func_frexp_no_libm.
28945         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
28946         gl_FUNC_FREXP_NO_LIBM.
28947         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
28948         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
28949
28950 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28951
28952         memcoll: clarify sizes versus lengths, document better, and tweak perf
28953         * lib/memcoll.c (strcoll_loop, memcoll0):
28954         Improve quality of descriptive comments.  Name variables
28955         consistently as to whether they are lengths (which do not include
28956         terminating null) versus sizes (which do).
28957         * lib/xmemcoll.c (xmemcoll0): Likewise.
28958         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
28959         returned when s1size == 0; this is easier to compile and saves
28960         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
28961
28962 2010-07-12  Bruno Haible  <bruno@clisp.org>
28963
28964         Tests for module '_Exit'.
28965         * modules/_Exit-tests: New file.
28966         * tests/test-_Exit.sh: New file.
28967         * tests/test-_Exit.c: New file.
28968
28969         New module '_Exit'.
28970         * lib/stdlib.in.h (__attribute__): New macro.
28971         (_Exit): New declaration.
28972         * lib/_Exit.c: New file.
28973         * m4/_Exit.m4: New file.
28974         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
28975         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
28976         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
28977         * modules/_Exit: New file.
28978         * tests/test-stdlib-c++.cc (_Exit): Check signature.
28979         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
28980
28981 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28982
28983         strtod: make it more-accurate typically, and don't require libm
28984         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
28985         Include limits.h.  Don't include string.h.
28986         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
28987         (locale_isspace): New function, so that no casts are needed to
28988         check whether *s is a space.
28989         (ldexp): Provide an unused dummy if not available.
28990         (scale_radix_exp, parse_number, underlying_strtod): New functions.
28991         (strtod): Use them.  This implementation prefers to use the
28992         underlying strtod if available, falling back on our own code
28993         only to fix known bugs.  This is more likely to produce an
28994         accurate result.  Also, it avoids the use of libm functions.
28995         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
28996         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
28997         was absent, but it caused a test failure with coreutils.
28998         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
28999         with libm.
29000         * modules/strtod (Makefile.am, Link): libm is no longer needed.
29001         * modules/strtod-tests (Makefile.am): Likewise.
29002
29003 2010-07-11  Pádraig Brady  <P@draigBrady.com>
29004             Bruno Haible  <bruno@clisp.org>
29005
29006         unistr/u8-strchr: Optimize ASCII argument case.
29007         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
29008
29009 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
29010
29011         (x)memcoll: minor tweaks
29012         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
29013         is after the type that it qualifies.
29014         (memcoll0): Likewise.
29015         * lib/memcoll.h (memcoll0): Likewise.
29016         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
29017         * lib/xmemcoll.h (xmemcoll0): Likewise.
29018         * lib/memcoll.c (memcoll0): Correct the comment.  This function
29019         differs from memcoll in that the NUL byte is part of the argument.
29020         Omit the abort-checks, as performance is a real issue here.  Plus,
29021         the checks were wrong anyway (an off-by-one error).  Omit local
29022         variable 'diff', as it's a bit clearer that way.
29023         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
29024         no longer needed.
29025
29026 2010-07-08  Chen Guo <chenguo4@yahoo.com>
29027
29028         (x)memcoll: speedup when input is known to be NUL delimited
29029         * lib/memcoll.c: Include stdlib.
29030         (memcoll0): New function.
29031         (strcoll_loop): New function, refactored for use in both memcoll
29032         and memcoll0.
29033         * lib/memcoll.h (memcoll0): Add prototype.
29034         * lib/xmemcoll.c (xmemcoll0): New function.
29035         (collate_error): New function, refactored for use in both xmemcoll
29036         and xmemcoll0.
29037         * lib/xmemcoll.h (xmemcoll0): Add prototype.
29038         * m4/memcoll.m4: add inline invocation.
29039
29040 2010-07-06  Pádraig Brady  <P@draigBrady.com>
29041
29042         * build-aux/bootstrap: Remove any local translations
29043         from the translation project synchronization directory,
29044         so that local only translations are not distributed.
29045
29046 2010-07-04  Bruno Haible  <bruno@clisp.org>
29047
29048         fsusage: Clarify which code applies to which platforms.
29049         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
29050         platform.
29051         * lib/fsusage.c (get_fs_usage): Likewise.
29052
29053 2010-07-04  Bruno Haible  <bruno@clisp.org>
29054
29055         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
29056         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
29057         Reported by Martin Lambers <marlam@marlam.de>.
29058
29059 2010-07-04  Jim Meyering  <meyering@redhat.com>
29060
29061         hash: once again explicitly disallow insertion of NULL
29062         * lib/hash.c (hash_insert0): Reinstate just-removed test:
29063         inserting a NULL pointer cannot work with these functions.
29064         Add a comment with details.
29065         This reverts part of the 2010-07-01 commit, 5bef1a35
29066         "hash: extend module to deal with non-pointer keys".
29067
29068 2010-07-01  Bruno Haible  <bruno@clisp.org>
29069
29070         stdbool: Update doc.
29071         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
29072         Info from Christian Weisgerber <naddy@mips.inka.de>.
29073
29074 2010-07-01  Jim Meyering  <meyering@redhat.com>
29075
29076         hash: extend module to deal with non-pointer keys
29077         * lib/hash.c (hash_insert0): New interface, much like hash_insert
29078         but that allows insertion of non-pointer entries.
29079         Do not disallow an ENTRY value of NULL.
29080         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
29081         * lib/hash.h (hash_insert0): Declare.
29082
29083 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29084
29085         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
29086         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
29087         not present (i.e. with autoconf 2.59 and when using gettextize, not
29088         gnulib), require AC_GNU_SOURCE instead.
29089
29090 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
29091
29092         idpriv-drop: Fix tests.
29093         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
29094         not to the test-idpriv-droptemp program.
29095
29096 2010-06-29  Bruno Haible  <bruno@clisp.org>
29097
29098         string: Fix syntax error with g++ 2.96.
29099         * lib/string.in.h (__pure__): Remove definition.
29100         (_GL_ATTRIBUTE_PURE): New macro.
29101         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
29102         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
29103         Reported by Christian Weisgerber <naddy@mips.inka.de>.
29104
29105 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
29106
29107         unitypes: Fix bug introduced on 2010-05-18.
29108         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
29109
29110 2010-06-22  Eric Blake  <eblake@redhat.com>
29111
29112         memmem: slight optimization
29113         * lib/str-two-way.h (critical_factorization): Update comments.
29114         Reduce work during factorization phase.
29115         Reported by Carlos Bueno <carlos@bueno.org>.
29116
29117 2010-06-21  Bruno Haible  <bruno@clisp.org>
29118
29119         Fix HAVE_CALLOC_POSIX misnomer.
29120         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
29121         !HAVE_CALLOC_POSIX.
29122         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
29123         HAVE_CALLOC_POSIX.
29124         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
29125         instead of HAVE_CALLOC_POSIX.
29126         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
29127         HAVE_CALLOC_POSIX.
29128
29129         Use modern idiom for calloc() replacement.
29130         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
29131         AC_FUNC_CALLOC.
29132         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
29133         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
29134         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29135         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
29136         (gl_REPLACE_CALLOC): New macro.
29137
29138 2010-06-21  Bruno Haible  <bruno@clisp.org>
29139
29140         Fix HAVE_REALLOC_POSIX misnomer.
29141         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
29142         !HAVE_REALLOC_POSIX.
29143         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
29144         HAVE_REALLOC_POSIX.
29145         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
29146         instead of HAVE_REALLOC_POSIX.
29147         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
29148         HAVE_REALLOC_POSIX.
29149
29150         Use modern idiom for realloc() replacement.
29151         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
29152         AC_FUNC_REALLOC.
29153         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
29154         Autoconf's AC_FUNC_REALLOC.
29155         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29156         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
29157         (gl_REPLACE_REALLOC): New macro.
29158         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
29159
29160 2010-06-21  Bruno Haible  <bruno@clisp.org>
29161
29162         Fix HAVE_MALLOC_POSIX misnomer.
29163         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
29164         !HAVE_MALLOC_POSIX.
29165         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
29166         HAVE_MALLOC_POSIX.
29167         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
29168         instead of HAVE_MALLOC_POSIX.
29169         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
29170         HAVE_MALLOC_POSIX.
29171
29172         Use modern idiom for malloc() replacement.
29173         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
29174         AC_FUNC_MALLOC.
29175         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
29176         Autoconf's AC_FUNC_MALLOC.
29177         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29178         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
29179         (gl_REPLACE_MALLOC): New macro.
29180         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
29181
29182 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
29183
29184         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
29185         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
29186         This macro takes 3 arguments, not 4.
29187
29188 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
29189
29190         ipv6: fix detection under mingw
29191         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
29192         in6_addr.
29193
29194 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
29195
29196         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
29197         that strtod() works when cross-compiling to a glibc version known
29198         to work.
29199
29200 2010-06-15  Bruno Haible  <bruno@clisp.org>
29201
29202         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
29203
29204 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
29205
29206         select: Correct timeout.
29207         * lib/select.c (rpl_select): Compute wait_timeout correctly.
29208
29209 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29210
29211         git-version-gen: init shell var to avoid env var influence
29212         * build-aux/git-version-gen (v): Init shell var to empty.
29213
29214 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
29215
29216         priv-set: Don't assume that priv.h exists merely because getppriv does.
29217         See Jan Andersen's bug report about AIX 5L in
29218         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
29219         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
29220         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
29221         * lib/priv-set.h: Likewise.
29222         * tests/test-priv-set.c: Likewise.
29223
29224 2010-06-13  Bruno Haible  <bruno@clisp.org>
29225
29226         relocatable: Make it easier to test whether to install wrappers.
29227         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
29228         RELOCATABLE_VIA_WRAPPER.
29229
29230 2010-06-13  Bruno Haible  <bruno@clisp.org>
29231
29232         gnulib-tool: Display specified modules and dependencies differently.
29233         * gnulib-tool (func_show_module_list): New function.
29234         (func_import, func_create_testdir): Invoke it.
29235         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
29236
29237 2010-06-13  Bruno Haible  <bruno@clisp.org>
29238
29239         gnulib-tool: Align code of func_import and func_create_testdir.
29240         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
29241         specified_modules.
29242
29243 2010-06-12  Jim Meyering  <meyering@redhat.com>
29244
29245         test-inttostr: avoid spurious failure on Solaris 9
29246         * tests/test-inttostr.c (main): Skip the test when snprintf fails
29247         to accept "%ju".  Reported by Bruno Haible.
29248
29249 2010-06-11  Jim Meyering  <meyering@redhat.com>
29250
29251         test-sys_socket: mark variables as used more readably
29252         * tests/test-sys_socket.c (main): Mark otherwise unused variables
29253         as "used" explicitly via (void) statement casts.  This is more
29254         readable than using them in an artificial return expression.
29255         Suggestion from Bruno Haible.
29256
29257 2010-06-11  Bruno Haible  <bruno@clisp.org>
29258
29259         Avoid some more warnings from "gcc -Wwrite-strings".
29260         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
29261         to 'const char *'.
29262         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
29263         * tests/test-c-strcasestr.c (main): Likewise.
29264         * tests/test-mbscasestr1.c (main): Likewise.
29265         * tests/test-mbscasestr2.c (main): Likewise.
29266         * tests/test-memmem.c (main): Likewise.
29267         * tests/test-strstr.c (main): Likewise.
29268         * tests/test-strcasestr.c (main): Likewise.
29269
29270 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29271
29272         init.sh: change framework_failure_ to fail with status 99, not 1
29273         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
29274         automake's parallel-tests rule that this is an unexpected failure,
29275         even if the test is listed in XFAIL_TESTS.
29276
29277 2010-06-11  Jim Meyering  <meyering@redhat.com>
29278
29279         test-inttostr: avoid warnings about 4-6KB literal strings
29280         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
29281         Include "macros.h", for its definition of ASSERT.
29282         (CK): s/assert/ASSERT/
29283         * modules/inttostr-tests (Files): Add macros.h.
29284
29285         init.sh: don't use $ME_ or skip_ before they are defined
29286         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
29287         their first uses.  Also hoist their companions: warn_, fail_,
29288         framework_failure_, $stderr_fileno.  Prompted by a patch from
29289         Stefano Lattarini.
29290
29291         test-sys_socket: avoid set-but-not-used warnings from gcc
29292         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
29293         avoid warning about set-but-not-used variables.
29294
29295         test-xvasprintf: avoid 'const' discard warnings
29296         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
29297         "const" when assigning from literal strings.
29298         (test_xasprintf): Add "void" in function argument list to placate
29299         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
29300
29301         tests: avoid compilation warnings in argmatch and exclude tests...
29302         in packages that define ARGMATCH_DIE_DECL, like coreutils.
29303         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
29304         Since it always exits, declare with the "noreturn" attribute.
29305         * tests/test-argmatch.c: Likewise.
29306
29307         tests: avoid 'const' discard warnings in mbsstr tests
29308         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
29309         * tests/test-mbsstr2.c (main): Likewise.
29310
29311         test-verify: avoid warning from gcc's -Wmissing-declarations
29312         * tests/test-verify.c (function): Declare to be static.
29313
29314         test-inttostr.c: include <string.h> for use of strcmp
29315         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
29316
29317         test-linkat: avoid failed assertion on "other" architectures
29318         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
29319         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
29320         sparc: https://bugs.launchpad.net/bugs/591968
29321
29322 2010-06-11  Jim Meyering  <meyering@redhat.com>
29323
29324         printf.m4: avoid autoconf's "Expanded Before Required" warning
29325         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
29326         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
29327         autoconf warning.
29328
29329 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
29330
29331         Replacement header templates are now named with ".in", not "_".
29332         * doc/gnulib-intro.texi: Correct.
29333
29334 2010-06-10  Jim Meyering  <meyering@redhat.com>
29335
29336         inttostr-tests: depend on snprintf, not snprintf-posix
29337         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
29338         snprintf-posix, to avoid this aclocal failure:
29339           missing file gnulib-tests/vasnprintf.c
29340           configure.ac:45: error: expected source file, required through \
29341           AC_LIBSOURCES, not found
29342
29343 2010-06-10  Jim Meyering  <meyering@redhat.com>
29344
29345         inttostr: add a new function, inttostr, and tests
29346         The namesake function was not available.  The existence of the
29347         template file, inttostr.c makes its addition nontrivial.
29348         * lib/anytostr.c: Rename from inttostr.c.
29349         (anytostr): Rename from inttostr.
29350         * lib/inttostr.c: New file.
29351         * modules/inttostr (Files): Add anytostr.c.
29352         (Makefile.am): Set lib_SOURCES instead of ...
29353         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
29354         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
29355         * lib/offtostr.c: Likewise.
29356         * lib/uinttostr.c: Likewise.
29357         * lib/umaxtostr.c: Likewise.
29358         * modules/inttostr-tests: New file.
29359         * tests/test-inttostr.c: New file.  Test these functions.
29360
29361 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
29362             Bruno Haible  <bruno@clisp.org>
29363
29364         Add "Extending Gnulib" chapter to manual.
29365         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
29366         chapter.
29367         (Extending Gnulib): New chapter.
29368         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
29369         chapter.
29370
29371 2010-06-09  Bruno Haible  <bruno@clisp.org>
29372
29373         Avoid relocwrapper link errors due to gnulib replacement functions.
29374         * lib/areadlink.c: Use the system's malloc, realloc functions.
29375         (areadlink): Set errno to ENOMEM explicitly.
29376         * modules/areadlink (Depends-on): Remove malloc-posix.
29377         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29378
29379 2010-06-09  Bruno Haible  <bruno@clisp.org>
29380
29381         Avoid relocwrapper link errors due to gnulib replacement functions.
29382         * lib/canonicalize-lgpl.c: Use the system's malloc function.
29383         * lib/malloca.c: Likewise.
29384         * lib/relocatable.c: Likewise.
29385         * lib/progreloc.c: Use the system's malloc, sprintf functions.
29386         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
29387         * lib/setenv.c: Use the system's malloc, realloc functions.
29388         * lib/strerror.c: Use the system's sprintf function.
29389         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29390
29391 2010-06-04  Bruno Haible  <bruno@clisp.org>
29392
29393         Prefer documented low-level autoconf macro names.
29394         * m4/lib-link.m4: Use m4_translit instead of translit.
29395         * m4/environ.m4: Likewise.
29396         * m4/mathfunc.m4: Likewise.
29397         * m4/onceonly.m4: Likewise.
29398         * m4/stdint.m4: Likewise.
29399         Suggested by Eric Blake.
29400
29401 2010-06-04  Martin Lambers  <marlam@marlam.de>
29402             Bruno Haible  <bruno@clisp.org>
29403
29404         havelib: Allow library names with '+' characters.
29405         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
29406         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
29407
29408 2010-06-09  Bruno Haible  <bruno@clisp.org>
29409
29410         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
29411         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
29412         realloc failed.
29413
29414 2010-06-08  Peter Simons  <simons@cryp.to>
29415
29416         maint.mk: make the news-check rule more configurable
29417         * top/maint.mk (news-check-lines-spec): New variable.
29418         (news-check): Use "sed -n 1,10p" in place of "head".
29419
29420 2010-06-07  Jim Meyering  <meyering@redhat.com>
29421
29422         do-release-commit-and-tag: fix typo in --help
29423         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
29424
29425         regex: avoid new dead-code warning with gcc-4.6.0
29426         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
29427         if-block containing a while-loop.  It's been unused for at least
29428         5 years.
29429
29430 2010-06-05  Bruno Haible  <bruno@clisp.org>
29431
29432         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
29433         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
29434
29435 2010-06-04  Bruno Haible  <bruno@clisp.org>
29436
29437         Update to GNU gettext 0.18.1.
29438         * modules/gettext (configure.ac): Require gettext infrastructure from
29439         version 0.18.1.
29440
29441 2010-06-03  Bruno Haible  <bruno@clisp.org>
29442
29443         Don't use AC_LIBOBJ with file names in subdirectories.
29444         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
29445         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
29446         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
29447         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
29448         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
29449         gl_LIBUNISTRING_LIBSOURCE.
29450         (Makefile.am): Augment lib_SOURCES here, conditionally.
29451         * NEWS: Drop requirement for Automake option 'subdir-objects'.
29452
29453 2010-06-03  Bruno Haible  <bruno@clisp.org>
29454
29455         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
29456         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
29457         expansion does not end with a newline.
29458         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
29459         unnecessary newline.
29460
29461 2010-06-03  Bruno Haible  <bruno@clisp.org>
29462
29463         Reduce dependencies.
29464         * tests/test-quotearg.h: New file, extracted from
29465         tests/test-quotearg.c.
29466         * tests/test-quotearg-simple.c: New file, extracted from
29467         tests/test-quotearg.c.
29468         * tests/test-quotearg.c: Don't include <ctype.h>.
29469         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
29470         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
29471         use_quote_double_quotes, use_quotearg_colon): Moved to
29472         tests/test-quotearg.h.
29473         (results_g, flag_results, custom_quotes, custom_results): Moved
29474         to tests/test-quotearg-simple.c.
29475         (main): Moved the part that does not depend on gettext to
29476         tests/test-quotearg-simple.c. Return 77 if the test cannot be
29477         performed.
29478         * modules/quotearg-simple: New file.
29479         * modules/quotearg-simple-tests: New file.
29480         * modules/quotearg (Depends-on): Add quotearg-simple.
29481         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
29482         (Files): Add tests/test-quotearg.h.
29483         Reported by Paolo Bonzini.
29484
29485 2010-06-03  Bruno Haible  <bruno@clisp.org>
29486
29487         Reduce dependencies.
29488         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
29489
29490 2010-06-03  Bruno Haible  <bruno@clisp.org>
29491
29492         time: Undefine more broken macros.
29493         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
29494         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
29495         Reported by Eric Blake.
29496
29497 2010-06-03  Bruno Haible  <bruno@clisp.org>
29498
29499         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
29500         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
29501         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
29502         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
29503         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
29504         Reported by Ludovic Courtès <ludo@gnu.org>.
29505
29506 2010-06-02  Eric Blake  <eblake@redhat.com>
29507
29508         time: work with mingw + pthreads-win32 library
29509         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
29510         if timespec is defined only in pthread.h.
29511         * modules/time (Makefile.am): Substitute it.
29512         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
29513         <pthread.h>, when needed.
29514         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
29515         from the library.
29516
29517 2010-05-31  Bruno Haible  <bruno@clisp.org>
29518
29519         Avoid expanding two macros in the wrong order.
29520         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
29521         gl_LIBUNISTRING if it is defined.
29522         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
29523         autoconf >= 2.64.
29524         Reported by Ludovic Courtès <ludo@gnu.org>.
29525
29526 2010-05-27  Jim Meyering  <meyering@redhat.com>
29527
29528         maint.mk: also prohibit "#undef" of always-defined symbols
29529         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
29530         Allow more than one space before the symbol name.
29531         (sc_prohibit_always-defined_macros): Use grep's -E, now that
29532         the regexp uses alternation.
29533
29534 2010-05-26  Eric Blake  <eblake@redhat.com>
29535
29536         maint.mk: avoid echo -e
29537         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
29538         Convert all uses of echo -* to printf.
29539         Reported by Matthias Bolte.
29540
29541 2010-05-25  Bruno Haible  <bruno@clisp.org>
29542
29543         Update to GNU gettext 0.18, part 2.
29544         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
29545         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
29546
29547 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29548
29549         Add missing include in test-pwrite.c.
29550         * tests/test-pwrite.c: Include string.h, for strcmp.
29551
29552 2010-05-24  Bruno Haible  <bruno@clisp.org>
29553
29554         * NEWS: Mention requirement for Automake option 'subdir-objects'.
29555
29556 2010-05-24  Bruno Haible  <bruno@clisp.org>
29557
29558         Don't use conversion with transliteration in u{8,16,32}_strcoll.
29559         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
29560         iconveh_error argument.
29561         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
29562         U_STRCONV_TO_LOCALE.
29563         * lib/unistr/u16-strcoll.c: Likewise.
29564         * lib/unistr/u32-strcoll.c: Likewise.
29565         * modules/unistr/u8-strcoll (Depends-on): Add
29566         uniconv/u8-strconv-to-enc, localcharset. Remove
29567         uniconv/u8-strconv-to-locale.
29568         (configure.ac): Bump version number.
29569         * modules/unistr/u16-strcoll (Depends-on): Add
29570         uniconv/u16-strconv-to-enc, localcharset. Remove
29571         uniconv/u16-strconv-to-locale.
29572         (configure.ac): Bump version number.
29573         * modules/unistr/u32-strcoll (Depends-on): Add
29574         uniconv/u32-strconv-to-enc, localcharset. Remove
29575         uniconv/u32-strconv-to-locale.
29576         (configure.ac): Bump version number.
29577
29578 2010-05-24  Bruno Haible  <bruno@clisp.org>
29579
29580         Avoid a test failure on NetBSD 5.0.
29581         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
29582         an iconv() bug.
29583
29584 2010-05-24  Bruno Haible  <bruno@clisp.org>
29585
29586         Adjust #include directive style.
29587         * modules/regex (Includes): Recommend to write <regex.h>.
29588
29589 2010-05-24  Bruno Haible  <bruno@clisp.org>
29590
29591         regex: Don't require alloca.
29592         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
29593         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
29594         only inside if (0).
29595
29596 2010-05-23  Jim Meyering  <meyering@redhat.com>
29597
29598         test-renameat.c: include <sys/stat.h>
29599         * tests/test-renameat.c: Include <sys/stat.h>; required for
29600         definition of S_IS* macros.
29601
29602 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
29603
29604         Update maintainer documentation for 'relocatable-prog' module.
29605         * doc/relocatable-maint.texi: Update.
29606         Comments by Bruno Haible.
29607
29608 2010-05-23  Bruno Haible  <bruno@clisp.org>
29609
29610         git-merge-changelog: Enable --split-merged-entry by default.
29611         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
29612         (usage): Don't mention this option any more.
29613         Reported by Ralf Wildenhues.
29614
29615 2010-05-23  Jim Meyering  <meyering@redhat.com>
29616
29617         test-pwrite: do not leave behind a test file named "out"
29618         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
29619         The trivial-looking use of init.sh is really necessary.
29620         It ensures that the temporary file, "out", is created in
29621         a temporary directory, and removed upon termination.
29622         * tests/test-pwrite.sh: Re-add file.
29623         * modules/pwrite-tests: Reference it.
29624
29625 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29626
29627         Fix output redirection buglet in init.sh.
29628         * tests/init.sh: Fix redirection of stderr.
29629
29630 2010-05-20  Simon Josefsson  <simon@josefsson.org>
29631
29632         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
29633
29634 2010-05-17  Simon Josefsson  <simon@josefsson.org>
29635
29636         * modules/valgrind-tests: New file.
29637         * m4/valgrind-tests.m4: New file.
29638         * doc/valgrind-tests.texi: New file.
29639         * doc/gnulib.texi (Running self-tests under valgrind): New
29640         section.
29641
29642 2010-05-19  Bruno Haible  <bruno@clisp.org>
29643
29644         Clean up dead code in recent commit.
29645         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
29646         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
29647         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
29648         Suggested by Paolo Bonzini.
29649
29650 2010-05-19  Bruno Haible  <bruno@clisp.org>
29651
29652         Avoid valgrind error reports from libunistring.
29653         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
29654         * modules/libunistring (Files): Add it.
29655         * modules/libunistring-optional (Files): Likewise.
29656
29657 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
29658             Bruno Haible  <bruno@clisp.org>
29659
29660         New module 'libunistring-optional'.
29661         * modules/libunistring-optional: New file.
29662         * m4/libunistring-base.m4: New file.
29663         * m4/libunistring-optional.m4: New file.
29664         * lib/unicase.in.h: Renamed from lib/unicase.h.
29665         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
29666         * lib/unictype.in.h: Renamed from lib/unictype.h.
29667         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
29668         * lib/uniname.in.h: Renamed from lib/uniname.h.
29669         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
29670         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
29671         * lib/unistr.in.h: Renamed from lib/unistr.h.
29672         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
29673         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
29674         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
29675         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
29676         gl_LIBUNISTRING. If the library was found, determine the installed
29677         version and set LIBUNISTRING_VERSION.
29678         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
29679         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
29680         handle a configuration option --with-included-libunistring.
29681         * modules/libunistring (Files): Add m4/absolute-header.m4.
29682         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
29683         Add m4/libunistring-base.m4.
29684         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29685         (Makefile.am): Build unicase.h from unicase.in.h.
29686         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
29687         Add m4/libunistring-base.m4.
29688         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29689         (Makefile.am): Build uniconv.h from uniconv.in.h.
29690         * modules/unictype/base (Files): Use unictype.in.h instead of
29691         unictype.h. Add m4/libunistring-base.m4.
29692         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29693         (Makefile.am): Build unictype.h from unictype.in.h.
29694         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
29695         Add m4/libunistring-base.m4.
29696         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29697         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
29698         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
29699         Add m4/libunistring-base.m4.
29700         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29701         (Makefile.am): Build uniname.h from uniname.in.h.
29702         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
29703         Add m4/libunistring-base.m4.
29704         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29705         (Makefile.am): Build uninorm.h from uninorm.in.h.
29706         * modules/unistdio/base (Files): Use unistdio.in.h instead of
29707         unistdio.h. Add m4/libunistring-base.m4.
29708         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29709         (Makefile.am): Build unistdio.h from unistdio.in.h.
29710         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
29711         Add m4/libunistring-base.m4.
29712         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29713         (Makefile.am): Build unistr.h from unistr.in.h.
29714         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
29715         Add m4/libunistring-base.m4.
29716         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29717         (Makefile.am): Build unitypes.h from unitypes.in.h.
29718         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
29719         Add m4/libunistring-base.m4.
29720         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29721         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
29722         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
29723         uniwidth.h. Add m4/libunistring-base.m4.
29724         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29725         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
29726         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
29727         instead of augmenting lib_SOURCES.
29728         * modules/unicase/empty-suffix-context: Likewise.
29729         * modules/unicase/locale-language: Likewise.
29730         * modules/unicase/tolower: Likewise.
29731         * modules/unicase/totitle: Likewise.
29732         * modules/unicase/toupper: Likewise.
29733         * modules/unicase/u8-casecmp: Likewise.
29734         * modules/unicase/u8-casecoll: Likewise.
29735         * modules/unicase/u8-casefold: Likewise.
29736         * modules/unicase/u8-casexfrm: Likewise.
29737         * modules/unicase/u8-ct-casefold: Likewise.
29738         * modules/unicase/u8-ct-tolower: Likewise.
29739         * modules/unicase/u8-ct-totitle: Likewise.
29740         * modules/unicase/u8-ct-toupper: Likewise.
29741         * modules/unicase/u8-is-cased: Likewise.
29742         * modules/unicase/u8-is-casefolded: Likewise.
29743         * modules/unicase/u8-is-lowercase: Likewise.
29744         * modules/unicase/u8-is-titlecase: Likewise.
29745         * modules/unicase/u8-is-uppercase: Likewise.
29746         * modules/unicase/u8-prefix-context: Likewise.
29747         * modules/unicase/u8-suffix-context: Likewise.
29748         * modules/unicase/u8-tolower: Likewise.
29749         * modules/unicase/u8-totitle: Likewise.
29750         * modules/unicase/u8-toupper: Likewise.
29751         * modules/unicase/u16-casecmp: Likewise.
29752         * modules/unicase/u16-casecoll: Likewise.
29753         * modules/unicase/u16-casefold: Likewise.
29754         * modules/unicase/u16-casexfrm: Likewise.
29755         * modules/unicase/u16-ct-casefold: Likewise.
29756         * modules/unicase/u16-ct-tolower: Likewise.
29757         * modules/unicase/u16-ct-totitle: Likewise.
29758         * modules/unicase/u16-ct-toupper: Likewise.
29759         * modules/unicase/u16-is-cased: Likewise.
29760         * modules/unicase/u16-is-casefolded: Likewise.
29761         * modules/unicase/u16-is-lowercase: Likewise.
29762         * modules/unicase/u16-is-titlecase: Likewise.
29763         * modules/unicase/u16-is-uppercase: Likewise.
29764         * modules/unicase/u16-prefix-context: Likewise.
29765         * modules/unicase/u16-suffix-context: Likewise.
29766         * modules/unicase/u16-tolower: Likewise.
29767         * modules/unicase/u16-totitle: Likewise.
29768         * modules/unicase/u16-toupper: Likewise.
29769         * modules/unicase/u32-casecmp: Likewise.
29770         * modules/unicase/u32-casecoll: Likewise.
29771         * modules/unicase/u32-casefold: Likewise.
29772         * modules/unicase/u32-casexfrm: Likewise.
29773         * modules/unicase/u32-ct-casefold: Likewise.
29774         * modules/unicase/u32-ct-tolower: Likewise.
29775         * modules/unicase/u32-ct-totitle: Likewise.
29776         * modules/unicase/u32-ct-toupper: Likewise.
29777         * modules/unicase/u32-is-cased: Likewise.
29778         * modules/unicase/u32-is-casefolded: Likewise.
29779         * modules/unicase/u32-is-lowercase: Likewise.
29780         * modules/unicase/u32-is-titlecase: Likewise.
29781         * modules/unicase/u32-is-uppercase: Likewise.
29782         * modules/unicase/u32-prefix-context: Likewise.
29783         * modules/unicase/u32-suffix-context: Likewise.
29784         * modules/unicase/u32-tolower: Likewise.
29785         * modules/unicase/u32-totitle: Likewise.
29786         * modules/unicase/u32-toupper: Likewise.
29787         * modules/unicase/ulc-casecmp: Likewise.
29788         * modules/unicase/ulc-casecoll: Likewise.
29789         * modules/unicase/ulc-casexfrm: Likewise.
29790         * modules/uniconv/u8-conv-from-enc: Likewise.
29791         * modules/uniconv/u8-conv-to-enc: Likewise.
29792         * modules/uniconv/u8-strconv-from-enc: Likewise.
29793         * modules/uniconv/u8-strconv-from-locale: Likewise.
29794         * modules/uniconv/u8-strconv-to-enc: Likewise.
29795         * modules/uniconv/u8-strconv-to-locale: Likewise.
29796         * modules/uniconv/u16-conv-from-enc: Likewise.
29797         * modules/uniconv/u16-conv-to-enc: Likewise.
29798         * modules/uniconv/u16-strconv-from-enc: Likewise.
29799         * modules/uniconv/u16-strconv-from-locale: Likewise.
29800         * modules/uniconv/u16-strconv-to-enc: Likewise.
29801         * modules/uniconv/u16-strconv-to-locale: Likewise.
29802         * modules/uniconv/u32-conv-from-enc: Likewise.
29803         * modules/uniconv/u32-conv-to-enc: Likewise.
29804         * modules/uniconv/u32-strconv-from-enc: Likewise.
29805         * modules/uniconv/u32-strconv-from-locale: Likewise.
29806         * modules/uniconv/u32-strconv-to-enc: Likewise.
29807         * modules/uniconv/u32-strconv-to-locale: Likewise.
29808         * modules/unictype/bidicategory-byname: Likewise.
29809         * modules/unictype/bidicategory-name: Likewise.
29810         * modules/unictype/bidicategory-of: Likewise.
29811         * modules/unictype/bidicategory-test: Likewise.
29812         * modules/unictype/block-list: Likewise.
29813         * modules/unictype/block-test: Likewise.
29814         * modules/unictype/category-C: Likewise.
29815         * modules/unictype/category-Cc: Likewise.
29816         * modules/unictype/category-Cf: Likewise.
29817         * modules/unictype/category-Cn: Likewise.
29818         * modules/unictype/category-Co: Likewise.
29819         * modules/unictype/category-Cs: Likewise.
29820         * modules/unictype/category-L: Likewise.
29821         * modules/unictype/category-Ll: Likewise.
29822         * modules/unictype/category-Lm: Likewise.
29823         * modules/unictype/category-Lo: Likewise.
29824         * modules/unictype/category-Lt: Likewise.
29825         * modules/unictype/category-Lu: Likewise.
29826         * modules/unictype/category-M: Likewise.
29827         * modules/unictype/category-Mc: Likewise.
29828         * modules/unictype/category-Me: Likewise.
29829         * modules/unictype/category-Mn: Likewise.
29830         * modules/unictype/category-N: Likewise.
29831         * modules/unictype/category-Nd: Likewise.
29832         * modules/unictype/category-Nl: Likewise.
29833         * modules/unictype/category-No: Likewise.
29834         * modules/unictype/category-P: Likewise.
29835         * modules/unictype/category-Pc: Likewise.
29836         * modules/unictype/category-Pd: Likewise.
29837         * modules/unictype/category-Pe: Likewise.
29838         * modules/unictype/category-Pf: Likewise.
29839         * modules/unictype/category-Pi: Likewise.
29840         * modules/unictype/category-Po: Likewise.
29841         * modules/unictype/category-Ps: Likewise.
29842         * modules/unictype/category-S: Likewise.
29843         * modules/unictype/category-Sc: Likewise.
29844         * modules/unictype/category-Sk: Likewise.
29845         * modules/unictype/category-Sm: Likewise.
29846         * modules/unictype/category-So: Likewise.
29847         * modules/unictype/category-Z: Likewise.
29848         * modules/unictype/category-Zl: Likewise.
29849         * modules/unictype/category-Zp: Likewise.
29850         * modules/unictype/category-Zs: Likewise.
29851         * modules/unictype/category-and: Likewise.
29852         * modules/unictype/category-and-not: Likewise.
29853         * modules/unictype/category-byname: Likewise.
29854         * modules/unictype/category-name: Likewise.
29855         * modules/unictype/category-none: Likewise.
29856         * modules/unictype/category-of: Likewise.
29857         * modules/unictype/category-or: Likewise.
29858         * modules/unictype/category-test: Likewise.
29859         * modules/unictype/combining-class: Likewise.
29860         * modules/unictype/ctype-alnum: Likewise.
29861         * modules/unictype/ctype-alpha: Likewise.
29862         * modules/unictype/ctype-blank: Likewise.
29863         * modules/unictype/ctype-cntrl: Likewise.
29864         * modules/unictype/ctype-digit: Likewise.
29865         * modules/unictype/ctype-graph: Likewise.
29866         * modules/unictype/ctype-lower: Likewise.
29867         * modules/unictype/ctype-print: Likewise.
29868         * modules/unictype/ctype-punct: Likewise.
29869         * modules/unictype/ctype-space: Likewise.
29870         * modules/unictype/ctype-upper: Likewise.
29871         * modules/unictype/ctype-xdigit: Likewise.
29872         * modules/unictype/decimal-digit: Likewise.
29873         * modules/unictype/digit: Likewise.
29874         * modules/unictype/mirror: Likewise.
29875         * modules/unictype/numeric: Likewise.
29876         * modules/unictype/property-alphabetic: Likewise.
29877         * modules/unictype/property-ascii-hex-digit: Likewise.
29878         * modules/unictype/property-bidi-arabic-digit: Likewise.
29879         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
29880         * modules/unictype/property-bidi-block-separator: Likewise.
29881         * modules/unictype/property-bidi-boundary-neutral: Likewise.
29882         * modules/unictype/property-bidi-common-separator: Likewise.
29883         * modules/unictype/property-bidi-control: Likewise.
29884         * modules/unictype/property-bidi-embedding-or-override: Likewise.
29885         * modules/unictype/property-bidi-eur-num-separator: Likewise.
29886         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
29887         * modules/unictype/property-bidi-european-digit: Likewise.
29888         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
29889         * modules/unictype/property-bidi-left-to-right: Likewise.
29890         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
29891         * modules/unictype/property-bidi-other-neutral: Likewise.
29892         * modules/unictype/property-bidi-pdf: Likewise.
29893         * modules/unictype/property-bidi-segment-separator: Likewise.
29894         * modules/unictype/property-bidi-whitespace: Likewise.
29895         * modules/unictype/property-byname: Likewise.
29896         * modules/unictype/property-combining: Likewise.
29897         * modules/unictype/property-composite: Likewise.
29898         * modules/unictype/property-currency-symbol: Likewise.
29899         * modules/unictype/property-dash: Likewise.
29900         * modules/unictype/property-decimal-digit: Likewise.
29901         * modules/unictype/property-default-ignorable-code-point: Likewise.
29902         * modules/unictype/property-deprecated: Likewise.
29903         * modules/unictype/property-diacritic: Likewise.
29904         * modules/unictype/property-extender: Likewise.
29905         * modules/unictype/property-format-control: Likewise.
29906         * modules/unictype/property-grapheme-base: Likewise.
29907         * modules/unictype/property-grapheme-extend: Likewise.
29908         * modules/unictype/property-grapheme-link: Likewise.
29909         * modules/unictype/property-hex-digit: Likewise.
29910         * modules/unictype/property-hyphen: Likewise.
29911         * modules/unictype/property-id-continue: Likewise.
29912         * modules/unictype/property-id-start: Likewise.
29913         * modules/unictype/property-ideographic: Likewise.
29914         * modules/unictype/property-ids-binary-operator: Likewise.
29915         * modules/unictype/property-ids-trinary-operator: Likewise.
29916         * modules/unictype/property-ignorable-control: Likewise.
29917         * modules/unictype/property-iso-control: Likewise.
29918         * modules/unictype/property-join-control: Likewise.
29919         * modules/unictype/property-left-of-pair: Likewise.
29920         * modules/unictype/property-line-separator: Likewise.
29921         * modules/unictype/property-logical-order-exception: Likewise.
29922         * modules/unictype/property-lowercase: Likewise.
29923         * modules/unictype/property-math: Likewise.
29924         * modules/unictype/property-non-break: Likewise.
29925         * modules/unictype/property-not-a-character: Likewise.
29926         * modules/unictype/property-numeric: Likewise.
29927         * modules/unictype/property-other-alphabetic: Likewise.
29928         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
29929         * modules/unictype/property-other-grapheme-extend: Likewise.
29930         * modules/unictype/property-other-id-continue: Likewise.
29931         * modules/unictype/property-other-id-start: Likewise.
29932         * modules/unictype/property-other-lowercase: Likewise.
29933         * modules/unictype/property-other-math: Likewise.
29934         * modules/unictype/property-other-uppercase: Likewise.
29935         * modules/unictype/property-paired-punctuation: Likewise.
29936         * modules/unictype/property-paragraph-separator: Likewise.
29937         * modules/unictype/property-pattern-syntax: Likewise.
29938         * modules/unictype/property-pattern-white-space: Likewise.
29939         * modules/unictype/property-private-use: Likewise.
29940         * modules/unictype/property-punctuation: Likewise.
29941         * modules/unictype/property-quotation-mark: Likewise.
29942         * modules/unictype/property-radical: Likewise.
29943         * modules/unictype/property-sentence-terminal: Likewise.
29944         * modules/unictype/property-soft-dotted: Likewise.
29945         * modules/unictype/property-space: Likewise.
29946         * modules/unictype/property-terminal-punctuation: Likewise.
29947         * modules/unictype/property-test: Likewise.
29948         * modules/unictype/property-titlecase: Likewise.
29949         * modules/unictype/property-unassigned-code-value: Likewise.
29950         * modules/unictype/property-unified-ideograph: Likewise.
29951         * modules/unictype/property-uppercase: Likewise.
29952         * modules/unictype/property-variation-selector: Likewise.
29953         * modules/unictype/property-white-space: Likewise.
29954         * modules/unictype/property-xid-continue: Likewise.
29955         * modules/unictype/property-xid-start: Likewise.
29956         * modules/unictype/property-zero-width: Likewise.
29957         * modules/unictype/scripts: Likewise.
29958         * modules/unictype/syntax-c-ident: Likewise.
29959         * modules/unictype/syntax-c-whitespace: Likewise.
29960         * modules/unictype/syntax-java-ident: Likewise.
29961         * modules/unictype/syntax-java-whitespace: Likewise.
29962         * modules/unilbrk/u8-possible-linebreaks: Likewise.
29963         * modules/unilbrk/u8-width-linebreaks: Likewise.
29964         * modules/unilbrk/u16-possible-linebreaks: Likewise.
29965         * modules/unilbrk/u16-width-linebreaks: Likewise.
29966         * modules/unilbrk/u32-possible-linebreaks: Likewise.
29967         * modules/unilbrk/u32-width-linebreaks: Likewise.
29968         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
29969         * modules/unilbrk/ulc-width-linebreaks: Likewise.
29970         * modules/uniname/uniname: Likewise.
29971         * modules/uninorm/canonical-decomposition: Likewise.
29972         * modules/uninorm/composition: Likewise.
29973         * modules/uninorm/decomposing-form: Likewise.
29974         * modules/uninorm/decomposition: Likewise.
29975         * modules/uninorm/filter: Likewise.
29976         * modules/uninorm/nfc: Likewise.
29977         * modules/uninorm/nfd: Likewise.
29978         * modules/uninorm/nfkc: Likewise.
29979         * modules/uninorm/nfkd: Likewise.
29980         * modules/uninorm/u8-normalize: Likewise.
29981         * modules/uninorm/u8-normcmp: Likewise.
29982         * modules/uninorm/u8-normcoll: Likewise.
29983         * modules/uninorm/u8-normxfrm: Likewise.
29984         * modules/uninorm/u16-normalize: Likewise.
29985         * modules/uninorm/u16-normcmp: Likewise.
29986         * modules/uninorm/u16-normcoll: Likewise.
29987         * modules/uninorm/u16-normxfrm: Likewise.
29988         * modules/uninorm/u32-normalize: Likewise.
29989         * modules/uninorm/u32-normcmp: Likewise.
29990         * modules/uninorm/u32-normcoll: Likewise.
29991         * modules/uninorm/u32-normxfrm: Likewise.
29992         * modules/unistdio/u8-asnprintf: Likewise.
29993         * modules/unistdio/u8-asprintf: Likewise.
29994         * modules/unistdio/u8-snprintf: Likewise.
29995         * modules/unistdio/u8-sprintf: Likewise.
29996         * modules/unistdio/u8-u8-asnprintf: Likewise.
29997         * modules/unistdio/u8-u8-asprintf: Likewise.
29998         * modules/unistdio/u8-u8-snprintf: Likewise.
29999         * modules/unistdio/u8-u8-sprintf: Likewise.
30000         * modules/unistdio/u8-u8-vasnprintf: Likewise.
30001         * modules/unistdio/u8-u8-vasprintf: Likewise.
30002         * modules/unistdio/u8-u8-vsnprintf: Likewise.
30003         * modules/unistdio/u8-u8-vsprintf: Likewise.
30004         * modules/unistdio/u8-vasnprintf: Likewise.
30005         * modules/unistdio/u8-vasprintf: Likewise.
30006         * modules/unistdio/u8-vsnprintf: Likewise.
30007         * modules/unistdio/u8-vsprintf: Likewise.
30008         * modules/unistdio/u16-asnprintf: Likewise.
30009         * modules/unistdio/u16-asprintf: Likewise.
30010         * modules/unistdio/u16-snprintf: Likewise.
30011         * modules/unistdio/u16-sprintf: Likewise.
30012         * modules/unistdio/u16-u16-asnprintf: Likewise.
30013         * modules/unistdio/u16-u16-asprintf: Likewise.
30014         * modules/unistdio/u16-u16-snprintf: Likewise.
30015         * modules/unistdio/u16-u16-sprintf: Likewise.
30016         * modules/unistdio/u16-u16-vasnprintf: Likewise.
30017         * modules/unistdio/u16-u16-vasprintf: Likewise.
30018         * modules/unistdio/u16-u16-vsnprintf: Likewise.
30019         * modules/unistdio/u16-u16-vsprintf: Likewise.
30020         * modules/unistdio/u16-vasnprintf: Likewise.
30021         * modules/unistdio/u16-vasprintf: Likewise.
30022         * modules/unistdio/u16-vsnprintf: Likewise.
30023         * modules/unistdio/u16-vsprintf: Likewise.
30024         * modules/unistdio/u32-asnprintf: Likewise.
30025         * modules/unistdio/u32-asprintf: Likewise.
30026         * modules/unistdio/u32-snprintf: Likewise.
30027         * modules/unistdio/u32-sprintf: Likewise.
30028         * modules/unistdio/u32-u32-asnprintf: Likewise.
30029         * modules/unistdio/u32-u32-asprintf: Likewise.
30030         * modules/unistdio/u32-u32-snprintf: Likewise.
30031         * modules/unistdio/u32-u32-sprintf: Likewise.
30032         * modules/unistdio/u32-u32-vasnprintf: Likewise.
30033         * modules/unistdio/u32-u32-vasprintf: Likewise.
30034         * modules/unistdio/u32-u32-vsnprintf: Likewise.
30035         * modules/unistdio/u32-u32-vsprintf: Likewise.
30036         * modules/unistdio/u32-vasnprintf: Likewise.
30037         * modules/unistdio/u32-vasprintf: Likewise.
30038         * modules/unistdio/u32-vsnprintf: Likewise.
30039         * modules/unistdio/u32-vsprintf: Likewise.
30040         * modules/unistdio/ulc-asnprintf: Likewise.
30041         * modules/unistdio/ulc-asprintf: Likewise.
30042         * modules/unistdio/ulc-fprintf: Likewise.
30043         * modules/unistdio/ulc-snprintf: Likewise.
30044         * modules/unistdio/ulc-sprintf: Likewise.
30045         * modules/unistdio/ulc-vasnprintf: Likewise.
30046         * modules/unistdio/ulc-vasprintf: Likewise.
30047         * modules/unistdio/ulc-vfprintf: Likewise.
30048         * modules/unistdio/ulc-vsnprintf: Likewise.
30049         * modules/unistdio/ulc-vsprintf: Likewise.
30050         * modules/unistr/u8-check: Likewise.
30051         * modules/unistr/u8-chr: Likewise.
30052         * modules/unistr/u8-cmp: Likewise.
30053         * modules/unistr/u8-cmp2: Likewise.
30054         * modules/unistr/u8-cpy: Likewise.
30055         * modules/unistr/u8-cpy-alloc: Likewise.
30056         * modules/unistr/u8-endswith: Likewise.
30057         * modules/unistr/u8-mblen: Likewise.
30058         * modules/unistr/u8-mbsnlen: Likewise.
30059         * modules/unistr/u8-mbtouc: Likewise.
30060         * modules/unistr/u8-mbtouc-unsafe: Likewise.
30061         * modules/unistr/u8-mbtoucr: Likewise.
30062         * modules/unistr/u8-move: Likewise.
30063         * modules/unistr/u8-next: Likewise.
30064         * modules/unistr/u8-prev: Likewise.
30065         * modules/unistr/u8-set: Likewise.
30066         * modules/unistr/u8-startswith: Likewise.
30067         * modules/unistr/u8-stpcpy: Likewise.
30068         * modules/unistr/u8-stpncpy: Likewise.
30069         * modules/unistr/u8-strcat: Likewise.
30070         * modules/unistr/u8-strchr: Likewise.
30071         * modules/unistr/u8-strcmp: Likewise.
30072         * modules/unistr/u8-strcoll: Likewise.
30073         * modules/unistr/u8-strcpy: Likewise.
30074         * modules/unistr/u8-strcspn: Likewise.
30075         * modules/unistr/u8-strdup: Likewise.
30076         * modules/unistr/u8-strlen: Likewise.
30077         * modules/unistr/u8-strmblen: Likewise.
30078         * modules/unistr/u8-strmbtouc: Likewise.
30079         * modules/unistr/u8-strncat: Likewise.
30080         * modules/unistr/u8-strncmp: Likewise.
30081         * modules/unistr/u8-strncpy: Likewise.
30082         * modules/unistr/u8-strnlen: Likewise.
30083         * modules/unistr/u8-strpbrk: Likewise.
30084         * modules/unistr/u8-strrchr: Likewise.
30085         * modules/unistr/u8-strspn: Likewise.
30086         * modules/unistr/u8-strstr: Likewise.
30087         * modules/unistr/u8-strtok: Likewise.
30088         * modules/unistr/u8-to-u16: Likewise.
30089         * modules/unistr/u8-to-u32: Likewise.
30090         * modules/unistr/u8-uctomb: Likewise.
30091         * modules/unistr/u16-check: Likewise.
30092         * modules/unistr/u16-chr: Likewise.
30093         * modules/unistr/u16-cmp: Likewise.
30094         * modules/unistr/u16-cmp2: Likewise.
30095         * modules/unistr/u16-cpy: Likewise.
30096         * modules/unistr/u16-cpy-alloc: Likewise.
30097         * modules/unistr/u16-endswith: Likewise.
30098         * modules/unistr/u16-mblen: Likewise.
30099         * modules/unistr/u16-mbsnlen: Likewise.
30100         * modules/unistr/u16-mbtouc: Likewise.
30101         * modules/unistr/u16-mbtouc-unsafe: Likewise.
30102         * modules/unistr/u16-mbtoucr: Likewise.
30103         * modules/unistr/u16-move: Likewise.
30104         * modules/unistr/u16-next: Likewise.
30105         * modules/unistr/u16-prev: Likewise.
30106         * modules/unistr/u16-set: Likewise.
30107         * modules/unistr/u16-startswith: Likewise.
30108         * modules/unistr/u16-stpcpy: Likewise.
30109         * modules/unistr/u16-stpncpy: Likewise.
30110         * modules/unistr/u16-strcat: Likewise.
30111         * modules/unistr/u16-strchr: Likewise.
30112         * modules/unistr/u16-strcmp: Likewise.
30113         * modules/unistr/u16-strcoll: Likewise.
30114         * modules/unistr/u16-strcpy: Likewise.
30115         * modules/unistr/u16-strcspn: Likewise.
30116         * modules/unistr/u16-strdup: Likewise.
30117         * modules/unistr/u16-strlen: Likewise.
30118         * modules/unistr/u16-strmblen: Likewise.
30119         * modules/unistr/u16-strmbtouc: Likewise.
30120         * modules/unistr/u16-strncat: Likewise.
30121         * modules/unistr/u16-strncmp: Likewise.
30122         * modules/unistr/u16-strncpy: Likewise.
30123         * modules/unistr/u16-strnlen: Likewise.
30124         * modules/unistr/u16-strpbrk: Likewise.
30125         * modules/unistr/u16-strrchr: Likewise.
30126         * modules/unistr/u16-strspn: Likewise.
30127         * modules/unistr/u16-strstr: Likewise.
30128         * modules/unistr/u16-strtok: Likewise.
30129         * modules/unistr/u16-to-u32: Likewise.
30130         * modules/unistr/u16-to-u8: Likewise.
30131         * modules/unistr/u16-uctomb: Likewise.
30132         * modules/unistr/u32-check: Likewise.
30133         * modules/unistr/u32-chr: Likewise.
30134         * modules/unistr/u32-cmp: Likewise.
30135         * modules/unistr/u32-cmp2: Likewise.
30136         * modules/unistr/u32-cpy: Likewise.
30137         * modules/unistr/u32-cpy-alloc: Likewise.
30138         * modules/unistr/u32-endswith: Likewise.
30139         * modules/unistr/u32-mblen: Likewise.
30140         * modules/unistr/u32-mbsnlen: Likewise.
30141         * modules/unistr/u32-mbtouc: Likewise.
30142         * modules/unistr/u32-mbtouc-unsafe: Likewise.
30143         * modules/unistr/u32-mbtoucr: Likewise.
30144         * modules/unistr/u32-move: Likewise.
30145         * modules/unistr/u32-next: Likewise.
30146         * modules/unistr/u32-prev: Likewise.
30147         * modules/unistr/u32-set: Likewise.
30148         * modules/unistr/u32-startswith: Likewise.
30149         * modules/unistr/u32-stpcpy: Likewise.
30150         * modules/unistr/u32-stpncpy: Likewise.
30151         * modules/unistr/u32-strcat: Likewise.
30152         * modules/unistr/u32-strchr: Likewise.
30153         * modules/unistr/u32-strcmp: Likewise.
30154         * modules/unistr/u32-strcoll: Likewise.
30155         * modules/unistr/u32-strcpy: Likewise.
30156         * modules/unistr/u32-strcspn: Likewise.
30157         * modules/unistr/u32-strdup: Likewise.
30158         * modules/unistr/u32-strlen: Likewise.
30159         * modules/unistr/u32-strmblen: Likewise.
30160         * modules/unistr/u32-strmbtouc: Likewise.
30161         * modules/unistr/u32-strncat: Likewise.
30162         * modules/unistr/u32-strncmp: Likewise.
30163         * modules/unistr/u32-strncpy: Likewise.
30164         * modules/unistr/u32-strnlen: Likewise.
30165         * modules/unistr/u32-strpbrk: Likewise.
30166         * modules/unistr/u32-strrchr: Likewise.
30167         * modules/unistr/u32-strspn: Likewise.
30168         * modules/unistr/u32-strstr: Likewise.
30169         * modules/unistr/u32-strtok: Likewise.
30170         * modules/unistr/u32-to-u16: Likewise.
30171         * modules/unistr/u32-to-u8: Likewise.
30172         * modules/unistr/u32-uctomb: Likewise.
30173         * modules/uniwbrk/u8-wordbreaks: Likewise.
30174         * modules/uniwbrk/u16-wordbreaks: Likewise.
30175         * modules/uniwbrk/u32-wordbreaks: Likewise.
30176         * modules/uniwbrk/ulc-wordbreaks: Likewise.
30177         * modules/uniwbrk/wordbreak-property: Likewise.
30178         * modules/uniwidth/u8-strwidth: Likewise.
30179         * modules/uniwidth/u8-width: Likewise.
30180         * modules/uniwidth/u16-strwidth: Likewise.
30181         * modules/uniwidth/u16-width: Likewise.
30182         * modules/uniwidth/u32-strwidth: Likewise.
30183         * modules/uniwidth/u32-width: Likewise.
30184         * modules/uniwidth/width: Likewise.
30185         * modules/unicase/cased-tests (Makefile.am): Link all test programs
30186         with $(LIBUNISTRING).
30187         * modules/unicase/ignorable-tests: Likewise.
30188         * modules/unicase/locale-language-tests: Likewise.
30189         * modules/unicase/tolower-tests: Likewise.
30190         * modules/unicase/totitle-tests: Likewise.
30191         * modules/unicase/toupper-tests: Likewise.
30192         * modules/unicase/u8-casecmp-tests: Likewise.
30193         * modules/unicase/u8-casecoll-tests: Likewise.
30194         * modules/unicase/u8-casefold-tests: Likewise.
30195         * modules/unicase/u8-is-cased-tests: Likewise.
30196         * modules/unicase/u8-is-casefolded-tests: Likewise.
30197         * modules/unicase/u8-is-lowercase-tests: Likewise.
30198         * modules/unicase/u8-is-titlecase-tests: Likewise.
30199         * modules/unicase/u8-is-uppercase-tests: Likewise.
30200         * modules/unicase/u8-tolower-tests: Likewise.
30201         * modules/unicase/u8-totitle-tests: Likewise.
30202         * modules/unicase/u8-toupper-tests: Likewise.
30203         * modules/unicase/u16-casecmp-tests: Likewise.
30204         * modules/unicase/u16-casecoll-tests: Likewise.
30205         * modules/unicase/u16-casefold-tests: Likewise.
30206         * modules/unicase/u16-is-cased-tests: Likewise.
30207         * modules/unicase/u16-is-casefolded-tests: Likewise.
30208         * modules/unicase/u16-is-lowercase-tests: Likewise.
30209         * modules/unicase/u16-is-titlecase-tests: Likewise.
30210         * modules/unicase/u16-is-uppercase-tests: Likewise.
30211         * modules/unicase/u16-tolower-tests: Likewise.
30212         * modules/unicase/u16-totitle-tests: Likewise.
30213         * modules/unicase/u16-toupper-tests: Likewise.
30214         * modules/unicase/u32-casecmp-tests: Likewise.
30215         * modules/unicase/u32-casecoll-tests: Likewise.
30216         * modules/unicase/u32-casefold-tests: Likewise.
30217         * modules/unicase/u32-is-cased-tests: Likewise.
30218         * modules/unicase/u32-is-casefolded-tests: Likewise.
30219         * modules/unicase/u32-is-lowercase-tests: Likewise.
30220         * modules/unicase/u32-is-titlecase-tests: Likewise.
30221         * modules/unicase/u32-is-uppercase-tests: Likewise.
30222         * modules/unicase/u32-tolower-tests: Likewise.
30223         * modules/unicase/u32-totitle-tests: Likewise.
30224         * modules/unicase/u32-toupper-tests: Likewise.
30225         * modules/unicase/ulc-casecmp-tests: Likewise.
30226         * modules/unicase/ulc-casecoll-tests: Likewise.
30227         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
30228         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
30229         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
30230         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
30231         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
30232         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
30233         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
30234         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
30235         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
30236         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
30237         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
30238         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
30239         * modules/unictype/bidicategory-byname-tests: Likewise.
30240         * modules/unictype/bidicategory-name-tests: Likewise.
30241         * modules/unictype/bidicategory-of-tests: Likewise.
30242         * modules/unictype/bidicategory-test-tests: Likewise.
30243         * modules/unictype/block-list-tests: Likewise.
30244         * modules/unictype/block-of-tests: Likewise.
30245         * modules/unictype/block-test-tests: Likewise.
30246         * modules/unictype/category-C-tests: Likewise.
30247         * modules/unictype/category-Cc-tests: Likewise.
30248         * modules/unictype/category-Cf-tests: Likewise.
30249         * modules/unictype/category-Cn-tests: Likewise.
30250         * modules/unictype/category-Co-tests: Likewise.
30251         * modules/unictype/category-Cs-tests: Likewise.
30252         * modules/unictype/category-L-tests: Likewise.
30253         * modules/unictype/category-Ll-tests: Likewise.
30254         * modules/unictype/category-Lm-tests: Likewise.
30255         * modules/unictype/category-Lo-tests: Likewise.
30256         * modules/unictype/category-Lt-tests: Likewise.
30257         * modules/unictype/category-Lu-tests: Likewise.
30258         * modules/unictype/category-M-tests: Likewise.
30259         * modules/unictype/category-Mc-tests: Likewise.
30260         * modules/unictype/category-Me-tests: Likewise.
30261         * modules/unictype/category-Mn-tests: Likewise.
30262         * modules/unictype/category-N-tests: Likewise.
30263         * modules/unictype/category-Nd-tests: Likewise.
30264         * modules/unictype/category-Nl-tests: Likewise.
30265         * modules/unictype/category-No-tests: Likewise.
30266         * modules/unictype/category-P-tests: Likewise.
30267         * modules/unictype/category-Pc-tests: Likewise.
30268         * modules/unictype/category-Pd-tests: Likewise.
30269         * modules/unictype/category-Pe-tests: Likewise.
30270         * modules/unictype/category-Pf-tests: Likewise.
30271         * modules/unictype/category-Pi-tests: Likewise.
30272         * modules/unictype/category-Po-tests: Likewise.
30273         * modules/unictype/category-Ps-tests: Likewise.
30274         * modules/unictype/category-S-tests: Likewise.
30275         * modules/unictype/category-Sc-tests: Likewise.
30276         * modules/unictype/category-Sk-tests: Likewise.
30277         * modules/unictype/category-Sm-tests: Likewise.
30278         * modules/unictype/category-So-tests: Likewise.
30279         * modules/unictype/category-Z-tests: Likewise.
30280         * modules/unictype/category-Zl-tests: Likewise.
30281         * modules/unictype/category-Zp-tests: Likewise.
30282         * modules/unictype/category-Zs-tests: Likewise.
30283         * modules/unictype/category-and-not-tests: Likewise.
30284         * modules/unictype/category-and-tests: Likewise.
30285         * modules/unictype/category-byname-tests: Likewise.
30286         * modules/unictype/category-name-tests: Likewise.
30287         * modules/unictype/category-none-tests: Likewise.
30288         * modules/unictype/category-of-tests: Likewise.
30289         * modules/unictype/category-or-tests: Likewise.
30290         * modules/unictype/category-test-withtable-tests: Likewise.
30291         * modules/unictype/combining-class-tests: Likewise.
30292         * modules/unictype/ctype-alnum-tests: Likewise.
30293         * modules/unictype/ctype-alpha-tests: Likewise.
30294         * modules/unictype/ctype-blank-tests: Likewise.
30295         * modules/unictype/ctype-cntrl-tests: Likewise.
30296         * modules/unictype/ctype-digit-tests: Likewise.
30297         * modules/unictype/ctype-graph-tests: Likewise.
30298         * modules/unictype/ctype-lower-tests: Likewise.
30299         * modules/unictype/ctype-print-tests: Likewise.
30300         * modules/unictype/ctype-punct-tests: Likewise.
30301         * modules/unictype/ctype-space-tests: Likewise.
30302         * modules/unictype/ctype-upper-tests: Likewise.
30303         * modules/unictype/ctype-xdigit-tests: Likewise.
30304         * modules/unictype/decimal-digit-tests: Likewise.
30305         * modules/unictype/digit-tests: Likewise.
30306         * modules/unictype/mirror-tests: Likewise.
30307         * modules/unictype/numeric-tests: Likewise.
30308         * modules/unictype/property-alphabetic-tests: Likewise.
30309         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
30310         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
30311         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
30312         * modules/unictype/property-bidi-block-separator-tests: Likewise.
30313         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
30314         * modules/unictype/property-bidi-common-separator-tests: Likewise.
30315         * modules/unictype/property-bidi-control-tests: Likewise.
30316         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
30317         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
30318         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
30319         * modules/unictype/property-bidi-european-digit-tests: Likewise.
30320         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
30321         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
30322         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
30323         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
30324         * modules/unictype/property-bidi-pdf-tests: Likewise.
30325         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
30326         * modules/unictype/property-bidi-whitespace-tests: Likewise.
30327         * modules/unictype/property-byname-tests: Likewise.
30328         * modules/unictype/property-combining-tests: Likewise.
30329         * modules/unictype/property-composite-tests: Likewise.
30330         * modules/unictype/property-currency-symbol-tests: Likewise.
30331         * modules/unictype/property-dash-tests: Likewise.
30332         * modules/unictype/property-decimal-digit-tests: Likewise.
30333         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
30334         * modules/unictype/property-deprecated-tests: Likewise.
30335         * modules/unictype/property-diacritic-tests: Likewise.
30336         * modules/unictype/property-extender-tests: Likewise.
30337         * modules/unictype/property-format-control-tests: Likewise.
30338         * modules/unictype/property-grapheme-base-tests: Likewise.
30339         * modules/unictype/property-grapheme-extend-tests: Likewise.
30340         * modules/unictype/property-grapheme-link-tests: Likewise.
30341         * modules/unictype/property-hex-digit-tests: Likewise.
30342         * modules/unictype/property-hyphen-tests: Likewise.
30343         * modules/unictype/property-id-continue-tests: Likewise.
30344         * modules/unictype/property-id-start-tests: Likewise.
30345         * modules/unictype/property-ideographic-tests: Likewise.
30346         * modules/unictype/property-ids-binary-operator-tests: Likewise.
30347         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
30348         * modules/unictype/property-ignorable-control-tests: Likewise.
30349         * modules/unictype/property-iso-control-tests: Likewise.
30350         * modules/unictype/property-join-control-tests: Likewise.
30351         * modules/unictype/property-left-of-pair-tests: Likewise.
30352         * modules/unictype/property-line-separator-tests: Likewise.
30353         * modules/unictype/property-logical-order-exception-tests: Likewise.
30354         * modules/unictype/property-lowercase-tests: Likewise.
30355         * modules/unictype/property-math-tests: Likewise.
30356         * modules/unictype/property-non-break-tests: Likewise.
30357         * modules/unictype/property-not-a-character-tests: Likewise.
30358         * modules/unictype/property-numeric-tests: Likewise.
30359         * modules/unictype/property-other-alphabetic-tests: Likewise.
30360         * modules/unictype/property-other-default-ignorable-code-point-tests:
30361         Likewise.
30362         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
30363         * modules/unictype/property-other-id-continue-tests: Likewise.
30364         * modules/unictype/property-other-id-start-tests: Likewise.
30365         * modules/unictype/property-other-lowercase-tests: Likewise.
30366         * modules/unictype/property-other-math-tests: Likewise.
30367         * modules/unictype/property-other-uppercase-tests: Likewise.
30368         * modules/unictype/property-paired-punctuation-tests: Likewise.
30369         * modules/unictype/property-paragraph-separator-tests: Likewise.
30370         * modules/unictype/property-pattern-syntax-tests: Likewise.
30371         * modules/unictype/property-pattern-white-space-tests: Likewise.
30372         * modules/unictype/property-private-use-tests: Likewise.
30373         * modules/unictype/property-punctuation-tests: Likewise.
30374         * modules/unictype/property-quotation-mark-tests: Likewise.
30375         * modules/unictype/property-radical-tests: Likewise.
30376         * modules/unictype/property-sentence-terminal-tests: Likewise.
30377         * modules/unictype/property-soft-dotted-tests: Likewise.
30378         * modules/unictype/property-space-tests: Likewise.
30379         * modules/unictype/property-terminal-punctuation-tests: Likewise.
30380         * modules/unictype/property-test-tests: Likewise.
30381         * modules/unictype/property-titlecase-tests: Likewise.
30382         * modules/unictype/property-unassigned-code-value-tests: Likewise.
30383         * modules/unictype/property-unified-ideograph-tests: Likewise.
30384         * modules/unictype/property-uppercase-tests: Likewise.
30385         * modules/unictype/property-variation-selector-tests: Likewise.
30386         * modules/unictype/property-white-space-tests: Likewise.
30387         * modules/unictype/property-xid-continue-tests: Likewise.
30388         * modules/unictype/property-xid-start-tests: Likewise.
30389         * modules/unictype/property-zero-width-tests: Likewise.
30390         * modules/unictype/scripts-tests: Likewise.
30391         * modules/unictype/syntax-c-ident-tests: Likewise.
30392         * modules/unictype/syntax-c-whitespace-tests: Likewise.
30393         * modules/unictype/syntax-java-ident-tests: Likewise.
30394         * modules/unictype/syntax-java-whitespace-tests: Likewise.
30395         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
30396         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
30397         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
30398         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
30399         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
30400         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
30401         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
30402         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
30403         * modules/uniname/uniname-tests: Likewise.
30404         * modules/uninorm/canonical-decomposition-tests: Likewise.
30405         * modules/uninorm/compat-decomposition-tests: Likewise.
30406         * modules/uninorm/composition-tests: Likewise.
30407         * modules/uninorm/decomposing-form-tests: Likewise.
30408         * modules/uninorm/decomposition-tests: Likewise.
30409         * modules/uninorm/filter-tests: Likewise.
30410         * modules/uninorm/nfc-tests: Likewise.
30411         * modules/uninorm/nfd-tests: Likewise.
30412         * modules/uninorm/nfkc-tests: Likewise.
30413         * modules/uninorm/nfkd-tests: Likewise.
30414         * modules/uninorm/u8-normcmp-tests: Likewise.
30415         * modules/uninorm/u8-normcoll-tests: Likewise.
30416         * modules/uninorm/u16-normcmp-tests: Likewise.
30417         * modules/uninorm/u16-normcoll-tests: Likewise.
30418         * modules/uninorm/u32-normcmp-tests: Likewise.
30419         * modules/uninorm/u32-normcoll-tests: Likewise.
30420         * modules/unistdio/u8-asnprintf-tests: Likewise.
30421         * modules/unistdio/u8-vasnprintf-tests: Likewise.
30422         * modules/unistdio/u8-vasprintf-tests: Likewise.
30423         * modules/unistdio/u8-vsnprintf-tests: Likewise.
30424         * modules/unistdio/u8-vsprintf-tests: Likewise.
30425         * modules/unistdio/u16-asnprintf-tests: Likewise.
30426         * modules/unistdio/u16-vasnprintf-tests: Likewise.
30427         * modules/unistdio/u16-vasprintf-tests: Likewise.
30428         * modules/unistdio/u16-vsnprintf-tests: Likewise.
30429         * modules/unistdio/u16-vsprintf-tests: Likewise.
30430         * modules/unistdio/u32-asnprintf-tests: Likewise.
30431         * modules/unistdio/u32-vasnprintf-tests: Likewise.
30432         * modules/unistdio/u32-vasprintf-tests: Likewise.
30433         * modules/unistdio/u32-vsnprintf-tests: Likewise.
30434         * modules/unistdio/u32-vsprintf-tests: Likewise.
30435         * modules/unistdio/ulc-asnprintf-tests: Likewise.
30436         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
30437         * modules/unistdio/ulc-vasprintf-tests: Likewise.
30438         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
30439         * modules/unistdio/ulc-vsprintf-tests: Likewise.
30440         * modules/unistr/u8-check-tests: Likewise.
30441         * modules/unistr/u8-chr-tests: Likewise.
30442         * modules/unistr/u8-cmp-tests: Likewise.
30443         * modules/unistr/u8-cmp2-tests: Likewise.
30444         * modules/unistr/u8-cpy-alloc-tests: Likewise.
30445         * modules/unistr/u8-cpy-tests: Likewise.
30446         * modules/unistr/u8-mblen-tests: Likewise.
30447         * modules/unistr/u8-mbsnlen-tests: Likewise.
30448         * modules/unistr/u8-mbtouc-tests: Likewise.
30449         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
30450         * modules/unistr/u8-mbtoucr-tests: Likewise.
30451         * modules/unistr/u8-move-tests: Likewise.
30452         * modules/unistr/u8-next-tests: Likewise.
30453         * modules/unistr/u8-prev-tests: Likewise.
30454         * modules/unistr/u8-set-tests: Likewise.
30455         * modules/unistr/u8-stpcpy-tests: Likewise.
30456         * modules/unistr/u8-stpncpy-tests: Likewise.
30457         * modules/unistr/u8-strcat-tests: Likewise.
30458         * modules/unistr/u8-strcmp-tests: Likewise.
30459         * modules/unistr/u8-strcoll-tests: Likewise.
30460         * modules/unistr/u8-strcpy-tests: Likewise.
30461         * modules/unistr/u8-strdup-tests: Likewise.
30462         * modules/unistr/u8-strlen-tests: Likewise.
30463         * modules/unistr/u8-strmblen-tests: Likewise.
30464         * modules/unistr/u8-strmbtouc-tests: Likewise.
30465         * modules/unistr/u8-strncat-tests: Likewise.
30466         * modules/unistr/u8-strncmp-tests: Likewise.
30467         * modules/unistr/u8-strncpy-tests: Likewise.
30468         * modules/unistr/u8-strnlen-tests: Likewise.
30469         * modules/unistr/u8-to-u16-tests: Likewise.
30470         * modules/unistr/u8-to-u32-tests: Likewise.
30471         * modules/unistr/u8-uctomb-tests: Likewise.
30472         * modules/unistr/u16-check-tests: Likewise.
30473         * modules/unistr/u16-chr-tests: Likewise.
30474         * modules/unistr/u16-cmp-tests: Likewise.
30475         * modules/unistr/u16-cmp2-tests: Likewise.
30476         * modules/unistr/u16-cpy-alloc-tests: Likewise.
30477         * modules/unistr/u16-cpy-tests: Likewise.
30478         * modules/unistr/u16-mblen-tests: Likewise.
30479         * modules/unistr/u16-mbsnlen-tests: Likewise.
30480         * modules/unistr/u16-mbtouc-tests: Likewise.
30481         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
30482         * modules/unistr/u16-mbtoucr-tests: Likewise.
30483         * modules/unistr/u16-move-tests: Likewise.
30484         * modules/unistr/u16-next-tests: Likewise.
30485         * modules/unistr/u16-prev-tests: Likewise.
30486         * modules/unistr/u16-set-tests: Likewise.
30487         * modules/unistr/u16-stpcpy-tests: Likewise.
30488         * modules/unistr/u16-stpncpy-tests: Likewise.
30489         * modules/unistr/u16-strcat-tests: Likewise.
30490         * modules/unistr/u16-strcmp-tests: Likewise.
30491         * modules/unistr/u16-strcoll-tests: Likewise.
30492         * modules/unistr/u16-strcpy-tests: Likewise.
30493         * modules/unistr/u16-strdup-tests: Likewise.
30494         * modules/unistr/u16-strlen-tests: Likewise.
30495         * modules/unistr/u16-strmblen-tests: Likewise.
30496         * modules/unistr/u16-strmbtouc-tests: Likewise.
30497         * modules/unistr/u16-strncat-tests: Likewise.
30498         * modules/unistr/u16-strncmp-tests: Likewise.
30499         * modules/unistr/u16-strncpy-tests: Likewise.
30500         * modules/unistr/u16-strnlen-tests: Likewise.
30501         * modules/unistr/u16-to-u32-tests: Likewise.
30502         * modules/unistr/u16-to-u8-tests: Likewise.
30503         * modules/unistr/u16-uctomb-tests: Likewise.
30504         * modules/unistr/u32-check-tests: Likewise.
30505         * modules/unistr/u32-chr-tests: Likewise.
30506         * modules/unistr/u32-cmp-tests: Likewise.
30507         * modules/unistr/u32-cmp2-tests: Likewise.
30508         * modules/unistr/u32-cpy-alloc-tests: Likewise.
30509         * modules/unistr/u32-cpy-tests: Likewise.
30510         * modules/unistr/u32-mblen-tests: Likewise.
30511         * modules/unistr/u32-mbsnlen-tests: Likewise.
30512         * modules/unistr/u32-mbtouc-tests: Likewise.
30513         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
30514         * modules/unistr/u32-mbtoucr-tests: Likewise.
30515         * modules/unistr/u32-move-tests: Likewise.
30516         * modules/unistr/u32-next-tests: Likewise.
30517         * modules/unistr/u32-prev-tests: Likewise.
30518         * modules/unistr/u32-set-tests: Likewise.
30519         * modules/unistr/u32-stpcpy-tests: Likewise.
30520         * modules/unistr/u32-stpncpy-tests: Likewise.
30521         * modules/unistr/u32-strcat-tests: Likewise.
30522         * modules/unistr/u32-strcmp-tests: Likewise.
30523         * modules/unistr/u32-strcoll-tests: Likewise.
30524         * modules/unistr/u32-strcpy-tests: Likewise.
30525         * modules/unistr/u32-strdup-tests: Likewise.
30526         * modules/unistr/u32-strlen-tests: Likewise.
30527         * modules/unistr/u32-strmblen-tests: Likewise.
30528         * modules/unistr/u32-strmbtouc-tests: Likewise.
30529         * modules/unistr/u32-strncat-tests: Likewise.
30530         * modules/unistr/u32-strncmp-tests: Likewise.
30531         * modules/unistr/u32-strncpy-tests: Likewise.
30532         * modules/unistr/u32-strnlen-tests: Likewise.
30533         * modules/unistr/u32-to-u16-tests: Likewise.
30534         * modules/unistr/u32-to-u8-tests: Likewise.
30535         * modules/unistr/u32-uctomb-tests: Likewise.
30536         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
30537         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
30538         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
30539         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
30540         * modules/uniwidth/u8-strwidth-tests: Likewise.
30541         * modules/uniwidth/u8-width-tests: Likewise.
30542         * modules/uniwidth/u16-strwidth-tests: Likewise.
30543         * modules/uniwidth/u16-width-tests: Likewise.
30544         * modules/uniwidth/u32-strwidth-tests: Likewise.
30545         * modules/uniwidth/u32-width-tests: Likewise.
30546         * modules/uniwidth/width-tests: Likewise.
30547
30548 2010-05-18  Richard Jones  <rjones@redhat.com>
30549
30550         doc: users.txt: list hivex
30551         * users.txt: Add hivex.
30552
30553 2010-05-18  Richard Jones  <rjones@redhat.com>
30554
30555         doc: users.txt: list febootstrap
30556         * users.txt: Add febootstrap.
30557
30558 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
30559
30560         bootstrap: fix an error when gnulib is not used as a git submodule
30561         * build-aux/bootstrap (gnulib_path): If its length is zero then
30562         assign "gnulib" to it.
30563         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
30564
30565 2010-05-16  Bruno Haible  <bruno@clisp.org>
30566
30567         Avoid autoconf warnings about AM_ICONV.
30568         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
30569         2.64.
30570
30571 2010-05-16  Bruno Haible  <bruno@clisp.org>
30572
30573         absolute-header: Make the macro usable in more situations.
30574         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
30575         from gl_ABSOLUTE_HEADER.
30576         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
30577
30578 2010-05-16  James Youngman  <jay@gnu.org>
30579
30580         doc: update users.txt
30581         * users.txt: Add CSSC.
30582
30583 2010-05-16  Jim Meyering  <meyering@redhat.com>
30584
30585         init.sh: fix an error in the previous change; add more comments
30586         * tests/init.sh: Compare exit code in loop against 9, not 2.
30587         Patch by Bruno Haible.
30588         Make the two tests more similar by adding an empty "then" clause.
30589         Add comments.
30590
30591         init.sh: avoid unnecessary shell re-exec
30592         * tests/init.sh: Improve the re-exec-required check to first test the
30593         current shell.  If it passes the test, do not search for a shell that
30594         does pass, and do not re-exec.  This test is particularly contorted to
30595         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
30596         of $(...) evokes a syntax error and causes immediate shell exit with
30597         status 2.  Bruno Haible reported that the re-exec made it impossible
30598         to single-step through any init.sh-using script.
30599
30600 2010-05-16  Bruno Haible  <bruno@clisp.org>
30601
30602         Fix collision between gnulib's and libintl's printf replacements.
30603         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
30604         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
30605         (printf): When using GNU C, map the __printf__ function to rpl_printf
30606         via __asm__. When not using GNU C, define rpl_printf instead of
30607         __printf__.
30608         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
30609         commit.
30610         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
30611         commit.
30612         * m4/asm-underscore.m4: New file.
30613         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
30614         * modules/stdio (Files): Add m4/asm-underscore.m4.
30615         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
30616         Reported by Ben Pfaff.
30617
30618 2010-05-16  Bruno Haible  <bruno@clisp.org>
30619
30620         verify: Avoid skipping the test on openSUSE 11.0.
30621         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
30622
30623 2010-05-13  Bruno Haible  <bruno@clisp.org>
30624
30625         Avoid useless warnings from G++.
30626         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
30627         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
30628         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30629
30630 2010-05-11  Jim Meyering  <meyering@redhat.com>
30631
30632         maint.mk: tweak preceding change
30633         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
30634         regexps tighter by anchoring at EOL, and make the new group "shy"
30635         for slightly decreased overhead.
30636
30637 2010-05-11  Eric Blake  <eblake@redhat.com>
30638
30639         maint.mk: gnulib doesn't guarantee NSIG
30640         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
30641
30642 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30643
30644         test-pwrite.c: Remove unused variable declaration.
30645         * tests/test-pwrite.c (main): Remove read_buf declaration.
30646
30647         Remove useless test-pwrite.sh file.
30648         * tests/test-pwrite.sh: Delete file.
30649         * modules/pwrite-tests: Remove references.
30650         Reported by Bruno Haible.
30651
30652 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30653
30654         init.sh: fix a typo
30655         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
30656
30657 2010-05-10  Jim Meyering  <meyering@redhat.com>
30658
30659         maint.mk: avoid using a temporary file in the always-defined-macros check
30660         * top/maint.mk (.re-defmac): Remove rule.
30661         (gl_trap_): Remove definition.
30662         (sc_prohibit_always-defined_macros): Rewrite not to create and
30663         depend on a temporary file.  Instead, depend on GNU grep's ability
30664         to read a list of regular expressions from stdin when given "-f -".
30665
30666 2010-05-09  Bruno Haible  <bruno@clisp.org>
30667
30668         Update to GNU gettext 0.18, part 1.
30669         * m4/gettext.m4: Update to GNU gettext 0.18.
30670         * m4/intl.m4: Likewise.
30671         * m4/po.m4: Likewise.
30672         * modules/gettext (Files): Add m4/fcntl-o.m4.
30673         (configure.ac): Require gettext infrastructure from version 0.18.
30674
30675 2010-05-09  Jim Meyering  <meyering@redhat.com>
30676
30677         init.sh: enable MALLOC_PERTURB_
30678         * tests/init.sh: Enable glibc's malloc-perturbing option.
30679
30680         maint.mk: improve sc_cross_check_PATH_usage_in_tests
30681         With my recent change in init.sh from the two-line form:
30682             -#   : ${srcdir=.}
30683             -#   . "$srcdir/init.sh"; path_prepend_ .
30684             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
30685         I noticed that using the one-line form would cause this test
30686         to fail with a false-positive, or to stop working altogether,
30687         depending on whether help-version changed or all the tests did.
30688         * top/maint.mk (_hv_regex): Remove this definition.
30689         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
30690         (_hv_regex_strong): Use a stronger regex to check for conformance.
30691         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
30692         Give a separate diagnostic for lack of conforming use.
30693
30694         maint.mk: prohibit definition of symbols defined by gnulib
30695         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
30696         definition of symbols defined by gnulib.
30697
30698 2010-05-09  Bruno Haible  <bruno@clisp.org>
30699
30700         acl: Avoid test failure on Cygwin-hosted mingw.
30701         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
30702
30703 2010-05-09  Bruno Haible  <bruno@clisp.org>
30704
30705         error: Use system's fcntl function.
30706         * lib/error.c (fcntl): Undefine.
30707
30708 2010-05-09  Jim Meyering  <meyering@redhat.com>
30709
30710         verify: adjust formatting to be more consistent
30711         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
30712         argument-list '('s, and after one comma.
30713
30714 2010-05-09  Bruno Haible  <bruno@clisp.org>
30715
30716         error: More reliable output on mingw.
30717         * lib/error.c: Include <windows.h>.
30718         (is_open): New function.
30719         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
30720         defined.
30721
30722 2010-05-09  Bruno Haible  <bruno@clisp.org>
30723
30724         vasnprintf: Fix syntax errors in libintl build on mingw.
30725         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
30726         pad_ourselves and prec_ourselves after use.
30727
30728 2010-05-08  Bruno Haible  <bruno@clisp.org>
30729
30730         * lib/config.charset: Update comments for Cygwin 1.7.
30731         * lib/localcharset.c: Likewise.
30732
30733 2010-05-07  Jim Meyering  <meyering@redhat.com>
30734
30735         init.sh: improve comments
30736         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
30737         . "${srcdir=.}/init.sh"; path_prepend_ .
30738         Add a note about path_prepend_ and the alternative of using
30739         TESTS_ENVIRONMENT.
30740
30741 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30742
30743         exclude: Unescape hashed patterns in wildcard mode.
30744         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
30745         to the hash list.
30746         * tests/test-exclude8.sh: New test case.
30747         * modules/exclude-tests: Add new test.
30748
30749 2010-05-05  Eric Blake  <eblake@redhat.com>
30750
30751         verify: automate tests
30752         * modules/verify-tests: New module.
30753         * tests/test-verify.sh: New file.
30754         * tests/test-verify.c: Guard each negative test with a unique id.
30755         Also avoid warning about unused left hand of comma expressions.
30756
30757 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
30758
30759         Further improvements to verify.h, suggested by Eric Blake.
30760         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
30761         the GL_* versions, to avoid collision with OpenGL.
30762         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
30763         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
30764         than testing merely whether it's defined.
30765
30766         Modify verify.h to pacify gcc -Wredundant_decls.
30767         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
30768         These use the prefix "GL_" since they're likely to be useful elsewhere.
30769         We may need to break them out into a different .h file.
30770         (__COUNTER__): Define to 0 if the compiler doesn't support it.
30771         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
30772         of verify_function__.
30773
30774 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30775
30776         Tests for module pwrite.
30777         * modules/pwrite-tests: New file.
30778         * tests/test-pwrite.sh: New file.
30779         * tests/test-pwrite.c: New file.
30780
30781         New module pwrite.
30782         * lib/unistd.in.h (pwrite): New declaration.
30783         * lib/pwrite.c: New file, from glibc with modifications.
30784         * m4/pwrite.m4: New file.
30785         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
30786         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
30787         REPLACE_PWRITE.
30788         * modules/pwrite: New file.
30789         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
30790         REPLACE_PWRITE.
30791         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
30792         * doc/posix-functions/pwrite.texi: Mention the new module.
30793
30794 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30795
30796         pread: Update documentation.
30797         * doc/posix-functions/pread.texi: Mention the 'pread' module.
30798
30799 2010-05-04  Eric Blake  <eblake@redhat.com>
30800
30801         docs: update cygwin progress
30802         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
30803         this bug.
30804         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
30805         Added in cygwin 1.7.2.
30806         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
30807         Likewise.
30808         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
30809         Likewise.
30810         * doc/glibc-functions/dup3.texi (dup3): Likewise.
30811         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
30812         * doc/glibc-functions/accept4.texi (accept4): Likewise.
30813         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
30814         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
30815         Mention nproc module.
30816         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
30817         bug in cygwin 1.7.5 addition.
30818         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
30819         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
30820         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
30821         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
30822         1.7.5.
30823         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
30824         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
30825         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
30826         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
30827         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
30828         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
30829         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
30830         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
30831         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
30832         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
30833         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
30834         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
30835         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
30836         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
30837         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
30838         Likewise.
30839         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
30840         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
30841         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
30842         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
30843         Likewise.
30844         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
30845         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
30846         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
30847         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
30848         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
30849         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
30850         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
30851         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
30852         Likewise.
30853         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
30854         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
30855         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
30856         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
30857         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
30858         Likewise.
30859         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
30860         Likewise.
30861         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
30862         Likewise.
30863         * doc/glibc-functions/xdrrec_endofrecord.texi
30864         (xdrrec_endofrecord): Likewise.
30865         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
30866         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
30867         Likewise.
30868         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
30869         Likewise.
30870
30871 2010-05-04  Jim Meyering  <meyering@redhat.com>
30872
30873         gendocs.sh: make its "-s FILE" option more useful
30874         * build-aux/gendocs.sh: When honoring the -s FILE option, update
30875         $PACKAGE to reflect the probably-different basename of "FILE".
30876
30877 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
30878
30879         bootstrap: don't ignore download_po_files failure
30880         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
30881         failure.
30882
30883 2010-05-03  Jim Meyering  <meyering@redhat.com>
30884
30885         maint.mk: allow to pass options to gendocs.sh
30886         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
30887         (gendocs_options_): New overridable variable.
30888
30889         gnu-web-doc-update: don't ignore configure or build failure
30890         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
30891
30892         announce-gen: backslash-escape '@'s in --help output
30893         * build-aux/announce-gen: Fix syntax errors.
30894
30895         maint.mk, announce-gen: allow project-specific announcement mail headers
30896         * top/maint.mk (translation_project_): Define default.
30897         (announcement_Cc_, announcement_mail_headers_): Likewise.
30898         (announcement): Invoke announce-gen with new --mail-headers option.
30899         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
30900
30901         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
30902         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
30903         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
30904         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
30905         line in the "err2" output file when running "make check" in verbose
30906         mode (i.e., with set -x enabled).
30907
30908 2010-05-03  Bruno Haible  <bruno@clisp.org>
30909
30910         wctob: Fix for weird platforms.
30911         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
30912         argument value.
30913
30914 2010-05-03  Jim Meyering  <meyering@redhat.com>
30915
30916         maint.mk: prohibit unwarranted use of <strings.h>
30917         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
30918         strings.h in a file that does not also use strcasecmp, strncasecmp,
30919         ffs or ffsll.
30920
30921         maint.mk: remove obsolete comments
30922         * top/maint.mk: Remove stale, commented-out rules.
30923
30924 2010-05-02  Bruno Haible  <bruno@clisp.org>
30925
30926         wcwidth: Declare also when it's aliased.
30927         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
30928         macro.
30929
30930 2010-05-02  Bruno Haible  <bruno@clisp.org>
30931
30932         Fix regression from 2010-04-25.
30933         * gnulib-tool (func_modules_transitive_closure): Check the status of
30934         all modules, not only of the tests that are of the form foo-tests where
30935         foo is a module.
30936
30937 2010-05-02  Bruno Haible  <bruno@clisp.org>
30938
30939         wctob: Work around nasty Cygwin 1.7.2 bug.
30940         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
30941         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
30942
30943 2010-05-01  Bruno Haible  <bruno@clisp.org>
30944
30945         fpurge: Sharper test.
30946         * tests/test-fpurge.c (main): Add one more ftell check.
30947         * modules/fpurge-tests (Depends-on): Add ftell.
30948         Suggested by Eric Blake.
30949
30950 2010-05-01  Bruno Haible  <bruno@clisp.org>
30951
30952         ftello: Another test.
30953         * tests/test-ftello3.c: New file.
30954         * modules/ftello-tests (Files): Add it.
30955         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30956         MOSTLYCLEANFILES.
30957
30958         ftell: Another test.
30959         * tests/test-ftell3.c: New file.
30960         * modules/ftell-tests (Files): Add it.
30961         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30962         MOSTLYCLEANFILES.
30963
30964 2010-05-01  Bruno Haible  <bruno@clisp.org>
30965
30966         ftell, ftello: Work around Solaris bug.
30967         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
30968         * lib/ftello.c: Include stdio-impl.h.
30969         (ftello): On Solaris, when _IOWRT is set, compute the result without
30970         looking at _IOREAD.
30971         * modules/ftello (Files): Add lib/stdio-impl.h.
30972         * doc/posix-functions/ftell.texi: Mention Solaris bug.
30973         * doc/posix-functions/ftello.texi: Likewise.
30974         Reported by Eric Blake.
30975
30976 2010-05-01  Bruno Haible  <bruno@clisp.org>
30977
30978         freading: Adapt to special meaning of _IOREAD flag on Solaris.
30979         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
30980         the _IOWRT flag is also set.
30981
30982 2010-05-01  Bruno Haible  <bruno@clisp.org>
30983
30984         Fix doc about a HP-UX stdio bug.
30985         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
30986         * doc/posix-functions/ftello.texi: Likewise.
30987
30988 2010-05-01  Bruno Haible  <bruno@clisp.org>
30989
30990         lseek test: Fix failure on Solaris.
30991         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
30992         output.
30993
30994 2010-04-30  Jim Meyering  <meyering@redhat.com>
30995
30996         bootstrap: don't ignore failure to generate po*/Makevars
30997         * build-aux/bootstrap (with_gettext): Don't ignore failure
30998         to create po/Makevars or runtime-po/Makevars.
30999
31000 2010-04-29  Eric Blake  <eblake@redhat.com>
31001
31002         headers: relax license to LGPLv2+
31003         * modules/fcntl-h (License): Relax license.
31004         * modules/getopt-posix (License): Likewise.
31005         * modules/locale (License): Likewise.
31006         * modules/math (License): Likewise.
31007         * modules/pty (License): Likewise.
31008         * modules/sched (License): Likewise.
31009         * modules/search (License): Likewise.
31010         * modules/spawn (License): Likewise.
31011         * modules/stdarg (License): Likewise.
31012         * modules/sysexits (License): Likewise.
31013
31014 2010-04-29  Jim Meyering  <meyering@redhat.com>
31015
31016         inttypes: relax license to LGPLv2+
31017         * modules/inttypes (License): Relax license.
31018
31019 2010-04-29  Simon Josefsson  <simon@josefsson.org>
31020
31021         * top/maint.mk (indent): Run twice to produce idempotent results.
31022
31023 2010-04-28  Bruno Haible  <bruno@clisp.org>
31024
31025         getdate: Generate getdate.c in the source directory.
31026         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
31027         MOSTLYCLEANFILES.
31028         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
31029
31030 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
31031
31032         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
31033         is not declared as a const *; avoid warnings in that case.
31034
31035 2010-04-28  Eric Blake  <eblake@redhat.com>
31036
31037         canonicalize-lgpl: avoid compiler warning
31038         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
31039         declaration' / 'extraneous semicolon' warning with some compilers.
31040         Reported by Andreas Gruenbacher.
31041
31042 2010-04-28  Jim Meyering  <meyering@redhat.com>
31043
31044         init.sh: ensure a more reliable exit status when exiting via trap
31045         * tests/init.sh (setup_): Don't rely on $? in signal handler.
31046         Inspired by patches from Dmitry V. Levin.
31047         Also trap on signal 3 (SIGQUIT).
31048
31049 2010-04-27  Bruno Haible  <bruno@clisp.org>
31050
31051         Update doc about utimes().
31052         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
31053         'utimens' module.
31054         Reported by Andreas Gruenbacher <agruen@suse.de>.
31055
31056 2010-04-27  Eric Blake  <eblake@redhat.com>
31057
31058         full-read, full-write: relax license
31059         * modules/full-read (License): Drop to LGPLv2+.
31060         * modules/full-write (License): Likewise.
31061         * modules/safe-read (License): Likewise.
31062         * modules/safe-write (License): Likewise.
31063
31064         pthread: mention library for linking
31065         * modules/pthread (Link): Mention $(LIB_PTHREAD).
31066
31067 2010-04-27  Jim Meyering  <meyering@redhat.com>
31068
31069         maint.mk: fix a bug introduced in last change
31070         * top/maint.mk (gl_assured_headers_): Now that all names are on
31071         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
31072         is not anchored to end of word, it should be adequate.
31073
31074         maint.mk: avoid side-effect in latest syntax-check
31075         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
31076         to run commands via $(shell...), and hence to incur cost only when
31077         the new rule is actually run.
31078
31079         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
31080         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
31081         and use that to create a regexp used to detect all #if HAVE_..._H uses.
31082         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
31083         (gl_assured_headers_, az_, AZ_): Define.
31084         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
31085
31086 2010-04-26  Jim Meyering  <jim@meyering.net>
31087             Bruno Haible  <bruno@clisp.org>
31088
31089         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
31090         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
31091         Prompted by an exchange with Gilles Espinasse.
31092
31093 2010-04-26  Jim Meyering  <meyering@redhat.com>
31094
31095         git-version-gen: aesthetic tweak
31096         * build-aux/git-version-gen: Use "$nl" rather than a literal,
31097         so that the command remains on a single line.
31098
31099 2010-04-26  Eric Blake  <eblake@redhat.com>
31100
31101         git-version-gen: allow use on EBCDIC hosts
31102         * build-aux/git-version-gen (dirty): Use literal rather than tying
31103         ourselves to ascii.
31104         Reported by Steve Goetze.
31105
31106 2010-04-25  Bruno Haible  <bruno@clisp.org>
31107
31108         netdb: Add support for GNULIB_POSIXCHECK.
31109         * lib/netdb.in.h: Include warn-on-use.h.
31110         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
31111         functions are used when GNULIB_POSIXCHECK is defined and the
31112         getaddrinfo module is not in use.
31113         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
31114         freeaddrinfo, gai_strerror, getnameinfo are declared.
31115         * modules/netdb (Depends-on): Add warn-on-use.
31116         (Makefile.am): Include warn-on-use.h in netdb.h.
31117
31118 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
31119
31120         build: avoid "make check" failure without .git/ directory
31121         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
31122         there is no .git/ directory.
31123
31124 2010-04-25  Bruno Haible  <bruno@clisp.org>
31125
31126         ptsname: Fix misuse of ttyname_r.
31127         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
31128         of errno.
31129
31130 2010-04-25  Bruno Haible  <bruno@clisp.org>
31131
31132         ttyname_r: Make it work on Solaris 10.
31133         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
31134         if the system function has the POSIX declaration. Test whether the
31135         function fails if the buffer is less than 128 bytes large.
31136         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
31137         system's ttyname_r function. Provide a reasonably large buffer.
31138         * modules/ttyname_r (Depends-on): Add extensions.
31139         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
31140
31141 2010-04-25  Bruno Haible  <bruno@clisp.org>
31142
31143         Use the 'extensions' module for some more functions on Solaris.
31144         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
31145         module.
31146         * doc/posix-functions/ctime_r.texi: Likewise.
31147         * doc/posix-functions/getgrgid_r.texi: Likewise.
31148         * doc/posix-functions/getgrnam_r.texi: Likewise.
31149         * doc/posix-functions/getpwnam_r.texi: Likewise.
31150         * doc/posix-functions/getpwuid_r.texi: Likewise.
31151         * doc/posix-functions/readdir_r.texi: Likewise.
31152         * doc/posix-functions/sigwait.texi: Likewise.
31153         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
31154         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
31155
31156 2010-04-25  Bruno Haible  <bruno@clisp.org>
31157
31158         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
31159         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
31160         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
31161         * lib/ttyname_r.c: Include <limits.h>.
31162         (ttyname_r): Define using the system's ttyname_r function, if it exists
31163         and not on Solaris.
31164         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
31165         set.
31166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
31167         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
31168         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
31169         Reported by Simon Josefsson.
31170
31171 2010-04-25  Bruno Haible  <bruno@clisp.org>
31172
31173         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
31174         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
31175         * doc/posix-functions/ctime_r.texi: Likewise.
31176         * doc/posix-functions/getgrgid_r.texi: Likewise.
31177         * doc/posix-functions/getgrnam_r.texi: Likewise.
31178         * doc/posix-functions/getlogin_r.texi: Likewise.
31179         * doc/posix-functions/getpwnam_r.texi: Likewise.
31180         * doc/posix-functions/getpwuid_r.texi: Likewise.
31181         * doc/posix-functions/readdir_r.texi: Likewise.
31182         * doc/posix-functions/sigwait.texi: Likewise.
31183         * doc/posix-functions/ttyname_r.texi: Likewise.
31184         Reported by Simon Josefsson.
31185
31186 2010-04-25  Bruno Haible  <bruno@clisp.org>
31187
31188         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
31189         * gnulib-tool (func_usage): Document that --with-*-tests options apply
31190         also to --create-testdir.
31191         (func_acceptable): Don't consider the status of *-tests modules here.
31192         (func_modules_transitive_closure): Consider it here, before including a
31193         test module.
31194         (func_import, func_create_testdir): Set inc_all_direct_tests,
31195         inc_all_indirect_tests.
31196         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
31197         --create-testdir and --create-megatestdir.
31198
31199 2010-04-25  Bruno Haible  <bruno@clisp.org>
31200
31201         gnulib-tool: Add --without-*-tests options.
31202         * gnulib-tool (func_usage): Document the --without-*-tests options.
31203         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
31204         excl_unportable_tests): New variables.
31205         Fail if they are specified with --import or --update.
31206         (func_acceptable): Respect the excl_*_tests variables.
31207         (func_import): Set the excl_*_tests variables to empty.
31208
31209 2010-04-25  Simon Josefsson  <simon@josefsson.org>
31210             Bruno Haible  <bruno@clisp.org>
31211
31212         Work around a MacOS X 10.4 bug with openpty.
31213         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
31214         * tests/test-openpty.c (main): Close the master side explicitly.
31215
31216 2010-04-25  Bruno Haible  <bruno@clisp.org>
31217
31218         strnlen: Fix a C++ test error on MacOS X and Solaris.
31219         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
31220         the function is not declared.
31221         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
31222         Simon Josefsson.
31223
31224 2010-04-24  Bruno Haible  <bruno@clisp.org>
31225
31226         Avoid a gcc warning.
31227         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
31228         of correct type for %08lx directive.
31229         Reported by Eric Blake.
31230
31231 2010-04-24  Bruno Haible  <bruno@clisp.org>
31232
31233         vasnprintf: Correct errno value in case of out-of-memory.
31234         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
31235         or sprintf. Use the errno value from SNPRINTF or sprintf.
31236         Reported by Ian Beckwith <ianb@erislabs.net>.
31237
31238 2010-04-24  Bruno Haible  <bruno@clisp.org>
31239
31240         ansi-c++-opt: Find correct compiler when cross-compiling.
31241         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
31242         AC_CHECK_PROGS.
31243         Reported by Simon Josefsson.
31244
31245 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
31246
31247         vc-list-files: Add support for subversion
31248         * build-aux/vc-list-files: Use "svn list" to generate the list of
31249         files controlled by subversion.
31250
31251 2010-04-23  Jim Meyering  <meyering@redhat.com>
31252
31253         vc-list-files tests: convert to use init.sh
31254         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
31255         path_prepend_.
31256         Use Exit, not exit.
31257         Use skip_ rather than open coding it.
31258         Remove trap set-up and compare definitions.
31259         * tests/test-vc-list-files-git.sh: Likewise.
31260         * modules/vc-list-files-tests (Files): Add tests/init.sh.
31261
31262 2010-04-22  Simon Josefsson  <simon@josefsson.org>
31263
31264         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
31265         backup files.
31266
31267 2010-04-21  Simon Josefsson  <simon@josefsson.org>
31268
31269         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
31270
31271 2010-04-20  Eric Blake  <eblake@redhat.com>
31272
31273         tests: be robust to ignored SIGPIPE
31274         * tests/test-select-in.sh: Consume all output.
31275         * tests/test-lseek.sh: Check correct exit status, while avoiding
31276         EPIPE.
31277
31278 2010-04-20  Simon Josefsson  <simon@josefsson.org>
31279             Bruno Haible  <bruno@clisp.org>
31280
31281         visibility: Don't use -fvisibility if it leads to a warning.
31282         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
31283         yes, don't pretend that visibility works if it leads to a warning.
31284         Reported by Mike Gran <spk121@yahoo.com>.
31285
31286 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
31287
31288         * build-aux/bootstrap: Use "git -h" for testing for supported options
31289         instead of "git --help".  The short-form option only shows a summary,
31290         and doesn't layout the full man page.  Grep for the full option name
31291         in the summary, too.
31292
31293 2010-04-19  Bruno Haible  <bruno@clisp.org>
31294
31295         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
31296         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
31297         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
31298         mention of RELOCATABLE_STRIP.
31299         Reported by Sylvain Beucler <beuc@beuc.net>.
31300
31301 2010-04-19  Bruno Haible  <bruno@clisp.org>
31302
31303         * lib/diffseq.h: Fix typo in comment.
31304         Reported by Eric Blake.
31305
31306 2010-04-19  Bruno Haible  <bruno@clisp.org>
31307
31308         ioctl: Move autoconf macro to a .m4 file.
31309         * m4/ioctl.m4: New file, extracted from modules/ioctl.
31310         * modules/ioctl (Files): Add it.
31311         (configure.ac): Simply invoke gl_FUNC_IOCTL.
31312         Reported by Ian Beckwith <ianb@erislabs.net>.
31313
31314 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
31315             Bruno Haible  <bruno@clisp.org>
31316
31317         diffseq: Accommodate use-case with abstract arrays.
31318         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
31319         is not defined.
31320         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
31321         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
31322
31323 2010-04-18  Bruno Haible  <bruno@clisp.org>
31324
31325         * doc/posix-headers/stdbool.texi: More precise wording.
31326
31327 2010-04-17  Jim Meyering  <meyering@redhat.com>
31328
31329         maint.mk: use gnu-style indentation in an embedded perl script
31330         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
31331         Rename variable: s/two/last_two_bytes/
31332
31333 2010-04-16  Eric Blake  <eblake@redhat.com>
31334
31335         test-stdbool: skip test that fails with Solaris CC
31336         * tests/test-stdbool.c (f): Skip test that causes compilation
31337         error under buggy C++ compiler.
31338         * lib/stdbool.in.h: Document the limitation.
31339         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
31340
31341         setenv: allow compilation with C++
31342         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
31343         register keyword.
31344
31345         stdint: allow test to pass with C++
31346         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
31347
31348         getopt: allow compilation with C++
31349         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
31350         struct.
31351         * lib/getopt.c (_getopt_internal_r): Use correct type.
31352         Reported by Dagobert Michelson, via Joel E. Denny.
31353
31354 2010-04-16  Bruno Haible  <bruno@clisp.org>
31355
31356         Override netdb.h always.
31357         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
31358         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
31359         Reported by Ludovic Courtès <ludo@gnu.org>.
31360
31361 2010-04-15  Bruno Haible  <bruno@clisp.org>
31362
31363         openpty: Fix mistake from 2010-03-21.
31364         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
31365         Reported by Simon Josefsson.
31366
31367 2010-04-15  Eric Blake  <eblake@redhat.com>
31368
31369         test-forkpty: fix expected signature
31370         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
31371         Reported by Simon Josefsson.
31372
31373 2010-04-15  Jim Meyering  <meyering@redhat.com>
31374
31375         maint.mk: texinfo_suffix_re_: correct the default regexp
31376         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
31377
31378         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
31379         make it configurable via texinfo_suffix_re_.
31380
31381 2010-04-14  Eric Blake  <eblake@redhat.com>
31382
31383         strtok_r: relax license to LGPLv2+
31384         * modules/strtok_r (License): Relax license.
31385         Reported by Matthias Bolte.
31386
31387 2010-04-14  Simon Josefsson  <simon@josefsson.org>
31388
31389         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
31390         version 1.4.4 by default instead of requiring the libgcrypt
31391         version used during build.  This makes it possible to use the
31392         application with older but still binary compatible libgcrypt
31393         versions.
31394
31395 2010-04-13  Eric Blake  <eblake@redhat.com>
31396
31397         getopt-gnu: match recent glibc fixes and posix ruling
31398         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
31399         '+' handling, when requesting extensions.
31400         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
31401         'W;' handling.
31402         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
31403         * doc/posix-functions/getopt.texi (getopt): Document this.
31404         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31405         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31406         Likewise.
31407
31408         getopt: merge bug fixes from glibc
31409         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
31410         diagnostics.  Honor '+:' correctly.  Reject ';'.
31411
31412         getopt-posix: detect MacOS bug
31413         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
31414         optind when missing a required argument.
31415         * doc/posix-functions/getopt.texi (getopt): Document the bug.
31416         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31417         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31418         Likewise.
31419
31420         getopt-posix: avoid spurious failure on Solaris
31421         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
31422         an indicator that setting optind=1 is sufficient for reset.
31423
31424         getopt-posix: avoid spurious failure on FreeBSD
31425         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
31426         in POSIX mode, since the m4 test uses it.
31427
31428         gnulib-tool: silence warning on BSD sh
31429         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
31430
31431 2010-04-13  Jim Meyering  <meyering@redhat.com>
31432
31433         doc: users.txt: GNU patch now uses gnulib
31434         * users.txt: Add patch.
31435
31436 2010-04-12  Jim Meyering  <meyering@redhat.com>
31437
31438         maint.mk: generate more concise timing data for syntax-check rules
31439         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
31440         " done" from each line that reports a syntax-check test duration.
31441
31442 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
31443
31444         git-version-gen: use "git update-index..." rather than "git status"
31445         * build-aux/git-version-gen: Use git update-index --refresh, not
31446         "git status".  With some versions of git, "git status" would fail
31447         to update the index and result in an unwarranted "-dirty" suffix.
31448
31449 2010-04-11  Jim Meyering  <meyering@redhat.com>
31450
31451         openat: correct formatting (no semantic change)
31452         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
31453         Suggested by Bruno Haible.
31454
31455 2010-04-11  Bruno Haible  <bruno@clisp.org>
31456
31457         Stricter declaration checking in testdirs.
31458         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31459         If for_tests is true, augment AM_CPPFLAGS to define
31460         GNULIB_STRICT_CHECKING.
31461         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
31462         GNULIB_STRICT_CHECKING is defined, verify that the function is
31463         declared.
31464
31465 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
31466             Bruno Haible  <bruno@clisp.org>
31467
31468         libunistring: Improve configure output.
31469         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
31470         Don't say "consider installing GNU libunistring" when checking again
31471         with libiconv.
31472
31473 2010-04-11  Bruno Haible  <bruno@clisp.org>
31474
31475         libunistring: Correct value of $LTLIBUNISTRING.
31476         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
31477         correct the value of $LTLIBUNISTRING.
31478
31479 2010-04-11  Bruno Haible  <bruno@clisp.org>
31480
31481         havelib: Add static libraries to LIBS in the right order.
31482         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
31483         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
31484
31485 2010-04-11  Bruno Haible  <bruno@clisp.org>
31486
31487         libunistring: Detect libunistring also when it depends on libiconv.
31488         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
31489         the second AC_LIB_HAVE_LINKFLAGS invocation.
31490
31491 2010-04-11  James Youngman  <jay@gnu.org>
31492
31493         close-stream: declare local scalars to be "const"
31494         * lib/close-stream.c (close_stream): Make boolean variables const
31495         to document the fact that we set but do not change them.
31496
31497 2010-04-11  Bruno Haible  <bruno@clisp.org>
31498
31499         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
31500
31501 2010-04-11  Jim Meyering  <meyering@redhat.com>
31502
31503         maint.mk: don't include dist-check.mk
31504         * top/maint.mk: Remove bogus include directive.
31505
31506         maint.mk: improve empty-line-at-EOF check
31507         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
31508         solution, rather than tail+Perl-based one.  The latter would read
31509         a few kilobytes from the end of each file, and did not handle empty
31510         files properly.
31511
31512         maint.mk: print the elapsed time for each syntax-check rule
31513         * top/maint.mk (sc_m_rules_): Save start time in a file.
31514         (sc_z_rules_): New rules: remove temp file and print elapsed time.
31515         (local-check): Interpose the .z rules
31516
31517 2010-04-11  Jim Meyering  <meyering@redhat.com>
31518
31519         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
31520         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
31521         empty file with one that ends in an empty line.
31522
31523 2010-04-10  Bruno Haible  <bruno@clisp.org>
31524
31525         mkdir: Make it work on mingw64.
31526         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
31527         * lib/mkdir.c: Update comment.
31528         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
31529
31530 2010-04-10  Bruno Haible  <bruno@clisp.org>
31531
31532         Don't override improved macro from newer autoconf.
31533         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
31534         autoconf >= 2.62.
31535         Reported by Joel E. Denny <jdenny@clemson.edu>.
31536
31537 2010-04-10  Jim Meyering  <meyering@redhat.com>
31538
31539         maint.mk: new syntax-check rule: prohibit empty lines at end of file
31540         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
31541
31542         maint.mk: correct a diagnostic
31543         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
31544         in diagnostic; now use $prohibit.
31545
31546 2010-04-10  Bruno Haible  <address@hidden>
31547
31548         fchownat: Fix a C++ test error on Solaris 8.
31549         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
31550         the function does not exist.
31551
31552 2010-04-10  Bruno Haible  <bruno@clisp.org>
31553
31554         vasnprintf: Add more tests.
31555         * tests/test-vasnprintf-posix.c: Include <errno.h>.
31556         (test_function): Test converting an invalid wide string.
31557
31558         vasnprintf: Correct handling of unconvertible wide string arguments.
31559         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
31560         VASNPRINTF.
31561         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
31562         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
31563         smaller than the expected maximum need for the directive. Set errno to
31564         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
31565         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
31566         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
31567         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
31568         * modules/vasnprintf (Files): Add m4/printf.m4.
31569         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31570
31571 2010-04-10  Bruno Haible  <bruno@clisp.org>
31572
31573         vasnprintf: Fix crash in %ls directive.
31574         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
31575         string is passed as argument to %ls, with no precision and no width.
31576         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31577
31578 2010-04-10  Bruno Haible  <bruno@clisp.org>
31579
31580         vasnprintf: Fix multiple test failures on mingw.
31581         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
31582         _snprintf, or snwprintf, not _snwprintf.
31583
31584 2010-04-10  Bruno Haible  <bruno@clisp.org>
31585
31586         write: Fix a C++ test error on mingw.
31587         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
31588
31589 2010-04-10  Bruno Haible  <bruno@clisp.org>
31590
31591         vasnprintf test: Reduce code duplication.
31592         * tests/test-vasnprintf.c (test_function): New function, extracted from
31593         test_vasnprintf.
31594         (test_vasnprintf, test_asnprintf): Invoke it.
31595
31596 2010-04-10  Bruno Haible  <bruno@clisp.org>
31597
31598         strnlen: Fix warning in C++ mode on MacOS X.
31599         * lib/string.in.h (strnlen): Use the modern idiom.
31600         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
31601         defining strnlen as a macro already in <config.h>.
31602         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31603         REPLACE_STRNLEN.
31604         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
31605         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31606
31607 2010-04-08  James Youngman  <jay@gnu.org>
31608
31609         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
31610         the example.
31611
31612 2010-04-09  Jim Meyering  <meyering@redhat.com>
31613
31614         maint.mk: print better diagnostic when there is no $(_hv_file)
31615         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
31616         announce that when $(_hv_file) (aka help-version) does not exist.
31617
31618         init.sh: run tr in the "C" locale to avoid multibyte interpretation
31619         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
31620         not try to interpret its random input bytes.  Jarno Rajahalme reported
31621         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
31622         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
31623         (mktempd_): Likewise, just in case.
31624
31625         ftruncate: add two years to projected module removal date: 2012
31626         * m4/ftruncate.m4: Adjust comments.
31627
31628         ftruncate: mark module as obsolete; even MinGW provides it, now
31629         * modules/ftruncate (Status): Obsolete.
31630         (Notice): Say that.
31631         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
31632         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
31633
31634 2010-04-08  Bruno Haible  <bruno@clisp.org>
31635
31636         Fix side effects from tests-related modules.
31637         * modules/dprintf-posix (Comment): New section.
31638         * modules/fprintf-posix (Comment): Likewise.
31639         * modules/obstack-printf-posix (Comment): Likewise.
31640         * modules/printf-posix (Comment): Likewise.
31641         * modules/snprintf-posix (Comment): Likewise.
31642         * modules/sprintf-posix (Comment): Likewise.
31643         * modules/vasnprintf-posix (Comment): Likewise.
31644         * modules/vasprintf-posix (Comment): Likewise.
31645         * modules/vdprintf-posix (Comment): Likewise.
31646         * modules/vfprintf-posix (Comment): Likewise.
31647         * modules/vprintf-posix (Comment): Likewise.
31648         * modules/vsnprintf-posix (Comment): Likewise.
31649         * modules/vsprintf-posix (Comment): Likewise.
31650         * modules/xprintf-posix (Comment): Likewise.
31651         * modules/xvasprintf-posix (Comment): Likewise.
31652         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
31653         * modules/floorf-tests (Depends-on): Likewise.
31654         * modules/round-tests (Depends-on): Likewise.
31655         * modules/roundf-tests (Depends-on): Likewise.
31656         * modules/trunc-tests (Depends-on): Likewise.
31657         * modules/truncf-tests (Depends-on): Likewise.
31658         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
31659         'fprintf-posix' module is not present.
31660         * tests/test-floorf2.c (check): Likewise.
31661         * tests/test-trunc2.c (check): Likewise.
31662         * tests/test-truncf2.c (check): Likewise.
31663         * tests/test-round2.c (equal): Likewise.
31664         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31665
31666 2010-04-07  Karl Berry  <karl@gnu.org>
31667
31668         * config/srclist.txt,
31669         * config/srclistvars.sh,
31670         * config/srclist-update: doc fixes.
31671
31672 2010-04-07  Jim Meyering  <meyering@redhat.com>
31673
31674         maint.mk: add a PATH crosschecking syntax-check rule
31675         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
31676         Useful if you use a test like the one in help-version (coreutils,
31677         diffutils, grep, gzip) that ensures $(VERSION) matches what is
31678         printed by prog --version.
31679
31680 2010-04-06  Bruno Haible  <bruno@clisp.org>
31681
31682         Fix link error on mingw.
31683         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
31684         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
31685
31686 2010-04-06  Bruno Haible  <bruno@clisp.org>
31687
31688         Assume rmdir exists.
31689         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
31690
31691 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
31692
31693         doc: update users.txt
31694         * users.txt: Add gcal.
31695
31696 2010-04-06  Jim Meyering  <meyering@redhat.com>
31697
31698         init.sh: simply unset TMPDIR rather than risking env -i
31699         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
31700         although it probably works fine on all Unix-based systems, some
31701         systems (Cygwin?) cannot tolerate a totally cleared environment.
31702         Suggestion from Eric Blake.
31703
31704 2010-04-06  Jim Meyering  <meyering@redhat.com>
31705
31706         init.sh: portability fix: use env's POSIX-specified -i option not -u
31707         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
31708         than unportable env -u.  Solaris 5.11's env lacks support for -u.
31709
31710 2010-04-05  Bruno Haible  <bruno@clisp.org>
31711
31712         btowc: Work around Cygwin 1.7.2 bug.
31713         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
31714         does not map NUL to 0.
31715         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
31716
31717 2010-04-05  Bruno Haible  <bruno@clisp.org>
31718
31719         Make the multithread modules work on Cygwin 1.7.2.
31720         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
31721         imported symbols can be declared weak, so that it returns "no" on
31722         Cygwin 1.7.2.
31723
31724 2010-04-05  Bruno Haible  <bruno@clisp.org>
31725
31726         Use the module 'strncat'.
31727         * modules/unistr/u8-strncat (Depends-on): Add strncat.
31728
31729         Tests for module 'strncat'.
31730         * modules/strncat-tests: New file.
31731         * tests/test-strncat.c: New file.
31732
31733         New module 'strncat'.
31734         * lib/string.in.h (strncat): New declaration.
31735         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
31736         * m4/strncat.m4: New file, based on m4/memchr.m4.
31737         * modules/strncat: New file.
31738         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
31739         is declared.
31740         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
31741         REPLACE_STRNCAT.
31742         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
31743         REPLACE_STRNCAT.
31744         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
31745         module.
31746         * tests/test-string-c++.cc: Check signature of strncat.
31747
31748 2010-04-05  Jim Meyering  <meyering@redhat.com>
31749
31750         xstrtoumax-tests: convert to use init.sh
31751         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
31752         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31753         Use Exit, not exit.
31754         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31755
31756         xstrtoimax-tests: convert to use init.sh
31757         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
31758         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31759         Use Exit, not exit.
31760         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31761
31762 2010-04-05  Bruno Haible  <bruno@clisp.org>
31763
31764         sys_socket: Avoid #define replacements in C++ mode.
31765         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
31766         warning to the function if possible, rather than #defining the symbol
31767         to a dysfunctional alias.
31768
31769 2010-04-05  Bruno Haible  <bruno@clisp.org>
31770
31771         fseeko: Fix C++ test error on mingw.
31772         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
31773         gl_FUNC_FSEEKO.
31774         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
31775         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
31776         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
31777         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
31778
31779 2010-04-05  Bruno Haible  <bruno@clisp.org>
31780
31781         duplocale: Improve test output.
31782         * tests/test-duplocale.c (main): Print reason for skipped test.
31783
31784 2010-04-05  Bruno Haible  <bruno@clisp.org>
31785
31786         Assume rmdir exists.
31787         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
31788         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
31789
31790 2010-04-05  Bruno Haible  <bruno@clisp.org>
31791
31792         Fix link error on Solaris 8 with cc.
31793         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
31794
31795 2010-04-05  Bruno Haible  <bruno@clisp.org>
31796
31797         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31798         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
31799
31800 2010-04-05  Bruno Haible  <bruno@clisp.org>
31801
31802         vasprintf: Update documentation.
31803         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
31804
31805 2010-04-05  Bruno Haible  <bruno@clisp.org>
31806
31807         ptsname: Improve test.
31808         * tests/test-ptsname.c (main): Also try the various master names of BSD
31809         systems.
31810
31811 2010-04-05  Bruno Haible  <bruno@clisp.org>
31812
31813         memchr: Avoid a possible C++ test error.
31814         * lib/string.in.h (memchr): Provide declaration if function is missing.
31815         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
31816         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
31817         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
31818         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
31819
31820 2010-04-05  Bruno Haible  <bruno@clisp.org>
31821
31822         strtok_r: Improve idiom.
31823         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
31824         AC_LIBOBJ is used.
31825
31826 2010-04-05  Bruno Haible  <bruno@clisp.org>
31827
31828         strdup: Improve idiom.
31829         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
31830         AC_LIBOBJ is used.
31831         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
31832         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
31833         when AC_LIBOBJ is used.
31834
31835 2010-04-05  Bruno Haible  <bruno@clisp.org>
31836
31837         mbsinit, mbrtowc, wcrtomb: Improve idioms.
31838         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
31839         don't set REPLACE_MBSINIT to 1.
31840         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
31841         don't set REPLACE_MBRTOWC to 1.
31842         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
31843         exist, don't set REPLACE_MBSRTOWCS to 1.
31844         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
31845         exist, don't set REPLACE_MBSNRTOWCS to 1.
31846         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
31847         don't set REPLACE_WCRTOMB to 1.
31848         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
31849         exist, don't set REPLACE_WCSRTOMBS to 1.
31850         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
31851         exist, don't set REPLACE_WCSNRTOMBS to 1.
31852
31853 2010-04-05  Bruno Haible  <bruno@clisp.org>
31854
31855         ldexpl: Improve idiom.
31856         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
31857         make sure to set HAVE_DECL_LDEXPL to 0.
31858
31859 2010-04-05  Jim Meyering  <meyering@redhat.com>
31860
31861         xstrtol-tests: convert to use init.sh
31862         * modules/xstrtol-tests (Files): Add tests/init.sh.
31863         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31864         Use Exit, not exit.
31865         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31866
31867         atexit-tests: convert to use init.sh
31868         * modules/atexit-tests (Files): Add tests/init.sh.
31869         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31870         Use Exit, not exit.
31871         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31872
31873         init.sh: fix typo
31874         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
31875
31876         init.sh: make it easier for a test script to write to the tty, ...
31877         when using automake's parallel-tests mode.
31878         * tests/init.sh (stderr_fileno_): Define overridable variable.
31879         (warn_): New function, to use it.
31880         (fail_, skip_, framework_failure_): Use warn_.
31881
31882 2010-04-04  Bruno Haible  <bruno@clisp.org>
31883
31884         btowc: Avoid warning.
31885         * lib/btowc.c: Include <stdlib.h>.
31886         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
31887
31888 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31889             Bruno Haible  <bruno@clisp.org>
31890
31891         wchar: Port to NetBSD 1.5.
31892         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
31893         * lib/wctype.in.h (WEOF): Likewise.
31894
31895 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31896             Bruno Haible  <bruno@clisp.org>
31897
31898         Port extended stdio to NetBSD 1.5.
31899         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
31900         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
31901         older.
31902
31903 2010-04-04  Bruno Haible  <bruno@clisp.org>
31904
31905         string: Remove unused substitution.
31906         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
31907         HAVE_DECL_STRERROR.
31908         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
31909
31910 2010-04-04  Bruno Haible  <bruno@clisp.org>
31911
31912         strtod: Avoid a possible C++ test error.
31913         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
31914         set REPLACE_STRTOD.
31915
31916 2010-04-04  Bruno Haible  <bruno@clisp.org>
31917
31918         strerror: Update documentation.
31919         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
31920
31921 2010-04-04  Bruno Haible  <bruno@clisp.org>
31922
31923         stdio: Fix some C++ test errors on Solaris 8 with GCC.
31924         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
31925         _GL_CXXALIAS_SYS_CAST.
31926
31927 2010-04-04  Bruno Haible  <bruno@clisp.org>
31928
31929         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31930         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
31931         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
31932         REPLACE_FREXPL to 1.
31933         * doc/posix-functions/frexpl.texi: Update documentation.
31934
31935 2010-04-04  Bruno Haible  <bruno@clisp.org>
31936
31937         math: Fix some C++ test errors on Solaris 8 and Cygwin.
31938         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
31939
31940 2010-04-04  Bruno Haible  <bruno@clisp.org>
31941
31942         Implement nanosleep for native Windows.
31943         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
31944
31945 2010-04-04  Bruno Haible  <bruno@clisp.org>
31946
31947         math: Fix some C++ test errors on Solaris 8.
31948         * lib/math.in.h (truncf, trunc): Use simpler idiom.
31949
31950 2010-04-04  Bruno Haible  <bruno@clisp.org>
31951
31952         math: Fix some C++ test errors on Cygwin.
31953         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
31954         truncl): Provide declaration if the system does not have it.
31955         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
31956         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
31957         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
31958         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
31959         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
31960         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
31961         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
31962         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
31963         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
31964         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
31965         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
31966         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
31967         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
31968         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
31969         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
31970         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
31971         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
31972         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31973         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31974         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
31975         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31976         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31977
31978 2010-04-04  Bruno Haible  <bruno@clisp.org>
31979
31980         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
31981         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
31982         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
31983         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
31984         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31985         * m4/isinf.m4 (gl_ISINF): Likewise.
31986         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31987
31988 2010-04-04  Bruno Haible  <bruno@clisp.org>
31989
31990         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
31991         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31992
31993 2010-04-04  Bruno Haible  <bruno@clisp.org>
31994
31995         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
31996         * modules/tmpfile (configure.ac): Update.
31997
31998         tmpfile: Fix C++ test error on mingw.
31999         * lib/stdio.in.h (tmpfile): New declaration.
32000         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
32001         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
32002         * modules/tmpfile (Depends-on): Add stdio.
32003         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
32004         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
32005         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
32006         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
32007         REPLACE_TMPFILE.
32008         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
32009
32010 2010-04-04  Bruno Haible  <bruno@clisp.org>
32011
32012         ioctl: Fix C++ test error on mingw.
32013         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
32014         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
32015         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
32016
32017 2010-04-03  Bruno Haible  <bruno@clisp.org>
32018
32019         wcwidth: Fix C++ test error on mingw.
32020         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
32021         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
32022         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
32023
32024 2010-04-03  Bruno Haible  <bruno@clisp.org>
32025
32026         nanosleep: Fix C++ test error on mingw.
32027         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
32028         * lib/time.in.h (nanosleep): Use modern idiom.
32029         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
32030         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
32031         REPLACE_NANOSLEEP to 1.
32032         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
32033         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
32034
32035 2010-04-03  Bruno Haible  <bruno@clisp.org>
32036
32037         strptime: Fix C++ test error on mingw.
32038         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
32039         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
32040         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
32041         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
32042         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
32043         not REPLACE_STRPTIME.
32044         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
32045         REPLACE_STRPTIME.
32046
32047 2010-04-03  Bruno Haible  <bruno@clisp.org>
32048
32049         timegm: Fix C++ test error on mingw.
32050         * lib/time.in.h (timegm): Use modern idiom.
32051         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
32052         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
32053         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
32054         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
32055
32056 2010-04-03  Bruno Haible  <bruno@clisp.org>
32057
32058         timegm: Assume declaration if function exists.
32059         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
32060         if it exists. Don't clobber ac_cv_func_timegm.
32061
32062 2010-04-03  Bruno Haible  <bruno@clisp.org>
32063
32064         time_r: Fix C++ test error on mingw.
32065         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
32066         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
32067         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
32068         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
32069         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
32070
32071 2010-04-03  Bruno Haible  <bruno@clisp.org>
32072
32073         time_r: Minor updates.
32074         * modules/time_r (Description): Mention the provided functions.
32075         * lib/time_r.c: Don't include <string.h>.
32076         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
32077         * doc/posix-functions/localtime_r.texi: Likewise.
32078
32079 2010-04-03  Bruno Haible  <bruno@clisp.org>
32080
32081         time: Fix regression introduced on 2010-03-08.
32082         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
32083         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
32084
32085 2010-04-03  Jim Meyering  <meyering@redhat.com>
32086
32087         maint.mk: don't silently disable project-specific syntax-check rules
32088         * top/maint.mk (_prohibit_regexp): Define, to help people realize
32089         that they need to convert their project-specific syntax-check rules
32090         to use the new _sc_search_regexp.
32091
32092 2010-04-03  Bruno Haible  <bruno@clisp.org>
32093
32094         fchdir: Fix regression introduced on 2010-03-08.
32095         * lib/unistd.in.h (fchdir): Fix declaration.
32096         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
32097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
32098         REPLACE_FCHDIR.
32099         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
32100         REPLACE_FCHDIR.
32101
32102 2010-04-03  Bruno Haible  <bruno@clisp.org>
32103
32104         getpagesize: Fix C++ test error on mingw.
32105         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
32106         system does not declare the function.
32107         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
32108         declared.
32109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32110         HAVE_DECL_GETPAGESIZE.
32111         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
32112
32113 2010-04-03  Bruno Haible  <bruno@clisp.org>
32114
32115         stdio: Make C++ tests work on mingw.
32116         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
32117         does not declare the function.
32118
32119 2010-04-03  Bruno Haible  <bruno@clisp.org>
32120
32121         ftello: Fix C++ test error on mingw.
32122         * lib/stdio.in.h (ftello): Use modern idiom.
32123         * lib/ftello.c (ftello): Renamed from rpl_ftello.
32124         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
32125         is missing and that it needs to be replaced.
32126         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
32127         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
32128         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
32129
32130 2010-04-03  Bruno Haible  <bruno@clisp.org>
32131
32132         fseeko: Fix C++ test error on mingw.
32133         * lib/stdio.in.h (fseeko): Use modern idiom.
32134         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
32135         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
32136         is missing and that it needs to be replaced.
32137         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
32138         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
32139         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
32140
32141 2010-04-03  Bruno Haible  <bruno@clisp.org>
32142
32143         mkstemp: Fix C++ test error on mingw.
32144         * lib/stdlib.in.h (mkstemp): Use modern idiom.
32145         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
32146         function is missing and that it needs to be replaced.
32147         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
32148         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
32149
32150 2010-04-03  Bruno Haible  <bruno@clisp.org>
32151
32152         stpncpy: Fix C++ test error on mingw.
32153         * lib/string.in.h (stpncpy): Use modern idiom.
32154         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
32155         function is missing and that it needs to be replaced.
32156         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32157         REPLACE_STPNCPY.
32158         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
32159
32160 2010-04-03  Bruno Haible  <bruno@clisp.org>
32161
32162         sys_stat: Fix C++ test error on mingw.
32163         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
32164         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
32165
32166 2010-04-03  Bruno Haible  <bruno@clisp.org>
32167
32168         pty: Update doc.
32169         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
32170
32171 2010-04-03  Bruno Haible  <bruno@clisp.org>
32172
32173         unistd: Fix C++ test error on mingw.
32174         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
32175
32176 2010-04-03  Bruno Haible  <bruno@clisp.org>
32177
32178         Update doc regarding mingw.
32179         * doc/glibc-functions/openpty.texi: Update regarding mingw.
32180         * doc/glibc-functions/login_tty.texi: Likewise.
32181         * doc/glibc-functions/forkpty.texi: Likewise.
32182
32183 2010-04-03  Bruno Haible  <bruno@clisp.org>
32184
32185         stdlib: Avoid compilation failure of c-strtold on mingw.
32186         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
32187
32188 2010-04-03  Bruno Haible  <bruno@clisp.org>
32189
32190         locale: Make C++ tests work on Cygwin and mingw.
32191         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
32192         cannot provide the function.
32193         Reported by Simon Josefsson.
32194
32195 2010-04-03  Bruno Haible  <bruno@clisp.org>
32196
32197         localename: Port to MacOS X 10.6.
32198         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
32199         memory layout of the locales in MacOS X 10.6 as well.
32200         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
32201
32202 2010-04-02  Bruno Haible  <bruno@clisp.org>
32203
32204         gnulib-tool: Ensure that long-running tests are executed last.
32205         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
32206         running tests after the one for the other tests.
32207
32208 2010-04-02  Bruno Haible  <bruno@clisp.org>
32209
32210         gnulib-tool: Ensure the tests in the main directory are executed first.
32211         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
32212         start with the current directory.
32213
32214 2010-04-02  Bruno Haible  <bruno@clisp.org>
32215
32216         Tests for module 'havelib', moved here from GNU gettext.
32217         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
32218         modifications.
32219         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
32220         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
32221         with modifications.
32222         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
32223         modifications.
32224         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
32225         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
32226         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
32227         with modifications.
32228         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
32229         with modifications.
32230         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
32231         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
32232         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
32233         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
32234         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
32235         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
32236         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
32237         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
32238         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
32239         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
32240         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
32241         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
32242         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
32243         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
32244         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
32245         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
32246         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
32247         with modifications.
32248         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
32249         with modifications.
32250         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
32251         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
32252         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
32253         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
32254         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
32255         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
32256         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
32257         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
32258         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
32259         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
32260         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
32261         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
32262         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
32263         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
32264         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
32265         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
32266         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
32267         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
32268         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
32269         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
32270         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
32271         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
32272         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
32273         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
32274         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
32275         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
32276         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
32277         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
32278         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
32279         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
32280         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
32281         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
32282         * tests/havelib/rpathx/rpathx.c: New file, from
32283         gettext/autoconf-lib-link.
32284         * tests/havelib/rpathx/Makefile.am: New file, from
32285         gettext/autoconf-lib-link.
32286         * tests/havelib/rpathx/configure.ac: New file, from
32287         gettext/autoconf-lib-link with modifications.
32288         * tests/havelib/rpathy/rpathy.c: New file, from
32289         gettext/autoconf-lib-link.
32290         * tests/havelib/rpathy/Makefile.am: New file, from
32291         gettext/autoconf-lib-link.
32292         * tests/havelib/rpathy/configure.ac: New file, from
32293         gettext/autoconf-lib-link with modifications.
32294         * tests/havelib/rpathz/rpathz.c: New file, from
32295         gettext/autoconf-lib-link.
32296         * tests/havelib/rpathz/Makefile.am: New file, from
32297         gettext/autoconf-lib-link.
32298         * tests/havelib/rpathz/configure.ac: New file, from
32299         gettext/autoconf-lib-link with modifications.
32300         * tests/havelib/rpathlx/usex.c: New file, from
32301         gettext/autoconf-lib-link.
32302         * tests/havelib/rpathlx/Makefile.am: New file, from
32303         gettext/autoconf-lib-link.
32304         * tests/havelib/rpathlx/configure.ac: New file, from
32305         gettext/autoconf-lib-link with modifications.
32306         * tests/havelib/rpathly/usey.c: New file, from
32307         gettext/autoconf-lib-link.
32308         * tests/havelib/rpathly/Makefile.am: New file, from
32309         gettext/autoconf-lib-link.
32310         * tests/havelib/rpathly/configure.ac: New file, from
32311         gettext/autoconf-lib-link with modifications.
32312         * tests/havelib/rpathlz/usez.c: New file, from
32313         gettext/autoconf-lib-link.
32314         * tests/havelib/rpathlz/Makefile.am: New file, from
32315         gettext/autoconf-lib-link.
32316         * tests/havelib/rpathlz/configure.ac: New file, from
32317         gettext/autoconf-lib-link with modifications.
32318         * tests/havelib/rpathlyx/usey.c: New file, from
32319         gettext/autoconf-lib-link.
32320         * tests/havelib/rpathlyx/Makefile.am: New file, from
32321         gettext/autoconf-lib-link.
32322         * tests/havelib/rpathlyx/configure.ac: New file, from
32323         gettext/autoconf-lib-link with modifications.
32324         * tests/havelib/rpathlzyx/usez.c: New file, from
32325         gettext/autoconf-lib-link.
32326         * tests/havelib/rpathlzyx/Makefile.am: New file, from
32327         gettext/autoconf-lib-link.
32328         * tests/havelib/rpathlzyx/configure.ac: New file, from
32329         gettext/autoconf-lib-link with modifications.
32330         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
32331         with modifications.
32332
32333 2010-04-02  Bruno Haible  <bruno@clisp.org>
32334
32335         gnulib-tool: Create distributed built sources also for the tests.
32336         * gnulib-tool (func_create_testdir): Also generate distributed built
32337         sources in the tests directory.
32338
32339 2010-04-02  Bruno Haible  <bruno@clisp.org>
32340
32341         gnulib-tool: Obey user's environment variables.
32342         * gnulib-tool (func_create_testdir): When creating built sources,
32343         respect the environment variables for autoconf, automake, etc. given by
32344         the user.
32345
32346 2010-04-02  Bruno Haible  <bruno@clisp.org>
32347
32348         gnulib-tool: Provide the value of --m4-base to modules.
32349         * gnulib-tool (func_import, func_create_testdir): Emit a definition
32350         of gl_m4_base.
32351
32352 2010-04-02  Eric Blake  <eblake@redhat.com>
32353
32354         maint.mk: fix some fallout
32355         * NEWS: Document the incompatible change, and its effect on cfg.mk.
32356         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
32357
32358 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
32359
32360         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
32361         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
32362         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
32363         (sc_cast_of_x_alloc_return_value): Likewise.
32364         (sc_cast_of_alloca_return_value): Likewise.
32365         (sc_space_tab): Likewise.
32366         (sc_prohibit_atoi_atof): Likewise.
32367         (sc_prohibit_magic_number_exit): Likewise.
32368         (sc_error_exit_success): Likewise.
32369         (sc_file_system): Likewise.
32370         (sc_prohibit_have_config_h): Likewise.
32371         (sc_require_config_h): Likewise.
32372         (sc_prohibit_HAVE_MBRTOWC): Likewise.
32373         (sc_obsolete_symbols): Likewise.
32374         (sc_changelog): Likewise.
32375         (sc_program_name): Likewise.
32376         (sc_the_the): Likewise.
32377         (sc_trailing_blank): Likewise.
32378         (sc_two_space_separator_in_usage): Likewise.
32379         (sc_useless_cpp_parens): Likewise.
32380         (sc_GPL_version): Likewise.
32381         (sc_GFDL_version): Likewise.
32382         (sc_texinfo_acronym): Likewise.
32383         (sc_prohibit_cvs_keyword): Likewise.
32384         (sc_prohibit_stat_st_blocks): Likewise.
32385         (sc_prohibit_S_IS_definition): Likewise.
32386         (sc_redundant_const): Likewise.
32387         (sc_makefile_TAB_only_indentation): Likewise.
32388         (sc_m4_quote_check): Likewise.
32389         (sc_makefile_path_separator_check): Likewise.
32390         (sc_copyright_check): Likewise.
32391         (sc_Wundef_boolean): Likewise.
32392         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
32393
32394         maint.mk: match 0 or more whitespace-before-function-call '('
32395         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
32396         that have zero or two-and-more spaces between the function name
32397         and the open parenthesis.
32398         (sc_error_message_warn_fatal): Likewise.
32399         (sc_error_message_uppercase): Likewise.
32400         (sc_error_message_period): Likewise.
32401
32402 2010-03-31  Eric Blake  <eblake@redhat.com>
32403
32404         maint.mk: check for [ as well as test
32405         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
32406         Based on a libvirt report by Matthias Bolte.
32407
32408         gnumakefile: don't squelch _version output
32409         * top/GNUmakefile (_version): Create one-shot dependency rather
32410         than using $(shell) when version must be regenerated.
32411         (_autoreconf): Run verbosely, by default.
32412
32413         sys_time: avoid compiler warnings
32414         * lib/sys_time.in.h (includes): Ensure gcc pragma is
32415         unconditional, fixing regression from 2010-03-29.
32416         Reported by Simon Josefsson.
32417
32418 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
32419
32420         maint.mk: s/_header_without_use/_sc_header_without_use/
32421         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
32422         (sc_prohibit_assert_without_use): Use the new name.
32423         (sc_prohibit_close_stream_without_use): Likewise.
32424         (sc_prohibit_getopt_without_use): Likewise.
32425         (sc_prohibit_quotearg_without_use): Likewise.
32426         (sc_prohibit_quote_without_use): Likewise.
32427         (sc_prohibit_long_options_without_use): Likewise.
32428         (sc_prohibit_inttostr_without_use): Likewise.
32429         (sc_prohibit_ignore_value_without_use): Likewise.
32430         (sc_prohibit_error_without_use): Likewise.
32431         (sc_prohibit_xalloc_without_use): Likewise.
32432         (sc_prohibit_hash_without_use): Likewise.
32433         (sc_prohibit_hash_pjw_without_use): Likewise.
32434         (sc_prohibit_safe_read_without_use): Likewise.
32435         (sc_prohibit_argmatch_without_use): Likewise.
32436         (sc_prohibit_canonicalize_without_use): Likewise.
32437         (sc_prohibit_root_dev_ino_without_use): Likewise.
32438         (sc_prohibit_openat_without_use): Likewise.
32439         (sc_prohibit_c_ctype_without_use): Likewise.
32440         (sc_prohibit_signal_without_use): Likewise.
32441         (sc_prohibit_intprops_without_use): Likewise.
32442
32443 2010-03-30  Eric Blake  <eblake@redhat.com>
32444
32445         maint: improve module indicators
32446         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
32447         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
32448         columns, and avoid extra macro expansion.
32449
32450         fdopendir: work around FreeBSD bug
32451         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
32452         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
32453         * modules/dirent (Makefile.am): Substitute it.
32454         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
32455         declaration.
32456         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
32457         fix.
32458         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32459
32460 2010-03-29  Bruno Haible  <bruno@clisp.org>
32461
32462         Emit #pragma system_header after the inclusion guard, not before.
32463         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
32464         guard that spans the entire file, not before. This enables an
32465         optimization in GCC's preprocessor.
32466         * lib/ctype.in.h: Likewise.
32467         * lib/dirent.in.h: Likewise.
32468         * lib/errno.in.h: Likewise.
32469         * lib/float.in.h: Likewise.
32470         * lib/getopt.in.h: Likewise.
32471         * lib/iconv.in.h: Likewise.
32472         * lib/langinfo.in.h: Likewise.
32473         * lib/locale.in.h: Likewise.
32474         * lib/math.in.h: Likewise.
32475         * lib/netdb.in.h: Likewise.
32476         * lib/netinet_in.in.h: Likewise.
32477         * lib/pty.in.h: Likewise.
32478         * lib/sched.in.h: Likewise.
32479         * lib/se-selinux.in.h: Likewise.
32480         * lib/search.in.h: Likewise.
32481         * lib/spawn.in.h: Likewise.
32482         * lib/stdarg.in.h: Likewise.
32483         * lib/stdint.in.h: Likewise.
32484         * lib/string.in.h: Likewise.
32485         * lib/strings.in.h: Likewise.
32486         * lib/sys_file.in.h: Likewise.
32487         * lib/sys_ioctl.in.h: Likewise.
32488         * lib/sys_time.in.h: Likewise.
32489         * lib/sys_times.in.h: Likewise.
32490         * lib/sys_utsname.in.h: Likewise.
32491         * lib/sys_wait.in.h: Likewise.
32492         * lib/sysexits.in.h: Likewise.
32493         * lib/wctype.in.h: Likewise.
32494
32495 2010-03-28  James Youngman  <jay@gnu.org>
32496
32497         save-cwd: don't leak a file descriptor when the caller execs.
32498         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
32499         saved file descriptor.
32500         * modules/save-cwd (Depends-on): Depend on cloexec.
32501
32502 2010-03-29  Bruno Haible  <bruno@clisp.org>
32503
32504         Remove vestiges of fts-lgpl module.
32505         * lib/fts_.h: Assume GNULIB_FTS is 1.
32506         * lib/fts.c: Likewise.
32507         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
32508
32509 2010-03-28  Bruno Haible  <bruno@clisp.org>
32510
32511         Fix definition of tests witness macro.
32512         * gnulib-tool (func_import): Fix definition of witness macro.
32513
32514 2010-03-28  Bruno Haible  <bruno@clisp.org>
32515
32516         Fix ioctl's protoype on glibc systems.
32517         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
32518         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
32519         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
32520         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
32521         signature. If not, arrange to replace the ioctl function.
32522         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
32523         REPLACE_IOCTL.
32524         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
32525         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
32526         Reported by Ludovic Courtès <ludo@gnu.org>.
32527
32528 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
32529
32530         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
32531         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
32532         made it so grep -r --include=GLOB* ... did not work.
32533
32534 2010-03-26  Jim Meyering  <meyering@redhat.com>
32535             Eric Blake  <eblake@redhat.com>
32536
32537         maint.mk: prohibit use of test's -o and -a operators
32538         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
32539
32540 2010-03-28  Bruno Haible  <bruno@clisp.org>
32541
32542         Remove unused GNULIB_XYZ macro definitions.
32543         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
32544         invocation.
32545
32546 2010-03-28  Bruno Haible  <bruno@clisp.org>
32547
32548         Mark privileged tests modules.
32549         * modules/idpriv-drop-tests (Status): New section.
32550         * modules/idpriv-droptemp-tests (Status): New section.
32551
32552 2010-03-28  Bruno Haible  <bruno@clisp.org>
32553
32554         Split C++ tests into separate tests modules.
32555         * modules/dirent-c++-tests: New file, extracted from
32556         modules/dirent-tests.
32557         * modules/dirent-tests: Depend on it.
32558         * modules/fcntl-h-c++-tests: New file, extracted from
32559         modules/fcntl-h-tests.
32560         * modules/fcntl-h-tests: Depend on it.
32561         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
32562         * modules/glob-tests: Depend on it.
32563         * modules/iconv-h-c++-tests: New file, extracted from
32564         modules/iconv-h-tests.
32565         * modules/iconv-h-tests: Depend on it.
32566         * modules/langinfo-c++-tests: New file, extracted from
32567         modules/langinfo-tests.
32568         * modules/langinfo-tests: Depend on it.
32569         * modules/locale-c++-tests: New file, extracted from
32570         modules/locale-tests.
32571         * modules/locale-tests: Depend on it.
32572         * modules/math-c++-tests: New file, extracted from modules/math-tests.
32573         * modules/math-tests: Depend on it.
32574         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
32575         * modules/pty-tests: Depend on it.
32576         * modules/search-c++-tests: New file, extracted from
32577         modules/search-tests.
32578         * modules/search-tests: Depend on it.
32579         * modules/signal-c++-tests: New file, extracted from
32580         modules/signal-tests.
32581         * modules/signal-tests: Depend on it.
32582         * modules/spawn-c++-tests: New file, extracted from
32583         modules/spawn-tests.
32584         * modules/spawn-tests: Depend on it.
32585         * modules/stdio-c++-tests: New file, extracted from
32586         modules/stdio-tests.
32587         * modules/stdio-tests: Depend on it.
32588         * modules/stdlib-c++-tests: New file, extracted from
32589         modules/stdlib-tests.
32590         * modules/stdlib-tests: Depend on it.
32591         * modules/string-c++-tests: New file, extracted from
32592         modules/string-tests.
32593         * modules/string-tests: Depend on it.
32594         * modules/sys_ioctl-c++-tests: New file, extracted from
32595         modules/sys_ioctl-tests.
32596         * modules/sys_ioctl-tests: Depend on it.
32597         * modules/sys_select-c++-tests: New file, extracted from
32598         modules/sys_select-tests.
32599         * modules/sys_select-tests: Depend on it.
32600         * modules/sys_socket-c++-tests: New file, extracted from
32601         modules/sys_socket-tests.
32602         * modules/sys_socket-tests: Depend on it.
32603         * modules/sys_stat-c++-tests: New file, extracted from
32604         modules/sys_stat-tests.
32605         * modules/sys_stat-tests: Depend on it.
32606         * modules/sys_time-c++-tests: New file, extracted from
32607         modules/sys_time-tests.
32608         * modules/sys_time-tests: Depend on it.
32609         * modules/time-c++-tests: New file, extracted from modules/time-tests.
32610         * modules/time-tests: Depend on it.
32611         * modules/unistd-c++-tests: New file, extracted from
32612         modules/unistd-tests.
32613         * modules/unistd-tests: Depend on it.
32614         * modules/wchar-c++-tests: New file, extracted from
32615         modules/wchar-tests.
32616         * modules/wchar-tests: Depend on it.
32617         * modules/wctype-c++-tests: New file, extracted from
32618         modules/wctype-tests.
32619         * modules/wctype-tests: Depend on it.
32620         Reported by Simon Josefsson.
32621
32622 2010-03-28  Bruno Haible  <bruno@clisp.org>
32623
32624         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
32625         * gnulib-tool (func_exists_module): New function, extracted from
32626         func_verify_module.
32627         (func_verify_module): Use it.
32628         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
32629         'foo' only if 'foo' exists.
32630         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
32631         module.
32632
32633 2010-03-28  Bruno Haible  <bruno@clisp.org>
32634
32635         gnulib-tool: Add support for special categories of tests.
32636         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
32637         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
32638         (func_usage): Document them.
32639         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
32640         inc_unportable_tests, inc_all_tests): New variables.
32641         (func_acceptable): Consider these variables.
32642         (func_modules_transitive_closure): Make it work when the 'Status' field
32643         consists of multiple words.
32644         (func_import): Store and restore the values of inc_cxx_tests,
32645         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
32646         inc_all_tests in gnulib-comp.m4.
32647         (func_create_testdir): Set inc_all_tests to true.
32648         * doc/gnulib.texi (Extra tests modules): New section.
32649         Suggested by Jim Meyering.
32650
32651 2010-03-28  Bruno Haible  <bruno@clisp.org>
32652
32653         ansi-c++-opt: Allow turning off the C++ build by default.
32654         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
32655         gl_CXX_CHOICE_DEFAULT_NO is defined.
32656         Requested by Eric Blake.
32657
32658 2010-03-28  Bruno Haible  <bruno@clisp.org>
32659
32660         unistd: Avoid #define replacements in C++ mode.
32661         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
32662         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
32663         setsockopt, shutdown, select): In C++, attach a warning to the function
32664         if possible, rather than #defining the symbol to a dysfunctional alias.
32665         Reported by John W. Eaton <jwe@gnu.org>.
32666
32667 2010-03-28  Bruno Haible  <bruno@clisp.org>
32668
32669         Fix link errors on mingw.
32670         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
32671         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
32672         $(LIBSOCKET).
32673         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
32674         $(LIBSOCKET).
32675
32676 2010-03-28  Bruno Haible  <bruno@clisp.org>
32677             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32678
32679         lib-ignore: Determine different options for different compilers.
32680         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
32681         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
32682         Add comments.
32683         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
32684         * NEWS: Mention the change.
32685
32686 2010-03-27  Bruno Haible  <bruno@clisp.org>
32687
32688         Remove unused GNULIB_XYZ macro definitions.
32689         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
32690         * modules/fseek (configure.ac): Likewise.
32691         * modules/ioctl (configure.ac): Likewise.
32692         * modules/open (configure.ac): Likewise.
32693         * modules/stdlib-safer (configure.ac): Likewise.
32694
32695 2010-03-27  Bruno Haible  <bruno@clisp.org>
32696
32697         Add a remark about certain modules.
32698         * modules/malloc (Comment): New section.
32699         * modules/realloc (Comment): Likewise.
32700         * modules/sigpipe (Comment): Likewise.
32701
32702 2010-03-27  Bruno Haible  <bruno@clisp.org>
32703
32704         Resolve conflict between the two kinds of module indicators.
32705         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
32706         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
32707         * modules/canonicalize (configure.ac): Invoke
32708         gl_MODULE_INDICATOR_FOR_TESTS.
32709         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
32710         GNULIB_XYZ.
32711         * tests/test-dirent-c++.cc: Likewise.
32712         * tests/test-dirent-safer.c: Likewise.
32713         * tests/test-dup2.c: Likewise.
32714         * tests/test-fchdir.c: Likewise.
32715         * tests/test-fcntl-h-c++.cc: Likewise.
32716         * tests/test-getopt.c: Likewise.
32717         * tests/test-getopt.h: Likewise.
32718         * tests/test-langinfo-c++.cc: Likewise.
32719         * tests/test-locale-c++.cc: Likewise.
32720         * tests/test-math-c++.cc: Likewise.
32721         * tests/test-pty-c++.cc: Likewise.
32722         * tests/test-search-c++.cc: Likewise.
32723         * tests/test-signal-c++.cc: Likewise.
32724         * tests/test-spawn-c++.cc: Likewise.
32725         * tests/test-stdio-c++.cc: Likewise.
32726         * tests/test-stdlib-c++.cc: Likewise.
32727         * tests/test-string-c++.cc: Likewise.
32728         * tests/test-sys_ioctl-c++.cc: Likewise.
32729         * tests/test-sys_select-c++.cc: Likewise.
32730         * tests/test-sys_socket-c++.cc: Likewise.
32731         * tests/test-sys_stat-c++.cc: Likewise.
32732         * tests/test-sys_time-c++.cc: Likewise.
32733         * tests/test-time-c++.cc: Likewise.
32734         * tests/test-unistd-c++.cc: Likewise.
32735         * tests/test-wchar-c++.cc: Likewise.
32736         * tests/uninorm/test-u8-nfc.c: Likewise.
32737         * tests/uninorm/test-u8-nfd.c: Likewise.
32738         * tests/uninorm/test-u8-nfkc.c: Likewise.
32739         * tests/uninorm/test-u8-nfkd.c: Likewise.
32740         * tests/uninorm/test-u16-nfc.c: Likewise.
32741         * tests/uninorm/test-u16-nfd.c: Likewise.
32742         * tests/uninorm/test-u16-nfkc.c: Likewise.
32743         * tests/uninorm/test-u16-nfkd.c: Likewise.
32744         * tests/uninorm/test-u32-nfc.c: Likewise.
32745         * tests/uninorm/test-u32-nfc-big.c: Likewise.
32746         * tests/uninorm/test-u32-nfd.c: Likewise.
32747         * tests/uninorm/test-u32-nfd-big.c: Likewise.
32748         * tests/uninorm/test-u32-nfkc.c: Likewise.
32749         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
32750         * tests/uninorm/test-u32-nfkd.c: Likewise.
32751         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
32752         * tests/uninorm/test-u32-normalize-big.c: Likewise.
32753
32754 2010-03-27  Bruno Haible  <bruno@clisp.org>
32755
32756         Distinguish two kinds of module indicators.
32757         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
32758         gl_MODULE_INDICATOR.
32759         (gl_MODULE_INDICATOR): New macro.
32760         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32761         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
32762         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32763         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32764         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32765         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32766         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32767         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32768         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32769         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32770         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32771         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32772         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32773         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32774         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32775         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32776         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32777         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32778         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32779         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32780         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32781         * modules/cloexec (configure.ac): Likewise.
32782         * modules/getopt-gnu (configure.ac): Likewise.
32783         * modules/uninorm/u8-normalize (configure.ac): Likewise.
32784         * modules/uninorm/u16-normalize (configure.ac): Likewise.
32785         * modules/uninorm/u32-normalize (configure.ac): Likewise.
32786         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
32787
32788 2010-03-27  Bruno Haible  <bruno@clisp.org>
32789
32790         New module description field 'Comment'.
32791         * gnulib-tool: New option --extract-comment.
32792         (func_usage): Document it.
32793         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
32794         (func_get_comment): New function.
32795         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
32796
32797 2010-03-27  Bruno Haible  <bruno@clisp.org>
32798
32799         Addendum to 2010-02-07 commit.
32800         * gnulib-tool (func_usage): Document --extract-applicability option.
32801
32802 2010-03-27  Bruno Haible  <bruno@clisp.org>
32803
32804         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
32805         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
32806         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
32807         rather than link errors.
32808
32809 2010-03-27  Bruno Haible  <bruno@clisp.org>
32810
32811         Avoid side effects from tests-related modules on the compilation of lib.
32812         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
32813         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
32814         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
32815         parameter. Emit into AM_CPPFLAGS a definition of the designated C
32816         macro.
32817         (func_import): Define a witness macro. Assign it a value that depends
32818         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
32819         tests-related modules.
32820         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
32821         Reported by Jim Meyering.
32822
32823 2010-03-27  Bruno Haible  <bruno@clisp.org>
32824
32825         Factorize common .m4 code.
32826         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
32827         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
32828         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
32829         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
32830         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32831         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
32832         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
32833         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32834         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32835         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32836         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
32837         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32838         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32839         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32840         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32841         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
32842         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32843         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32844         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32845         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
32846         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
32847         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32848         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32849         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32850         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32851         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32852         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
32853         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
32854         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
32855         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32856         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32857         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32858
32859 2010-03-27  Bruno Haible  <bruno@clisp.org>
32860
32861         Fix a compilation error on Cygwin with g++ >= 4.3.
32862         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
32863         if it is undefined or if we alias it to chmod.
32864         (lstat): Don't warn about the use of this function if it is undefined
32865         or if we alias it to stat.
32866         Reported by Simon Josefsson.
32867
32868 2010-03-27  Bruno Haible  <bruno@clisp.org>
32869
32870         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
32871         * modules/getlogin (configure.ac): Update.
32872
32873         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
32874         * modules/getlogin_r (configure.ac): Update.
32875
32876         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
32877         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
32878         * modules/inet_ntop (configure.ac): Update.
32879
32880         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
32881         * modules/inet_pton (configure.ac): Update.
32882
32883         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
32884         * modules/mbslen (configure.ac): Update.
32885
32886         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
32887         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
32888         * modules/forkpty (configure.ac): Update.
32889         * modules/openpty (configure.ac): Update.
32890
32891 2010-03-26  Simon Josefsson  <simon@josefsson.org>
32892
32893         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
32894         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
32895
32896 2010-03-25  Eric Blake  <eblake@redhat.com>
32897
32898         maint: use pragma consistently across replacement headers
32899         * lib/ctype.in.h (system_header): Hoist for consistent placement.
32900         * lib/dirent.in.h (system_header): Likewise.
32901         * lib/errno.in.h (system_header): Likewise.
32902         * lib/float.in.h (system_header): Likewise.
32903         * lib/getopt.in.h (system_header): Likewise.
32904         * lib/iconv.in.h (system_header): Likewise.
32905         * lib/inttypes.in.h (system_header): Likewise.
32906         * lib/langinfo.in.h (system_header): Likewise.
32907         * lib/locale.in.h (system_header): Likewise.
32908         * lib/math.in.h (system_header): Likewise.
32909         * lib/netdb.in.h (system_header): Likewise.
32910         * lib/netinet_in.in.h (system_header): Likewise.
32911         * lib/pty.in.h (system_header): Likewise.
32912         * lib/sched.in.h (system_header): Likewise.
32913         * lib/se-selinux.in.h (system_header): Likewise.
32914         * lib/search.in.h (system_header): Likewise.
32915         * lib/spawn.in.h (system_header): Likewise.
32916         * lib/stdarg.in.h (system_header): Likewise.
32917         * lib/stdint.in.h (system_header): Likewise.
32918         * lib/string.in.h (system_header): Likewise.
32919         * lib/strings.in.h (system_header): Likewise.
32920         * lib/sys_file.in.h (system_header): Likewise.
32921         * lib/sys_ioctl.in.h (system_header): Likewise.
32922         * lib/sys_socket.in.h (system_header): Likewise.
32923         * lib/sys_times.in.h (system_header): Likewise.
32924         * lib/sys_utsname.in.h (system_header): Likewise.
32925         * lib/sys_wait.in.h (system_header): Likewise.
32926         * lib/sysexits.in.h (system_header): Likewise.
32927         * lib/unistd.in.h (system_header): Likewise.
32928         * lib/wctype.in.h (system_header): Likewise.
32929
32930         arpa/inet: fix mingw compilation warning
32931         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
32932         Reported by Matthew Bolte.
32933
32934 2010-03-25  Bruno Haible  <bruno@clisp.org>
32935
32936         Avoid collision between gnulib wrapper and libintl wrapper.
32937         * lib/printf.c (printf): Don't define if a printf wrapper is already
32938         defined in intl/printf.c.
32939         Reported by Michel Boaventura <michel@michelboaventura.com>.
32940
32941 2010-03-25  Bruno Haible  <bruno@clisp.org>
32942
32943         Use ANSI C.
32944         * lib/readutmp.h (getutent): Provide ANSI C prototype.
32945
32946 2010-03-25  Bruno Haible  <bruno@clisp.org>
32947
32948         Minor formatting changes.
32949         * lib/acosl.c: Insert space before function argument list.
32950         * lib/argz.c: Likewise.
32951         * lib/asinl.c: Likewise.
32952         * lib/expl.c: Likewise.
32953         * lib/gen-uni-tables.c: Likewise.
32954         * lib/gettext.h: Likewise.
32955         * lib/glthread/lock.h: Likewise.
32956         * lib/tanl.c: Likewise.
32957         * lib/uniname/uniname.c: Likewise.
32958         * tests/test-idpriv-drop.c: Likewise.
32959         * tests/test-idpriv-droptemp.c: Likewise.
32960         * tests/test-lock.c: Likewise.
32961         * tests/test-tls.c: Likewise.
32962         * lib/argp-help.c: Insert space before function-like macro argument
32963         list.
32964         * lib/memcmp.c: Likewise.
32965         * tests/test-base64.c: Likewise.
32966         * lib/localename.c: Insert space before sizeof's argument list.
32967         * lib/safe-alloc.h: Likewise.
32968         * lib/file-set.h: Insert space before macro argument list.
32969         * tests/test-argp.c: Likewise.
32970         * lib/argp-namefrob.h: Insert space before function parameter list.
32971         * lib/getaddrinfo.c: Likewise.
32972         * lib/netdb.in.h: Likewise.
32973         * lib/parse-duration.h: Likewise.
32974         * lib/parse-duration.c: Likewise.
32975         * lib/poll.c: Likewise.
32976         * lib/select.c: Likewise.
32977         * lib/trim.h: Likewise.
32978         * tests/test-usleep.c: Likewise.
32979         * lib/ldexpl.c: Insert space before function parameter list and before
32980         function argument list.
32981         * lib/logl.c: Likewise.
32982         * lib/sqrtl.c: Likewise.
32983         * lib/trim.c: Likewise.
32984         * lib/cosl.c: Use GNU style indentation. Insert space before function
32985         argument list.
32986         * lib/sinl.c: Likewise.
32987         * lib/tsearch.c: Insert space after 'for'.
32988         Reported by Jim Meyering.
32989
32990 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
32991
32992         * maint.mk (sc_Wundef_boolean): Check for the presence of the
32993         config header before grepping, as it's not present before
32994         autoreconf/configure are run.  Reported by Simon Josefsson.
32995
32996 2010-03-23  Bruno Haible  <bruno@clisp.org>
32997
32998         pt_chown: Make it work with automake < 1.11.
32999         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
33000         Reported by Simon Josefsson.
33001
33002 2010-03-23  Bruno Haible  <bruno@clisp.org>
33003
33004         pt_chown: Don't depend on GPLed modules.
33005         * lib/pt_chown.c: Don't include idpriv.h.
33006         (main): Don't drop privileges.
33007         * modules/pt_chown (Depends-on): Remove idpriv-drop.
33008         Reported by Simon Josefsson.
33009
33010 2010-03-24  Simon Josefsson  <simon@josefsson.org>
33011
33012         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
33013         suggestions from karl@freefriends.org (Karl Berry).
33014
33015 2010-03-22  Eric Blake  <eblake@redhat.com>
33016
33017         gethostname: further tweaks
33018         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
33019         are overriding gethostname.
33020         Suggested by Bruno Haible.
33021
33022 2010-03-21  Bruno Haible  <bruno@clisp.org>
33023
33024         Fix comments.
33025         * lib/forkpty.c (rpl_forkpty): Fix comment.
33026         * lib/openpty.c (rpl_openpty): Likewise.
33027         Reported by Eric Blake.
33028
33029 2010-03-22  Eric Blake  <eblake@redhat.com>
33030
33031         gethostname: fix build on mingw
33032         * lib/unistd.in.h (includes): Work around fact that mingw
33033         <winsock2.h> re-includes <unistd.h>, by avoiding any
33034         redeclarations if we are being included by <winsock2.h>.
33035         Reported by Matthias Bolte.
33036
33037 2010-03-21  Bruno Haible  <bruno@clisp.org>
33038
33039         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
33040         * lib/forkpty.c (forkpty): New replacement function, from glibc with
33041         modifications.
33042         * lib/pty.in.h (forkpty): Update declaration. Add comments.
33043         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
33044         provide the replacement.
33045         * modules/forkpty (Depends-on): Add openpty, login_tty.
33046         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
33047         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
33048         * doc/glibc-functions/forkpty.texi: More supported platforms.
33049         * config/srclist.txt: Add forkpty.c (commented).
33050
33051 2010-03-21  Bruno Haible  <bruno@clisp.org>
33052
33053         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
33054         (Makefile.am): Verify that PTY_LIB is defined.
33055
33056         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
33057
33058 2010-03-21  Bruno Haible  <bruno@clisp.org>
33059
33060         Tests for module 'login_tty'.
33061         * modules/login_tty-tests: New file.
33062         * tests/test-login_tty.c: New file.
33063
33064         New module 'login_tty'.
33065         * lib/login_tty.c: New file.
33066         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
33067         * modules/login_tty: New file.
33068         * doc/glibc-functions/login_tty.texi: Mention the new module.
33069
33070 2010-03-21  Bruno Haible  <bruno@clisp.org>
33071
33072         login_tty: Documentation.
33073         * doc/glibc-functions/login_tty.texi: New file.
33074         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
33075
33076 2010-03-21  Bruno Haible  <bruno@clisp.org>
33077
33078         pty: Consistent macro naming.
33079         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
33080         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
33081         * modules/pty (configure.ac): Update.
33082
33083 2010-03-21  Bruno Haible  <bruno@clisp.org>
33084
33085         Tests for openpty: Make stricter.
33086         * tests/test-openpty.c (main): Add test of canonical processing and
33087         erase.
33088         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
33089
33090         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
33091         * lib/openpty.c (openpty): New replacement function.
33092         * lib/pty.in.h: Include <termios.h>.
33093         (openpty): Update declaration. Add comments.
33094         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
33095         is not declared, arrange to provide the replacement. Check for _getpty
33096         and posix_openpt.
33097         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
33098         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
33099         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
33100         * modules/pty-tests (test_pty_c___LDADD): New variable.
33101         * doc/glibc-functions/openpty.texi: More supported platforms.
33102
33103 2010-03-21  Bruno Haible  <bruno@clisp.org>
33104
33105         setenv: Tweaks.
33106         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
33107         the test program.
33108         * doc/posix-functions/setenv.texi: Update platforms list.
33109
33110 2010-03-21  Bruno Haible  <bruno@clisp.org>
33111
33112         New module 'unlockpt'.
33113         * lib/unlockpt.c: New file, from glibc with modifications.
33114         * m4/unlockpt.m4: New file.
33115         * modules/unlockpt: New file.
33116         * lib/stdlib.in.h (unlockpt): New declaration.
33117         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
33118         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
33119         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
33120         HAVE_UNLOCKPT.
33121         * doc/posix-functions/unlockpt.texi: Mention the new module.
33122         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
33123         * config/srclist.txt: Add unlockpt.c (commented).
33124
33125 2010-03-21  Jim Meyering  <meyering@redhat.com>
33126
33127         maint.mk: prohibit inclusion of "intprops.h" without use
33128         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
33129
33130 2010-03-21  Bruno Haible  <bruno@clisp.org>
33131
33132         New module 'grantpt'.
33133         * lib/grantpt.c: New file, from glibc with modifications.
33134         * m4/grantpt.m4: New file.
33135         * modules/grantpt: New file.
33136         * lib/stdlib.in.h (grantpt): New declaration.
33137         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
33138         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
33139         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
33140         HAVE_GRANTPT.
33141         * doc/posix-functions/grantpt.texi: Mention the new module.
33142         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
33143         * config/srclist.txt: Add grantpt.c (commented).
33144
33145 2010-03-21  Bruno Haible  <bruno@clisp.org>
33146
33147         New module 'pt_chown'.
33148         * lib/pt_chown.c: New file, from glibc with modifications.
33149         * lib/pty-private.h: New file, from glibc with modifications.
33150         * modules/pt_chown: New file.
33151         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
33152
33153 2010-03-21  Bruno Haible  <bruno@clisp.org>
33154
33155         Tests for module 'ptsname'.
33156         * modules/ptsname-tests: New file.
33157         * tests/test-ptsname.c: New file.
33158
33159         New module 'ptsname'.
33160         * lib/ptsname.c: New file, from glibc with modifications.
33161         * m4/ptsname.m4: New file.
33162         * modules/ptsname: New file.
33163         * lib/stdlib.in.h (ptsname): New declaration.
33164         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
33165         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
33166         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
33167         HAVE_PTSNAME.
33168         * doc/posix-functions/ptsname.texi: Mention the new module.
33169         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
33170         * config/srclist.txt: Add ptsname.c (commented).
33171
33172 2010-03-21  Bruno Haible  <bruno@clisp.org>
33173
33174         Tests for module 'ttyname_r'.
33175         * modules/ttyname_r-tests: New file.
33176         * tests/test-ttyname_r.c: New file.
33177
33178         New module 'ttyname_r'.
33179         * lib/ttyname_r.c: New file.
33180         * m4/ttyname_r.m4: New file.
33181         * modules/ttyname_r: New file.
33182         * lib/unistd.in.h (ttyname_r): New declaration.
33183         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
33184         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
33185         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
33186         HAVE_TTYNAME_R.
33187         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
33188         * doc/posix-functions/ttyname_r.texi: Mention the new module.
33189
33190 2010-03-20  Bruno Haible  <bruno@clisp.org>
33191
33192         signal: Undefine macro definitions in C++ mode.
33193         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
33194         sigfillset): Undefine macro definitions from the system header in C++
33195         mode.
33196         Reported by John W. Eaton <jwe@gnu.org>.
33197
33198 2010-03-20  Bruno Haible  <bruno@clisp.org>
33199
33200         Ensure no #include statements inside extern "C" { ... }.
33201         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
33202         contain #include statements.
33203         * lib/time.in.h: Likewise.
33204
33205 2010-03-20  Bruno Haible  <bruno@clisp.org>
33206
33207         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
33208         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
33209         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
33210         Reported by John W. Eaton <jwe@gnu.org>.
33211
33212 2010-03-20  Bruno Haible  <bruno@clisp.org>
33213
33214         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
33215         Reported by Jim Meyering.
33216
33217 2010-03-20  Bruno Haible  <bruno@clisp.org>
33218
33219         pipe: Set errno upon failure.
33220         * lib/pipe.h: Specify that when -1 is returned, errno is set.
33221         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
33222         errno value in error message.
33223
33224 2010-03-20  Bruno Haible  <bruno@clisp.org>
33225             Jim Meyering  <meyering@redhat.com>
33226
33227         lchown: Avoid "unused variable" warning.
33228         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
33229
33230 2010-03-20  Bruno Haible  <bruno@clisp.org>
33231
33232         Work around unlink() bug on MacOS X 10.5.6.
33233         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
33234         attempting to unlink a parent directory.
33235         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
33236         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
33237         activate for the replacement function.
33238         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
33239
33240 2010-03-20  Bruno Haible  <bruno@clisp.org>
33241
33242         Fix link errors on Solaris 8.
33243         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
33244         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
33245
33246 2010-03-19  Jim Meyering  <meyering@redhat.com>
33247
33248         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
33249         The _LIBC implementation of build_range_exp correctly honors the
33250         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
33251         However, the non-_LIBC implementation would ignore that syntax-bit
33252         flag and return REG_ERANGE unconditionally.
33253         This change makes it honor that flag.
33254         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
33255         Make two pointer parameters "const".
33256         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
33257         (parse_bracket_exp): Update caller.
33258
33259         regex.m4: correct the reversed range endpoint ([b-a]) test
33260         * m4/regex.m4: When requiring that [b-a] evoke failure,
33261         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
33262         test pass once again for x86-based systems.
33263
33264 2010-03-19  Bruno Haible  <bruno@clisp.org>
33265
33266         scandir: Fix link error on Solaris 8.
33267         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
33268         macros.
33269
33270 2010-03-19  Bruno Haible  <bruno@clisp.org>
33271
33272         getusershell: Fix documentation.
33273         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
33274         module.
33275         * doc/glibc-functions/setusershell.texi: Likewise.
33276
33277         getusershell: Provide declaration, missing on Solaris 9.
33278         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
33279         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
33280         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
33281         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
33282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33283         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
33284         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
33285         HAVE_GETUSERSHELL.
33286         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
33287
33288 2010-03-19  Bruno Haible  <bruno@clisp.org>
33289
33290         wctype: Provide iswblank function.
33291         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
33292         exists and is fine.
33293         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
33294         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
33295         * tests/test-wctype.c (main): Re-enable the iswblank tests.
33296         * doc/posix-functions/iswblank.texi: Update.
33297
33298 2010-03-19  Bruno Haible  <bruno@clisp.org>
33299
33300         Tests of module 'pty' in C++ mode.
33301         * modules/pty-tests: New file.
33302         * tests/test-pty-c++.cc: New file.
33303         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33304
33305 2010-03-19  Eric Blake  <eblake@redhat.com>
33306
33307         logb: fix documentation
33308         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
33309         1.5 declaration bug.
33310
33311         forkpty, openpty: prefer glibc's const-safe prototype
33312         * lib/forkpty.c (rpl_forkpty): New file.
33313         * lib/openpty.c (rpl_openpty): Likewise.
33314         * modules/forkpty (Files): Distribute it.
33315         * modules/openpty (Files): Likewise.
33316         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
33317         check...
33318         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
33319         replacement for for non-const BSD signature.
33320         * modules/pty (Makefile.am): Substitute witnesses.
33321         * lib/pty.in.h (forkpty, openpty): Declare replacements.
33322         * tests/test-forkpty.c: Update signature check.
33323         * tests/test-openpty.c: Likewise.
33324         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
33325         * doc/glibc-functions/openpty.texi (openpty): Likewise.
33326
33327         forkpty, openpty: split functions into new modules
33328         * modules/pty (Makefile.am): Substitute new witnesses.
33329         (Libraries): Move library detection...
33330         * modules/forkpty: ...into new module.
33331         * modules/openpty: Another new module.
33332         * modules/pty-tests: Rename and split...
33333         * modules/forkpty-tests: ...to this...
33334         * modules/openpty-tests: ...and this.
33335         * tests/test-pty.c: Rename and split...
33336         * tests/test-forkpty.c: ...to this...
33337         * tests/test-openpty.c: ...and this.
33338         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
33339         (gl_PTY): Split library searching...
33340         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
33341         (gl_FORKPTY, gl_OPENPTY): New macros.
33342         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
33343         * NEWS: Mention the split.
33344         * MODULES.html.sh (Misc): Document the modules.
33345         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
33346         * doc/glibc-functions/openpty.texi (openpty): Likewise.
33347
33348         pty: improve replacement header
33349         * lib/pty.in.h: New file.
33350         * modules/pty (Files): Ship it.
33351         (Makefile.am): Always build replacement.
33352         * m4/pty.m4: Rename...
33353         * m4/pty_h.m4: ...to this.
33354         (gl_PTY): Modernize setting of witness macros; update check of
33355         forkpty to take proper advantage of cache.
33356         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
33357
33358         getopt: avoid compiler warning
33359         * lib/getopt.c (attribute_hidden): Remove unused macro.
33360
33361 2010-03-18  Bruno Haible  <bruno@clisp.org>
33362
33363         Fix link errors on Solaris 8.
33364         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
33365         * modules/search-tests (test_search_c___LDADD): Likewise.
33366         * modules/signal-tests (test_signal_c___LDADD): Likewise.
33367         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
33368         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
33369         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
33370         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
33371         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
33372         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
33373
33374 2010-03-18  Bruno Haible  <bruno@clisp.org>
33375
33376         Fix bug introduced on 2010-03-14.
33377         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
33378         (gl_SPAWN_H): Require it.
33379         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
33380         Reported by Simon Josefsson.
33381
33382 2010-03-18  Bruno Haible  <bruno@clisp.org>
33383
33384         Fix typo introduced on 2009-12-31.
33385         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
33386         posix_spawn_file_actions_adddup2.
33387
33388 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
33389         and Eric Blake  <eblake@redhat.com>
33390
33391         test-vc-list-files-git: make more robust
33392         * tests/test-vc-list-files-git.sh: Unset problematic environment
33393         variables.  Chain commands together.
33394
33395 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
33396
33397         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
33398         `AC_CHECK_DECL' invocation.
33399
33400 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
33401
33402         * lib/inttostr.c (inttostr): Make sure the invocation of verify
33403         appears before executable statements. Suggested by Petr Sumbera
33404         <Petr.Sumbera@Sun.COM>.
33405
33406 2010-03-14  Bruno Haible  <bruno@clisp.org>
33407
33408         * tests/test-flock.c (test_exclusive): Comment out a test that causes
33409         portability problems. Instead use a simpler test.
33410         (main): Check that invalid arguments are rejected only on Linux.
33411
33412 2010-03-14  Bruno Haible  <bruno@clisp.org>
33413
33414         Fix bug introduced on 2009-12-31.
33415         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
33416         gl_PREREQ_SYS_H_WINSOCK2 always.
33417         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
33418         SYS_SOCKET_H variable.
33419         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
33420         Update comments.
33421         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
33422         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33423         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33424         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33425         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
33426
33427 2010-03-14  Bruno Haible  <bruno@clisp.org>
33428
33429         Fix values returned by sinl, cosl.
33430         * lib/trigl.h: Add specification comments.
33431         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
33432         that combines the values from the precomputed table with the values of
33433         the Chebyshev polynomials.
33434
33435 2010-03-14  Bruno Haible  <bruno@clisp.org>
33436
33437         Fix compilation error when modules 'posix_spawn[p]' are not used.
33438         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
33439         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
33440
33441 2010-03-14  Bruno Haible  <bruno@clisp.org>
33442
33443         Fix compilation error on mingw when module 'time_r' is not used.
33444         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
33445         is 1.
33446         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
33447         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33448         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
33449         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
33450
33451 2010-03-14  Bruno Haible  <bruno@clisp.org>
33452
33453         Fix compilation error with Sun C.
33454         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
33455         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
33456         instead of GCC specific ULONG_LONG_MAX.
33457         * lib/xstrtoll.c: Likewise.
33458         * lib/xstrtoull.c: Likewise.
33459
33460 2010-03-13  Bruno Haible  <bruno@clisp.org>
33461
33462         Allow the user to disable C++ code and tests.
33463         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
33464         (gl_PROG_ANSI_CXX): Require it.
33465
33466 2010-03-13  Bruno Haible  <bruno@clisp.org>
33467
33468         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
33469         cases.
33470
33471 2010-03-13  Bruno Haible  <bruno@clisp.org>
33472
33473         Test that gnulib does not break the standard C++ headers.
33474         * tests/test-locale-c++2.cc: New file.
33475         * modules/locale-tests (Files): Add it.
33476         (Makefile.am): Compile it for test-locale-c++.
33477         * tests/test-math-c++2.cc: New file.
33478         * modules/math-tests (Files): Add it.
33479         (Makefile.am): Compile it for test-math-c++.
33480         * tests/test-signal-c++2.cc: New file.
33481         * modules/signal-tests (Files): Add it.
33482         (Makefile.am): Compile it for test-signal-c++.
33483         * tests/test-stdio-c++2.cc: New file.
33484         * modules/stdio-tests (Files): Add it.
33485         (Makefile.am): Compile it for test-stdio-c++.
33486         * tests/test-stdlib-c++2.cc: New file.
33487         * modules/stdlib-tests (Files): Add it.
33488         (Makefile.am): Compile it for test-stdlib-c++.
33489         * tests/test-string-c++2.cc: New file.
33490         * modules/string-tests (Files): Add it.
33491         (Makefile.am): Compile it for test-string-c++.
33492         * tests/test-time-c++2.cc: New file.
33493         * modules/time-tests (Files): Add it.
33494         (Makefile.am): Compile it for test-time-c++.
33495         Reported by John W. Eaton <jwe@gnu.org>.
33496
33497 2010-03-13  Bruno Haible  <bruno@clisp.org>
33498
33499         * gnulib-tool (func_usage): Clarify which options are available for
33500         --create-testdir and --create-megatestdir.
33501
33502 2010-03-13  Bruno Haible  <bruno@clisp.org>
33503
33504         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
33505         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
33506         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
33507         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
33508         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
33509         when appropriate.
33510         Reported by Jim Meyering.
33511
33512 2010-03-12  Simon Josefsson  <simon@josefsson.org>
33513
33514         * gnulib-tool (func_import): Explain origin of code.
33515
33516 2010-03-12  Bruno Haible  <bruno@clisp.org>
33517
33518         Fix problem with automake's definition of CXXLINK.
33519         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
33520         Reported by Simon Josefsson and Ludovic Courtès.
33521
33522 2010-03-12  Bruno Haible  <bruno@clisp.org>
33523
33524         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
33525         stable releases.
33526
33527 2010-03-11  Bruno Haible  <bruno@clisp.org>
33528
33529         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
33530         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
33531         whether the system provides one variant or multiple variants of the
33532         function.
33533         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
33534         C++ compilers.
33535         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
33536         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
33537         Reported by Jim Meyering.
33538
33539 2010-03-09  Simon Josefsson  <simon@josefsson.org>
33540
33541         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
33542
33543 2010-03-08  Bruno Haible  <bruno@clisp.org>
33544
33545         gnulib-tool: Add support for --libtool in --create-testdir.
33546         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
33547         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
33548
33549 2010-03-08  Eric Blake  <eblake@redhat.com>
33550
33551         gnulib-tool.texi: mention possibility of git submodule
33552         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
33553         submodules.
33554         * doc/.gitignore: Ignore another generated file.
33555
33556 2010-03-08  Karl Berry  <karl@gnu.org>
33557
33558         * doc/gnulib-tool.texi (VCS Issues): Mention third option
33559         of committing gnulib files while skipping others.
33560
33561 2010-03-07  Bruno Haible  <bruno@clisp.org>
33562
33563         Tests of module 'wctype' in C++ mode.
33564         * tests/test-wctype-c++.cc: New file.
33565         * modules/wctype-tests (Files): Add it and tests/signature.h.
33566         (Depends-on): Add ansi-c++-opt.
33567         (Makefile.am): Arrange to compile and run test-wctype-c++.
33568
33569         Tests of module 'wchar' in C++ mode.
33570         * tests/test-wchar-c++.cc: New file.
33571         * modules/wchar-tests (Files): Add it and tests/signature.h.
33572         (Depends-on): Add ansi-c++-opt.
33573         (Makefile.am): Arrange to compile and run test-wchar-c++.
33574         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
33575         gl_MODULE_INDICATOR.
33576
33577         Tests of module 'unistd' in C++ mode.
33578         * tests/test-unistd-c++.cc: New file.
33579         * modules/unistd-tests (Files): Add it and tests/signature.h.
33580         (Depends-on): Add ansi-c++-opt.
33581         (Makefile.am): Arrange to compile and run test-unistd-c++.
33582         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
33583         gl_MODULE_INDICATOR.
33584
33585         Tests of module 'time' in C++ mode.
33586         * tests/test-time-c++.cc: New file.
33587         * modules/time-tests (Files): Add it and tests/signature.h.
33588         (Depends-on): Add ansi-c++-opt.
33589         (Makefile.am): Arrange to compile and run test-time-c++.
33590         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33591
33592         Tests of module 'sys_time' in C++ mode.
33593         * tests/test-sys_time-c++.cc: New file.
33594         * modules/sys_time-tests (Files): Add it and tests/signature.h.
33595         (Depends-on): Add ansi-c++-opt.
33596         (Makefile.am): Arrange to compile and run test-sys_time-c++.
33597         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
33598         gl_MODULE_INDICATOR.
33599
33600         Tests of module 'sys_stat' in C++ mode.
33601         * tests/test-sys_stat-c++.cc: New file.
33602         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
33603         (Depends-on): Add ansi-c++-opt.
33604         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
33605         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
33606         gl_MODULE_INDICATOR.
33607
33608         Tests of module 'sys_socket' in C++ mode.
33609         * tests/test-sys_socket-c++.cc: New file.
33610         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
33611         (Depends-on): Add ansi-c++-opt.
33612         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
33613         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
33614         gl_MODULE_INDICATOR.
33615
33616         Tests of module 'sys_select' in C++ mode.
33617         * tests/test-sys_select-c++.cc: New file.
33618         * modules/sys_select-tests (Files): Add it and tests/signature.h.
33619         (Depends-on): Add ansi-c++-opt.
33620         (Makefile.am): Arrange to compile and run test-sys_select-c++.
33621         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
33622         gl_MODULE_INDICATOR.
33623
33624         Tests of module 'sys_ioctl' in C++ mode.
33625         * tests/test-sys_ioctl-c++.cc: New file.
33626         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
33627         (Depends-on): Add ansi-c++-opt.
33628         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
33629         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
33630         gl_MODULE_INDICATOR.
33631
33632         Tests of module 'string' in C++ mode.
33633         * tests/test-string-c++.cc: New file.
33634         * modules/string-tests (Files): Add it and tests/signature.h.
33635         (Depends-on): Add ansi-c++-opt.
33636         (Makefile.am): Arrange to compile and run test-string-c++.
33637         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
33638         gl_MODULE_INDICATOR.
33639
33640         Tests of module 'stdlib' in C++ mode.
33641         * tests/test-stdlib-c++.cc: New file.
33642         * modules/stdlib-tests (Files): Add it and tests/signature.h.
33643         (Depends-on): Add ansi-c++-opt.
33644         (Makefile.am): Arrange to compile and run test-stdlib-c++.
33645         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
33646         gl_MODULE_INDICATOR.
33647
33648         Tests of module 'stdio' in C++ mode.
33649         * tests/test-stdio-c++.cc: New file.
33650         * modules/stdio-tests (Files): Add it and tests/signature.h.
33651         (Depends-on): Add ansi-c++-opt.
33652         (Makefile.am): Arrange to compile and run test-stdio-c++.
33653         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
33654         gl_MODULE_INDICATOR.
33655
33656         Tests of module 'spawn' in C++ mode.
33657         * tests/test-spawn-c++.cc: New file.
33658         * modules/spawn-tests (Files): Add it and tests/signature.h.
33659         (Depends-on): Add ansi-c++-opt.
33660         (Makefile.am): Arrange to compile and run test-spawn-c++.
33661         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
33662         gl_MODULE_INDICATOR.
33663
33664         Tests of module 'signal' in C++ mode.
33665         * tests/test-signal-c++.cc: New file.
33666         * modules/signal-tests (Files): Add it and tests/signature.h.
33667         (Depends-on): Add ansi-c++-opt.
33668         (Makefile.am): Arrange to compile and run test-signal-c++.
33669         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
33670         gl_MODULE_INDICATOR.
33671
33672         Tests of module 'search' in C++ mode.
33673         * tests/test-search-c++.cc: New file.
33674         * modules/search-tests (Files): Add it and tests/signature.h.
33675         (Depends-on): Add ansi-c++-opt.
33676         (Makefile.am): Arrange to compile and run test-search-c++.
33677         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
33678         gl_MODULE_INDICATOR.
33679
33680         Tests of module 'math' in C++ mode.
33681         * tests/test-math-c++.cc: New file.
33682         * modules/math-tests (Files): Add it and tests/signature.h.
33683         (Depends-on): Add ansi-c++-opt.
33684         (Makefile.am): Arrange to compile and run test-math-c++.
33685         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33686
33687         Tests of module 'locale' in C++ mode.
33688         * tests/test-locale-c++.cc: New file.
33689         * modules/locale-tests (Files): Add it and tests/signature.h.
33690         (Depends-on): Add ansi-c++-opt.
33691         (Makefile.am): Arrange to compile and run test-locale-c++.
33692         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
33693         gl_MODULE_INDICATOR.
33694
33695         Tests of module 'langinfo' in C++ mode.
33696         * tests/test-langinfo-c++.cc: New file.
33697         * modules/langinfo-tests (Files): Add it and tests/signature.h.
33698         (Depends-on): Add ansi-c++-opt.
33699         (Makefile.am): Arrange to compile and run test-langinfo-c++.
33700         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
33701         gl_MODULE_INDICATOR.
33702
33703         Tests of module 'iconv-h' in C++ mode.
33704         * tests/test-iconv-h-c++.cc: New file.
33705         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
33706         (Depends-on): Add ansi-c++-opt.
33707         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
33708
33709         Tests of module 'glob' in C++ mode.
33710         * tests/test-glob-c++.cc: New file.
33711         * modules/glob-tests (Files): Add it.
33712         (Depends-on): Add ansi-c++-opt.
33713         (Makefile.am): Arrange to compile and run test-glob-c++.
33714
33715         Tests of module 'fcntl-h' in C++ mode.
33716         * tests/test-fcntl-h-c++.cc: New file.
33717         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
33718         (Depends-on): Add ansi-c++-opt.
33719         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
33720         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
33721         gl_MODULE_INDICATOR.
33722
33723         Tests of module 'dirent' in C++ mode.
33724         * tests/test-dirent-c++.cc: New file.
33725         * modules/dirent-tests (Files): Add it and tests/signature.h.
33726         (Depends-on): Add ansi-c++-opt.
33727         (Makefile.am): Arrange to compile and run test-dirent-c++.
33728         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
33729         gl_MODULE_INDICATOR.
33730
33731         New module 'ansi-c++-opt'.
33732         * modules/ansi-c++-opt: New file.
33733         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
33734
33735         Document C++ namespace mode.
33736         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
33737
33738         wctype: Avoid #define replacements in C++ mode.
33739         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
33740         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
33741         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
33742         In C++, define a namespaced alias symbol.
33743         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
33744         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
33745         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
33746         rule.
33747
33748         wchar: Avoid #define replacements in C++ mode.
33749         * lib/wchar.in.h: Include c++defs.h.
33750         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
33751         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
33752         symbol.
33753         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
33754         * modules/wchar (Depends-on): Add c++defs.
33755         (Makefile.am): Update wchar.h rule.
33756
33757         unistd: Avoid #define replacements in C++ mode.
33758         * lib/unistd.in.h: Include c++defs.h.
33759         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
33760         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
33761         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
33762         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
33763         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
33764         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
33765         symbol.
33766         (environ): Update.
33767         * modules/unistd (Depends-on): Add c++defs.
33768         (Makefile.am): Update unistd.h rule.
33769
33770         time: Avoid #define replacements in C++ mode.
33771         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
33772         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
33773         define a namespaced alias symbol.
33774         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
33775         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
33776         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
33777         * modules/time (Depends-on): Add c++defs, warn-on-use.
33778         (Makefile.am): Update time.h rule.
33779         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33780         * modules/nanosleep (configure.ac): Likewise.
33781         * modules/strptime (configure.ac): Likewise.
33782         * modules/timegm (configure.ac): Likewise.
33783
33784         sys_time: Avoid #define replacements in C++ mode.
33785         * lib/sys_time.in.h: Include c++defs.h.
33786         (gettimeofday): In C++, define a namespaced alias symbol.
33787         * modules/sys_time (Depends-on): Add c++defs.
33788         (Makefile.am): Update sys/time.h rule.
33789
33790         sys_stat: Avoid #define replacements in C++ mode.
33791         * lib/sys_stat.in.h: Include c++defs.h.
33792         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
33793         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
33794         namespaced alias symbol.
33795         In C++, define a namespaced alias symbol.
33796         * modules/sys_stat (Depends-on): Add c++defs.
33797         (Makefile.am): Update sys/stat.h rule.
33798
33799         sys_socket: Avoid #define replacements in C++ mode.
33800         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
33801         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
33802         definitions also when the system has a <sys/socket.h>.
33803         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
33804         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
33805         In C++, define a namespaced alias symbol.
33806         * modules/sys_socket (Depends-on): Add c++defs.
33807         (Makefile.am): Update sys/socket.h rule.
33808
33809         sys_select: Avoid #define replacements in C++ mode.
33810         * lib/sys_select.in.h: Include c++defs.h. Enable the function
33811         definitions also when the system has a <sys/select.h>.
33812         (select): In C++, define a namespaced alias symbol.
33813         * modules/sys_select (Depends-on): Add c++defs.
33814         (Makefile.am): Update sys/select.h rule.
33815
33816         sys_ioctl: Avoid #define replacements in C++ mode.
33817         * lib/sys_ioctl.in.h: Include c++defs.h.
33818         (ioctl): In C++, define a namespaced alias symbol.
33819         * modules/sys_ioctl (Depends-on): Add c++defs.
33820         (Makefile.am): Update sys/ioctl.h rule.
33821
33822         string: Avoid #define replacements in C++ mode.
33823         * lib/string.in.h: Include c++defs.h.
33824         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
33825         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33826         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33827         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
33828         strsignal, strverscmp): In C++, define a namespaced alias symbol.
33829         * modules/string (Depends-on): Add c++defs.
33830         (Makefile.am): Update string.h rule.
33831
33832         stdlib: Avoid #define replacements in C++ mode.
33833         * lib/stdlib.in.h: Include c++defs.h.
33834         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
33835         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
33836         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
33837         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
33838         symbol.
33839         * modules/stdlib (Depends-on): Add c++defs.
33840         (Makefile.am): Update stdlib.h rule.
33841
33842         stdio: Avoid #define replacements in C++ mode.
33843         * lib/stdio.in.h: Include c++defs.h.
33844         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
33845         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
33846         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
33847         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
33848         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
33849         namespaced alias symbol.
33850         * modules/stdio (Depends-on): Add c++defs.
33851         (Makefile.am): Update stdio.h rule.
33852
33853         spawn: Avoid #define replacements in C++ mode.
33854         * lib/spawn.in.h: Include c++defs.h.
33855         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33856         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33857         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33858         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33859         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33860         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33861         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33862         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33863         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33864         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33865         In C++, define a namespaced alias symbol.
33866         * modules/spawn (Depends-on): Add c++defs.
33867         (Makefile.am): Update spawn.h rule.
33868
33869         signal: Avoid #define replacements in C++ mode.
33870         * lib/signal.in.h: Include c++defs.h.
33871         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33872         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
33873         namespaced alias symbol.
33874         * modules/signal (Depends-on): Add c++defs.
33875         (Makefile.am): Update signal.h rule.
33876
33877         search: Avoid #define replacements in C++ mode.
33878         * lib/search.in.h: Include c++defs.h.
33879         (_gl_search_compar_fn, _gl_search_action_fn): New types.
33880         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
33881         symbol.
33882         * modules/search (Depends-on): Add c++defs.
33883         (Makefile.am): Update search.h rule.
33884
33885         math: Avoid #define replacements in C++ mode.
33886         * lib/math.in.h: Include c++defs.h.
33887         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
33888         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
33889         trunc, truncl): In C++, define a namespaced alias symbol.
33890         * modules/math (Depends-on): Add c++defs.
33891         (Makefile.am): Update math.h rule.
33892
33893         locale: Avoid #define replacements in C++ mode.
33894         * lib/locale.in.h: Include c++defs.h.
33895         (duplocale): In C++, define a namespaced alias symbol.
33896         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
33897         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
33898         * modules/locale (Depends-on): Add c++defs.
33899         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
33900
33901         langinfo: Avoid #define replacements in C++ mode.
33902         * lib/langinfo.in.h: Include c++defs.h.
33903         (nl_langinfo): In C++, define a namespaced alias symbol.
33904         * modules/langinfo (Depends-on): Add c++defs.
33905         (Makefile.am): Update langinfo.h rule.
33906
33907         iconv-h: Avoid #define replacements in C++ mode.
33908         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
33909         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
33910         symbol.
33911         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
33912         whenever iconv is present.
33913         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
33914         (Makefile.am): Update iconv.h rule.
33915
33916         glob: Avoid #define replacements in C++ mode.
33917         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
33918         (_gl_glob_errfunc_fn): New type.
33919         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
33920         symbol.
33921         * modules/glob (Depends-on): Add c++defs, warn-on-use.
33922         (Makefile.am): Update glob.h rule.
33923
33924         fcntl-h: Avoid #define replacements in C++ mode.
33925         * lib/fcntl.in.h: Include c++defs.h.
33926         (fcntl, open, openat): In C++, define a namespaced alias symbol.
33927         * modules/fcntl-h (Depends-on): Add c++defs.
33928         (Makefile.am): Update fcntl.h rule.
33929
33930         dirent: Avoid #define replacements in C++ mode.
33931         * lib/dirent.in.h: Include c++defs.h.
33932         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
33933         namespaced alias symbol.
33934         (dirfd): Update declaration.
33935         * modules/dirent (Depends-on): Add c++defs.
33936         (Makefile.am): Update dirent.h rule.
33937
33938         ctype: Make it usable in C++ code.
33939         * lib/ctype.in.h: Include c++defs.h.
33940         (isblank): Declare as extern "C".
33941         * modules/ctype (Depends-on): Add c++defs.
33942         (Makefile.am): Update ctype.h rule.
33943
33944         New module 'c++defs'.
33945         * modules/c++defs: New file.
33946         * build-aux/c++defs.h: New file.
33947         Reported by John W. Eaton <jwe@gnu.org>.
33948
33949 2010-03-07  Bruno Haible  <bruno@clisp.org>
33950
33951         logb: Provide missing declaration for Cygwin.
33952         * lib/math.in.h (logb): New declaration.
33953         * m4/logb.m4: New file.
33954         * modules/logb (Files): Add m4/logb.m4.
33955         (Depends-on): Add math.
33956         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
33957         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
33958         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
33959         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
33960         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
33961
33962 2010-03-07  Bruno Haible  <bruno@clisp.org>
33963
33964         Fix test-cond link error.
33965         * tests/test-cond.c: Include <stdio.h>.
33966
33967 2010-03-07  Bruno Haible  <bruno@clisp.org>
33968
33969         Fix test-dirent-safer link error.
33970         * modules/dirent-safer-tests (Makefile.am): Define
33971         test_dirent_safer_LDADD.
33972
33973 2010-03-07  Bruno Haible  <bruno@clisp.org>
33974
33975         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
33976         among default module list.
33977
33978 2010-03-07  Bruno Haible  <bruno@clisp.org>
33979
33980         Fix link error on platforms with GNU libiconv.
33981         * modules/unistr/u8-strcoll-tests (Makefile): Define
33982         test_u8_strcoll_LDADD.
33983         * modules/unistr/u16-strcoll-tests (Makefile): Define
33984         test_u16_strcoll_LDADD.
33985         * modules/unistr/u32-strcoll-tests (Makefile): Define
33986         test_u32_strcoll_LDADD.
33987
33988 2010-03-07  Bruno Haible  <bruno@clisp.org>
33989
33990         Use POSIX declarations for socket functions.
33991         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
33992         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
33993         rpl_sendto): Change declaration to match POSIX.
33994         * lib/connect.c (rpl_connect): Likewise.
33995         * lib/accept.c (rpl_accept): Likewise.
33996         * lib/bind.c (rpl_bind): Likewise.
33997         * lib/getpeername.c (rpl_getpeername): Likewise.
33998         * lib/getsockname.c (rpl_getsockname): Likewise.
33999         * lib/recv.c (rpl_recv): Likewise.
34000         * lib/send.c (rpl_send): Likewise.
34001         * lib/recvfrom.c (rpl_recvfrom): Likewise.
34002         * lib/sendto.c (rpl_sendto): Likewise.
34003
34004 2010-03-06  Bruno Haible  <bruno@clisp.org>
34005
34006         Clarify access, euidaccess, faccessat.
34007         * doc/posix-functions/faccessat.texi: Mention security problem under
34008         "Other problems", not "Portability problems".
34009         * doc/posix-functions/access.texi: Likewise. Mention a related security
34010         problem.
34011         * doc/glibc-functions/euidaccess.texi: Mention security problems.
34012         * lib/euidaccess.c: Add comments about platforms.
34013         * lib/unistd.in.h (access, euidaccess): Add warnings.
34014
34015 2010-03-07  Bruno Haible  <bruno@clisp.org>
34016
34017         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
34018         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
34019         (POSIX_SPAWN_SETSCHEDULER): Likewise.
34020         (POSIX_SPAWN_USEVFORK): Define in a way that works when
34021         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
34022         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
34023         declare when POSIX_SPAWN_SETSCHEDULER is zero.
34024         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
34025         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
34026         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
34027         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
34028         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
34029         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
34030         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
34031         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
34032         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
34033         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
34034         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
34035         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
34036         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
34037         Likewise.
34038         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
34039         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
34040         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
34041         Likewise.
34042         * tests/test-spawn.c (main): Make it work when
34043         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
34044
34045 2010-03-07  Bruno Haible  <bruno@clisp.org>
34046
34047         Fix incorrect Makefile.am generation in German locale.
34048         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34049         Execute sed command with character range in C locale.
34050
34051 2010-03-06  Bruno Haible  <bruno@clisp.org>
34052
34053         Tests for module 'iconv-h'.
34054         * modules/iconv-h-tests: New file.
34055         * tests/test-iconv-h.c: New file.
34056
34057         New module 'iconv-h'.
34058         * modules/iconv-h: New file.
34059         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
34060         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
34061         (configure.ac): Remove gl_ICONV_H.
34062         (Makefile.am): Remove rule for iconv.h.
34063
34064 2010-03-06  Bruno Haible  <bruno@clisp.org>
34065
34066         More consistent naming of *.m4 files.
34067         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
34068         * modules/wctype (Files): Update.
34069
34070         More consistent naming of *.m4 files.
34071         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
34072         * modules/wchar (Files): Update.
34073
34074 2010-03-06  Jim Meyering  <meyering@redhat.com>
34075
34076         euidaccess: relax license to LGPLv2+
34077         * modules/euidaccess (License): Relax to LGPLv2+.
34078
34079 2010-03-06  Bruno Haible  <bruno@clisp.org>
34080
34081         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
34082         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
34083         (Makefile.am): Augment lib_SOURCES instead.
34084
34085 2010-03-04  Jim Meyering  <meyering@redhat.com>
34086
34087         utime: remove obsolete module
34088         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
34089         unnecessary for years, and has been marked as obsolete for 10 months.
34090         * modules/utime: Remove file.
34091         * lib/utime.c: Remove file.
34092         * m4/utime.m4: Remove file.
34093         * m4/utimes-null.m4: Remove file.
34094         * doc/posix-functions/utime.texi (utime): Remove reference to
34095         the module.  Move the sole "fixed by gnulib" item into the
34096         "problems not fixed by Gnulib" list.
34097         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
34098
34099 2010-03-05  Simon Josefsson  <simon@josefsson.org>
34100
34101         * modules/exit (License): Relax license to LGPLv2+.
34102         (Status): Mark as obsolete.
34103         * NEWS: Mention deprecated 'exit' module.
34104         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
34105         of now obsolete 'exit'.
34106
34107 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34108
34109         fts-lgpl: remove unused module
34110         * modules/fts-lgpl: Remove.
34111         * MODULES.html.sh (func_all_modules): Adjust.
34112         * check-module (find_included_lib_files): Adjust.
34113         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
34114
34115 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
34116
34117         copy-acl: enhance Solaris ACL error handling
34118         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
34119         * lib/set-mode-acl.c (qset_acl): Likewise.
34120
34121 2010-03-02  Bruno Haible  <bruno@clisp.org>
34122
34123         spawn: Don't override the system defined values on FreeBSD 8.
34124         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
34125         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
34126         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
34127         if HAVE_POSIX_SPAWN is 1.
34128         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
34129
34130 2010-03-01  Bruno Haible  <bruno@clisp.org>
34131
34132         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
34133         regarding Automake.
34134
34135 2010-02-25  Bruno Haible  <bruno@clisp.org>
34136
34137         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
34138         * gnulib-tool: Define 'echo' as a function only before the ksh alias
34139         setting, not afterwards.
34140         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
34141
34142 2010-02-24  Eric Blake  <eblake@redhat.com>
34143
34144         bootstrap, git-version-gen: use timestamp
34145         * build-aux/git-version-gen (scriptversion): Force UTC.
34146         * build-aux/bootstrap (scriptversion): New variable.
34147
34148         bootstrap: allow older git
34149         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
34150         older than 1.6.4.  Requested by the libvirt project.
34151
34152 2010-02-23  Eric Blake  <eblake@redhat.com>
34153
34154         warn-on-use: work with old autoconf
34155         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
34156         AS_VAR semantics of autoconf 2.60.
34157         Reported by Bruno Haible.
34158
34159         bootstrap: improve some comments
34160         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
34161         clarification comments.
34162
34163         gettimeofday: provide correct function
34164         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
34165         when replacement is declared, otherwise provide gettimeofday.
34166         Reported by Michael Goffioul.
34167
34168 2010-02-23  Jim Meyering  <meyering@redhat.com>
34169
34170         lib-ignore: relax license to "unlimited", not LGPLv2+
34171         * modules/lib-ignore (License): Relax to "unlimited".
34172
34173 2010-02-23  Jim Meyering  <meyering@redhat.com>
34174
34175         lib-ignore: relax license to LGPLv2+
34176         * modules/lib-ignore (License): Relax to LGPLv2+.
34177
34178 2010-02-22  Eric Blake  <eblake@redhat.com>
34179
34180         lseek: avoid bash 3.2 broken pipe bug
34181         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
34182         warning from bash 3.2.
34183         Reported by Ben Pfaff, with analysis from Bruno Haible.
34184
34185         bootstrap: support non-FSF copyright holder
34186         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
34187         bootstrap.conf override of COPYRIGHT_HOLDER.
34188         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
34189
34190         bootstrap: interoperate with gettext 0.14.1
34191         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
34192
34193         bootstrap: allow for alternate submodule location
34194         * build-aux/bootstrap (gnulib_path): New variable; use instead of
34195         hardcoding submodule location.
34196         (gnulib_mk): Allow direct use of Makefile.am.
34197
34198         bootstrap: use GNULIB_SRCDIR to reduce disk usage
34199         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
34200         rather than reconfiguring where the submodule points.
34201
34202         gettimeofday: restore support for platforms that lack function
34203         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
34204         replacement if function is missing.
34205         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
34206         * modules/sys_time (Makefile.am): Substitute it.
34207         * lib/sys_time.in.h (gettimeofday): Check it.
34208         Reported by Michael Goffioul.
34209
34210 2010-02-21  Bruno Haible  <bruno@clisp.org>
34211
34212         * lib/stdio.in.h (obstack_printf): Fix typo.
34213
34214 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
34215
34216         vc-list-files: use bzr ls's -R option
34217         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
34218         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
34219
34220 2010-02-21  Jim Meyering  <meyering@redhat.com>
34221
34222         init.sh: fix EXEEXT shims to work also for names like test-prog
34223         * tests/init.sh: Re-exec a better shell, when needed.
34224         If the current shell lacks support for posix $(...), an init.sh-using
34225         test will now try to find a shell that supports that.  If EXEEXT is
34226         nonempty, we also require support for hyphen-in-alias-name and shell
34227         substitutions like ${var#glob}.  Failure to find such a shell results
34228         in a skipped test.
34229
34230 2010-02-21  Bruno Haible  <bruno@clisp.org>
34231
34232         Really work around around "broken pipe" error message from bash 3.2.
34233         * gnulib-tool (func_reset_sigpipe): Remove function.
34234         (echo): In bash 3.2, define to a function that uses printf.
34235         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
34236
34237 2010-02-20  Bruno Haible  <bruno@clisp.org>
34238
34239         Restore support for automake 1.9.6 with autoconf 2.61.
34240         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
34241         Reported by James Youngman <jay@gnu.org>.
34242
34243 2010-02-20  Bruno Haible  <bruno@clisp.org>
34244
34245         Improve *printf warning condition.
34246         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
34247         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
34248         and the function is overridden due to SIGPIPE emulation.
34249
34250 2010-02-20  Bruno Haible  <bruno@clisp.org>
34251
34252         * lib/stdio.in.h: Tweak comments.
34253
34254 2010-02-19  Bruno Haible  <bruno@clisp.org>
34255
34256         Make it easier to find modules. New gnulib-tool option '--find'.
34257         * gnulib-tool: New option --find.
34258         (func_usage): Document it.
34259         (func_sanitize_modulelist): New function, extracted from
34260         func_all_modules.
34261         (func_all_modules): Invoke it.
34262         * doc/gnulib-tool.texi (Which modules?): New node.
34263
34264 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
34265
34266         * lib/sys_select.in.h: Provide select replacement even if
34267         sys/select.h exists on a system, for Interix.
34268
34269 2010-02-18  Jim Meyering  <meyering@redhat.com>
34270
34271         init.sh: don't use $(...) just yet
34272         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
34273         to accommodate e.g., Solaris' /bin/sh.
34274
34275 2010-02-17  Bruno Haible  <bruno@clisp.org>
34276
34277         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
34278         Reported by Ludovic Courtès <ludo@gnu.org>.
34279
34280 2010-02-16  Simon Josefsson  <simon@josefsson.org>
34281
34282         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
34283         linking with -lintl.
34284
34285 2010-02-17  Simon Josefsson  <simon@josefsson.org>
34286
34287         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
34288         if not provided by the system's netdb.h.  Reported by
34289         ludo@gnu.org (Ludovic Courtès).
34290
34291 2010-02-15  Jim Meyering  <meyering@redhat.com>
34292
34293         init.sh: improve portability and efficiency
34294         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
34295         "dummy" in a for loop.
34296         Use '!', not '^' to select the complement of a character set used
34297         in a "case" statement.
34298         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
34299         Suggestions from Eric Blake.
34300
34301         init.sh: automatically accommodate programs with the .exe suffix
34302         Automatically arrange for an invocation of "prog" to execute the
34303         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
34304         may use the simpler "prog", yet still work when built on a system
34305         that requires specifying the added suffix.
34306         Do this by constructing a function named "prog" that invokes
34307         "prog.exe" for each .exe file in selected directories.
34308         * tests/init.sh (find_exe_basenames_): New function.
34309         (create_exe_shim_functions_): New function.
34310         (path_prepend_): Use it.
34311
34312         maint.mk: mark syntax-check sc_*.m rules as .PHONY
34313         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
34314         "make -t syntax-check" doesn't create a ton of sc_*.m files.
34315
34316 2010-02-14  Jim Meyering  <meyering@redhat.com>
34317
34318         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
34319         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
34320         (sc_prohibit_hash_pjw_without_use): New rule.
34321
34322         maint.mk: allow the default upload destination dir to be overridden
34323         * top/maint.mk (upload_dest_dir_): Define with a default that
34324         preserves the status quo.
34325         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
34326         Reported by Peter Simons.
34327
34328         maint.mk: prohibit inclusion of "hash.h" without_use
34329         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
34330
34331 2010-02-10  Jim Meyering  <meyering@redhat.com>
34332
34333         maint.mk: prohibit inclusion of "ignore-value.h" without_use
34334         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
34335
34336 2010-02-09  Eric Blake  <ebb9@byu.net>
34337         and Bruno Haible  <bruno@clisp.org>
34338
34339         obstack-printf-posix: ensure declaration
34340         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
34341         extracted from gl_FUNC_OBSTACK_PRINTF.
34342         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
34343         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
34344         Likewise.
34345         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
34346         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
34347         0.
34348
34349 2010-02-08  Bruno Haible  <bruno@clisp.org>
34350
34351         gnulib-tool: Fix typo in 2010-02-07 commit.
34352         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
34353         Reported by Eric Blake.
34354
34355 2010-02-07  Bruno Haible  <bruno@clisp.org>
34356
34357         gnulib-tool: Fix up caching patches.
34358         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
34359         option --no-cache. Use associative arrays when supported by the shell.
34360         (sed_comments): New variable.
34361         (modcache): Renamed from do_cache.
34362         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
34363         abbreviate unnecessarily.
34364         (have_associative): New variable.
34365         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
34366         way also for ksh and zsh.
34367         (func_init_sed_convert_to_cache_statements): New function, extracted
34368         from func_cache_lookup_module. Add support for associative arrays.
34369         Don't set the c_MODULE_cached variable here. Ignore all lines before
34370         the first field header. Remove only the final newline, not all trailing
34371         newlines. Support empty fields correctly. Limit the use of 'eval' to
34372         assignments.
34373         (func_get_description, func_get_status, func_get_notice,
34374         func_get_applicability, func_get_filelist, func_get_dependencies,
34375         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
34376         func_get_automake_snippet, func_get_include_directive,
34377         func_get_link_directive, func_get_license, func_get_maintainer):
34378         Update documentation. List the unoptimized code first. Add support for
34379         associative arrays. Limit the use of 'eval' to assignments.
34380         (func_get_applicability): Undo stylistic pessimisations.
34381         (func_get_automake_snippet, func_get_include_directive): Reduce code
34382         duplication.
34383         (func_modules_transitive_closure, func_modules_add_dummy,
34384         func_modules_notice, func_modules_to_filelist, func_add_file,
34385         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
34386         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
34387         func_create_testdir, func_create_megatestdir): Update documentation.
34388
34389 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34390
34391         * gnulib-tool (func_cache_lookup_module): Store the module name
34392         belonging to the cache variable; error out if two different
34393         module names map to the same cache variable name.
34394
34395 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34396
34397         gnulib-tool: Make caching optional.
34398         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
34399         Update matching short versions of --no-changelog.
34400         (func_usage): Update.
34401         (sed_extract_cache_prog): Renamed from ...
34402         (sed_extract_prog): ... this; revert to old extraction script.
34403         (func_get_description, func_get_status)
34404         (func_get_notice, func_get_applicability, func_get_filelist)
34405         (func_get_dependencies, func_get_autoconf_early_snippet)
34406         (func_get_autoconf_snippet, func_get_automake_snippet)
34407         (func_get_include_directive, func_get_link_directive)
34408         (func_get_license, func_get_maintainer): If $do_cache is false,
34409         use old, non-caching extraction scripts.
34410         Suggestion by Bruno Haible.
34411
34412 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34413
34414         gnulib-tool: cache module metainformation.
34415         * gnulib-tool (sed_extract_prog): Match newline before each
34416         header, and rewrite header to a shell variable suffix.
34417         (func_cache_var, func_cache_lookup_module): New functions,
34418         to turn a module name into a cache variable prefix, and to
34419         look up and cache module metainformation.
34420         (func_get_description, func_get_status)
34421         (func_get_notice, func_get_applicability, func_get_filelist)
34422         (func_get_dependencies, func_get_autoconf_early_snippet)
34423         (func_get_autoconf_snippet, func_get_automake_snippet)
34424         (func_get_include_directive, func_get_link_directive)
34425         (func_get_license, func_get_maintainer): Use
34426         func_cache_lookup_module.
34427
34428 2010-02-07  Bruno Haible  <bruno@clisp.org>
34429
34430         fnctl: Fix missing dependency.
34431         * modules/fcntl (Depends-on): Add getdtablesize.
34432         Reported by John W. Eaton <jwe@gnu.org>.
34433
34434 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34435
34436         Argp: fix recognition of short alias options.
34437
34438         * lib/argp-parse.c (convert_options): Fix improper use of
34439         `|' between character values.
34440         * tests/test-argp.c (group1_option): New alias option
34441         --read (-r).
34442         (group1_parser): Special handling for 'r'.
34443         (test15): New test case.
34444         (test_fun): Add test15.
34445         * tests/test-argp-2.sh: Update expected --help and --usage
34446         outputs.
34447
34448 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34449
34450         * tests/test-argp.c: Fix indentation.
34451
34452 2010-02-04  Eric Blake  <ebb9@byu.net>
34453
34454         gettimeofday: expose type of second argument
34455         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
34456         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
34457         * tests/test-gettimeofday.c: Use it to silence warning.
34458         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
34459         the issue.
34460
34461 2010-02-03  Jim Meyering  <meyering@redhat.com>
34462
34463         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
34464         * lib/regcomp.c (TYPE_SIGNED): Define.
34465         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
34466
34467         regcomp.c: avoid a new -Wshadow warning
34468         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
34469
34470 2010-02-01  Jim Meyering  <meyering@redhat.com>
34471
34472         removing useless parentheses in cpp #define directives
34473         For motivation, see commit c0221df4, "define STREQ(a,b)
34474         consistently, removing useless parentheses"
34475         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
34476         * lib/mountlist.c (MNT_IGNORE): Likewise.
34477         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
34478
34479 2010-02-01  Eric Blake  <ebb9@byu.net>
34480
34481         sys_time: use link-warning
34482         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
34483         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
34484         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
34485         * modules/sys_time (Depends-on): Add warn-on-use.
34486         (Makefile.am): Always build replacement.
34487         (configure.ac): Update substitutions.
34488         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
34489         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
34490         bother with SYS_TIME_H.
34491         * modules/gettimeofday (configure.ac): Declare indicator.
34492         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
34493         in use.
34494
34495         closein-tests: silence compiler warning
34496         * tests/test-closein.c (main): Ignore fread result.
34497         * modules/closein-tests (Depends-on): Add ignore-value.
34498
34499         tests: silence warning about system return
34500         * tests/test-areadlink-with-size.c (main): Ignore system result.
34501         * tests/test-areadlink.c (main): Likewise.
34502         * tests/test-areadlinkat-with-size.c (main): Likewise.
34503         * tests/test-areadlinkat.c (main): Likewise.
34504         * tests/test-canonicalize-lgpl.c (main): Likewise.
34505         * tests/test-canonicalize.c (main): Likewise.
34506         * tests/test-chown.c (main): Likewise.
34507         * tests/test-fchownat.c (main): Likewise.
34508         * tests/test-fdutimensat.c (main): Likewise.
34509         * tests/test-fstatat.c (main): Likewise.
34510         * tests/test-futimens.c (main): Likewise.
34511         * tests/test-lchown.c (main): Likewise.
34512         * tests/test-link.c (main): Likewise.
34513         * tests/test-linkat.c (main): Likewise.
34514         * tests/test-lstat.c (main): Likewise.
34515         * tests/test-mkdir.c (main): Likewise.
34516         * tests/test-mkdirat.c (main): Likewise.
34517         * tests/test-mkfifo.c (main): Likewise.
34518         * tests/test-mkfifoat.c (main): Likewise.
34519         * tests/test-mknod.c (main): Likewise.
34520         * tests/test-readlink.c (main): Likewise.
34521         * tests/test-remove.c (main): Likewise.
34522         * tests/test-rename.c (main): Likewise.
34523         * tests/test-renameat.c (main): Likewise.
34524         * tests/test-rmdir.c (main): Likewise.
34525         * tests/test-symlink.c (main): Likewise.
34526         * tests/test-symlinkat.c (main): Likewise.
34527         * tests/test-unlink.c (main): Likewise.
34528         * tests/test-unlinkat.c (main): Likewise.
34529         * tests/test-utimens.c (main): Likewise.
34530         * tests/test-utimensat.c (main): Likewise.
34531         * modules/areadlink-tests (Depends-on): Add ignore-value.
34532         * modules/areadlink-with-size-tests (Depends-on): Likewise.
34533         * modules/areadlinkat-tests (Depends-on): Likewise.
34534         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
34535         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34536         * modules/canonicalize-tests (Depends-on): Likewise.
34537         * modules/chown-tests (Depends-on): Likewise.
34538         * modules/fdutimensat-tests (Depends-on): Likewise.
34539         * modules/futimens-tests (Depends-on): Likewise.
34540         * modules/lchown-tests (Depends-on): Likewise.
34541         * modules/link-tests (Depends-on): Likewise.
34542         * modules/linkat-tests (Depends-on): Likewise.
34543         * modules/lstat-tests (Depends-on): Likewise.
34544         * modules/mkdir-tests (Depends-on): Likewise.
34545         * modules/mkfifo-tests (Depends-on): Likewise.
34546         * modules/mkfifoat-tests (Depends-on): Likewise.
34547         * modules/mknod-tests (Depends-on): Likewise.
34548         * modules/openat-tests (Depends-on): Likewise.
34549         * modules/readlink-tests (Depends-on): Likewise.
34550         * modules/remove-tests (Depends-on): Likewise.
34551         * modules/rename-tests (Depends-on): Likewise.
34552         * modules/renameat-tests (Depends-on): Likewise.
34553         * modules/rmdir-tests (Depends-on): Likewise.
34554         * modules/symlink-tests (Depends-on): Likewise.
34555         * modules/symlinkat-tests (Depends-on): Likewise.
34556         * modules/unlink-tests (Depends-on): Likewise.
34557         * modules/utimens-tests (Depends-on): Likewise.
34558         * modules/utimensat-tests (Depends-on): Likewise.
34559
34560 2010-01-31  Bruno Haible  <bruno@clisp.org>
34561
34562         Perform the same test for many <math.h> functions.
34563         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
34564         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
34565         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
34566         of gl_MATHFUNC.
34567         * modules/acos (configure.ac): Likewise.
34568         * modules/asin (configure.ac): Likewise.
34569         * modules/atan (configure.ac): Likewise.
34570         * modules/atan2 (configure.ac): Likewise.
34571         * modules/cbrt (configure.ac): Likewise.
34572         * modules/copysign (configure.ac): Likewise.
34573         * modules/cos (configure.ac): Likewise.
34574         * modules/cosh (configure.ac): Likewise.
34575         * modules/erf (configure.ac): Likewise.
34576         * modules/erfc (configure.ac): Likewise.
34577         * modules/exp (configure.ac): Likewise.
34578         * modules/fmod (configure.ac): Likewise.
34579         * modules/hypot (configure.ac): Likewise.
34580         * modules/j0 (configure.ac): Likewise.
34581         * modules/j1 (configure.ac): Likewise.
34582         * modules/jn (configure.ac): Likewise.
34583         * modules/lgamma (configure.ac): Likewise.
34584         * modules/log (configure.ac): Likewise.
34585         * modules/log10 (configure.ac): Likewise.
34586         * modules/log1p (configure.ac): Likewise.
34587         * modules/pow (configure.ac): Likewise.
34588         * modules/remainder (configure.ac): Likewise.
34589         * modules/sin (configure.ac): Likewise.
34590         * modules/sinh (configure.ac): Likewise.
34591         * modules/tan (configure.ac): Likewise.
34592         * modules/tanh (configure.ac): Likewise.
34593         * modules/y0 (configure.ac): Likewise.
34594         * modules/y1 (configure.ac): Likewise.
34595         * modules/yn (configure.ac): Likewise.
34596         Suggested by Paolo Bonzini.
34597
34598 2010-01-31  Bruno Haible  <bruno@clisp.org>
34599
34600         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
34601
34602 2010-01-31  Bruno Haible  <bruno@clisp.org>
34603
34604         Work around getdelim() bug on FreeBSD 8.0.
34605         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
34606         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
34607         not work.
34608         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
34609         is 1.
34610         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
34611         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
34612         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
34613         a non-zero size.
34614         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
34615
34616 2010-01-31  Bruno Haible  <bruno@clisp.org>
34617
34618         Work around getline() bug on FreeBSD 8.0.
34619         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
34620         and a non-zero size.
34621         * tests/test-getline.c (main): Likewise.
34622         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
34623         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
34624
34625 2010-01-28  Eric Blake  <ebb9@byu.net>
34626
34627         regex: fix build failure
34628         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
34629         platforms.
34630
34631 2010-01-28  Jim Meyering  <meyering@redhat.com>
34632
34633         regex: do not ignore memory allocation failure
34634         * lib/regex_internal.c (create_cd_newstate): Detect
34635         re_node_set_init_copy failure.   Extracted from glibc commit
34636         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34637
34638         regex: sync more white-space changes from libc
34639         * lib/regex_internal.c: White-space only changes.
34640         * lib/regexec.c: Likewise.
34641
34642         regex: add many uses of __attribute_warn_unused_result__
34643         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
34644         * lib/regexec.c: Likewise.
34645         Extracted from a messy glibc commit.
34646
34647         regcomp.c: spelling and merge-artifact from glibc
34648         * lib/regcomp.c: Merge remainder of glibc's
34649         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34650
34651         regcomp.c: sync white-space changes from glibc
34652         * lib/regcomp.c: Merge to accommodate white space
34653         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34654
34655         regcomp.c: do not ignore internal return values
34656         * lib/regcomp.c: Do not ignore internal return values.
34657         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
34658         but without its white-space changes and spelling fixes.
34659
34660         regex_internal.h: define __attribute_warn_unused_result__
34661         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
34662
34663         maint: add a syntax-check rule to check for vulnerable Makefile.in
34664         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
34665
34666 2010-01-27  Jim Meyering  <meyering@redhat.com>
34667
34668         ncftpput-ftp: clean up spaces
34669         * build-aux/ncftpput-ftp: Make Copyright line consistent.
34670         Remove trailing blanks.
34671
34672 2010-01-27  Simon Josefsson  <simon@josefsson.org>
34673
34674         * build-aux/git-version-gen: Fix copyright statement.
34675         * build-aux/gnupload: Likewise.
34676         * tests/test-arcfour.c: Likewise.
34677         * tests/test-arctwo.c: Likewise.
34678         * tests/test-count-one-bits.c: Likewise.
34679         * tests/test-crc.c: Likewise.
34680         * tests/test-des.c: Likewise.
34681         * tests/test-gc-arcfour.c: Likewise.
34682         * tests/test-gc-arctwo.c: Likewise.
34683         * tests/test-gc-des.c: Likewise.
34684         * tests/test-gc-hmac-md5.c: Likewise.
34685         * tests/test-gc-hmac-sha1.c: Likewise.
34686         * tests/test-gc-md2.c: Likewise.
34687         * tests/test-gc-md4.c: Likewise.
34688         * tests/test-gc-md5.c: Likewise.
34689         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34690         * tests/test-gc-rijndael.c: Likewise.
34691         * tests/test-gc-sha1.c: Likewise.
34692         * tests/test-gc.c: Likewise.
34693         * tests/test-gethostname.c: Likewise.
34694         * tests/test-gettimeofday.c: Likewise.
34695         * tests/test-hash.c: Likewise.
34696         * tests/test-hmac-md5.c: Likewise.
34697         * tests/test-hmac-sha1.c: Likewise.
34698         * tests/test-md2.c: Likewise.
34699         * tests/test-md4.c: Likewise.
34700         * tests/test-md5.c: Likewise.
34701         * tests/test-memchr.c: Likewise.
34702         * tests/test-memchr2.c: Likewise.
34703         * tests/test-memcmp.c: Likewise.
34704         * tests/test-memmem.c: Likewise.
34705         * tests/test-memrchr.c: Likewise.
34706         * tests/test-rawmemchr.c: Likewise.
34707         * tests/test-read-file.c: Likewise.
34708         * tests/test-rijndael.c: Likewise.
34709         * tests/test-sockets.c: Likewise.
34710         * tests/test-strchrnul.c: Likewise.
34711         * tests/test-strstr.c: Likewise.
34712         * tests/test-strtod.c: Likewise.
34713         * build-aux/ncftpput-ftp: Likewise.
34714
34715 2010-01-26  Eric Blake  <ebb9@byu.net>
34716
34717         ignore-value: update recommended header name
34718         * modules/ignore-value (Include): Only use <> for headers that
34719         exist in glibc.
34720
34721 2010-01-26  Jim Meyering  <meyering@redhat.com>
34722
34723         test-userspec.c: avoid compiler warnings
34724         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
34725         and "initialization discards qualifiers..." warnings.
34726         Put the first "uid" in its own scope, and make char* members "const".
34727
34728 2010-01-25  Bruno Haible  <bruno@clisp.org>
34729
34730         gnulib-tool: Make warning diagnostics consistent.
34731         * gnulib-tool (func_warning): New function.
34732         Use it everywhere where gnulib-tool produces output to stderr and it is
34733         not a fatal error.
34734
34735 2010-01-25  Bruno Haible  <bruno@clisp.org>
34736
34737         Fix test dependencies.
34738         * modules/xstrtol-tests (Depends-on): Add inttypes.
34739         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
34740
34741 2010-01-25 Pádraig Brady <P@draigBrady.com>
34742
34743         syntax-check: detect incorrect boolean macro values in config.h
34744         * modules/maintainer-makefile (configure.ac): Parameterize the location
34745         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
34746         The logic is from Eric Blake and the location indicated by Jim Meyering.
34747         Note the more natural CONFIG_HEADER name is prohibited by automake
34748         for backwards compatibility reasons.
34749         * top/maint.mk (sc_Wundef_boolean): New rule.
34750
34751 2010-01-25  Jim Meyering  <meyering@redhat.com>
34752
34753         bootstrap: detect MacOS 10.6's shasum, too
34754         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
34755         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
34756
34757 2010-01-23  Jim Meyering  <meyering@redhat.com>
34758
34759         xstrtoll: new module
34760         * modules/xstrtoll: New file.
34761         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
34762         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
34763         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
34764         ./configure fails if you use this module and lack "long long".
34765         * modules/xstrtoll-tests: New module.
34766         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
34767         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
34768         new init.sh-based test framework.
34769
34770 2010-01-24  Bruno Haible  <bruno@clisp.org>
34771
34772         Tests for module 'yn'.
34773         * modules/yn-tests: New file.
34774         * tests/test-yn.c: New file.
34775
34776         Tests for module 'y1'.
34777         * modules/y1-tests: New file.
34778         * tests/test-y1.c: New file.
34779
34780         Tests for module 'y0'.
34781         * modules/y0-tests: New file.
34782         * tests/test-y0.c: New file.
34783
34784         Tests for module 'tanh'.
34785         * modules/tanh-tests: New file.
34786         * tests/test-tanh.c: New file.
34787
34788         Tests for module 'tan'.
34789         * modules/tan-tests: New file.
34790         * tests/test-tan.c: New file.
34791
34792         Tests for module 'sqrt'.
34793         * modules/sqrt-tests: New file.
34794         * tests/test-sqrt.c: New file.
34795
34796         Tests for module 'sinh'.
34797         * modules/sinh-tests: New file.
34798         * tests/test-sinh.c: New file.
34799
34800         Tests for module 'sin'.
34801         * modules/sin-tests: New file.
34802         * tests/test-sin.c: New file.
34803
34804         Tests for module 'rint'.
34805         * modules/rint-tests: New file.
34806         * tests/test-rint.c: New file.
34807
34808         Tests for module 'remainder'.
34809         * modules/remainder-tests: New file.
34810         * tests/test-remainder.c: New file.
34811
34812         Tests for module 'pow'.
34813         * modules/pow-tests: New file.
34814         * tests/test-pow.c: New file.
34815
34816         Tests for module 'nextafter'.
34817         * modules/nextafter-tests: New file.
34818         * tests/test-nextafter.c: New file.
34819
34820         Tests for module 'modf'.
34821         * modules/modf-tests: New file.
34822         * tests/test-modf.c: New file.
34823
34824         Tests for module 'logb'.
34825         * modules/logb-tests: New file.
34826         * tests/test-logb.c: New file.
34827
34828         Tests for module 'log1p'.
34829         * modules/log1p-tests: New file.
34830         * tests/test-log1p.c: New file.
34831
34832         Tests for module 'log10'.
34833         * modules/log10-tests: New file.
34834         * tests/test-log10.c: New file.
34835
34836         Tests for module 'log'.
34837         * modules/log-tests: New file.
34838         * tests/test-log.c: New file.
34839
34840         Tests for module 'lgamma'.
34841         * modules/lgamma-tests: New file.
34842         * tests/test-lgamma.c: New file.
34843
34844         Tests for module 'ldexp'.
34845         * modules/ldexp-tests: New file.
34846         * tests/test-ldexp.c: New file.
34847
34848         Tests for module 'jn'.
34849         * modules/jn-tests: New file.
34850         * tests/test-jn.c: New file.
34851
34852         Tests for module 'j1'.
34853         * modules/j1-tests: New file.
34854         * tests/test-j1.c: New file.
34855
34856         Tests for module 'j0'.
34857         * modules/j0-tests: New file.
34858         * tests/test-j0.c: New file.
34859
34860         Tests for module 'hypot'.
34861         * modules/hypot-tests: New file.
34862         * tests/test-hypot.c: New file.
34863
34864         Tests for module 'fmod'.
34865         * modules/fmod-tests: New file.
34866         * tests/test-fmod.c: New file.
34867
34868         Tests for module 'fabs'.
34869         * modules/fabs-tests: New file.
34870         * tests/test-fabs.c: New file.
34871
34872         Tests for module 'exp'.
34873         * modules/exp-tests: New file.
34874         * tests/test-exp.c: New file.
34875
34876         Tests for module 'erfc'.
34877         * modules/erfc-tests: New file.
34878         * tests/test-erfc.c: New file.
34879
34880         Tests for module 'erf'.
34881         * modules/erf-tests: New file.
34882         * tests/test-erf.c: New file.
34883
34884         Tests for module 'cosh'.
34885         * modules/cosh-tests: New file.
34886         * tests/test-cosh.c: New file.
34887
34888         Tests for module 'cos'.
34889         * modules/cos-tests: New file.
34890         * tests/test-cos.c: New file.
34891
34892         Tests for module 'copysign'.
34893         * modules/copysign-tests: New file.
34894         * tests/test-copysign.c: New file.
34895
34896         Tests for module 'cbrt'.
34897         * modules/cbrt-tests: New file.
34898         * tests/test-cbrt.c: New file.
34899
34900         Tests for module 'atan2'.
34901         * modules/atan2-tests: New file.
34902         * tests/test-atan2.c: New file.
34903
34904         Tests for module 'atan'.
34905         * modules/atan-tests: New file.
34906         * tests/test-atan.c: New file.
34907
34908         Tests for module 'asin'.
34909         * modules/asin-tests: New file.
34910         * tests/test-asin.c: New file.
34911
34912         Tests for module 'acos'.
34913         * modules/acos-tests: New file.
34914         * tests/test-acos.c: New file.
34915
34916 2010-01-24  Bruno Haible  <bruno@clisp.org>
34917
34918         Fix tests for common <math.h> functions.
34919         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
34920         code snippet that references the function pointer, rather than merely
34921         calling the function. Substitute the FUNC_LIBM variable.
34922         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
34923         * modules/acos (configure.ac): Likewise.
34924         * modules/asin (configure.ac): Likewise.
34925         * modules/atan (configure.ac): Likewise.
34926         * modules/atan2 (configure.ac): Likewise.
34927         * modules/cbrt (configure.ac): Likewise.
34928         * modules/copysign (configure.ac): Likewise.
34929         * modules/cos (configure.ac): Likewise.
34930         * modules/cosh (configure.ac): Likewise.
34931         * modules/erf (configure.ac): Likewise.
34932         * modules/erfc (configure.ac): Likewise.
34933         * modules/exp (configure.ac): Likewise.
34934         * modules/fabs (configure.ac): Likewise.
34935         * modules/fmod (configure.ac): Likewise.
34936         * modules/hypot (configure.ac): Likewise.
34937         * modules/j0 (configure.ac): Likewise.
34938         * modules/j1 (configure.ac): Likewise.
34939         * modules/jn (configure.ac): Likewise.
34940         * modules/ldexp (configure.ac): Likewise.
34941         * modules/lgamma (configure.ac): Likewise.
34942         * modules/log (configure.ac): Likewise.
34943         * modules/log10 (configure.ac): Likewise.
34944         * modules/log1p (configure.ac): Likewise.
34945         * modules/logb (configure.ac): Likewise.
34946         * modules/modf (configure.ac): Likewise.
34947         * modules/nextafter (configure.ac): Likewise.
34948         * modules/pow (configure.ac): Likewise.
34949         * modules/remainder (configure.ac): Likewise.
34950         * modules/rint (configure.ac): Likewise.
34951         * modules/sin (configure.ac): Likewise.
34952         * modules/sinh (configure.ac): Likewise.
34953         * modules/tan (configure.ac): Likewise.
34954         * modules/tanh (configure.ac): Likewise.
34955         * modules/y0 (configure.ac): Likewise.
34956         * modules/y1 (configure.ac): Likewise.
34957         * modules/yn (configure.ac): Likewise.
34958
34959 2010-01-24  Bruno Haible  <bruno@clisp.org>
34960
34961         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
34962         * tests/test-acosl.c (x): New variable.
34963         (main): Store argument in x and fetch it from x.
34964         * tests/test-asinl.c (x): New variable.
34965         (main): Store argument in x and fetch it from x.
34966         * tests/test-atanl.c (x): New variable.
34967         (main): Store argument in x and fetch it from x.
34968         * tests/test-cosl.c (x): New variable.
34969         (main): Store argument in x and fetch it from x.
34970         * tests/test-expl.c (x): New variable.
34971         (main): Store argument in x and fetch it from x.
34972         * tests/test-logl.c (x): New variable.
34973         (main): Store argument in x and fetch it from x.
34974         * tests/test-sinl.c (x): New variable.
34975         (main): Store argument in x and fetch it from x.
34976         * tests/test-sqrtl.c (x): New variable.
34977         (main): Store argument in x and fetch it from x.
34978         * tests/test-tanl.c (x): New variable.
34979         (main): Store argument in x and fetch it from x.
34980
34981 2010-01-24  Bruno Haible  <bruno@clisp.org>
34982
34983         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
34984         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
34985         assignments to the initial TESTS_ENVIRONMENT.
34986         * doc/gnulib.texi (Unit test modules): Document it.
34987         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
34988         TESTS_ENVIRONMENT.
34989         * modules/btowc-tests (Makefile.am): Likewise.
34990         * modules/c-stack-tests (Makefile.am): Likewise.
34991         * modules/c-strcase-tests (Makefile.am): Likewise.
34992         * modules/copy-file-tests (Makefile.am): Likewise.
34993         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
34994         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
34995         * modules/mbrtowc-tests (Makefile.am): Likewise.
34996         * modules/mbscasecmp-tests (Makefile.am): Likewise.
34997         * modules/mbscasestr-tests (Makefile.am): Likewise.
34998         * modules/mbschr-tests (Makefile.am): Likewise.
34999         * modules/mbscspn-tests (Makefile.am): Likewise.
35000         * modules/mbsinit-tests (Makefile.am): Likewise.
35001         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
35002         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
35003         * modules/mbspbrk-tests (Makefile.am): Likewise.
35004         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
35005         * modules/mbsrchr-tests (Makefile.am): Likewise.
35006         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
35007         * modules/mbsspn-tests (Makefile.am): Likewise.
35008         * modules/mbsstr-tests (Makefile.am): Likewise.
35009         * modules/nl_langinfo-tests (Makefile.am): Likewise.
35010         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
35011         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
35012         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
35013         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
35014         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
35015         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
35016         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
35017         * modules/wcrtomb-tests (Makefile.am): Likewise.
35018         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
35019         * modules/wcsrtombs-tests (Makefile.am): Likewise.
35020         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
35021         assignments from TESTS_ENVIRONMENT.
35022         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
35023         augmentation.
35024         * modules/argp-version-etc-tests (Makefile.am): Likewise.
35025         * modules/atexit-tests (Makefile.am): Likewise.
35026         * modules/binary-io-tests (Makefile.am): Likewise.
35027         * modules/closein-tests (Makefile.am): Likewise.
35028         * modules/dprintf-posix-tests (Makefile.am): Likewise.
35029         * modules/exclude-tests (Makefile.am): Likewise.
35030         * modules/fflush-tests (Makefile.am): Likewise.
35031         * modules/fpending-tests (Makefile.am): Likewise.
35032         * modules/fprintf-posix-tests (Makefile.am): Likewise.
35033         * modules/freadahead-tests (Makefile.am): Likewise.
35034         * modules/freadptr-tests (Makefile.am): Likewise.
35035         * modules/freadseek-tests (Makefile.am): Likewise.
35036         * modules/fseek-tests (Makefile.am): Likewise.
35037         * modules/fseeko-tests (Makefile.am): Likewise.
35038         * modules/ftell-tests (Makefile.am): Likewise.
35039         * modules/ftello-tests (Makefile.am): Likewise.
35040         * modules/idpriv-drop-tests (Makefile.am): Likewise.
35041         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
35042         * modules/lseek-tests (Makefile.am): Likewise.
35043         * modules/parse-duration-tests (Makefile.am): Likewise.
35044         * modules/perror-tests (Makefile.am): Likewise.
35045         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
35046         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
35047         * modules/pipe-tests (Makefile.am): Likewise.
35048         * modules/pread-tests (Makefile.am): Likewise.
35049         * modules/printf-posix-tests (Makefile.am): Likewise.
35050         * modules/select-tests (Makefile.am): Likewise.
35051         * modules/sigpipe-tests (Makefile.am): Likewise.
35052         * modules/tsearch-tests (Makefile.am): Likewise.
35053         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
35054         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
35055         * modules/uniname/uniname-tests (Makefile.am): Likewise.
35056         * modules/uniwidth/width-tests (Makefile.am): Likewise.
35057         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
35058         * modules/version-etc-tests (Makefile.am): Likewise.
35059         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
35060         * modules/vprintf-posix-tests (Makefile.am): Likewise.
35061         * modules/xalloc-die-tests (Makefile.am): Likewise.
35062         * modules/xprintf-posix-tests (Makefile.am): Likewise.
35063         * modules/xstrtoimax-tests (Makefile.am): Likewise.
35064         * modules/xstrtol-tests (Makefile.am): Likewise.
35065         * modules/xstrtoumax-tests (Makefile.am): Likewise.
35066         * modules/yesno-tests (Makefile.am): Likewise.
35067         Suggested by Jim Meyering.
35068
35069 2010-01-24  Bruno Haible  <bruno@clisp.org>
35070
35071         More documentation.
35072         * doc/gnulib.texi (Writing modules): New chapter.
35073         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
35074         the new chapter.
35075
35076 2010-01-24  Jim Meyering  <meyering@redhat.com>
35077
35078         maint.mk: do not prepend "./" after filtering
35079         * top/maint.mk (_prepend_srcdir_prefix): New variable
35080         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
35081         "./" when $(srcdir) is ".".
35082
35083         define STREQ(a,b) consistently, removing useless parentheses
35084         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
35085         since the only risk is that "a" or "b" contains an unparenthesized
35086         comma, but if either did that, STREQ would have 3 or more arguments.
35087         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
35088         * lib/fts.c (STREQ): Remove unnecessary parentheses.
35089         * lib/hash-triple.c (STREQ): Likewise.
35090         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
35091         * lib/getugroups.c (STREQ): Likewise.
35092
35093 2010-01-23  Jim Meyering  <meyering@redhat.com>
35094
35095         maint.mk: fix syntax-check in a non-srcdir build directory
35096         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
35097         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
35098
35099 2010-01-22  Jim Meyering  <meyering@redhat.com>
35100
35101         userspec: add unit tests
35102         * tests/test-userspec.c: New file.
35103         * modules/userspec-tests: Likewise.
35104
35105 2010-01-21  Jim Meyering  <meyering@redhat.com>
35106
35107         maint.mk: handle source file names containing "." robustly
35108         * top/maint.mk (_dot_escaped_srcdir): Define.
35109         (VC_LIST): Use it in LHS of sed substitution.
35110
35111 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
35112
35113         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
35114         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
35115         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
35116         from a non-srcdir build.
35117
35118 2010-01-20  Eric Blake  <ebb9@byu.net>
35119
35120         warn-on-use: use instead of link-warning
35121         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
35122         * modules/unistd (Depends-on, Makefile.am): Likewise.
35123         * modules/arpa_inet (Depends-on): Replace link-warning with
35124         warn-on-use.
35125         (Makefile.am): Update rules accordingly.
35126         * modules/ctype (Depends-on, Makefile.am): Likewise.
35127         * modules/dirent (Depends-on, Makefile.am): Likewise.
35128         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
35129         * modules/inttypes (Depends-on, Makefile.am): Likewise.
35130         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35131         * modules/locale (Depends-on, Makefile.am): Likewise.
35132         * modules/math (Depends-on, Makefile.am): Likewise.
35133         * modules/search (Depends-on, Makefile.am): Likewise.
35134         * modules/signal (Depends-on, Makefile.am): Likewise.
35135         * modules/spawn (Depends-on, Makefile.am): Likewise.
35136         * modules/stdlib (Depends-on, Makefile.am): Likewise.
35137         * modules/string (Depends-on, Makefile.am): Likewise.
35138         * modules/strings (Depends-on, Makefile.am): Likewise.
35139         * modules/sys_file (Depends-on, Makefile.am): Likewise.
35140         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
35141         * modules/sys_select (Depends-on, Makefile.am): Likewise.
35142         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
35143         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
35144         * modules/sys_times (Depends-on, Makefile.am): Likewise.
35145         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35146         * modules/wchar (Depends-on, Makefile.am): Likewise.
35147         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
35148         should be poisoned.
35149         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
35150         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
35151         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
35152         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35153         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35154         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
35155         * m4/math_h.m4 (gl_MATH_H): Likewise.
35156         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
35157         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
35158         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
35159         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
35160         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
35161         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
35162         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
35163         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
35164         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
35165         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35166         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
35167         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
35168         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35169         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
35170         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
35171         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35172         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
35173         GL_LINK_WARNING.
35174         * lib/ctype.in.h: Likewise.
35175         * lib/dirent.in.h: Likewise.
35176         * lib/fcntl.in.h: Likewise.
35177         * lib/inttypes.in.h: Likewise.
35178         * lib/langinfo.in.h: Likewise.
35179         * lib/locale.in.h: Likewise.
35180         * lib/math.in.h: Likewise.
35181         * lib/search.in.h: Likewise.
35182         * lib/signal.in.h: Likewise.
35183         * lib/spawn.in.h: Likewise.
35184         * lib/stdio.in.h: Likewise.
35185         * lib/stdlib.in.h: Likewise.
35186         * lib/string.in.h: Likewise.
35187         * lib/strings.in.h: Likewise.
35188         * lib/sys_file.in.h: Likewise.
35189         * lib/sys_ioctl.in.h: Likewise.
35190         * lib/sys_select.in.h: Likewise.
35191         * lib/sys_socket.in.h: Likewise.
35192         * lib/sys_stat.in.h: Likewise.
35193         * lib/sys_times.in.h: Likewise.
35194         * lib/sys_utsname.in.h: Likewise.
35195         * lib/unistd.in.h: Likewise.
35196         * lib/wchar.in.h: Likewise.
35197
35198 2010-01-20  Bruno Haible  <bruno@clisp.org>
35199
35200         Avoid duplicate -lm.
35201         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
35202         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
35203         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
35204         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
35205         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
35206         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
35207         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
35208         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
35209         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
35210         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
35211         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
35212         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
35213         Reported by Paolo Bonzini.
35214
35215 2010-01-19  Bruno Haible  <bruno@clisp.org>
35216
35217         langinfo, nl_langinfo: Relicense under LGPLv2+.
35218         * modules/langinfo (License): Change to LGPLv2+.
35219         * modules/nl_langinfo (License): Likewise.
35220         Patch by David Lutterkort <lutter@redhat.com>.
35221
35222 2010-01-19  Bruno Haible  <bruno@clisp.org>
35223
35224         Avoid compilation error with cc on OSF/1 5.1.
35225         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
35226         statement, not before.
35227         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35228
35229 2010-01-18  Bruno Haible  <bruno@clisp.org>
35230
35231         Avoid a link error due to the __printf__ symbol.
35232         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
35233         and 2.6.x.
35234         (__format__, __printf__): Remove definitions.
35235         * lib/argp-fmtstream.h: Likewise.
35236         * lib/argp.h: Likewise.
35237         * lib/error.h: Likewise.
35238         * lib/vasnprintf.h: Likewise.
35239         * lib/xprintf.h: Likewise.
35240         * lib/xvasprintf.h: Likewise.
35241         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35242
35243 2010-01-18  Bruno Haible  <bruno@clisp.org>
35244
35245         Tests for module 'tanl'.
35246         * modules/tanl-tests: New file.
35247         * tests/test-tanl.c: New file.
35248
35249         Tests for module 'sqrtl'.
35250         * modules/sqrtl-tests: New file.
35251         * tests/test-sqrtl.c: New file.
35252
35253         Tests for module 'sinl'.
35254         * modules/sinl-tests: New file.
35255         * tests/test-sinl.c: New file.
35256
35257         Tests for module 'logl'.
35258         * modules/logl-tests: New file.
35259         * tests/test-logl.c: New file.
35260
35261         Tests for module 'expl'.
35262         * modules/expl-tests: New file.
35263         * tests/test-expl.c: New file.
35264
35265         Tests for module 'cosl'.
35266         * modules/cosl-tests: New file.
35267         * tests/test-cosl.c: New file.
35268
35269         Tests for module 'atanl'.
35270         * modules/atanl-tests: New file.
35271         * tests/test-atanl.c: New file.
35272
35273         Tests for module 'asinl'.
35274         * modules/asinl-tests: New file.
35275         * tests/test-asinl.c: New file.
35276
35277         Tests for module 'acosl'.
35278         * modules/acosl-tests: New file.
35279         * tests/test-acosl.c: New file.
35280
35281         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
35282         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
35283         tanl): Use the standard gnulib idiom.
35284         * lib/cosl.c: Don't include trigl.c and sincosl.c.
35285         * lib/sinl.c: Likewise.
35286         * lib/tanl.c: Don't include trigl.c.
35287         (kernel_tanl): Make static.
35288         * lib/sincosl.c: Include trigl.h first.
35289         * lib/trigl.c: Likewise.
35290         * m4/acosl.m4: New file.
35291         * m4/asinl.m4: New file.
35292         * m4/atanl.m4: New file.
35293         * m4/cosl.m4: New file.
35294         * m4/expl.m4: New file.
35295         * m4/logl.m4: New file.
35296         * m4/sinl.m4: New file.
35297         * m4/sqrtl.m4: New file.
35298         * m4/tanl.m4: New file.
35299         * m4/mathl.m4: Remove file.
35300         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
35301         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
35302         Don't initialize GNULIB_MATHL.
35303         * modules/acosl: New file.
35304         * modules/asinl: New file.
35305         * modules/atanl: New file.
35306         * modules/cosl: New file.
35307         * modules/expl: New file.
35308         * modules/logl: New file.
35309         * modules/sinl: New file.
35310         * modules/sqrtl: New file.
35311         * modules/tanl: New file.
35312         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
35313         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
35314         substitute GNULIB_MATHL.
35315         * modules/mathl: Rewritten.
35316         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
35317         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
35318         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
35319         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
35320         * doc/posix-functions/expl.texi: Mention the 'expl' module.
35321         * doc/posix-functions/logl.texi: Mention the 'logl' module.
35322         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
35323         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
35324         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
35325
35326 2010-01-18  Bruno Haible  <bruno@clisp.org>
35327
35328         sqrt: Make gl_FUNC_SQRT requirable.
35329         * m4/sqrt.m4: New file.
35330         * modules/sqrt (Files): Add it.
35331         (configure.ac): Invoke gl_FUNC_SQRT.
35332
35333 2010-01-18  Bruno Haible  <bruno@clisp.org>
35334
35335         New modules for common <math.h> functions.
35336         * m4/mathfunc.m4: New file.
35337         * modules/acos: New file.
35338         * modules/asin: New file.
35339         * modules/atan: New file.
35340         * modules/atan2: New file.
35341         * modules/cbrt: New file.
35342         * modules/copysign: New file.
35343         * modules/cos: New file.
35344         * modules/cosh: New file.
35345         * modules/erf: New file.
35346         * modules/erfc: New file.
35347         * modules/exp: New file.
35348         * modules/fabs: New file.
35349         * modules/fmod: New file.
35350         * modules/hypot: New file.
35351         * modules/j0: New file.
35352         * modules/j1: New file.
35353         * modules/jn: New file.
35354         * modules/ldexp: New file.
35355         * modules/lgamma: New file.
35356         * modules/log: New file.
35357         * modules/log10: New file.
35358         * modules/log1p: New file.
35359         * modules/logb: New file.
35360         * modules/modf: New file.
35361         * modules/nextafter: New file.
35362         * modules/pow: New file.
35363         * modules/remainder: New file.
35364         * modules/rint: New file.
35365         * modules/sin: New file.
35366         * modules/sinh: New file.
35367         * modules/sqrt: New file.
35368         * modules/tan: New file.
35369         * modules/tanh: New file.
35370         * modules/y0: New file.
35371         * modules/y1: New file.
35372         * modules/yn: New file.
35373         * doc/posix-functions/acos.texi: Mention the 'acos' module.
35374         * doc/posix-functions/asin.texi: Mention the 'asin' module.
35375         * doc/posix-functions/atan.texi: Mention the 'atan' module.
35376         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
35377         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
35378         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
35379         * doc/posix-functions/cos.texi: Mention the 'cos' module.
35380         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
35381         * doc/posix-functions/erf.texi: Mention the 'erf' module.
35382         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
35383         * doc/posix-functions/exp.texi: Mention the 'exp' module.
35384         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
35385         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
35386         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
35387         * doc/posix-functions/j0.texi: Mention the 'j0' module.
35388         * doc/posix-functions/j1.texi: Mention the 'j1' module.
35389         * doc/posix-functions/jn.texi: Mention the 'jn' module.
35390         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
35391         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
35392         * doc/posix-functions/log.texi: Mention the 'log' module.
35393         * doc/posix-functions/log10.texi: Mention the 'log10' module.
35394         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
35395         * doc/posix-functions/logb.texi: Mention the 'logb' module.
35396         * doc/posix-functions/modf.texi: Mention the 'modf' module.
35397         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
35398         * doc/posix-functions/pow.texi: Mention the 'pow' module.
35399         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
35400         * doc/posix-functions/rint.texi: Mention the 'rint' module.
35401         * doc/posix-functions/sin.texi: Mention the 'sin' module.
35402         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
35403         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
35404         * doc/posix-functions/tan.texi: Mention the 'tan' module.
35405         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
35406         * doc/posix-functions/y0.texi: Mention the 'y0' module.
35407         * doc/posix-functions/y1.texi: Mention the 'y1' module.
35408         * doc/posix-functions/yn.texi: Mention the 'yn' module.
35409
35410 2010-01-18  Jim Meyering  <meyering@redhat.com>
35411
35412         ignore-value: relax license to LGPLv2+
35413         * modules/ignore-value (License): Relax to LGPLv2+.
35414
35415         getdate: don't leak when TZ contains two or more '"'s
35416         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
35417         double quote in TZ after the first one.
35418
35419         readtokens: do not leak internal token_lengths buffer
35420         * lib/readtokens.c (readtokens): Free the local, lengths,
35421         when the supplied "token_lengths" parameter is NULL.
35422
35423 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35424
35425         Fix a couple of missing LIBTHREAD link failures on AIX.
35426         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
35427         $(LIBTHREAD).
35428         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
35429
35430         Link test-poll against INET_PTON_LIB.
35431         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
35432         for inet_pton on Solaris 10.
35433
35434 2010-01-17  Bruno Haible  <bruno@clisp.org>
35435
35436         unistdio/*-sprintf: Fix typo in module description.
35437         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
35438         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
35439         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
35440         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
35441         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
35442         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
35443         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
35444         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35445
35446 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35447
35448         gnulib-tool: fix filelist for AIX, HP-UX ksh.
35449         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
35450         variables in shell case patterns, for AIX and HP-UX ksh.
35451
35452         Split large sed scripts, for HP-UX sed.
35453         * modules/stdio: Split sed scripts around 50 sed commands,
35454         to avoid HP-UX limit of 99 commands, in the near future.
35455         * modules/string: Likewise.
35456         * modules/unistd: Likewise.
35457
35458         gnulib-tool: avoid writing in the current directory.
35459         * gnulib-tool (func_emit_lib_Makefile_am)
35460         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
35461         not in the current directory, so concurrent gnulib-tool
35462         instances do not interfere.
35463
35464 2010-01-16  Jim Meyering  <meyering@redhat.com>
35465
35466         doc: update users.txt
35467         * users.txt: Add grep.
35468         (diffutils, gzip): Update URLs.
35469
35470 2010-01-12  Bruno Haible  <bruno@clisp.org>
35471
35472         posix_spawn: Avoid test failure on Cygwin.
35473         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
35474         characters.
35475         Reported by Simon Josefsson.
35476
35477 2010-01-12  Bruno Haible  <bruno@clisp.org>
35478
35479         * tests/test-cond.c (main): When skipping the test, show the reason.
35480
35481 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35482
35483         * lib/striconv.c (str_cd_iconv): Avoid if before free.
35484
35485 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35486
35487         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
35488         VC_LIST_ALWAYS_EXCLUDE_REGEX.
35489
35490 2010-01-12  Eric Blake  <ebb9@byu.net>
35491
35492         build: guarantee AS_VAR_IF
35493         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
35494         (gl_AS_VAR_IF): Move...
35495         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
35496         Reported by Simon Josefsson.
35497
35498 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35499
35500         * lib/stdio.in.h: Fix typo.
35501
35502 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35503
35504         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
35505         libgpg-error.
35506
35507 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35508
35509         * tests/test-xalloc-die.sh: Use $EXEEXT.
35510
35511 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35512             Bruno Haible  <bruno@clisp.org>
35513
35514         getlogin, getlogin_r: Avoid test failure.
35515         * tests/test-getlogin.c: Include <stdio.h>.
35516         (main): Skip the test when the function fails because stdin is not a
35517         tty.
35518         * tests/test-getlogin_r.c: Include <stdio.h>.
35519         (main): Skip the test when the function fails because stdin is not a
35520         tty.
35521
35522 2010-01-11  Eric Blake  <ebb9@byu.net>
35523
35524         tests: avoid more large file warnings
35525         * tests/test-fflush.c: Avoid warning about ftell use.
35526         * tests/test-fseek.c: Avoid warning about fseek use.
35527
35528 2010-01-10  Bruno Haible  <bruno@clisp.org>
35529
35530         nproc: Work better on Linux when /proc and /sys are not mounted.
35531         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
35532         as lower bound when, on glibc/Linux systems,
35533         sysconf (_SC_NPROCESSORS_CONF) returns 1.
35534         Suggested by Pádraig Brady <P@draigbrady.com>.
35535         Reported by Dmitry V. Levin <ldv@altlinux.org>.
35536
35537         nproc: Refactor.
35538         * lib/nproc.c (num_processors_via_affinity_mask): New function,
35539         extracted from num_processors.
35540         (num_processors): Call it.
35541
35542 2010-01-11  Jim Meyering  <meyering@redhat.com>
35543
35544         utimecmp: avoid new warning from upcoming gcc-4.5.0
35545         * lib/utimecmp.c (BILLION): Define using #define rather than an
35546         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
35547
35548 2010-01-11  Eric Blake  <ebb9@byu.net>
35549
35550         math: add portability warnings for classification macros
35551         * modules/math (Depends-on): Add warn-on-use.
35552         (Makefile.am): Provide new substitutions.
35553         * m4/math_h.m4 (gl_MATH_H): Require inline.
35554         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
35555         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
35556         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
35557         implement warnings.
35558
35559         unistd: warn on use of environ without module
35560         * modules/unistd (Depends-on): Add warn-on-use.
35561         (Makefile.am): Provide new substitutions.
35562         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
35563         * lib/unistd.in.h (environ): Wrap with a warning helper function.
35564
35565         stdio: warn on suspicious uses
35566         * modules/stdio (Depends-on): Add warn-on-use.
35567         (Makefile.am): Provide new substitutions.
35568         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
35569         fseeko.
35570         * lib/stdio.in.h (gets): Always warn on use.
35571         (fseek, ftell): Adjust when warnings are issued, and honor
35572         _GL_NO_LARGE_FILES as a way to silence the warning.
35573         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
35574         any warning about large file offsets.
35575         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
35576         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
35577         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
35578         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
35579         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
35580         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
35581         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
35582         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
35583
35584         warn-on-use: new module
35585         * modules/warn-on-use: New file.
35586         * build-aux/warn-on-use.h: Likewise.
35587         * m4/warn-on-use.m4: Likewise.
35588         * MODULES.html.sh (Support for building): Mention it.
35589
35590 2010-01-10  Bruno Haible  <bruno@clisp.org>
35591
35592         Tests for module 'unistr/u32-strdup'.
35593         * modules/unistr/u32-strdup-tests: New file.
35594         * tests/unistr/test-u32-strdup.c: New file.
35595
35596         Tests for module 'unistr/u16-strdup'.
35597         * modules/unistr/u16-strdup-tests: New file.
35598         * tests/unistr/test-u16-strdup.c: New file.
35599
35600         Tests for module 'unistr/u8-strdup'.
35601         * modules/unistr/u8-strdup-tests: New file.
35602         * tests/unistr/test-u8-strdup.c: New file.
35603         * tests/unistr/test-strdup.h: New file.
35604
35605         Tests for module 'unistr/u32-strncmp'.
35606         * modules/unistr/u32-strncmp-tests: New file.
35607         * tests/unistr/test-u32-strncmp.c: New file.
35608
35609         Tests for module 'unistr/u16-strncmp'.
35610         * modules/unistr/u16-strncmp-tests: New file.
35611         * tests/unistr/test-u16-strncmp.c: New file.
35612
35613         Tests for module 'unistr/u8-strncmp'.
35614         * modules/unistr/u8-strncmp-tests: New file.
35615         * tests/unistr/test-u8-strncmp.c: New file.
35616         * tests/unistr/test-strncmp.h: New file.
35617
35618         Tests for module 'unistr/u32-strcoll'.
35619         * modules/unistr/u32-strcoll-tests: New file.
35620         * tests/unistr/test-u32-strcoll.c: New file.
35621
35622         Tests for module 'unistr/u16-strcoll'.
35623         * modules/unistr/u16-strcoll-tests: New file.
35624         * tests/unistr/test-u16-strcoll.c: New file.
35625
35626         Tests for module 'unistr/u8-strcoll'.
35627         * modules/unistr/u8-strcoll-tests: New file.
35628         * tests/unistr/test-u8-strcoll.c: New file.
35629
35630         Tests for module 'unistr/u32-strcmp'.
35631         * modules/unistr/u32-strcmp-tests: New file.
35632         * tests/unistr/test-u32-strcmp.c: New file.
35633         * tests/unistr/test-u32-strcmp.h: New file.
35634
35635         Tests for module 'unistr/u16-strcmp'.
35636         * modules/unistr/u16-strcmp-tests: New file.
35637         * tests/unistr/test-u16-strcmp.c: New file.
35638         * tests/unistr/test-u16-strcmp.h: New file.
35639
35640         Tests for module 'unistr/u8-strcmp'.
35641         * modules/unistr/u8-strcmp-tests: New file.
35642         * tests/unistr/test-u8-strcmp.c: New file.
35643         * tests/unistr/test-u8-strcmp.h: New file.
35644         * tests/unistr/test-strcmp.h: New file.
35645
35646         Tests for module 'unistr/u32-strncat'.
35647         * modules/unistr/u32-strncat-tests: New file.
35648         * tests/unistr/test-u32-strncat.c: New file.
35649
35650         Tests for module 'unistr/u16-strncat'.
35651         * modules/unistr/u16-strncat-tests: New file.
35652         * tests/unistr/test-u16-strncat.c: New file.
35653
35654         Tests for module 'unistr/u8-strncat'.
35655         * modules/unistr/u8-strncat-tests: New file.
35656         * tests/unistr/test-u8-strncat.c: New file.
35657         * tests/unistr/test-strncat.h: New file.
35658
35659         Tests for module 'unistr/u32-strcat'.
35660         * modules/unistr/u32-strcat-tests: New file.
35661         * tests/unistr/test-u32-strcat.c: New file.
35662
35663         Tests for module 'unistr/u16-strcat'.
35664         * modules/unistr/u16-strcat-tests: New file.
35665         * tests/unistr/test-u16-strcat.c: New file.
35666
35667         Tests for module 'unistr/u8-strcat'.
35668         * modules/unistr/u8-strcat-tests: New file.
35669         * tests/unistr/test-u8-strcat.c: New file.
35670         * tests/unistr/test-strcat.h: New file.
35671
35672         Tests for module 'unistr/u32-stpncpy'.
35673         * modules/unistr/u32-stpncpy-tests: New file.
35674         * tests/unistr/test-u32-stpncpy.c: New file.
35675
35676         Tests for module 'unistr/u16-stpncpy'.
35677         * modules/unistr/u16-stpncpy-tests: New file.
35678         * tests/unistr/test-u16-stpncpy.c: New file.
35679
35680         Tests for module 'unistr/u8-stpncpy'.
35681         * modules/unistr/u8-stpncpy-tests: New file.
35682         * tests/unistr/test-u8-stpncpy.c: New file.
35683         * tests/unistr/test-stpncpy.h: New file.
35684
35685         Tests for module 'unistr/u32-strncpy'.
35686         * modules/unistr/u32-strncpy-tests: New file.
35687         * tests/unistr/test-u32-strncpy.c: New file.
35688
35689         Tests for module 'unistr/u16-strncpy'.
35690         * modules/unistr/u16-strncpy-tests: New file.
35691         * tests/unistr/test-u16-strncpy.c: New file.
35692
35693         Tests for module 'unistr/u8-strncpy'.
35694         * modules/unistr/u8-strncpy-tests: New file.
35695         * tests/unistr/test-u8-strncpy.c: New file.
35696         * tests/unistr/test-strncpy.h: New file.
35697
35698         Tests for module 'unistr/u32-stpcpy'.
35699         * modules/unistr/u32-stpcpy-tests: New file.
35700         * tests/unistr/test-u32-stpcpy.c: New file.
35701
35702         Tests for module 'unistr/u16-stpcpy'.
35703         * modules/unistr/u16-stpcpy-tests: New file.
35704         * tests/unistr/test-u16-stpcpy.c: New file.
35705
35706         Tests for module 'unistr/u8-stpcpy'.
35707         * modules/unistr/u8-stpcpy-tests: New file.
35708         * tests/unistr/test-u8-stpcpy.c: New file.
35709         * tests/unistr/test-stpcpy.h: New file.
35710
35711         Tests for module 'unistr/u32-strcpy'.
35712         * modules/unistr/u32-strcpy-tests: New file.
35713         * tests/unistr/test-u32-strcpy.c: New file.
35714
35715         Tests for module 'unistr/u16-strcpy'.
35716         * modules/unistr/u16-strcpy-tests: New file.
35717         * tests/unistr/test-u16-strcpy.c: New file.
35718
35719         Tests for module 'unistr/u8-strcpy'.
35720         * modules/unistr/u8-strcpy-tests: New file.
35721         * tests/unistr/test-u8-strcpy.c: New file.
35722         * tests/unistr/test-strcpy.h: New file.
35723
35724         Tests for module 'unistr/u32-strnlen'.
35725         * modules/unistr/u32-strnlen-tests: New file.
35726         * tests/unistr/test-u32-strnlen.c: New file.
35727
35728         Tests for module 'unistr/u16-strnlen'.
35729         * modules/unistr/u16-strnlen-tests: New file.
35730         * tests/unistr/test-u16-strnlen.c: New file.
35731
35732         Tests for module 'unistr/u8-strnlen'.
35733         * modules/unistr/u8-strnlen-tests: New file.
35734         * tests/unistr/test-u8-strnlen.c: New file.
35735         * tests/unistr/test-strnlen.h: New file.
35736
35737         Tests for module 'unistr/u32-strlen'.
35738         * modules/unistr/u32-strlen-tests: New file.
35739         * tests/unistr/test-u32-strlen.c: New file.
35740
35741         Tests for module 'unistr/u16-strlen'.
35742         * modules/unistr/u16-strlen-tests: New file.
35743         * tests/unistr/test-u16-strlen.c: New file.
35744
35745         Tests for module 'unistr/u8-strlen'.
35746         * modules/unistr/u8-strlen-tests: New file.
35747         * tests/unistr/test-u8-strlen.c: New file.
35748
35749         Tests for module 'unistr/u32-prev'.
35750         * modules/unistr/u32-prev-tests: New file.
35751         * tests/unistr/test-u32-prev.c: New file.
35752
35753         Tests for module 'unistr/u16-prev'.
35754         * modules/unistr/u16-prev-tests: New file.
35755         * tests/unistr/test-u16-prev.c: New file.
35756
35757         Tests for module 'unistr/u8-prev'.
35758         * modules/unistr/u8-prev-tests: New file.
35759         * tests/unistr/test-u8-prev.c: New file.
35760
35761         Tests for module 'unistr/u32-next'.
35762         * modules/unistr/u32-next-tests: New file.
35763         * tests/unistr/test-u32-next.c: New file.
35764
35765         Tests for module 'unistr/u16-next'.
35766         * modules/unistr/u16-next-tests: New file.
35767         * tests/unistr/test-u16-next.c: New file.
35768
35769         Tests for module 'unistr/u8-next'.
35770         * modules/unistr/u8-next-tests: New file.
35771         * tests/unistr/test-u8-next.c: New file.
35772
35773         Tests for module 'unistr/u32-strmbtouc'.
35774         * modules/unistr/u32-strmbtouc-tests: New file.
35775         * tests/unistr/test-u32-strmbtouc.c: New file.
35776
35777         Tests for module 'unistr/u16-strmbtouc'.
35778         * modules/unistr/u16-strmbtouc-tests: New file.
35779         * tests/unistr/test-u16-strmbtouc.c: New file.
35780
35781         Tests for module 'unistr/u8-strmbtouc'.
35782         * modules/unistr/u8-strmbtouc-tests: New file.
35783         * tests/unistr/test-u8-strmbtouc.c: New file.
35784
35785         Tests for module 'unistr/u32-strmblen'.
35786         * modules/unistr/u32-strmblen-tests: New file.
35787         * tests/unistr/test-u32-strmblen.c: New file.
35788
35789         Tests for module 'unistr/u16-strmblen'.
35790         * modules/unistr/u16-strmblen-tests: New file.
35791         * tests/unistr/test-u16-strmblen.c: New file.
35792
35793         Tests for module 'unistr/u8-strmblen'.
35794         * modules/unistr/u8-strmblen-tests: New file.
35795         * tests/unistr/test-u8-strmblen.c: New file.
35796
35797         Tests for module 'unistr/u32-cpy-alloc'.
35798         * modules/unistr/u32-cpy-alloc-tests: New file.
35799         * tests/unistr/test-u32-cpy-alloc.c: New file.
35800
35801         Tests for module 'unistr/u16-cpy-alloc'.
35802         * modules/unistr/u16-cpy-alloc-tests: New file.
35803         * tests/unistr/test-u16-cpy-alloc.c: New file.
35804
35805         Tests for module 'unistr/u8-cpy-alloc'.
35806         * modules/unistr/u8-cpy-alloc-tests: New file.
35807         * tests/unistr/test-u8-cpy-alloc.c: New file.
35808         * tests/unistr/test-cpy-alloc.h: New file.
35809
35810         Tests for module 'unistr/u32-mbsnlen'.
35811         * modules/unistr/u32-mbsnlen-tests: New file.
35812         * tests/unistr/test-u32-mbsnlen.c: New file.
35813
35814         Tests for module 'unistr/u16-mbsnlen'.
35815         * modules/unistr/u16-mbsnlen-tests: New file.
35816         * tests/unistr/test-u16-mbsnlen.c: New file.
35817
35818         Tests for module 'unistr/u8-mbsnlen'.
35819         * modules/unistr/u8-mbsnlen-tests: New file.
35820         * tests/unistr/test-u8-mbsnlen.c: New file.
35821
35822         Tests for module 'unistr/u32-chr'.
35823         * modules/unistr/u32-chr-tests: New file.
35824         * tests/unistr/test-u32-chr.c: New file.
35825
35826         Tests for module 'unistr/u16-chr'.
35827         * modules/unistr/u16-chr-tests: New file.
35828         * tests/unistr/test-u16-chr.c: New file.
35829
35830         Tests for module 'unistr/u8-chr'.
35831         * modules/unistr/u8-chr-tests: New file.
35832         * tests/unistr/test-u8-chr.c: New file.
35833         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
35834
35835         Tests for module 'unistr/u32-cmp2'.
35836         * modules/unistr/u32-cmp2-tests: New file.
35837         * tests/unistr/test-u32-cmp2.c: New file.
35838
35839         Tests for module 'unistr/u16-cmp2'.
35840         * modules/unistr/u16-cmp2-tests: New file.
35841         * tests/unistr/test-u16-cmp2.c: New file.
35842
35843         Tests for module 'unistr/u8-cmp2'.
35844         * modules/unistr/u8-cmp2-tests: New file.
35845         * tests/unistr/test-u8-cmp2.c: New file.
35846         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
35847
35848         Tests for module 'unistr/u32-cmp'.
35849         * modules/unistr/u32-cmp-tests: New file.
35850         * tests/unistr/test-u32-cmp.c: New file.
35851
35852         Tests for module 'unistr/u16-cmp'.
35853         * modules/unistr/u16-cmp-tests: New file.
35854         * tests/unistr/test-u16-cmp.c: New file.
35855
35856         Tests for module 'unistr/u8-cmp'.
35857         * modules/unistr/u8-cmp-tests: New file.
35858         * tests/unistr/test-u8-cmp.c: New file.
35859         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
35860
35861         Tests for module 'unistr/u32-set'.
35862         * modules/unistr/u32-set-tests: New file.
35863         * tests/unistr/test-u32-set.c: New file.
35864
35865         Tests for module 'unistr/u16-set'.
35866         * modules/unistr/u16-set-tests: New file.
35867         * tests/unistr/test-u16-set.c: New file.
35868
35869         Tests for module 'unistr/u8-set'.
35870         * modules/unistr/u8-set-tests: New file.
35871         * tests/unistr/test-u8-set.c: New file.
35872         * tests/unistr/test-set.h: New file.
35873
35874         Tests for module 'unistr/u32-move'.
35875         * modules/unistr/u32-move-tests: New file.
35876         * tests/unistr/test-u32-move.c: New file.
35877
35878         Tests for module 'unistr/u16-move'.
35879         * modules/unistr/u16-move-tests: New file.
35880         * tests/unistr/test-u16-move.c: New file.
35881
35882         Tests for module 'unistr/u8-move'.
35883         * modules/unistr/u8-move-tests: New file.
35884         * tests/unistr/test-u8-move.c: New file.
35885         * tests/unistr/test-move.h: New file.
35886
35887         Tests for module 'unistr/u32-cpy'.
35888         * modules/unistr/u32-cpy-tests: New file.
35889         * tests/unistr/test-u32-cpy.c: New file.
35890
35891         Tests for module 'unistr/u16-cpy'.
35892         * modules/unistr/u16-cpy-tests: New file.
35893         * tests/unistr/test-u16-cpy.c: New file.
35894
35895         Tests for module 'unistr/u8-cpy'.
35896         * modules/unistr/u8-cpy-tests: New file.
35897         * tests/unistr/test-u8-cpy.c: New file.
35898         * tests/unistr/test-cpy.h: New file.
35899
35900 2010-01-09  Bruno Haible  <bruno@clisp.org>
35901
35902         Tests for module 'unistr/u32-uctomb'.
35903         * modules/unistr/u32-uctomb-tests: New file.
35904         * tests/unistr/test-u32-uctomb.c: New file.
35905
35906         Tests for module 'unistr/u16-uctomb'.
35907         * modules/unistr/u16-uctomb-tests: New file.
35908         * tests/unistr/test-u16-uctomb.c: New file.
35909
35910         Tests for module 'unistr/u8-uctomb'.
35911         * modules/unistr/u8-uctomb-tests: New file.
35912         * tests/unistr/test-u8-uctomb.c: New file.
35913
35914         Tests for module 'unistr/u32-mbtoucr'.
35915         * modules/unistr/u32-mbtoucr-tests: New file.
35916         * tests/unistr/test-u32-mbtoucr.c: New file.
35917
35918         Tests for module 'unistr/u16-mbtoucr'.
35919         * modules/unistr/u16-mbtoucr-tests: New file.
35920         * tests/unistr/test-u16-mbtoucr.c: New file.
35921
35922         Tests for module 'unistr/u8-mbtoucr'.
35923         * modules/unistr/u8-mbtoucr-tests: New file.
35924         * tests/unistr/test-u8-mbtoucr.c: New file.
35925
35926         Tests for module 'unistr/u32-mbtouc'.
35927         * modules/unistr/u32-mbtouc-tests: New file.
35928         * tests/unistr/test-u32-mbtouc.c: New file.
35929
35930         Tests for module 'unistr/u16-mbtouc'.
35931         * modules/unistr/u16-mbtouc-tests: New file.
35932         * tests/unistr/test-u16-mbtouc.c: New file.
35933
35934         Tests for module 'unistr/u8-mbtouc'.
35935         * modules/unistr/u8-mbtouc-tests: New file.
35936         * tests/unistr/test-u8-mbtouc.c: New file.
35937
35938         Tests for module 'unistr/u32-mbtouc-unsafe'.
35939         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
35940         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
35941         * tests/unistr/test-u32-mbtouc.h: New file.
35942
35943         Tests for module 'unistr/u16-mbtouc-unsafe'.
35944         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
35945         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
35946         * tests/unistr/test-u16-mbtouc.h: New file.
35947
35948         Tests for module 'unistr/u8-mbtouc-unsafe'.
35949         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
35950         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
35951         * tests/unistr/test-u8-mbtouc.h: New file.
35952
35953         Tests for module 'unistr/u32-mblen'.
35954         * modules/unistr/u32-mblen-tests: New file.
35955         * tests/unistr/test-u32-mblen.c: New file.
35956
35957         Tests for module 'unistr/u16-mblen'.
35958         * modules/unistr/u16-mblen-tests: New file.
35959         * tests/unistr/test-u16-mblen.c: New file.
35960
35961         Tests for module 'unistr/u8-mblen'.
35962         * modules/unistr/u8-mblen-tests: New file.
35963         * tests/unistr/test-u8-mblen.c: New file.
35964
35965         Tests for module 'unistr/u32-to-u16'.
35966         * modules/unistr/u32-to-u16-tests: New file.
35967         * tests/unistr/test-u32-to-u16.c: New file.
35968
35969         Tests for module 'unistr/u32-to-u8'.
35970         * modules/unistr/u32-to-u8-tests: New file.
35971         * tests/unistr/test-u32-to-u8.c: New file.
35972
35973         Tests for module 'unistr/u16-to-u32'.
35974         * modules/unistr/u16-to-u32-tests: New file.
35975         * tests/unistr/test-u16-to-u32.c: New file.
35976
35977         Tests for module 'unistr/u16-to-u8'.
35978         * modules/unistr/u16-to-u8-tests: New file.
35979         * tests/unistr/test-u16-to-u8.c: New file.
35980
35981         Tests for module 'unistr/u8-to-u32'.
35982         * modules/unistr/u8-to-u32-tests: New file.
35983         * tests/unistr/test-u8-to-u32.c: New file.
35984
35985         Tests for module 'unistr/u8-to-u16'.
35986         * modules/unistr/u8-to-u16-tests: New file.
35987         * tests/unistr/test-u8-to-u16.c: New file.
35988
35989         Tests for module 'unistr/u32-check'.
35990         * modules/unistr/u32-check-tests: New file.
35991         * tests/unistr/test-u32-check.c: New file.
35992
35993         Tests for module 'unistr/u16-check'.
35994         * modules/unistr/u16-check-tests: New file.
35995         * tests/unistr/test-u16-check.c: New file.
35996
35997         Tests for module 'unistr/u8-check'.
35998         * modules/unistr/u8-check-tests: New file.
35999         * tests/unistr/test-u8-check.c: New file.
36000
36001         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
36002         (category_equals): New function.
36003         (main): Add more tests.
36004         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
36005
36006         * tests/unictype/test-bidi_byname.c (main): Add more tests.
36007
36008 2010-01-10  Bruno Haible  <bruno@clisp.org>
36009
36010         unistr/u*-strcoll: Try harder to distinguish different strings.
36011         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
36012         compare s1 and s2 to see if they are different.
36013
36014 2010-01-10  Bruno Haible  <bruno@clisp.org>
36015
36016         unistr/u*-stpncpy: Fix the return value.
36017         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
36018         description of the return value consistent with stpncpy in glibc.
36019         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
36020         written non-NUL unit.
36021
36022 2010-01-10  Bruno Haible  <bruno@clisp.org>
36023
36024         unistr/u*-next: Add missing dependencies.
36025         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
36026         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
36027         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
36028
36029 2010-01-10  Bruno Haible  <bruno@clisp.org>
36030
36031         unistr/u8-mbsnlen: Fix return value for incomplete character.
36032         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
36033         u8_mblen.
36034         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
36035         Remove unistr/u8-mblen.
36036         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
36037         u16_mblen.
36038         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
36039         Remove unistr/u16-mblen.
36040
36041 2010-01-10  Bruno Haible  <bruno@clisp.org>
36042
36043         wchar: Fix compilation error when <wchar.h> is used from coreutils.
36044         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
36045         Reported by Brian Gough <bjg@gnu.org> and
36046         Chris Clayton <chris2553@googlemail.com> via
36047         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
36048
36049 2010-01-09  Bruno Haible  <bruno@clisp.org>
36050
36051         unistr/u16-to-u32: Reject invalid input.
36052         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
36053         u16_mbtouc.
36054         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
36055         Remove unistr/u16-mbtouc.
36056
36057         unistr/u16-to-u8: Reject invalid input.
36058         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
36059         u16_mbtouc.
36060         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
36061         Remove unistr/u16-mbtouc.
36062
36063         unistr/u8-to-u32: Reject invalid input.
36064         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
36065         u8_mbtouc.
36066         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
36067         Remove unistr/u8-mbtouc.
36068
36069         unistr/u8-to-u16: Reject invalid input.
36070         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
36071         u8_mbtouc.
36072         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
36073         Remove unistr/u8-mbtouc.
36074
36075 2010-01-09  Bruno Haible  <bruno@clisp.org>
36076
36077         Tests for module 'getlogin'.
36078         * modules/getlogin-tests: New file.
36079         * tests/test-getlogin.c: New file.
36080
36081         New module 'getlogin'.
36082         * lib/unistd.in.h (getlogin): New declaration.
36083         * lib/getlogin.c: New file.
36084         * m4/getlogin.m4: New file.
36085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
36086         HAVE_GETLOGIN.
36087         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
36088         HAVE_GETLOGIN.
36089         * modules/getlogin: New file.
36090         * doc/posix-functions/getlogin.texi: Mention the new module.
36091         Reported by John W. Eaton <jwe@gnu.org>.
36092
36093 2010-01-09  Bruno Haible  <bruno@clisp.org>
36094
36095         getlogin_r: Support for native Windows.
36096         * lib/getlogin_r.c: Include <windows.h>
36097         (getlogin_r): Implement for native Windows.
36098         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
36099         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
36100         via John W. Eaton <jwe@gnu.org>.
36101
36102 2010-01-09  Bruno Haible  <bruno@clisp.org>
36103
36104         getlogin_r: Small fixes.
36105         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
36106         succeeds.
36107         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
36108         before testing whether getlogin_r is declared. No need to set
36109         HAVE_DECL_GETLOGIN_R to 1.
36110         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
36111
36112 2010-01-09  Bruno Haible  <bruno@clisp.org>
36113
36114         * lib/unistd.in.h (getlogin_r): Add comment.
36115
36116 2010-01-09  Bruno Haible  <bruno@clisp.org>
36117
36118         Tests for module 'getlogin_r'.
36119         * modules/getlogin_r-tests: New file.
36120         * tests/test-getlogin_r.c: New file.
36121
36122 2010-01-09  Jim Meyering  <meyering@redhat.com>
36123
36124         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
36125         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
36126         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
36127
36128 2010-01-08  Simon Josefsson  <simon@josefsson.org>
36129
36130         * lib/dup2.c (rpl_dup2): Improve comment.
36131
36132 2010-01-08  Eric Blake  <ebb9@byu.net>
36133
36134         maint.mk: allow packages to add makefile @@ exceptions
36135         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
36136         (sc_makefile_check): Rename...
36137         (sc_makefile_at_at_check): ...to this, and use hook.
36138
36139         dup2: work around mingw bug
36140         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
36141         Reported by Simon Josefsson.
36142
36143 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
36144
36145         glob: Fix C++ compilation.
36146         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
36147         C++.
36148
36149 2010-01-07  Bruno Haible  <bruno@clisp.org>
36150
36151         Fix indentation of wctype.in.h, broken since 2007-01-06.
36152         * lib/wctype.in.h: Fix indentation of preprocessor directives.
36153
36154 2010-01-07  Bruno Haible  <bruno@clisp.org>
36155
36156         mbslen: Avoid collision with system function.
36157         * lib/string.in.h [MirBSD]: Include <wchar.h>.
36158         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
36159         * m4/mbslen.m4: New file.
36160         * modules/mbslen (Files): Add it.
36161         (configure.ac): Invoke gl_MBSLEN.
36162         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
36163         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
36164         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
36165         via Ian Beckwith <ianb@erislabs.net>.
36166
36167 2010-01-07  Bruno Haible  <bruno@clisp.org>
36168
36169         dirent: Document the last fix.
36170         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
36171
36172 2010-01-07  Bruno Haible  <bruno@clisp.org>
36173
36174         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
36175         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
36176         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
36177         va_list are defined.
36178         * doc/posix-headers/stdio.texi: Document the bug of missing types.
36179         Reported by Eric Blake.
36180
36181 2010-01-07  Bruno Haible  <bruno@clisp.org>
36182
36183         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
36184         * modules/xlist (Depends-on): Add 'list',
36185         * modules/xoset (Depends-on): Add 'oset'.
36186         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36187
36188 2010-01-07  Bruno Haible  <bruno@clisp.org>
36189
36190         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
36191         * doc/posix-functions/strncasecmp.texi: Likewise.
36192
36193 2010-01-07  Bruno Haible  <bruno@clisp.org>
36194
36195         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
36196
36197 2010-01-07  John W. Eaton  <jwe@octave.org>
36198
36199         wctype: allow C++ use
36200         * lib/wctype.in.h: Add extern "C" block for C++.
36201
36202 2010-01-06  Eric Blake  <ebb9@byu.net>
36203
36204         maint.mk: detect incorrect GFDL usage
36205         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
36206
36207 2010-01-06  Jim Meyering  <meyering@redhat.com>
36208         and Eric Blake  <ebb9@byu.net>
36209
36210         maint.mk: ignore multi-line copyright in NEWS
36211         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
36212
36213 2010-01-06  Eric Blake  <ebb9@byu.net>
36214
36215         select: add missing dependency
36216         * modules/select-tests (Depends-on): Move sockets dependency...
36217         * modules/select (Depends-on): ...here.
36218         Reported by Ian Beckwith.
36219
36220         doc: regenerate INSTALL
36221         * doc/INSTALL: Reflect recent autoconf update.
36222         * doc/INSTALL.ISO: Likewise.
36223         * doc/INSTALL.UTF-8: Likewise.
36224
36225         pread: fix compilation on glibc
36226         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
36227         Reported by Ralf Wildenhues.
36228
36229         dirent: fix test failure
36230         * lib/dirent.in.h (includes): Guarantee ino_t.
36231         Reported by Ralf Wildenhues.
36232
36233 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
36234
36235         linkat, renameat: avoid bad free
36236         * lib/at-func2.c (at_func2): Fix typo.
36237         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
36238
36239 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36240
36241         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
36242         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
36243         to avoid failure of symlink test later.
36244
36245 2010-01-06  Eric Blake  <ebb9@byu.net>
36246
36247         stdio, unistd: guarantee ssize_t
36248         * lib/unistd.in.h (includes): Ensure that types required by POSIX
36249         2008 are exposed when needed.
36250         * lib/stdio.in.h (includes): Likewise.
36251         Reported by Ralf Wildenhues.
36252
36253 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
36254
36255         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
36256         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
36257         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
36258
36259 2010-01-06  Jim Meyering  <meyering@redhat.com>
36260
36261         readtokens: this module *does* require xalloc.h
36262         It uses only functions that were omitted by the old syntax-check rule.
36263         * lib/readtokens.c: Include "xalloc.h" once again.
36264         * modules/readtokens (Depends-on): Add xalloc.
36265         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
36266
36267 2010-01-05  Eric Blake  <ebb9@byu.net>
36268
36269         maint: support 'make announcement' from a VPATH build
36270         * top/maint.mk (announcement): Look for correct NEWS file.
36271
36272 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
36273
36274         utimens (fdutimens): ignore a negative FD, per contract
36275         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
36276         when we have a valid file descriptor.  Otherwise, using a brand
36277         new glibc (with just-patched futimens that now fails with EBADF)
36278         would cause this function to fail with ENOSYS.
36279         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
36280         See also http://bugzilla.redhat.com/552320.
36281
36282 2010-01-05  Eric Blake  <ebb9@byu.net>
36283
36284         strcase: document what it provides
36285         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
36286         gnulib module.
36287         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
36288         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
36289
36290 2010-01-05  Jim Meyering  <meyering@redhat.com>
36291
36292         maint: remove useless inclusions of "xalloc.h"
36293         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
36294         * lib/readtokens.c: Likewise.
36295         * lib/same.c: Likewise.
36296         * modules/getloadavg (Depends-on): Remove xalloc.
36297         * modules/readtokens: Likewise.
36298         * modules/same: Likewise.
36299
36300         maint.mk: include 4 more function names in alloca.h-checking regexp
36301         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
36302         regexp.  Before, we would give a false-positive (saying alloca.h
36303         is included unnecessarily) when the only uses involved omitted symbols.
36304
36305         xalloc.h: use consistent formatting
36306         * lib/xalloc.h: Move declarations to start in the first column.
36307
36308 2010-01-05  Eric Blake  <ebb9@byu.net>
36309
36310         mkdir: avoid xalloc
36311         * lib/mkdir.c (includes): Drop unused header.
36312         Reported by John W. Eaton.
36313
36314 2010-01-04  Jim Meyering  <meyering@redhat.com>
36315
36316         nl_langinfo: avoid configure-time syntax error
36317         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
36318         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
36319         the empty string.  Don't let that provoke a shell syntax error.
36320
36321         regcomp, regexec, fnmatch: avoid array bounds read error
36322         * lib/regcomp.c (build_equiv_class): From glibc:
36323         Use only the low 24 bits of a findidx return value as an index
36324         into the weights array.  Patch by Ulrich Drepper:
36325         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
36326         * lib/regexec.c (check_node_accept_bytes): Likewise.
36327         * lib/fnmatch_loop.c (FCT): Likewise.
36328
36329         regcomp: skip collseq lookup when there are no rules
36330         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
36331         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
36332
36333         regcomp: recognize ill-formed { } expressions
36334         * lib/regcomp.c (parse_dup_op): From glibc:
36335         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
36336
36337         regcomp: fix typo in comment
36338         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
36339         s/satisfy/satisfies/.
36340
36341         regcomp: sync from glibc: remove dead store
36342         * lib/regcomp.c (duplicate_node_closure): Remove useless
36343         search_duplicated_node call and dead store.
36344
36345         regcomp: sync from glibc; always use nl_langinfo
36346         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
36347         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
36348         * modules/regex (Depends-on): Add nl_langinfo.
36349
36350 2010-01-04  Eric Blake  <ebb9@byu.net>
36351
36352         fdopendir: fix configure test
36353         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
36354
36355 2010-01-01  Bruno Haible  <bruno@clisp.org>
36356
36357         wchar: Remove unused configure check.
36358         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
36359
36360 2010-01-01  Eric Blake  <ebb9@byu.net>
36361
36362         headers: make check of system header explicit
36363         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
36364         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
36365         ourselves.
36366         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36367         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36368         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
36369         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
36370         internals.
36371         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
36372         missing.
36373         Suggested by Bruno Haible.
36374
36375 2010-01-01  Jim Meyering  <meyering@redhat.com>
36376
36377         ChangeLog: tweak to eliminate unnecessary copyright line
36378         * ChangeLog: Remove a copyright line that was mistakenly updated
36379         by today's update-copyright run.  Reported by Eric Blake.
36380
36381         test-update-copyright: don't let envvar setting cause test failure
36382         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
36383
36384 2010-01-01  Bruno Haible  <bruno@clisp.org>
36385
36386         localename: Avoid gcc warning.
36387         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
36388         function if it is not used.
36389
36390 2010-01-01  Jim Meyering  <meyering@redhat.com>
36391
36392         update nearly all FSF copyright year lists to include 2010
36393         Use the same procedure as for 2009, outlined in
36394         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
36395
36396         version-etc: set COPYRIGHT_YEAR to 2010
36397         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
36398
36399 2009-12-31  Eric Blake  <ebb9@byu.net>
36400
36401         doc: correct availability of cygwin 1.5.x getopt
36402         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
36403         variables.
36404         * doc/posix-functions/opterr.texi (opterr): Likewise.
36405         * doc/posix-functions/optind.texi (optind): Likewise.
36406         * doc/posix-functions/optopt.texi (optopt): Likewise.
36407         * doc/posix-functions/tzname.texi (tzname): Likewise.
36408
36409         openat: update maintainer
36410         * modules/openat (Maintainer): Add myself.
36411
36412         utimens: avoid shadowing warning
36413         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
36414         buffers into one, to avoid shadowing, as well as avoiding a
36415         redundant stat.
36416         Reported by Jim Meyering.
36417
36418         test-dup2: avoid compiler warning
36419         * tests/test-dup2.c (is_inheritable): Only define if used.
36420
36421 2010-01-01  Bruno Haible  <bruno@clisp.org>
36422
36423         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
36424         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
36425         defined, use wctomb instead of wcrtomb.
36426
36427 2010-01-01  Bruno Haible  <bruno@clisp.org>
36428
36429         iconv: Reject native Solaris iconv.
36430         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
36431         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
36432
36433 2009-12-31  Bruno Haible  <bruno@clisp.org>
36434
36435         * tests/test-signal.c (main): Remove test of 'SIG'.
36436
36437 2009-12-31  Bruno Haible  <bruno@clisp.org>
36438
36439         spawn: Fix incomplete fix.
36440         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
36441         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
36442         warnings for GNULIB_POSIXCHECK again.
36443         Reported by Eric Blake.
36444
36445 2009-12-31  Bruno Haible  <bruno@clisp.org>
36446
36447         Avoid namespace pollution on glibc systems.
36448         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
36449         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
36450         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
36451         glibc systems.
36452
36453 2009-12-31  Bruno Haible  <bruno@clisp.org>
36454
36455         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
36456         (gl_REPLACE_WCHAR_H): Turn into a no-op.
36457         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
36458         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
36459         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
36460         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
36461         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
36462
36463 2009-12-31  Bruno Haible  <bruno@clisp.org>
36464
36465         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
36466         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
36467         afterwards.
36468
36469 2009-12-31  Bruno Haible  <bruno@clisp.org>
36470
36471         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
36472         SYS_UTSNAME_H.
36473
36474 2009-12-31  Bruno Haible  <bruno@clisp.org>
36475
36476         spawn: Fix misapplied patch.
36477         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
36478         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
36479         warnings for GNULIB_POSIXCHECK.
36480
36481 2009-12-31  Bruno Haible  <bruno@clisp.org>
36482
36483         times: Update after sys_times changed.
36484         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
36485         * modules/times (Files): Add it.
36486         (configure.ac): Invoke gl_FUNC_TIMES.
36487
36488 2009-12-31  Bruno Haible  <bruno@clisp.org>
36489
36490         Use AC_C_INLINE where necessary.
36491         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
36492         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36493         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
36494         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
36495         * m4/mbfile.m4 (gl_MBFILE): Likewise.
36496         * m4/mbiter.m4 (gl_MBITER): Likewise.
36497         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
36498         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36499         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
36500         * modules/u64 (configure.ac): Likewise.
36501
36502 2009-12-31  Bruno Haible  <bruno@clisp.org>
36503
36504         Use AC_C_INLINE instead of module 'inline' where possible.
36505         * modules/inline (Description): Clarify purpose.
36506         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
36507         * modules/count-one-bits (Depends-on): Remove inline.
36508         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
36509         * modules/openat (Depends-on): Remove inline.
36510         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
36511         instead of depending on module 'inline'.
36512         * modules/filevercmp (Depends-on, configure.ac): Likewise.
36513         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
36514         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
36515         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
36516         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
36517         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
36518         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
36519         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
36520         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
36521         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
36522         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
36523         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
36524         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
36525         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
36526         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
36527         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
36528         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
36529         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
36530         Likewise.
36531         * modules/unictype/property-ascii-hex-digit (Depends-on,
36532         configure.ac): Likewise.
36533         * modules/unictype/property-bidi-arabic-digit (Depends-on,
36534         configure.ac): Likewise.
36535         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
36536         configure.ac): Likewise.
36537         * modules/unictype/property-bidi-block-separator (Depends-on,
36538         configure.ac): Likewise.
36539         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
36540         configure.ac): Likewise.
36541         * modules/unictype/property-bidi-common-separator (Depends-on,
36542         configure.ac): Likewise.
36543         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
36544         Likewise.
36545         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
36546         configure.ac): Likewise.
36547         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
36548         configure.ac): Likewise.
36549         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
36550         configure.ac): Likewise.
36551         * modules/unictype/property-bidi-european-digit (Depends-on,
36552         configure.ac): Likewise.
36553         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
36554         configure.ac): Likewise.
36555         * modules/unictype/property-bidi-left-to-right (Depends-on,
36556         configure.ac): Likewise.
36557         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
36558         configure.ac): Likewise.
36559         * modules/unictype/property-bidi-other-neutral (Depends-on,
36560         configure.ac): Likewise.
36561         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
36562         Likewise.
36563         * modules/unictype/property-bidi-segment-separator (Depends-on,
36564         configure.ac): Likewise.
36565         * modules/unictype/property-bidi-whitespace (Depends-on,
36566         configure.ac): Likewise.
36567         * modules/unictype/property-combining (Depends-on, configure.ac):
36568         Likewise.
36569         * modules/unictype/property-composite (Depends-on, configure.ac):
36570         Likewise.
36571         * modules/unictype/property-currency-symbol (Depends-on,
36572         configure.ac): Likewise.
36573         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
36574         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
36575         Likewise.
36576         * modules/unictype/property-default-ignorable-code-point (Depends-on,
36577         configure.ac): Likewise.
36578         * modules/unictype/property-deprecated (Depends-on, configure.ac):
36579         Likewise.
36580         * modules/unictype/property-diacritic (Depends-on, configure.ac):
36581         Likewise.
36582         * modules/unictype/property-extender (Depends-on, configure.ac):
36583         Likewise.
36584         * modules/unictype/property-format-control (Depends-on, configure.ac):
36585         Likewise.
36586         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
36587         Likewise.
36588         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
36589         Likewise.
36590         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
36591         Likewise.
36592         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
36593         Likewise.
36594         * modules/unictype/property-hyphen (Depends-on, configure.ac):
36595         Likewise.
36596         * modules/unictype/property-id-continue (Depends-on, configure.ac):
36597         Likewise.
36598         * modules/unictype/property-id-start (Depends-on, configure.ac):
36599         Likewise.
36600         * modules/unictype/property-ideographic (Depends-on, configure.ac):
36601         Likewise.
36602         * modules/unictype/property-ids-binary-operator (Depends-on,
36603         configure.ac): Likewise.
36604         * modules/unictype/property-ids-trinary-operator (Depends-on,
36605         configure.ac): Likewise.
36606         * modules/unictype/property-ignorable-control (Depends-on,
36607         configure.ac): Likewise.
36608         * modules/unictype/property-iso-control (Depends-on, configure.ac):
36609         Likewise.
36610         * modules/unictype/property-join-control (Depends-on, configure.ac):
36611         Likewise.
36612         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
36613         Likewise.
36614         * modules/unictype/property-line-separator (Depends-on, configure.ac):
36615         Likewise.
36616         * modules/unictype/property-logical-order-exception (Depends-on,
36617         configure.ac): Likewise.
36618         * modules/unictype/property-lowercase (Depends-on, configure.ac):
36619         Likewise.
36620         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
36621         * modules/unictype/property-non-break (Depends-on, configure.ac):
36622         Likewise.
36623         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
36624         Likewise.
36625         * modules/unictype/property-numeric (Depends-on, configure.ac):
36626         Likewise.
36627         * modules/unictype/property-other-alphabetic (Depends-on,
36628         configure.ac): Likewise.
36629         * modules/unictype/property-other-default-ignorable-code-point
36630         (Depends-on, configure.ac): Likewise.
36631         * modules/unictype/property-other-grapheme-extend (Depends-on,
36632         configure.ac): Likewise.
36633         * modules/unictype/property-other-id-continue (Depends-on,
36634         configure.ac): Likewise.
36635         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
36636         Likewise.
36637         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
36638         Likewise.
36639         * modules/unictype/property-other-math (Depends-on, configure.ac):
36640         Likewise.
36641         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
36642         Likewise.
36643         * modules/unictype/property-paired-punctuation (Depends-on,
36644         configure.ac): Likewise.
36645         * modules/unictype/property-paragraph-separator (Depends-on,
36646         configure.ac): Likewise.
36647         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
36648         Likewise.
36649         * modules/unictype/property-pattern-white-space (Depends-on,
36650         configure.ac): Likewise.
36651         * modules/unictype/property-private-use (Depends-on, configure.ac):
36652         Likewise.
36653         * modules/unictype/property-punctuation (Depends-on, configure.ac):
36654         Likewise.
36655         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
36656         Likewise.
36657         * modules/unictype/property-radical (Depends-on, configure.ac):
36658         Likewise.
36659         * modules/unictype/property-sentence-terminal (Depends-on,
36660         configure.ac): Likewise.
36661         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
36662         Likewise.
36663         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
36664         * modules/unictype/property-terminal-punctuation (Depends-on,
36665         configure.ac): Likewise.
36666         * modules/unictype/property-titlecase (Depends-on, configure.ac):
36667         Likewise.
36668         * modules/unictype/property-unassigned-code-value (Depends-on,
36669         configure.ac): Likewise.
36670         * modules/unictype/property-unified-ideograph (Depends-on,
36671         configure.ac): Likewise.
36672         * modules/unictype/property-uppercase (Depends-on, configure.ac):
36673         Likewise.
36674         * modules/unictype/property-variation-selector (Depends-on,
36675         configure.ac): Likewise.
36676         * modules/unictype/property-white-space (Depends-on, configure.ac):
36677         Likewise.
36678         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
36679         Likewise.
36680         * modules/unictype/property-xid-start (Depends-on, configure.ac):
36681         Likewise.
36682         * modules/unictype/property-zero-width (Depends-on, configure.ac):
36683         Likewise.
36684         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
36685         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
36686         Likewise.
36687
36688 2009-12-31  Bruno Haible  <bruno@clisp.org>
36689
36690         Remove unnecessary AC_C_INLINE invocation.
36691         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
36692         since 2009-08-21.
36693
36694 2009-12-31  Jim Meyering  <meyering@redhat.com>
36695
36696         maint.mk: don't require explicit gpg_key_ID in cfg.mk
36697         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
36698         With this change, we can all remove the gpg_key_ID = ... definition
36699         from our respective cfg.mk files.
36700
36701         maint.mk: create announcement template in ~/, not in /tmp
36702         * top/maint.mk (emit_upload_commands): Adjust.
36703         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
36704         Remove temporary file, .ci-msg.
36705
36706 2009-12-31  Eric Blake  <ebb9@byu.net>
36707
36708         link-warning: always build headers with link warnings
36709         * modules/arpa_inet (Makefile.am): Always build replacement
36710         header.
36711         * modules/ctype (Makefile.am): Likewise.
36712         * modules/dirent (Makefile.am): Likewise.
36713         * modules/inttypes (Makefile.am): Likewise.
36714         * modules/langinfo (Makefile.am): Likewise.
36715         * modules/locale (Makefile.am): Likewise.
36716         * modules/spawn (Makefile.am): Likewise.
36717         * modules/sys_file (Makefile.am): Likewise.
36718         * modules/sys_ioctl (Makefile.am): Likewise.
36719         * modules/sys_select (Makefile.am): Likewise.
36720         * modules/sys_socket (Makefile.am): Likewise.
36721         * modules/sys_times (Makefile.am): Likewise.
36722         * modules/sys_utsname (Makefile.am): Likewise.
36723         * modules/sys_wait (Makefile.am): Likewise.
36724         * modules/wchar (Makefile.am): Likewise.
36725         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
36726         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
36727         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
36728         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
36729         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
36730         Likewise.
36731         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36732         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36733         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
36734         Likewise.
36735         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
36736         Likewise.
36737         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
36738         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
36739         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
36740         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36741         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36742         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36743         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36744         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
36745         (gl_WCHAR_H_DEFAULTS): Likewise.
36746
36747 2009-12-31  Eric Blake  <ebb9@byu.net>
36748
36749         signal, spawn: use link warnings
36750         * lib/signal.in.h (sigset_t): Make unconditional.
36751         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
36752         (sigpending, sigprocmask, sigaction): Add link warnings.
36753         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
36754         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
36755         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
36756         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
36757         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
36758         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
36759         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
36760         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
36761         (posix_spawn_file_actions_destroy)
36762         (posix_spawn_file_actions_addopen)
36763         (posix_spawn_file_actions_addclose)
36764         (posix_spawn_file_actions_adddup2): Likewise.
36765         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
36766         * tests/test-signal.c (main): Enhance test.
36767
36768         spawn: improve wrapper support
36769         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
36770         (gl_SPAWN_H_DEFAULTS): New defaults.
36771         * modules/spawn (Makefile.am): Substitute them.
36772         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
36773         Only declare if missing or broken.
36774
36775         sys_times, sys_utsname: use include_next
36776         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
36777         header.
36778         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
36779         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36780         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36781         * modules/sys_times (Depends-on): Add include_next.
36782         (Makefile.am): Substitute additional values.
36783         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36784         * lib/sys_times.in.h (includes): Include native header, if
36785         available.
36786         * lib/sys_utsname.in.h (includes): Likewise.
36787         * tests/test-sys_times.c (main): Enhance test.
36788
36789         fdutimensat: revert prior patch
36790         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
36791         utimens.h.
36792         Reported by Bruno Haible.
36793
36794 2009-12-30  Eric Blake  <ebb9@byu.net>
36795
36796         sys_wait: drop link-warning dependency
36797         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
36798         link-warning efforts.
36799         * lib/sys_wait.in.h: Likewise.
36800
36801         fdutimensat: remove bogus dependency
36802         * modules/fdutimensat (Depends-on): Drop inline.
36803
36804         unistd: fix typo
36805         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
36806
36807 2009-12-30  Bruno Haible  <bruno@clisp.org>
36808
36809         Fix compilation error with Solaris cc.
36810         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
36811         * lib/unicase/u16-is-invariant.c: Likewise.
36812         * lib/unicase/u32-is-invariant.c: Likewise.
36813         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
36814
36815 2009-12-30  Bruno Haible  <bruno@clisp.org>
36816
36817         Fix test crash.
36818         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
36819         locales.
36820         Reported by Simon Josefsson <simon@josefsson.org>.
36821
36822 2009-12-30  Bruno Haible  <bruno@clisp.org>
36823
36824         Fix compilation error on most platforms.
36825         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
36826         Reported by Simon Josefsson <simon@josefsson.org>
36827         and Nelson H. F. Beebe <beebe@math.utah.edu>.
36828
36829 2009-12-30  Eric Blake  <ebb9@byu.net>
36830
36831         futimens, utimensat: work around ntfs-3g bug
36832         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
36833         a ctime bug is present, and expand workaround to cover ntfs-3g.
36834         * lib/utimens.c (fdutimens, lutimens): Likewise.
36835         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
36836         (validate_timespec): Adjust return value.
36837         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
36838         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36839         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
36840
36841 2009-12-29  Eric Blake  <ebb9@byu.net>
36842
36843         link-warning: make usage consistent
36844         * modules/ctype (Depends-on): Add link-warning.
36845         (Makefile.am): Update rules accordingly.
36846         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36847         * modules/locale (Depends-on, Makefile.am): Likewise.
36848         * modules/sys_file (Makefile.am): Likewise.
36849         * modules/getopt-posix (Makefile.am): Delete unused link warning
36850         efforts.
36851         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
36852         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
36853         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
36854         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
36855
36856         stdio: remove unused variables
36857         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
36858         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
36859         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
36860
36861         tests: test more substitute headers
36862         * modules/ctype-tests: New file.
36863         * modules/dirent-tests: Likewise.
36864         * modules/spawn-tests: Likewise.
36865         * modules/sys_file-tests: Likewise.
36866         * modules/sys_ioctl-tests: Likewise.
36867         * modules/sys_wait-tests: Likewise.
36868         * tests/test-ctype.c: Likewise.
36869         * tests/test-dirent.c: Likewise.
36870         * tests/test-spawn.c: Likewise.
36871         * tests/test-sys_file.c: Likewise.
36872         * tests/test-sys_ioctl.c: Likewise.
36873         * tests/test-sys_wait.c: Likewise.
36874         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
36875         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
36876         whether or not flock is in use.
36877
36878         tests: remove License section from module
36879         * modules/arpa_inet-tests: Remove unneeded section.
36880         * modules/byteswap-tests: Likewise.
36881         * modules/ceilf-tests: Likewise.
36882         * modules/ceill-tests: Likewise.
36883         * modules/crypto/des-tests: Likewise.
36884         * modules/crypto/gc-arcfour-tests: Likewise.
36885         * modules/crypto/gc-arctwo-tests: Likewise.
36886         * modules/crypto/gc-des-tests: Likewise.
36887         * modules/crypto/gc-hmac-md5-tests: Likewise.
36888         * modules/crypto/gc-hmac-sha1-tests: Likewise.
36889         * modules/crypto/gc-md2-tests: Likewise.
36890         * modules/crypto/gc-md4-tests: Likewise.
36891         * modules/crypto/gc-md5-tests: Likewise.
36892         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
36893         * modules/crypto/gc-rijndael-tests: Likewise.
36894         * modules/crypto/gc-sha1-tests: Likewise.
36895         * modules/crypto/gc-tests: Likewise.
36896         * modules/crypto/md2-tests: Likewise.
36897         * modules/crypto/md4-tests: Likewise.
36898         * modules/fcntl-h-tests: Likewise.
36899         * modules/floorf-tests: Likewise.
36900         * modules/floorl-tests: Likewise.
36901         * modules/frexp-nolibm-tests: Likewise.
36902         * modules/frexp-tests: Likewise.
36903         * modules/frexpl-nolibm-tests: Likewise.
36904         * modules/frexpl-tests: Likewise.
36905         * modules/getaddrinfo-tests: Likewise.
36906         * modules/inttypes-tests: Likewise.
36907         * modules/isfinite-tests: Likewise.
36908         * modules/isinf-tests: Likewise.
36909         * modules/ldexpl-tests: Likewise.
36910         * modules/locale-tests: Likewise.
36911         * modules/math-tests: Likewise.
36912         * modules/netdb-tests: Likewise.
36913         * modules/netinet_in-tests: Likewise.
36914         * modules/printf-frexp-tests: Likewise.
36915         * modules/printf-frexpl-tests: Likewise.
36916         * modules/priv-set-tests: Likewise.
36917         * modules/random_r-tests: Likewise.
36918         * modules/round-tests: Likewise.
36919         * modules/roundf-tests: Likewise.
36920         * modules/roundl-tests: Likewise.
36921         * modules/search-tests: Likewise.
36922         * modules/select-tests: Likewise.
36923         * modules/signal-tests: Likewise.
36924         * modules/stdbool-tests: Likewise.
36925         * modules/stddef-tests: Likewise.
36926         * modules/stdint-tests: Likewise.
36927         * modules/stdio-tests: Likewise.
36928         * modules/stdlib-tests: Likewise.
36929         * modules/string-tests: Likewise.
36930         * modules/strings-tests: Likewise.
36931         * modules/sys_select-tests: Likewise.
36932         * modules/sys_socket-tests: Likewise.
36933         * modules/sys_stat-tests: Likewise.
36934         * modules/sys_time-tests: Likewise.
36935         * modules/sys_utsname-tests: Likewise.
36936         * modules/sysexits-tests: Likewise.
36937         * modules/time-tests: Likewise.
36938         * modules/trunc-tests: Likewise.
36939         * modules/truncf-tests: Likewise.
36940         * modules/truncl-tests: Likewise.
36941         * modules/tsearch-tests: Likewise.
36942         * modules/unistd-tests: Likewise.
36943         * modules/wchar-tests: Likewise.
36944         * modules/wctype-tests: Likewise.
36945
36946         tests: fix license on several tests
36947         * tests/test-des.c: Update to GPLv3+.
36948         * tests/test-flock.c: Likewise.
36949         * tests/test-fsync.c: Likewise.
36950         * tests/test-futimens.h: Likewise.
36951         * tests/test-gc-arcfour.c: Likewise.
36952         * tests/test-gc-arctwo.c: Likewise.
36953         * tests/test-gc-des.c: Likewise.
36954         * tests/test-gc-hmac-md5.c: Likewise.
36955         * tests/test-gc-hmac-sha1.c: Likewise.
36956         * tests/test-gc-md2.c: Likewise.
36957         * tests/test-gc-md4.c: Likewise.
36958         * tests/test-gc-md5.c: Likewise.
36959         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36960         * tests/test-gc-rijndael.c: Likewise.
36961         * tests/test-gc-sha1.c: Likewise.
36962         * tests/test-gc.c: Likewise.
36963         * tests/test-getcwd.c: Likewise.
36964         * tests/test-link.c: Likewise.
36965         * tests/test-link.h: Likewise.
36966         * tests/test-lutimens.h: Likewise.
36967         * tests/test-md2.c: Likewise.
36968         * tests/test-md4.c: Likewise.
36969         * tests/test-mkdir.h: Likewise.
36970         * tests/test-rename.c: Likewise.
36971         * tests/test-rename.h: Likewise.
36972         * tests/test-safe-alloc.c: Likewise.
36973         * tests/test-utimens-common.h: Likewise.
36974         * tests/test-utimens.h: Likewise.
36975
36976         maint: sync license texts
36977         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
36978         * doc/gpl-3.0.texi: Revert copyright year update.
36979         * doc/lgpl-3.0.texi: Likewise.
36980
36981 2009-12-29  Jim Meyering  <meyering@redhat.com>
36982
36983         update nearly all FSF copyright year lists to include 2009
36984         The files named by the following are exempted:
36985             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
36986               test -f "$dst" && { echo "$dst"; continue; }
36987               test -d "$dst" || continue
36988               echo "$dst"/$(basename "$src")
36989             done > exempt
36990             git ls-files tests/unictype >> exempt
36991         In the remaining files, convert to all-interval notation if
36992         - there is already at least one year interval like 2000-2003
36993         - the file is maintained by me
36994         - the file is in lib/uni*/, where that style already prevails
36995         Otherwise, use update-copyright's default.
36996
36997 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36998         and Eric Blake  <ebb9@byu.net>
36999
37000         tests: don't require debug system() to pass
37001         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
37002         * tests/test-rmdir.h (test_rmdir_func): Likewise.
37003         * tests/test-unlink.h (test_unlink_func): Likewise.
37004         * tests/test-fstatat.c (main): ...into callers.
37005         * tests/test-lstat.c (main): Likewise.
37006         * tests/test-rmdir.c (main): Likewise.
37007         * tests/test-unlink.c (main): Likewise.
37008         * tests/test-unlinkat.c (main): Likewise.
37009         * tests/test-areadlink-with-size.c (main): Don't require a
37010         debug-only system call to pass, aiding cross-testing to mingw.
37011         * tests/test-areadlink.c (main): Likewise.
37012         * tests/test-areadlinkat-with-size.c (main): Likewise.
37013         * tests/test-areadlinkat.c (main): Likewise.
37014         * tests/test-canonicalize-lgpl.c (main): Likewise.
37015         * tests/test-canonicalize.c (main): Likewise.
37016         * tests/test-chown.c (main): Likewise.
37017         * tests/test-fchownat.c (main): Likewise.
37018         * tests/test-lchown.c (main): Likewise.
37019         * tests/test-fdutimensat.c (main): Likewise.
37020         * tests/test-futimens.c (main): Likewise.
37021         * tests/test-link.c (main): Likewise.
37022         * tests/test-linkat.c (main): Likewise.
37023         * tests/test-mkdir.c (main): Likewise.
37024         * tests/test-mkdirat.c (main): Likewise.
37025         * tests/test-mkfifo.c (main): Likewise.
37026         * tests/test-mkfifoat.c (main): Likewise.
37027         * tests/test-mknod.c (main): Likewise.
37028         * tests/test-readlink.c (main): Likewise.
37029         * tests/test-remove.c (main): Likewise.
37030         * tests/test-rename.c (main): Likewise.
37031         * tests/test-renameat.c (main): Likewise.
37032         * tests/test-symlink.c (main): Likewise.
37033         * tests/test-symlinkat.c (main): Likewise.
37034         * tests/test-utimens.c (main): Likewise.
37035         * tests/test-utimensat.c (main): Likewise.
37036
37037 2009-12-29  Simon Josefsson  <simon@josefsson.org>
37038
37039         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
37040         on $(UNUSED_PARAMETER_H) to avoid build failure.
37041
37042 2009-12-28  Jim Meyering  <meyering@redhat.com>
37043
37044         update-copyright: you may specify a max. line length other than 72
37045         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
37046
37047         maint: use consistent FSF copyright line syntax
37048         * lib/posixtm.c: Add missing comma in FSF copyright line.
37049         * lib/posixtm.h: Likewise.
37050         * lib/getugroups.c: Add missing ", Inc.".
37051
37052         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
37053         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
37054         FSF copyright line.  Remove trailing blanks.
37055
37056 2009-12-28  Eric Blake  <ebb9@byu.net>
37057
37058         test-dup2: reduce dependencies
37059         * modules/cloexec (Configure.ac): Set witness.
37060         * modules/dup2-tests (Depends-on): Drop cloexec.
37061         * tests/test-dup2.c (main): Skip portion of test if cloexec module
37062         not present.
37063         Suggested by Bruno Haible.
37064
37065 2009-12-26  Bruno Haible  <bruno@clisp.org>
37066
37067         Remove an unneeded dependency.
37068         * modules/fseterr (Depends-on): Remove dup2.
37069
37070 2009-12-26  Eric Blake  <ebb9@byu.net>
37071
37072         tests: use macros.h in more places
37073         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
37074         (ASSERT_STREAM): Provide default of stderr.
37075         * tests/test-dirent-safer.c: Include macros.h, using alternate
37076         stream for assertions.
37077         * tests/test-dup-safer.c: Likewise.
37078         * tests/test-freopen-safer.c: Likewise.
37079         * tests/test-getopt.c: Likewise.
37080         * tests/test-openat-safer.c: Likewise.
37081         * tests/test-pipe.c: Likewise.
37082         * tests/test-popen-safer.c: Likewise.
37083         * modules/dirent-safer-tests (Files): Include macros.h.
37084         * modules/unistd-safer-tests (Files): Likewise.
37085         * modules/freopen-safer-tests (Files): Likewise.
37086         * modules/getopt-posix-tests (Files): Likewise.
37087         * modules/openat-safer-tests (Files): Likewise.
37088         * modules/pipe-tests (Files): Likewise.
37089
37090 2009-12-26  Bruno Haible  <bruno@clisp.org>
37091
37092         javacomp: Portability fix.
37093         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
37094         that it also works on Solaris.
37095
37096 2009-12-26  Bruno Haible  <bruno@clisp.org>
37097
37098         localename: Fix storage allocation of gl_locale_name_thread's result.
37099         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
37100         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
37101         all platforms that have 'uselocale'.
37102         (gl_locale_name_thread_unsafe): New function, extracted from
37103         gl_locale_name_thread.
37104         (gl_locale_name_thread): Call struniq on all platforms that have
37105         'uselocale'.
37106         * tests/test-localename.c (test_locale_name_thread): Check that the
37107         resulting strings are permanently allocated.
37108         * modules/localename-tests (Depends-on): Add strdup.
37109
37110 2009-12-26  Bruno Haible  <bruno@clisp.org>
37111
37112         * tests/test-localename.c (categories): Fill in the strings.
37113
37114 2009-12-26  Jim Meyering  <meyering@redhat.com>
37115
37116         isdir: complete the removal of m4/isdir.m4
37117         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
37118
37119         isdir: clean up, since at least grep still uses it
37120         * lib/isdir.c: Include "isdir.h".
37121         (S_ISDIR): Remove now-unneeded definition.
37122         * modules/isdir (Files): Add lib/isdir.h.
37123         * lib/isdir.h: New file, with declaration.
37124         * m4/isdir.m4: Remove file -- unneeded.
37125
37126 2009-12-25  Bruno Haible  <bruno@clisp.org>
37127
37128         selinux-h: Make generated .h files standalone.
37129         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
37130         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
37131         * lib/se-selinux.in.h: Likewise.
37132         * modules/selinux-h (Depends-on): Add unused-parameter.
37133         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
37134         selinux/selinux.h and selinux/context.h.
37135         Suggested by Eric Blake.
37136
37137 2009-12-25  Bruno Haible  <bruno@clisp.org>
37138
37139         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
37140         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
37141         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
37142         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
37143         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
37144
37145 2009-12-24  Bruno Haible  <bruno@clisp.org>
37146
37147         openat: Fix warning.
37148         * lib/openat-proc.c: Include <unistd.h>.
37149
37150 2009-12-24  Bruno Haible  <bruno@clisp.org>
37151
37152         New module 'unused-parameter'.
37153         * build-aux/unused-parameter.h: New file, extracted from earlier
37154         gnulib-common.m4.
37155         * modules/unused-parameter: New file.
37156         * lib/unistr.h: Include unused-parameter.h.
37157         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
37158         _GL_UNUSED.
37159         * modules/unistr/base (Depends-on): Add unused-parameter.
37160
37161 2009-12-24  Bruno Haible  <bruno@clisp.org>
37162
37163         Add missing dependencies to 'extensions' module.
37164         * m4/extensions.m4: Add comment.
37165         * modules/accept4 (Depends-on): Add extensions.
37166         * modules/dup3 (Depends-on): Likewise.
37167         * modules/fcntl (Depends-on): Likewise.
37168         * modules/futimens (Depends-on): Likewise.
37169         * modules/mknod (Depends-on): Likewise.
37170         * modules/pipe2 (Depends-on): Likewise.
37171         * modules/stat-time (Depends-on): Likewise.
37172         * modules/strcasestr-simple (Depends-on): Likewise.
37173         * modules/strsignal (Depends-on): Likewise.
37174         * modules/utimensat (Depends-on): Likewise.
37175         * modules/localcharset (Depends-on): Likewise. Needed because of
37176         gl_FCNTL_O_FLAGS.
37177         * modules/wcrtomb (Depends-on): Likewise. Needed because of
37178         AC_TYPE_MBSTATE_T.
37179         * modules/wcsnrtombs (Depends-on): Likewise.
37180         * modules/wcsrtombs (Depends-on): Likewise.
37181
37182 2009-12-24  Bruno Haible  <bruno@clisp.org>
37183
37184         binary-io: Avoid gcc warning due to SET_BINARY.
37185         * lib/binary-io.h (SET_BINARY): Cast the result to void.
37186         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
37187
37188 2009-12-24  Bruno Haible  <bruno@clisp.org>
37189
37190         Avoid future namespace pollution on glibc systems.
37191         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
37192         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
37193         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
37194         glibc systems.
37195
37196 2009-12-24  Bruno Haible  <bruno@clisp.org>
37197
37198         Refactor common macros used in tests.
37199         * tests/macros.h: New file.
37200         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
37201         and/or <stdlib.h>, if appropriate.
37202         (ASSERT, SIZEOF): Remove macros.
37203         * tests/test-areadlink-with-size.c: Likewise.
37204         * tests/test-areadlinkat.c: Likewise.
37205         * tests/test-areadlinkat-with-size.c: Likewise.
37206         * tests/test-argmatch.c: Likewise.
37207         * tests/test-argv-iter.c: Likewise.
37208         * tests/test-array-mergesort.c: Likewise.
37209         * tests/test-array_list.c: Likewise.
37210         * tests/test-array_oset.c: Likewise.
37211         * tests/test-avltree_list.c: Likewise.
37212         * tests/test-avltree_oset.c: Likewise.
37213         * tests/test-avltreehash_list.c: Likewise.
37214         * tests/test-base64.c: Likewise.
37215         * tests/test-binary-io.c: Likewise.
37216         * tests/test-bitrotate.c: Likewise.
37217         * tests/test-btowc.c: Likewise.
37218         * tests/test-byteswap.c: Likewise.
37219         * tests/test-c-ctype.c: Likewise.
37220         * tests/test-c-stack.c: Likewise.
37221         * tests/test-c-strcasecmp.c: Likewise.
37222         * tests/test-c-strcasestr.c: Likewise.
37223         * tests/test-c-strncasecmp.c: Likewise.
37224         * tests/test-c-strstr.c: Likewise.
37225         * tests/test-canonicalize-lgpl.c: Likewise.
37226         * tests/test-canonicalize.c: Likewise.
37227         * tests/test-carray_list.c: Likewise.
37228         * tests/test-ceilf1.c: Likewise.
37229         * tests/test-ceilf2.c: Likewise.
37230         * tests/test-ceill.c: Likewise.
37231         * tests/test-chown.c: Likewise.
37232         * tests/test-cloexec.c: Likewise.
37233         * tests/test-copy-acl.c: Likewise.
37234         * tests/test-copy-file.c: Likewise.
37235         * tests/test-count-one-bits.c: Likewise.
37236         * tests/test-dprintf-posix.c: Likewise.
37237         * tests/test-dup2.c: Likewise.
37238         * tests/test-dup3.c: Likewise.
37239         * tests/test-duplocale.c: Likewise.
37240         * tests/test-fbufmode.c: Likewise.
37241         * tests/test-fchdir.c: Likewise.
37242         * tests/test-fchownat.c: Likewise.
37243         * tests/test-fcntl-safer.c: Likewise.
37244         * tests/test-fcntl.c: Likewise.
37245         * tests/test-fdopendir.c: Likewise.
37246         * tests/test-fdutimensat.c: Likewise.
37247         * tests/test-fflush2.c: Likewise.
37248         * tests/test-file-has-acl.c: Likewise.
37249         * tests/test-filevercmp.c: Likewise.
37250         * tests/test-flock.c: Likewise.
37251         * tests/test-floorf1.c: Likewise.
37252         * tests/test-floorf2.c: Likewise.
37253         * tests/test-floorl.c: Likewise.
37254         * tests/test-fnmatch.c: Likewise.
37255         * tests/test-fopen.h: Likewise.
37256         * tests/test-fpending.c: Likewise.
37257         * tests/test-fprintf-posix.c: Likewise.
37258         * tests/test-fpurge.c: Likewise.
37259         * tests/test-freadable.c: Likewise.
37260         * tests/test-freadahead.c: Likewise.
37261         * tests/test-freading.c: Likewise.
37262         * tests/test-freadptr.c: Likewise.
37263         * tests/test-freadptr2.c: Likewise.
37264         * tests/test-freadseek.c: Likewise.
37265         * tests/test-freopen.c: Likewise.
37266         * tests/test-frexp.c: Likewise.
37267         * tests/test-frexpl.c: Likewise.
37268         * tests/test-fseek.c: Likewise.
37269         * tests/test-fseeko.c: Likewise.
37270         * tests/test-fstatat.c: Likewise.
37271         * tests/test-fstrcmp.c: Likewise.
37272         * tests/test-fsync.c: Likewise.
37273         * tests/test-ftell.c: Likewise.
37274         * tests/test-ftello.c: Likewise.
37275         * tests/test-func.c: Likewise.
37276         * tests/test-futimens.c: Likewise.
37277         * tests/test-fwritable.c: Likewise.
37278         * tests/test-fwriting.c: Likewise.
37279         * tests/test-getcwd.c: Likewise.
37280         * tests/test-getdate.c: Likewise.
37281         * tests/test-getdelim.c: Likewise.
37282         * tests/test-getdtablesize.c: Likewise.
37283         * tests/test-getgroups.c: Likewise.
37284         * tests/test-getline.c: Likewise.
37285         * tests/test-getndelim2.c: Likewise.
37286         * tests/test-glob.c: Likewise.
37287         * tests/test-hash.c: Likewise.
37288         * tests/test-i-ring.c: Likewise.
37289         * tests/test-iconv-utf.c: Likewise.
37290         * tests/test-iconv.c: Likewise.
37291         * tests/test-idpriv-drop.c: Likewise.
37292         * tests/test-idpriv-droptemp.c: Likewise.
37293         * tests/test-inet_ntop.c: Likewise.
37294         * tests/test-inet_pton.c: Likewise.
37295         * tests/test-isblank.c: Likewise.
37296         * tests/test-isfinite.c: Likewise.
37297         * tests/test-isinf.c: Likewise.
37298         * tests/test-isnan.c: Likewise.
37299         * tests/test-isnand.h: Likewise.
37300         * tests/test-isnanf.h: Likewise.
37301         * tests/test-isnanl.h: Likewise.
37302         * tests/test-lchown.c: Likewise.
37303         * tests/test-ldexpl.c: Likewise.
37304         * tests/test-link.c: Likewise.
37305         * tests/test-linkat.c: Likewise.
37306         * tests/test-linked_list.c: Likewise.
37307         * tests/test-linkedhash_list.c: Likewise.
37308         * tests/test-localename.c: Likewise.
37309         * tests/test-lseek.c: Likewise.
37310         * tests/test-lstat.c: Likewise.
37311         * tests/test-mbmemcasecmp.c: Likewise.
37312         * tests/test-mbmemcasecoll.c: Likewise.
37313         * tests/test-mbrtowc.c: Likewise.
37314         * tests/test-mbscasecmp.c: Likewise.
37315         * tests/test-mbscasestr1.c: Likewise.
37316         * tests/test-mbscasestr2.c: Likewise.
37317         * tests/test-mbscasestr3.c: Likewise.
37318         * tests/test-mbscasestr4.c: Likewise.
37319         * tests/test-mbschr.c: Likewise.
37320         * tests/test-mbscspn.c: Likewise.
37321         * tests/test-mbsinit.c: Likewise.
37322         * tests/test-mbsncasecmp.c: Likewise.
37323         * tests/test-mbsnrtowcs.c: Likewise.
37324         * tests/test-mbspbrk.c: Likewise.
37325         * tests/test-mbspcasecmp.c: Likewise.
37326         * tests/test-mbsrchr.c: Likewise.
37327         * tests/test-mbsrtowcs.c: Likewise.
37328         * tests/test-mbsspn.c: Likewise.
37329         * tests/test-mbsstr1.c: Likewise.
37330         * tests/test-mbsstr2.c: Likewise.
37331         * tests/test-mbsstr3.c: Likewise.
37332         * tests/test-memchr.c: Likewise.
37333         * tests/test-memchr2.c: Likewise.
37334         * tests/test-memcmp.c: Likewise.
37335         * tests/test-memmem.c: Likewise.
37336         * tests/test-memrchr.c: Likewise.
37337         * tests/test-mkdir.c: Likewise.
37338         * tests/test-mkdirat.c: Likewise.
37339         * tests/test-mkfifo.c: Likewise.
37340         * tests/test-mkfifoat.c: Likewise.
37341         * tests/test-mknod.c: Likewise.
37342         * tests/test-nanosleep.c: Likewise.
37343         * tests/test-nl_langinfo.c: Likewise.
37344         * tests/test-obstack-printf.c: Likewise.
37345         * tests/test-open.c: Likewise.
37346         * tests/test-openat.c: Likewise.
37347         * tests/test-pipe-filter-gi1.c: Likewise.
37348         * tests/test-pipe-filter-gi2-main.c: Likewise.
37349         * tests/test-pipe-filter-ii1.c: Likewise.
37350         * tests/test-pipe-filter-ii2-main.c: Likewise.
37351         * tests/test-pipe2.c: Likewise.
37352         * tests/test-popen.h: Likewise.
37353         * tests/test-posixtm.c: Likewise.
37354         * tests/test-pread.c: Likewise.
37355         * tests/test-printf-frexp.c: Likewise.
37356         * tests/test-printf-frexpl.c: Likewise.
37357         * tests/test-printf-posix.c: Likewise.
37358         * tests/test-priv-set.c: Likewise.
37359         * tests/test-quotearg.c: Likewise.
37360         * tests/test-random_r.c: Likewise.
37361         * tests/test-rawmemchr.c: Likewise.
37362         * tests/test-rbtree_list.c: Likewise.
37363         * tests/test-rbtree_oset.c: Likewise.
37364         * tests/test-rbtreehash_list.c: Likewise.
37365         * tests/test-readlink.c: Likewise.
37366         * tests/test-remove.c: Likewise.
37367         * tests/test-rename.c: Likewise.
37368         * tests/test-renameat.c: Likewise.
37369         * tests/test-rmdir.c: Likewise.
37370         * tests/test-round1.c: Likewise.
37371         * tests/test-roundf1.c: Likewise.
37372         * tests/test-roundl.c: Likewise.
37373         * tests/test-safe-alloc.c: Likewise.
37374         * tests/test-sameacls.c: Likewise.
37375         * tests/test-set-mode-acl.c: Likewise.
37376         * tests/test-setenv.c: Likewise.
37377         * tests/test-sigaction.c: Likewise.
37378         * tests/test-signbit.c: Likewise.
37379         * tests/test-sleep.c: Likewise.
37380         * tests/test-snprintf-posix.c: Likewise.
37381         * tests/test-snprintf.c: Likewise.
37382         * tests/test-sprintf-posix.c: Likewise.
37383         * tests/test-stat-time.c: Likewise.
37384         * tests/test-stat.c: Likewise.
37385         * tests/test-strcasestr.c: Likewise.
37386         * tests/test-strchrnul.c: Likewise.
37387         * tests/test-strerror.c: Likewise.
37388         * tests/test-striconv.c: Likewise.
37389         * tests/test-striconveh.c: Likewise.
37390         * tests/test-striconveha.c: Likewise.
37391         * tests/test-strsignal.c: Likewise.
37392         * tests/test-strstr.c: Likewise.
37393         * tests/test-strtod.c: Likewise.
37394         * tests/test-strverscmp.c: Likewise.
37395         * tests/test-symlink.c: Likewise.
37396         * tests/test-symlinkat.c: Likewise.
37397         * tests/test-trunc1.c: Likewise.
37398         * tests/test-trunc2.c: Likewise.
37399         * tests/test-truncf1.c: Likewise.
37400         * tests/test-truncf2.c: Likewise.
37401         * tests/test-truncl.c: Likewise.
37402         * tests/test-uname.c: Likewise.
37403         * tests/test-unlink.c: Likewise.
37404         * tests/test-unlinkat.c: Likewise.
37405         * tests/test-unsetenv.c: Likewise.
37406         * tests/test-usleep.c: Likewise.
37407         * tests/test-utimens.c: Likewise.
37408         * tests/test-utimensat.c: Likewise.
37409         * tests/test-vasnprintf-posix.c: Likewise.
37410         * tests/test-vasnprintf-posix2.c: Likewise.
37411         * tests/test-vasnprintf.c: Likewise.
37412         * tests/test-vasprintf-posix.c: Likewise.
37413         * tests/test-vasprintf.c: Likewise.
37414         * tests/test-vdprintf-posix.c: Likewise.
37415         * tests/test-vfprintf-posix.c: Likewise.
37416         * tests/test-vprintf-posix.c: Likewise.
37417         * tests/test-vsnprintf-posix.c: Likewise.
37418         * tests/test-vsnprintf.c: Likewise.
37419         * tests/test-vsprintf-posix.c: Likewise.
37420         * tests/test-wcrtomb.c: Likewise.
37421         * tests/test-wcsnrtombs.c: Likewise.
37422         * tests/test-wcsrtombs.c: Likewise.
37423         * tests/test-wctype.c: Likewise.
37424         * tests/test-wcwidth.c: Likewise.
37425         * tests/test-xfprintf-posix.c: Likewise.
37426         * tests/test-xmemdup0.c: Likewise.
37427         * tests/test-xprintf-posix.c: Likewise.
37428         * tests/test-xvasprintf.c: Likewise.
37429         * tests/unicase/test-locale-language.c: Likewise.
37430         * tests/unicase/test-mapping-part1.h: Likewise.
37431         * tests/unicase/test-predicate-part1.h: Likewise.
37432         * tests/unicase/test-u8-casecmp.c: Likewise.
37433         * tests/unicase/test-u8-casecoll.c: Likewise.
37434         * tests/unicase/test-u8-casefold.c: Likewise.
37435         * tests/unicase/test-u8-is-cased.c: Likewise.
37436         * tests/unicase/test-u8-is-casefolded.c: Likewise.
37437         * tests/unicase/test-u8-is-lowercase.c: Likewise.
37438         * tests/unicase/test-u8-is-titlecase.c: Likewise.
37439         * tests/unicase/test-u8-is-uppercase.c: Likewise.
37440         * tests/unicase/test-u8-tolower.c: Likewise.
37441         * tests/unicase/test-u8-totitle.c: Likewise.
37442         * tests/unicase/test-u8-toupper.c: Likewise.
37443         * tests/unicase/test-u16-casecmp.c: Likewise.
37444         * tests/unicase/test-u16-casecoll.c: Likewise.
37445         * tests/unicase/test-u16-casefold.c: Likewise.
37446         * tests/unicase/test-u16-is-cased.c: Likewise.
37447         * tests/unicase/test-u16-is-casefolded.c: Likewise.
37448         * tests/unicase/test-u16-is-lowercase.c: Likewise.
37449         * tests/unicase/test-u16-is-titlecase.c: Likewise.
37450         * tests/unicase/test-u16-is-uppercase.c: Likewise.
37451         * tests/unicase/test-u16-tolower.c: Likewise.
37452         * tests/unicase/test-u16-totitle.c: Likewise.
37453         * tests/unicase/test-u16-toupper.c: Likewise.
37454         * tests/unicase/test-u32-casecmp.c: Likewise.
37455         * tests/unicase/test-u32-casecoll.c: Likewise.
37456         * tests/unicase/test-u32-casefold.c: Likewise.
37457         * tests/unicase/test-u32-is-cased.c: Likewise.
37458         * tests/unicase/test-u32-is-casefolded.c: Likewise.
37459         * tests/unicase/test-u32-is-lowercase.c: Likewise.
37460         * tests/unicase/test-u32-is-titlecase.c: Likewise.
37461         * tests/unicase/test-u32-is-uppercase.c: Likewise.
37462         * tests/unicase/test-u32-tolower.c: Likewise.
37463         * tests/unicase/test-u32-totitle.c: Likewise.
37464         * tests/unicase/test-u32-toupper.c: Likewise.
37465         * tests/unicase/test-ulc-casecmp.c: Likewise.
37466         * tests/unicase/test-ulc-casecoll.c: Likewise.
37467         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37468         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
37469         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37470         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37471         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
37472         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
37473         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37474         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37475         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37476         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
37477         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37478         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37479         * tests/unictype/test-bidi_byname.c: Likewise.
37480         * tests/unictype/test-bidi_name.c: Likewise.
37481         * tests/unictype/test-bidi_of.c: Likewise.
37482         * tests/unictype/test-bidi_test.c: Likewise.
37483         * tests/unictype/test-block_list.c: Likewise.
37484         * tests/unictype/test-block_of.c: Likewise.
37485         * tests/unictype/test-block_test.c: Likewise.
37486         * tests/unictype/test-categ_and.c: Likewise.
37487         * tests/unictype/test-categ_and_not.c: Likewise.
37488         * tests/unictype/test-categ_byname.c: Likewise.
37489         * tests/unictype/test-categ_name.c: Likewise.
37490         * tests/unictype/test-categ_none.c: Likewise.
37491         * tests/unictype/test-categ_of.c: Likewise.
37492         * tests/unictype/test-categ_or.c: Likewise.
37493         * tests/unictype/test-categ_test_withtable.c: Likewise.
37494         * tests/unictype/test-combining.c: Likewise.
37495         * tests/unictype/test-decdigit.c: Likewise.
37496         * tests/unictype/test-digit.c: Likewise.
37497         * tests/unictype/test-mirror.c: Likewise.
37498         * tests/unictype/test-numeric.c: Likewise.
37499         * tests/unictype/test-pr_byname.c: Likewise.
37500         * tests/unictype/test-pr_test.c: Likewise.
37501         * tests/unictype/test-predicate-part1.h: Likewise.
37502         * tests/unictype/test-scripts.c: Likewise.
37503         * tests/unictype/test-sy_c_ident.c: Likewise.
37504         * tests/unictype/test-sy_java_ident.c: Likewise.
37505         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
37506         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
37507         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
37508         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
37509         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
37510         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
37511         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
37512         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
37513         * tests/uninorm/test-canonical-decomposition.c: Likewise.
37514         * tests/uninorm/test-compat-decomposition.c: Likewise.
37515         * tests/uninorm/test-composition.c: Likewise.
37516         * tests/uninorm/test-decomposing-form.c: Likewise.
37517         * tests/uninorm/test-decomposition.c: Likewise.
37518         * tests/uninorm/test-u8-nfc.c: Likewise.
37519         * tests/uninorm/test-u8-nfd.c: Likewise.
37520         * tests/uninorm/test-u8-nfkc.c: Likewise.
37521         * tests/uninorm/test-u8-nfkd.c: Likewise.
37522         * tests/uninorm/test-u8-normcmp.c: Likewise.
37523         * tests/uninorm/test-u8-normcoll.c: Likewise.
37524         * tests/uninorm/test-u16-nfc.c: Likewise.
37525         * tests/uninorm/test-u16-nfd.c: Likewise.
37526         * tests/uninorm/test-u16-nfkc.c: Likewise.
37527         * tests/uninorm/test-u16-nfkd.c: Likewise.
37528         * tests/uninorm/test-u16-normcmp.c: Likewise.
37529         * tests/uninorm/test-u16-normcoll.c: Likewise.
37530         * tests/uninorm/test-u32-nfc.c: Likewise.
37531         * tests/uninorm/test-u32-nfd.c: Likewise.
37532         * tests/uninorm/test-u32-nfkc.c: Likewise.
37533         * tests/uninorm/test-u32-nfkd.c: Likewise.
37534         * tests/uninorm/test-u32-normalize-big.c: Likewise.
37535         * tests/uninorm/test-u32-normcmp.c: Likewise.
37536         * tests/uninorm/test-u32-normcoll.c: Likewise.
37537         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
37538         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
37539         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
37540         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
37541         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
37542         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
37543         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
37544         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
37545         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
37546         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
37547         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
37548         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
37549         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
37550         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
37551         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
37552         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
37553         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
37554         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
37555         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
37556         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
37557         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
37558         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
37559         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
37560         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
37561         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
37562         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
37563         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
37564         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
37565         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
37566         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
37567         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
37568         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
37569         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
37570         * tests/uniwidth/test-u8-strwidth.c: Likewise.
37571         * tests/uniwidth/test-u8-width.c: Likewise.
37572         * tests/uniwidth/test-u16-strwidth.c: Likewise.
37573         * tests/uniwidth/test-u16-width.c: Likewise.
37574         * tests/uniwidth/test-u32-strwidth.c: Likewise.
37575         * tests/uniwidth/test-u32-width.c: Likewise.
37576         * tests/uniwidth/test-uc_width.c: Likewise.
37577         * tests/uniwidth/test-uc_width2.c: Likewise.
37578         * modules/acl-tests (Files): Add tests/macros.h.
37579         * modules/areadlink-tests (Files): Likewise.
37580         * modules/areadlink-with-size-tests (Files): Likewise.
37581         * modules/areadlinkat-tests (Files): Likewise.
37582         * modules/areadlinkat-with-size-tests (Files): Likewise.
37583         * modules/argmatch-tests (Files): Likewise.
37584         * modules/argv-iter-tests (Files): Likewise.
37585         * modules/array-list-tests (Files): Likewise.
37586         * modules/array-mergesort-tests (Files): Likewise.
37587         * modules/array-oset-tests (Files): Likewise.
37588         * modules/avltree-list-tests (Files): Likewise.
37589         * modules/avltree-oset-tests (Files): Likewise.
37590         * modules/avltreehash-list-tests (Files): Likewise.
37591         * modules/base64-tests (Files): Likewise.
37592         * modules/binary-io-tests (Files): Likewise.
37593         * modules/bitrotate-tests (Files): Likewise.
37594         * modules/btowc-tests (Files): Likewise.
37595         * modules/byteswap-tests (Files): Likewise.
37596         * modules/c-ctype-tests (Files): Likewise.
37597         * modules/c-stack-tests (Files): Likewise.
37598         * modules/c-strcase-tests (Files): Likewise.
37599         * modules/c-strcasestr-tests (Files): Likewise.
37600         * modules/c-strstr-tests (Files): Likewise.
37601         * modules/canonicalize-lgpl-tests (Files): Likewise.
37602         * modules/canonicalize-tests (Files): Likewise.
37603         * modules/carray-list-tests (Files): Likewise.
37604         * modules/ceilf-tests (Files): Likewise.
37605         * modules/ceill-tests (Files): Likewise.
37606         * modules/chown-tests (Files): Likewise.
37607         * modules/cloexec-tests (Files): Likewise.
37608         * modules/copy-file-tests (Files): Likewise.
37609         * modules/count-one-bits-tests (Files): Likewise.
37610         * modules/dprintf-posix-tests (Files): Likewise.
37611         * modules/dup2-tests (Files): Likewise.
37612         * modules/dup3-tests (Files): Likewise.
37613         * modules/duplocale-tests (Files): Likewise.
37614         * modules/fbufmode-tests (Files): Likewise.
37615         * modules/fchdir-tests (Files): Likewise.
37616         * modules/fcntl-safer-tests (Files): Likewise.
37617         * modules/fcntl-tests (Files): Likewise.
37618         * modules/fdopendir-tests (Files): Likewise.
37619         * modules/fdutimensat-tests (Files): Likewise.
37620         * modules/fflush-tests (Files): Likewise.
37621         * modules/filevercmp-tests (Files): Likewise.
37622         * modules/flock-tests (Files): Likewise.
37623         * modules/floorf-tests (Files): Likewise.
37624         * modules/floorl-tests (Files): Likewise.
37625         * modules/fnmatch-tests (Files): Likewise.
37626         * modules/fopen-safer-tests (Files): Likewise.
37627         * modules/fopen-tests (Files): Likewise.
37628         * modules/fpending-tests (Files): Likewise.
37629         * modules/fprintf-posix-tests (Files): Likewise.
37630         * modules/fpurge-tests (Files): Likewise.
37631         * modules/freadable-tests (Files): Likewise.
37632         * modules/freadahead-tests (Files): Likewise.
37633         * modules/freading-tests (Files): Likewise.
37634         * modules/freadptr-tests (Files): Likewise.
37635         * modules/freadseek-tests (Files): Likewise.
37636         * modules/freopen-tests (Files): Likewise.
37637         * modules/frexp-nolibm-tests (Files): Likewise.
37638         * modules/frexp-tests (Files): Likewise.
37639         * modules/frexpl-nolibm-tests (Files): Likewise.
37640         * modules/frexpl-tests (Files): Likewise.
37641         * modules/fseek-tests (Files): Likewise.
37642         * modules/fseeko-tests (Files): Likewise.
37643         * modules/fstrcmp-tests (Files): Likewise.
37644         * modules/fsync-tests (Files): Likewise.
37645         * modules/ftell-tests (Files): Likewise.
37646         * modules/ftello-tests (Files): Likewise.
37647         * modules/func-tests (Files): Likewise.
37648         * modules/futimens-tests (Files): Likewise.
37649         * modules/fwritable-tests (Files): Likewise.
37650         * modules/fwriting-tests (Files): Likewise.
37651         * modules/getcwd-tests (Files): Likewise.
37652         * modules/getdate-tests (Files): Likewise.
37653         * modules/getdelim-tests (Files): Likewise.
37654         * modules/getdtablesize-tests (Files): Likewise.
37655         * modules/getgroups-tests (Files): Likewise.
37656         * modules/getline-tests (Files): Likewise.
37657         * modules/getndelim2-tests (Files): Likewise.
37658         * modules/glob-tests (Files): Likewise.
37659         * modules/hash-tests (Files): Likewise.
37660         * modules/i-ring-tests (Files): Likewise.
37661         * modules/iconv-tests (Files): Likewise.
37662         * modules/iconv_open-utf-tests (Files): Likewise.
37663         * modules/idpriv-drop-tests (Files): Likewise.
37664         * modules/idpriv-droptemp-tests (Files): Likewise.
37665         * modules/inet_ntop-tests (Files): Likewise.
37666         * modules/inet_pton-tests (Files): Likewise.
37667         * modules/isblank-tests (Files): Likewise.
37668         * modules/isfinite-tests (Files): Likewise.
37669         * modules/isinf-tests (Files): Likewise.
37670         * modules/isnan-tests (Files): Likewise.
37671         * modules/isnand-nolibm-tests (Files): Likewise.
37672         * modules/isnand-tests (Files): Likewise.
37673         * modules/isnanf-nolibm-tests (Files): Likewise.
37674         * modules/isnanf-tests (Files): Likewise.
37675         * modules/isnanl-nolibm-tests (Files): Likewise.
37676         * modules/isnanl-tests (Files): Likewise.
37677         * modules/lchown-tests (Files): Likewise.
37678         * modules/ldexpl-tests (Files): Likewise.
37679         * modules/link-tests (Files): Likewise.
37680         * modules/linkat-tests (Files): Likewise.
37681         * modules/linked-list-tests (Files): Likewise.
37682         * modules/linkedhash-list-tests (Files): Likewise.
37683         * modules/localename-tests (Files): Likewise.
37684         * modules/lseek-tests (Files): Likewise.
37685         * modules/lstat-tests (Files): Likewise.
37686         * modules/mbmemcasecmp-tests (Files): Likewise.
37687         * modules/mbmemcasecoll-tests (Files): Likewise.
37688         * modules/mbrtowc-tests (Files): Likewise.
37689         * modules/mbscasecmp-tests (Files): Likewise.
37690         * modules/mbscasestr-tests (Files): Likewise.
37691         * modules/mbschr-tests (Files): Likewise.
37692         * modules/mbscspn-tests (Files): Likewise.
37693         * modules/mbsinit-tests (Files): Likewise.
37694         * modules/mbsncasecmp-tests (Files): Likewise.
37695         * modules/mbsnrtowcs-tests (Files): Likewise.
37696         * modules/mbspbrk-tests (Files): Likewise.
37697         * modules/mbspcasecmp-tests (Files): Likewise.
37698         * modules/mbsrchr-tests (Files): Likewise.
37699         * modules/mbsrtowcs-tests (Files): Likewise.
37700         * modules/mbsspn-tests (Files): Likewise.
37701         * modules/mbsstr-tests (Files): Likewise.
37702         * modules/memchr-tests (Files): Likewise.
37703         * modules/memchr2-tests (Files): Likewise.
37704         * modules/memcmp-tests (Files): Likewise.
37705         * modules/memmem-tests (Files): Likewise.
37706         * modules/memrchr-tests (Files): Likewise.
37707         * modules/mkdir-tests (Files): Likewise.
37708         * modules/mkfifo-tests (Files): Likewise.
37709         * modules/mkfifoat-tests (Files): Likewise.
37710         * modules/mknod-tests (Files): Likewise.
37711         * modules/nanosleep-tests (Files): Likewise.
37712         * modules/nl_langinfo-tests (Files): Likewise.
37713         * modules/obstack-printf-tests (Files): Likewise.
37714         * modules/open-tests (Files): Likewise.
37715         * modules/openat-tests (Files): Likewise.
37716         * modules/pipe-filter-gi-tests (Files): Likewise.
37717         * modules/pipe-filter-ii-tests (Files): Likewise.
37718         * modules/pipe2-tests (Files): Likewise.
37719         * modules/popen-safer-tests (Files): Likewise.
37720         * modules/popen-tests (Files): Likewise.
37721         * modules/posixtm-tests (Files): Likewise.
37722         * modules/pread-tests (Files): Likewise.
37723         * modules/printf-frexp-tests (Files): Likewise.
37724         * modules/printf-frexpl-tests (Files): Likewise.
37725         * modules/printf-posix-tests (Files): Likewise.
37726         * modules/priv-set-tests (Files): Likewise.
37727         * modules/quotearg-tests (Files): Likewise.
37728         * modules/random_r-tests (Files): Likewise.
37729         * modules/rawmemchr-tests (Files): Likewise.
37730         * modules/rbtree-list-tests (Files): Likewise.
37731         * modules/rbtree-oset-tests (Files): Likewise.
37732         * modules/rbtreehash-list-tests (Files): Likewise.
37733         * modules/readlink-tests (Files): Likewise.
37734         * modules/remove-tests (Files): Likewise.
37735         * modules/rename-tests (Files): Likewise.
37736         * modules/renameat-tests (Files): Likewise.
37737         * modules/rmdir-tests (Files): Likewise.
37738         * modules/round-tests (Files): Likewise.
37739         * modules/roundf-tests (Files): Likewise.
37740         * modules/roundl-tests (Files): Likewise.
37741         * modules/safe-alloc-tests (Files): Likewise.
37742         * modules/setenv-tests (Files): Likewise.
37743         * modules/sigaction-tests (Files): Likewise.
37744         * modules/signbit-tests (Files): Likewise.
37745         * modules/sleep-tests (Files): Likewise.
37746         * modules/snprintf-posix-tests (Files): Likewise.
37747         * modules/snprintf-tests (Files): Likewise.
37748         * modules/sprintf-posix-tests (Files): Likewise.
37749         * modules/stat-tests (Files): Likewise.
37750         * modules/stat-time-tests (Files): Likewise.
37751         * modules/strcasestr-tests (Files): Likewise.
37752         * modules/strchrnul-tests (Files): Likewise.
37753         * modules/strerror-tests (Files): Likewise.
37754         * modules/striconv-tests (Files): Likewise.
37755         * modules/striconveh-tests (Files): Likewise.
37756         * modules/striconveha-tests (Files): Likewise.
37757         * modules/strsignal-tests (Files): Likewise.
37758         * modules/strstr-tests (Files): Likewise.
37759         * modules/strtod-tests (Files): Likewise.
37760         * modules/strverscmp-tests (Files): Likewise.
37761         * modules/symlink-tests (Files): Likewise.
37762         * modules/symlinkat-tests (Files): Likewise.
37763         * modules/trunc-tests (Files): Likewise.
37764         * modules/truncf-tests (Files): Likewise.
37765         * modules/truncl-tests (Files): Likewise.
37766         * modules/uname-tests (Files): Likewise.
37767         * modules/unicase/cased-tests (Files): Likewise.
37768         * modules/unicase/ignorable-tests (Files): Likewise.
37769         * modules/unicase/locale-language-tests (Files): Likewise.
37770         * modules/unicase/tolower-tests (Files): Likewise.
37771         * modules/unicase/totitle-tests (Files): Likewise.
37772         * modules/unicase/toupper-tests (Files): Likewise.
37773         * modules/unicase/u8-casecmp-tests (Files): Likewise.
37774         * modules/unicase/u8-casecoll-tests (Files): Likewise.
37775         * modules/unicase/u8-casefold-tests (Files): Likewise.
37776         * modules/unicase/u8-is-cased-tests (Files): Likewise.
37777         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
37778         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
37779         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
37780         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
37781         * modules/unicase/u8-tolower-tests (Files): Likewise.
37782         * modules/unicase/u8-totitle-tests (Files): Likewise.
37783         * modules/unicase/u8-toupper-tests (Files): Likewise.
37784         * modules/unicase/u16-casecmp-tests (Files): Likewise.
37785         * modules/unicase/u16-casecoll-tests (Files): Likewise.
37786         * modules/unicase/u16-casefold-tests (Files): Likewise.
37787         * modules/unicase/u16-is-cased-tests (Files): Likewise.
37788         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
37789         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
37790         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
37791         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
37792         * modules/unicase/u16-tolower-tests (Files): Likewise.
37793         * modules/unicase/u16-totitle-tests (Files): Likewise.
37794         * modules/unicase/u16-toupper-tests (Files): Likewise.
37795         * modules/unicase/u32-casecmp-tests (Files): Likewise.
37796         * modules/unicase/u32-casecoll-tests (Files): Likewise.
37797         * modules/unicase/u32-casefold-tests (Files): Likewise.
37798         * modules/unicase/u32-is-cased-tests (Files): Likewise.
37799         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
37800         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
37801         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
37802         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
37803         * modules/unicase/u32-tolower-tests (Files): Likewise.
37804         * modules/unicase/u32-totitle-tests (Files): Likewise.
37805         * modules/unicase/u32-toupper-tests (Files): Likewise.
37806         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
37807         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
37808         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
37809         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
37810         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
37811         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
37812         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
37813         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
37814         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
37815         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
37816         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
37817         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
37818         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
37819         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
37820         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
37821         * modules/unictype/bidicategory-name-tests (Files): Likewise.
37822         * modules/unictype/bidicategory-of-tests (Files): Likewise.
37823         * modules/unictype/bidicategory-test-tests (Files): Likewise.
37824         * modules/unictype/block-list-tests (Files): Likewise.
37825         * modules/unictype/block-of-tests (Files): Likewise.
37826         * modules/unictype/block-test-tests (Files): Likewise.
37827         * modules/unictype/category-C-tests (Files): Likewise.
37828         * modules/unictype/category-Cc-tests (Files): Likewise.
37829         * modules/unictype/category-Cf-tests (Files): Likewise.
37830         * modules/unictype/category-Cn-tests (Files): Likewise.
37831         * modules/unictype/category-Co-tests (Files): Likewise.
37832         * modules/unictype/category-Cs-tests (Files): Likewise.
37833         * modules/unictype/category-L-tests (Files): Likewise.
37834         * modules/unictype/category-Ll-tests (Files): Likewise.
37835         * modules/unictype/category-Lm-tests (Files): Likewise.
37836         * modules/unictype/category-Lo-tests (Files): Likewise.
37837         * modules/unictype/category-Lt-tests (Files): Likewise.
37838         * modules/unictype/category-Lu-tests (Files): Likewise.
37839         * modules/unictype/category-M-tests (Files): Likewise.
37840         * modules/unictype/category-Mc-tests (Files): Likewise.
37841         * modules/unictype/category-Me-tests (Files): Likewise.
37842         * modules/unictype/category-Mn-tests (Files): Likewise.
37843         * modules/unictype/category-N-tests (Files): Likewise.
37844         * modules/unictype/category-Nd-tests (Files): Likewise.
37845         * modules/unictype/category-Nl-tests (Files): Likewise.
37846         * modules/unictype/category-No-tests (Files): Likewise.
37847         * modules/unictype/category-P-tests (Files): Likewise.
37848         * modules/unictype/category-Pc-tests (Files): Likewise.
37849         * modules/unictype/category-Pd-tests (Files): Likewise.
37850         * modules/unictype/category-Pe-tests (Files): Likewise.
37851         * modules/unictype/category-Pf-tests (Files): Likewise.
37852         * modules/unictype/category-Pi-tests (Files): Likewise.
37853         * modules/unictype/category-Po-tests (Files): Likewise.
37854         * modules/unictype/category-Ps-tests (Files): Likewise.
37855         * modules/unictype/category-S-tests (Files): Likewise.
37856         * modules/unictype/category-Sc-tests (Files): Likewise.
37857         * modules/unictype/category-Sk-tests (Files): Likewise.
37858         * modules/unictype/category-Sm-tests (Files): Likewise.
37859         * modules/unictype/category-So-tests (Files): Likewise.
37860         * modules/unictype/category-Z-tests (Files): Likewise.
37861         * modules/unictype/category-Zl-tests (Files): Likewise.
37862         * modules/unictype/category-Zp-tests (Files): Likewise.
37863         * modules/unictype/category-Zs-tests (Files): Likewise.
37864         * modules/unictype/category-and-not-tests (Files): Likewise.
37865         * modules/unictype/category-and-tests (Files): Likewise.
37866         * modules/unictype/category-byname-tests (Files): Likewise.
37867         * modules/unictype/category-name-tests (Files): Likewise.
37868         * modules/unictype/category-none-tests (Files): Likewise.
37869         * modules/unictype/category-of-tests (Files): Likewise.
37870         * modules/unictype/category-or-tests (Files): Likewise.
37871         * modules/unictype/category-test-withtable-tests (Files): Likewise.
37872         * modules/unictype/combining-class-tests (Files): Likewise.
37873         * modules/unictype/ctype-alnum-tests (Files): Likewise.
37874         * modules/unictype/ctype-alpha-tests (Files): Likewise.
37875         * modules/unictype/ctype-blank-tests (Files): Likewise.
37876         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
37877         * modules/unictype/ctype-digit-tests (Files): Likewise.
37878         * modules/unictype/ctype-graph-tests (Files): Likewise.
37879         * modules/unictype/ctype-lower-tests (Files): Likewise.
37880         * modules/unictype/ctype-print-tests (Files): Likewise.
37881         * modules/unictype/ctype-punct-tests (Files): Likewise.
37882         * modules/unictype/ctype-space-tests (Files): Likewise.
37883         * modules/unictype/ctype-upper-tests (Files): Likewise.
37884         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
37885         * modules/unictype/decimal-digit-tests (Files): Likewise.
37886         * modules/unictype/digit-tests (Files): Likewise.
37887         * modules/unictype/mirror-tests (Files): Likewise.
37888         * modules/unictype/numeric-tests (Files): Likewise.
37889         * modules/unictype/property-alphabetic-tests (Files): Likewise.
37890         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
37891         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
37892         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
37893         Likewise.
37894         * modules/unictype/property-bidi-block-separator-tests (Files):
37895         Likewise.
37896         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
37897         Likewise.
37898         * modules/unictype/property-bidi-common-separator-tests (Files):
37899         Likewise.
37900         * modules/unictype/property-bidi-control-tests (Files): Likewise.
37901         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
37902         Likewise.
37903         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
37904         Likewise.
37905         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
37906         Likewise.
37907         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
37908         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
37909         Likewise.
37910         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
37911         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
37912         Likewise.
37913         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
37914         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
37915         * modules/unictype/property-bidi-segment-separator-tests (Files):
37916         Likewise.
37917         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
37918         * modules/unictype/property-byname-tests (Files): Likewise.
37919         * modules/unictype/property-combining-tests (Files): Likewise.
37920         * modules/unictype/property-composite-tests (Files): Likewise.
37921         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
37922         * modules/unictype/property-dash-tests (Files): Likewise.
37923         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
37924         * modules/unictype/property-default-ignorable-code-point-tests (Files):
37925         Likewise.
37926         * modules/unictype/property-deprecated-tests (Files): Likewise.
37927         * modules/unictype/property-diacritic-tests (Files): Likewise.
37928         * modules/unictype/property-extender-tests (Files): Likewise.
37929         * modules/unictype/property-format-control-tests (Files): Likewise.
37930         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
37931         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
37932         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
37933         * modules/unictype/property-hex-digit-tests (Files): Likewise.
37934         * modules/unictype/property-hyphen-tests (Files): Likewise.
37935         * modules/unictype/property-id-continue-tests (Files): Likewise.
37936         * modules/unictype/property-id-start-tests (Files): Likewise.
37937         * modules/unictype/property-ideographic-tests (Files): Likewise.
37938         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
37939         * modules/unictype/property-ids-trinary-operator-tests (Files):
37940         Likewise.
37941         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
37942         * modules/unictype/property-iso-control-tests (Files): Likewise.
37943         * modules/unictype/property-join-control-tests (Files): Likewise.
37944         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
37945         * modules/unictype/property-line-separator-tests (Files): Likewise.
37946         * modules/unictype/property-logical-order-exception-tests (Files):
37947         Likewise.
37948         * modules/unictype/property-lowercase-tests (Files): Likewise.
37949         * modules/unictype/property-math-tests (Files): Likewise.
37950         * modules/unictype/property-non-break-tests (Files): Likewise.
37951         * modules/unictype/property-not-a-character-tests (Files): Likewise.
37952         * modules/unictype/property-numeric-tests (Files): Likewise.
37953         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
37954         * modules/unictype/property-other-default-ignorable-code-point-tests
37955         (Files): Likewise.
37956         * modules/unictype/property-other-grapheme-extend-tests (Files):
37957         Likewise.
37958         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
37959         * modules/unictype/property-other-id-start-tests (Files): Likewise.
37960         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
37961         * modules/unictype/property-other-math-tests (Files): Likewise.
37962         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
37963         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
37964         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
37965         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
37966         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
37967         * modules/unictype/property-private-use-tests (Files): Likewise.
37968         * modules/unictype/property-punctuation-tests (Files): Likewise.
37969         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
37970         * modules/unictype/property-radical-tests (Files): Likewise.
37971         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
37972         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
37973         * modules/unictype/property-space-tests (Files): Likewise.
37974         * modules/unictype/property-terminal-punctuation-tests (Files):
37975         Likewise.
37976         * modules/unictype/property-test-tests (Files): Likewise.
37977         * modules/unictype/property-titlecase-tests (Files): Likewise.
37978         * modules/unictype/property-unassigned-code-value-tests (Files):
37979         Likewise.
37980         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
37981         * modules/unictype/property-uppercase-tests (Files): Likewise.
37982         * modules/unictype/property-variation-selector-tests (Files): Likewise.
37983         * modules/unictype/property-white-space-tests (Files): Likewise.
37984         * modules/unictype/property-xid-continue-tests (Files): Likewise.
37985         * modules/unictype/property-xid-start-tests (Files): Likewise.
37986         * modules/unictype/property-zero-width-tests (Files): Likewise.
37987         * modules/unictype/scripts-tests (Files): Likewise.
37988         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
37989         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
37990         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
37991         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
37992         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
37993         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
37994         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
37995         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
37996         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
37997         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
37998         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
37999         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
38000         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
38001         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
38002         * modules/uninorm/composition-tests (Files): Likewise.
38003         * modules/uninorm/decomposing-form-tests (Files): Likewise.
38004         * modules/uninorm/decomposition-tests (Files): Likewise.
38005         * modules/uninorm/filter-tests (Files): Likewise.
38006         * modules/uninorm/nfc-tests (Files): Likewise.
38007         * modules/uninorm/nfd-tests (Files): Likewise.
38008         * modules/uninorm/nfkc-tests (Files): Likewise.
38009         * modules/uninorm/nfkd-tests (Files): Likewise.
38010         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
38011         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
38012         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
38013         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
38014         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
38015         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
38016         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
38017         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
38018         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
38019         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
38020         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
38021         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
38022         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
38023         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
38024         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
38025         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
38026         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
38027         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
38028         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
38029         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
38030         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
38031         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
38032         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
38033         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
38034         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
38035         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
38036         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
38037         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
38038         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
38039         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
38040         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
38041         * modules/uniwidth/u8-width-tests (Files): Likewise.
38042         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
38043         * modules/uniwidth/u16-width-tests (Files): Likewise.
38044         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
38045         * modules/uniwidth/u32-width-tests (Files): Likewise.
38046         * modules/uniwidth/width-tests (Files): Likewise.
38047         * modules/unlink-tests (Files): Likewise.
38048         * modules/unsetenv-tests (Files): Likewise.
38049         * modules/usleep-tests (Files): Likewise.
38050         * modules/utimens-tests (Files): Likewise.
38051         * modules/utimensat-tests (Files): Likewise.
38052         * modules/vasnprintf-posix-tests (Files): Likewise.
38053         * modules/vasnprintf-tests (Files): Likewise.
38054         * modules/vasprintf-posix-tests (Files): Likewise.
38055         * modules/vasprintf-tests (Files): Likewise.
38056         * modules/vdprintf-posix-tests (Files): Likewise.
38057         * modules/vfprintf-posix-tests (Files): Likewise.
38058         * modules/vprintf-posix-tests (Files): Likewise.
38059         * modules/vsnprintf-posix-tests (Files): Likewise.
38060         * modules/vsnprintf-tests (Files): Likewise.
38061         * modules/vsprintf-posix-tests (Files): Likewise.
38062         * modules/wcrtomb-tests (Files): Likewise.
38063         * modules/wcsnrtombs-tests (Files): Likewise.
38064         * modules/wcsrtombs-tests (Files): Likewise.
38065         * modules/wctype-tests (Files): Likewise.
38066         * modules/wcwidth-tests (Files): Likewise.
38067         * modules/xmemdup0-tests (Files): Likewise.
38068         * modules/xprintf-posix-tests (Files): Likewise.
38069         * modules/xvasprintf-tests (Files): Likewise.
38070
38071 2009-12-24  Eric Blake  <ebb9@byu.net>
38072
38073         test-nanosleep: fix typo
38074         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
38075         patch.
38076         Reported by Bruno Haible.
38077
38078 2009-12-24  Bruno Haible  <bruno@clisp.org>
38079
38080         Reduce namespace pollution on glibc systems.
38081         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
38082         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
38083         systems.
38084         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
38085         <getopt.h> on glibc systems.
38086         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
38087         systems.
38088         * lib/fcntl.c: Include <unistd.h> here instead.
38089
38090 2009-12-24  Bruno Haible  <bruno@clisp.org>
38091
38092         * lib/stdlib.in.h (includes): Fix typo in today's commit.
38093
38094 2009-12-24  Eric Blake  <ebb9@byu.net>
38095
38096         tests: add signature checks
38097         * tests/signature.h (SIGNATURE_CHECK): New file.
38098         * modules/atexit-tests (Files): Use it.
38099         * modules/btowc-tests (Files): Likewise.
38100         * modules/canonicalize-lgpl-tests (Files): Likewise.
38101         * modules/ceilf-tests (Files): Likewise.
38102         * modules/ceill-tests (Files): Likewise.
38103         * modules/chown-tests (Files): Likewise.
38104         * modules/dprintf-posix-tests (Files): Likewise.
38105         * modules/dup2-tests (Files): Likewise.
38106         * modules/dup3-tests (Files): Likewise.
38107         * modules/duplocale-tests (Files): Likewise.
38108         * modules/fchdir-tests (Files): Likewise.
38109         * modules/fcntl-tests (Files): Likewise.
38110         * modules/fdopendir-tests (Files): Likewise.
38111         * modules/fflush-tests (Files): Likewise.
38112         * modules/flock-tests (Files): Likewise.
38113         * modules/floorf-tests (Files): Likewise.
38114         * modules/floorl-tests (Files): Likewise.
38115         * modules/fnmatch-tests (Files): Likewise.
38116         * modules/fopen-tests (Files): Likewise.
38117         * modules/fprintf-posix-tests (Files): Likewise.
38118         * modules/freopen-tests (Files): Likewise.
38119         * modules/frexp-nolibm-tests (Files): Likewise.
38120         * modules/frexp-tests (Files): Likewise.
38121         * modules/frexpl-nolibm-tests (Files): Likewise.
38122         * modules/frexpl-tests (Files): Likewise.
38123         * modules/fseek-tests (Files): Likewise.
38124         * modules/fseeko-tests (Files): Likewise.
38125         * modules/fsync-tests (Files): Likewise.
38126         * modules/ftell-tests (Files): Likewise.
38127         * modules/ftello-tests (Files): Likewise.
38128         * modules/futimens-tests (Files): Likewise.
38129         * modules/getaddrinfo-tests (Files): Likewise.
38130         * modules/getcwd-tests (Files): Likewise.
38131         * modules/getdelim-tests (Files): Likewise.
38132         * modules/getdtablesize-tests (Files): Likewise.
38133         * modules/getgroups-tests (Files): Likewise.
38134         * modules/gethostname-tests (Files): Likewise.
38135         * modules/getline-tests (Files): Likewise.
38136         * modules/getopt-posix-tests (Files): Likewise.
38137         * modules/gettimeofday-tests (Files): Likewise.
38138         * modules/glob-tests (Files): Likewise.
38139         * modules/iconv-tests (Files): Likewise.
38140         * modules/inet_ntop-tests (Files): Likewise.
38141         * modules/inet_pton-tests (Files): Likewise.
38142         * modules/isblank-tests (Files): Likewise.
38143         * modules/lchown-tests (Files): Likewise.
38144         * modules/ldexpl-tests (Files): Likewise.
38145         * modules/link-tests (Files): Likewise.
38146         * modules/linkat-tests (Files): Likewise.
38147         * modules/lseek-tests (Files): Likewise.
38148         * modules/lstat-tests (Files): Likewise.
38149         * modules/mbrtowc-tests (Files): Likewise.
38150         * modules/mbsinit-tests (Files): Likewise.
38151         * modules/mbsnrtowcs-tests (Files): Likewise.
38152         * modules/mbsrtowcs-tests (Files): Likewise.
38153         * modules/memchr-tests (Files): Likewise.
38154         * modules/memcmp-tests (Files): Likewise.
38155         * modules/memmem-tests (Files): Likewise.
38156         * modules/memrchr-tests (Files): Likewise.
38157         * modules/mkdir-tests (Files): Likewise.
38158         * modules/mkfifo-tests (Files): Likewise.
38159         * modules/mkfifoat-tests (Files): Likewise.
38160         * modules/mknod-tests (Files): Likewise.
38161         * modules/nanosleep-tests (Files): Likewise.
38162         * modules/nl_langinfo-tests (Files): Likewise.
38163         * modules/obstack-printf-tests (Files): Likewise.
38164         * modules/open-tests (Files): Likewise.
38165         * modules/openat-tests (Files): Likewise.
38166         * modules/perror-tests (Files): Likewise.
38167         * modules/pipe2-tests (Files): Likewise.
38168         * modules/poll-tests (Files): Likewise.
38169         * modules/popen-tests (Files): Likewise.
38170         * modules/posix_spawn-tests (Files): Likewise.
38171         * modules/posix_spawnp-tests (Files): Likewise.
38172         * modules/pread-tests (Files): Likewise.
38173         * modules/printf-posix-tests (Files): Likewise.
38174         * modules/pty-tests (Files): Likewise.
38175         * modules/random_r-tests (Files): Likewise.
38176         * modules/rawmemchr-tests (Files): Likewise.
38177         * modules/readlink-tests (Files): Likewise.
38178         * modules/remove-tests (Files): Likewise.
38179         * modules/rename-tests (Files): Likewise.
38180         * modules/renameat-tests (Files): Likewise.
38181         * modules/rmdir-tests (Files): Likewise.
38182         * modules/round-tests (Files): Likewise.
38183         * modules/roundf-tests (Files): Likewise.
38184         * modules/roundl-tests (Files): Likewise.
38185         * modules/select-tests (Files): Likewise.
38186         * modules/setenv-tests (Files): Likewise.
38187         * modules/sigaction-tests (Files): Likewise.
38188         * modules/sleep-tests (Files): Likewise.
38189         * modules/snprintf-posix-tests (Files): Likewise.
38190         * modules/snprintf-tests (Files): Likewise.
38191         * modules/sprintf-posix-tests (Files): Likewise.
38192         * modules/stat-tests (Files): Likewise.
38193         * modules/strcasestr-tests (Files): Likewise.
38194         * modules/strchrnul-tests (Files): Likewise.
38195         * modules/strerror-tests (Files): Likewise.
38196         * modules/strsignal-tests (Files): Likewise.
38197         * modules/strstr-tests (Files): Likewise.
38198         * modules/strtod-tests (Files): Likewise.
38199         * modules/strverscmp-tests (Files): Likewise.
38200         * modules/symlink-tests (Files): Likewise.
38201         * modules/symlinkat-tests (Files): Likewise.
38202         * modules/times-tests (Files): Likewise.
38203         * modules/trunc-tests (Files): Likewise.
38204         * modules/truncf-tests (Files): Likewise.
38205         * modules/truncl-tests (Files): Likewise.
38206         * modules/tsearch-tests (Files): Likewise.
38207         * modules/uname-tests (Files): Likewise.
38208         * modules/unlink-tests (Files): Likewise.
38209         * modules/unsetenv-tests (Files): Likewise.
38210         * modules/usleep-tests (Files): Likewise.
38211         * modules/utimensat-tests (Files): Likewise.
38212         * modules/vasprintf-tests (Files): Likewise.
38213         * modules/vdprintf-posix-tests (Files): Likewise.
38214         * modules/vfprintf-posix-tests (Files): Likewise.
38215         * modules/vprintf-posix-tests (Files): Likewise.
38216         * modules/vsnprintf-posix-tests (Files): Likewise.
38217         * modules/vsnprintf-tests (Files): Likewise.
38218         * modules/vsprintf-posix-tests (Files): Likewise.
38219         * modules/wcrtomb-tests (Files): Likewise.
38220         * modules/wcsnrtombs-tests (Files): Likewise.
38221         * modules/wcsrtombs-tests (Files): Likewise.
38222         * modules/wcwidth-tests (Files): Likewise.
38223         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
38224         * tests/test-isinf.c (isinf): Likewise.
38225         * tests/test-isnan.c (isnan): Likewise.
38226         * tests/test-signbit.c (signbit): Likewise.
38227         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
38228         declaration, either as macro or with correct signature.
38229         (select): Ensure function under test is declared with correct
38230         signature in correct header.
38231         * tests/test-atexit.c (atexit): Likewise.
38232         * tests/test-btowc.c (btowc): Likewise.
38233         * tests/test-canonicalize-lgpl.c (realpath)
38234         (canonicalize_file_name): Likewise.
38235         * tests/test-ceilf1.c (ceilf): Likewise.
38236         * tests/test-ceill.c (ceill): Likewise.
38237         * tests/test-chown.c (chown): Likewise.
38238         * tests/test-dprintf-posix.c (dprintf): Likewise.
38239         * tests/test-dup2.c (dup2): Likewise.
38240         * tests/test-dup3.c (dup3): Likewise.
38241         * tests/test-duplocale.c (duplocale): Likewise.
38242         * tests/test-fchdir.c (fchdir): Likewise.
38243         * tests/test-fchownat.c (fchownat): Likewise.
38244         * tests/test-fcntl.c (fcntl): Likewise.
38245         * tests/test-fdopendir.c (fdopendir): Likewise.
38246         * tests/test-fflush.c (fflush): Likewise.
38247         * tests/test-flock.c (flock): Likewise.
38248         * tests/test-floorf1.c (floorf): Likewise.
38249         * tests/test-floorl.c (floorl): Likewise.
38250         * tests/test-fnmatch.c (fnmatch): Likewise.
38251         * tests/test-fopen.c (fopen): Likewise.
38252         * tests/test-fprintf-posix.c (fprintf): Likewise.
38253         * tests/test-freopen.c (freopen): Likewise.
38254         * tests/test-frexp.c (frexp): Likewise.
38255         * tests/test-frexpl.c (frexpl): Likewise.
38256         * tests/test-fseek.c (fseek): Likewise.
38257         * tests/test-fseeko.c (fseeko): Likewise.
38258         * tests/test-fstatat.c (fstatat): Likewise.
38259         * tests/test-fsync.c (fsync): Likewise.
38260         * tests/test-ftell.c (ftell): Likewise.
38261         * tests/test-ftello.c (ftello): Likewise.
38262         * tests/test-futimens.c (futimens): Likewise.
38263         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
38264         (gai_strerror): Likewise.
38265         * tests/test-getcwd.c (getcwd): Likewise.
38266         * tests/test-getdelim.c (getdelim): Likewise.
38267         * tests/test-getdtablesize.c (getdtablesize): Likewise.
38268         * tests/test-getgroups.c (getgroups): Likewise.
38269         * tests/test-gethostname.c (gethostname): Likewise.
38270         * tests/test-getline.c (getline): Likewise.
38271         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
38272         Likewise.
38273         * tests/test-gettimeofday.c (gettimeofday): Likewise.
38274         * tests/test-glob.c (glob, globfree): Likewise.
38275         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
38276         * tests/test-inet_ntop.c (inet_ntop): Likewise.
38277         * tests/test-inet_pton.c (inet_pton): Likewise.
38278         * tests/test-isblank.c (isblank): Likewise.
38279         * tests/test-lchown.c (lchown): Likewise.
38280         * tests/test-ldexpl.c (ldexpl): Likewise.
38281         * tests/test-link.c (link): Likewise.
38282         * tests/test-linkat.c (linkat): Likewise.
38283         * tests/test-lseek.c (lseek): Likewise.
38284         * tests/test-lstat.c (lstat): Likewise.
38285         * tests/test-mbrtowc.c (mbrtowc): Likewise.
38286         * tests/test-mbsinit.c (mbsinit): Likewise.
38287         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
38288         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
38289         * tests/test-memchr.c (memchr): Likewise.
38290         * tests/test-memcmp.c (memcmp): Likewise.
38291         * tests/test-memmem.c (memmem): Likewise.
38292         * tests/test-memrchr.c (memrchr): Likewise.
38293         * tests/test-mkdir.c (mkdir): Likewise.
38294         * tests/test-mkdirat.c (mkdirat): Likewise.
38295         * tests/test-mkfifo.c (mkfifo): Likewise.
38296         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
38297         * tests/test-mknod.c (mknod): Likewise.
38298         * tests/test-nanosleep.c (nanosleep): Likewise.
38299         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
38300         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
38301         Likewise.
38302         * tests/test-open.c (open): Likewise.
38303         * tests/test-openat.c (openat): Likewise.
38304         * tests/test-perror.c (perror): Likewise.
38305         * tests/test-pipe2.c (pipe2): Likewise.
38306         * tests/test-poll.c (poll): Likewise.
38307         * tests/test-popen.c (popen, pclose): Likewise.
38308         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
38309         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
38310         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
38311         (posix_spawn_file_actions_destroy)
38312         (posix_spawn_file_actions_addclose)
38313         (posix_spawn_file_actions_addopen)
38314         (posix_spawn_file_actions_adddup2): Likewise.
38315         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
38316         * tests/test-pread.c (pread): Likewise.
38317         * tests/test-printf-posix.c (printf): Likewise.
38318         * tests/test-pty.c (openpty, forkpty): Likewise.
38319         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
38320         (random_r): Likewise.
38321         * tests/test-rawmemchr.c (rawmemchr): Likewise.
38322         * tests/test-readlink.c (readlink): Likewise.
38323         * tests/test-remove.c (remove): Likewise.
38324         * tests/test-rename.c (rename): Likewise.
38325         * tests/test-renameat.c (renameat): Likewise.
38326         * tests/test-rmdir.c (rmdir): Likewise.
38327         * tests/test-round1.c (round): Likewise.
38328         * tests/test-roundf1.c (roundf): Likewise.
38329         * tests/test-roundl.c (roundl): Likewise.
38330         * tests/test-setenv.c (setenv): Likewise.
38331         * tests/test-sigaction.c (sigaction): Likewise.
38332         * tests/test-sleep.c (sleep): Likewise.
38333         * tests/test-snprintf.c (snprintf): Likewise.
38334         * tests/test-sprintf-posix.c (sprintf): Likewise.
38335         * tests/test-stat.c (stat): Likewise.
38336         * tests/test-stpncpy.c (stpncpy): Likewise.
38337         * tests/test-strcasestr.c (strcasestr): Likewise.
38338         * tests/test-strchrnul.c (strchrnul): Likewise.
38339         * tests/test-strerror.c (strerror): Likewise.
38340         * tests/test-strsignal.c (strsignal): Likewise.
38341         * tests/test-strstr.c (strstr): Likewise.
38342         * tests/test-strtod.c (strtod): Likewise.
38343         * tests/test-strverscmp.c (strverscmp): Likewise.
38344         * tests/test-symlink.c (symlink): Likewise.
38345         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
38346         * tests/test-times.c (times): Likewise.
38347         * tests/test-trunc1.c (trunc): Likewise.
38348         * tests/test-truncf1.c (truncf): Likewise.
38349         * tests/test-truncl.c (truncl): Likewise.
38350         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
38351         Likewise.
38352         * tests/test-uname.c (uname): Likewise.
38353         * tests/test-unlink.c (unlink): Likewise.
38354         * tests/test-unlinkat.c (unlinkat): Likewise.
38355         * tests/test-unsetenv.c (unsetenv): Likewise.
38356         * tests/test-usleep.c (usleep): Likewise.
38357         * tests/test-utimensat.c (utimensat): Likewise.
38358         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
38359         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
38360         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
38361         * tests/test-vprintf-posix.c (vprintf): Likewise.
38362         * tests/test-vsnprintf.c (vsnprintf): Likewise.
38363         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
38364         * tests/test-wcrtomb.c (wcrtomb): Likewise.
38365         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
38366         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
38367         * tests/test-wcwidth.c (wcwidth): Likewise.
38368
38369         build: pull in conditional headers during GNULIB_POSIXCHECK
38370         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
38371         definitions from any conditionally-included headers.
38372         * lib/stdlib.in.h (includes): Likewise.
38373         * lib/unistd.in.h (includes): Likewise.
38374
38375 2009-12-24  Bruno Haible  <bruno@clisp.org>
38376
38377         * tests/test-argv-iter.c: Include header file being tested immediately
38378         after config.h.
38379         * tests/test-base64.c: Likewise.
38380         * tests/test-flock.c: Likewise.
38381         * tests/test-fsync.c: Likewise.
38382         * tests/test-getdate.c: Likewise.
38383         * tests/test-getndelim2.c: Likewise.
38384         * tests/test-isfinite.c: Likewise.
38385         * tests/test-isinf.c: Likewise.
38386         * tests/test-strerror.c: Likewise.
38387         * tests/test-strsignal.c: Likewise.
38388
38389 2009-12-23  Eric Blake  <ebb9@byu.net>
38390
38391         unistd: work around cygwin bug
38392         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
38393         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
38394         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38395
38396 2009-12-23  Bruno Haible  <bruno@clisp.org>
38397
38398         localename: More tests.
38399         * tests/test-localename.c (SIZEOF): New macro.
38400         (categories): New variable.
38401         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
38402         test_locale_name_default): Add test w.r.t. thread locale.
38403         (test_locale_name_thread): New function.
38404         (main): Invoke it.
38405
38406         localename: Make aware of thread locale.
38407         * lib/localename.h (gl_locale_name_thread): New declaration.
38408         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
38409         behaviour with respect to thread locale.
38410         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
38411         <langinfo.h>, glthread/lock.h.
38412         (SIZE_BITS): New macro.
38413         (string_hash): New function.
38414         (struct hash_node): New type.
38415         (HASH_TABLE_SIZE): New macro.
38416         (struniq_hash_table, struniq_lock): New variables.
38417         (struniq): New function.
38418         (gl_locale_name_thread): New function.
38419         (gl_locale_name): Invoke it.
38420         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
38421         * modules/localename (Depends-on): Add lock.
38422         Reported by Mike Gran <spk121@yahoo.com>.
38423
38424 2009-12-23  Eric Blake  <ebb9@byu.net>
38425
38426         va-args: new module
38427         * modules/va-args: New file.
38428         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
38429         * MODULES.html.sh (Core language properties): Mention it.
38430
38431         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
38432         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
38433         named alias for __attribute__((__unused__)).
38434         * lib/chown.c: Update client.
38435         * lib/fchmodat.c: Likewise.
38436         * lib/fts.c: Likewise.
38437         * lib/getdate.y: Likewise.
38438         * lib/getgroups.c: Likewise.
38439         * lib/getopt.c: Likewise.
38440         * lib/getugroups.c: Likewise.
38441         * lib/mkdir.c: Likewise.
38442         * lib/mkfifo.c: Likewise.
38443         * lib/mkfifoat.c: Likewise.
38444         * lib/mknod.c: Likewise.
38445         * lib/mknodat.c: Likewise.
38446         * lib/readlink.c: Likewise.
38447         * lib/se-context.in.h: Likewise.
38448         * lib/se-selinux.in.h: Likewise.
38449         * lib/sockets.c: Likewise.
38450         * lib/symlink.c: Likewise.
38451         * lib/symlinkat.c: Likewise.
38452         * lib/unicodeio.c: Likewise.
38453         * lib/unistr.h: Likewise.
38454         * tests/test-areadlink.c: Likewise.
38455         * tests/test-areadlinkat.c: Likewise.
38456         * tests/test-filenamecat.c: Likewise.
38457         * tests/test-fseeko.c: Likewise.
38458         * tests/test-ftello.c: Likewise.
38459         * tests/test-getdate.c: Likewise.
38460         * tests/test-getgroups.c: Likewise.
38461         * tests/test-gethostname.c: Likewise.
38462         * tests/test-quotearg.c: Likewise.
38463         * tests/test-version-etc.c: Likewise.
38464         * tests/test-xalloc-die.c: Likewise.
38465         * tests/test-xfprintf-posix.c: Likewise.
38466         * tests/test-xprintf-posix.c: Likewise.
38467         * tests/test-xvasprintf.c: Likewise.
38468
38469         tests: avoid compiler warnings
38470         * tests/test-fcntl.c (main): Delete unused parameters.
38471         * tests/test-freopen-safer.c (main): Likewise.
38472         * tests/test-xalloc-die.c (main): Mark unused parameters.
38473         * tests/test-fseeko.c (main): Likewise.
38474         * tests/test-ftello.c (main): Likewise.
38475         * tests/test-nanosleep.c (main): Avoid declaration warning.
38476         * tests/test-sleep.c (main): Likewise.
38477         * tests/test-unsetenv.c (main): Silence warning about string
38478         literal.
38479         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
38480
38481 2009-12-23  Bruno Haible  <bruno@clisp.org>
38482
38483         * tests/test-localename.c (test_locale_name): New function, extracted
38484         from main. Also test mixed situations.
38485         (test_locale_name_posix, test_locale_name_environ,
38486         test_locale_name_default): New functions.
38487         (main): Invoke them all.
38488         * modules/localename-tests (configure.ac): Test for newlocale.
38489
38490 2009-12-23  Bruno Haible  <bruno@clisp.org>
38491
38492         unistd: Ensure getcwd gets declared before being overridden.
38493         * lib/unistd.in.h: Conditionally include <io.h>.
38494
38495 2009-12-22  Bruno Haible  <bruno@clisp.org>
38496
38497         wchar: Diagnose broken combination of glibc and gcc versions and flags.
38498         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
38499         (gl_WCHAR_H): Invoke it.
38500         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
38501         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
38502         Reported by Karl Berry <karl@freefriends.org>.
38503
38504 2009-12-22  Eric Blake  <ebb9@byu.net>
38505
38506         math, unistd: avoid redundant includes
38507         * lib/math.in.h (isnan): No need to re-include <math.h>.
38508         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
38509
38510         getsubopt: work around cygwin bug
38511         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
38512         avoid conflicting with system getsubopt.
38513         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
38514         bug.
38515
38516         getopt: synchronize from glibc
38517         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
38518         parameter order.  Adjust all callers.
38519         (_getopt_internal_r, main): Adjust quoting in error messages.
38520         Drop considerations for outdated POSIX 1003.2 error message.
38521         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
38522         callers.
38523         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
38524
38525         test-getopt: test stderr behavior
38526         * modules/getopt-posix-tests (Depends-on): Add dup2.
38527         * tests/test-getopt.c (ASSERT): Avoid stderr.
38528         (main): Move stderr to a temporary file.
38529         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
38530         Instead, add parameter to inform caller if output occurred.
38531         (test_getopt): Adjust all existing tests to expect silence, and
38532         add new tests of leading ":".
38533         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
38534         glibc shortcomings with leading "-:" or "+:" in optstring.
38535         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38536         Likewise.
38537         * doc/posix-functions/getopt.texi (getopt): Likewise.
38538
38539         test-getopt: enhance test
38540         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
38541         supports optind=0.
38542         * tests/test-getopt.c (OPTIND_MIN): Move...
38543         * tests/test-getopt.h (OPTIND_MIN): ...here.
38544         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
38545         Require that optind=0 works, since modern BSD supports it in
38546         addition to optreset, and since coreutils expects it.
38547         (test_getopt_long_only): New test.
38548         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
38549         glibc shortcomings with 'W;', and enforcement of optind=0.
38550         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38551         Likewise.
38552
38553 2009-12-21  Bruno Haible  <bruno@clisp.org>
38554
38555         localename: Improvements for MacOS X and Cygwin.
38556         * lib/localename.h (gl_locale_name_environ): New declaration.
38557         * lib/localename.c (gl_locale_name_environ): New function, extracted from
38558         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
38559         (gl_locale_name_posix): Invoke it.
38560         (gl_locale_name_default): Add comments. Use Windows native API also on
38561         Cygwin.
38562
38563 2009-12-21  Bruno Haible  <bruno@clisp.org>
38564
38565         Update list of Win32 locale ids.
38566         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
38567         (LANG_SAMI): Renamed from LANG_SAAMI.
38568         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
38569         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
38570         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
38571         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
38572         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
38573         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
38574         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
38575         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
38576         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
38577         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
38578         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
38579         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
38580         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
38581         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
38582         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
38583         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
38584         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
38585         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
38586         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
38587         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
38588         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
38589         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
38590         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
38591         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
38592         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
38593         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
38594         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
38595         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
38596         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
38597         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
38598         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
38599         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
38600         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
38601         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
38602         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
38603         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
38604         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
38605         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
38606         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
38607         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
38608         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
38609         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
38610         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
38611         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
38612         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
38613         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
38614         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
38615         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
38616         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
38617         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
38618         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
38619         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
38620         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
38621         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
38622         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
38623         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
38624         Add more languages and countries for Sami, Sorbian. Add more countries
38625         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
38626         for Pashto. Change country for Syriac, Tswana.
38627
38628 2009-12-21  Eric Blake  <ebb9@byu.net>
38629
38630         test-utimens: avoid spurious failure
38631         * tests/test-chown.h (nap): Factor...
38632         * tests/nap.h: ...into new file.
38633         * tests/test-lchown.h (nap): Avoid duplication.
38634         * tests/test-utimens-common.h (nap): Use shared implementation,
38635         necessary on file systems with 1-second resolution.
38636         * modules/chown-tests (Files): Include new file.
38637         * modules/fdutimensat-tests (Files): Likewise.
38638         * modules/futimens-tests (Files): Likewise.
38639         * modules/lchown-tests (Files): Likewise.
38640         * modules/openat-tests (Files): Likewise.
38641         * modules/utimens-tests (Files): Likewise.
38642         * modules/utimensat-tests (Files): Likewise.
38643
38644 2009-12-19  Eric Blake  <ebb9@byu.net>
38645
38646         futimens, utimensat: work around Linux bug
38647         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
38648         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38649         * lib/utimensat.c (rpl_utimensat): Work around it.
38650         * lib/futimens.c (rpl_futimens): Adjust comment.
38651
38652         utimens: work around Linux ctime bug
38653         * lib/utimens.c (detect_ctime_bug): New helper function.
38654         (update_timespec): Differentiate between workaround needed for
38655         this bug vs. what is needed for systems that lack utimensat.
38656         (fdutimens, lutimens): Work around bug.
38657
38658         utimens: check for ctime update
38659         * tests/test-utimens-common.h (check_ctime): Define.
38660         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
38661         * tests/test-futimens.h (test_futimens): Likewise.
38662         * tests/test-lutimens.h (test_lutimens): Likewise.
38663         * doc/posix-functions/futimens.texi (futimens): Document the bug.
38664         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38665
38666 2009-12-19  Bruno Haible  <bruno@clisp.org>
38667
38668         dprintf-posix: Check against memory leak fixed on 2009-12-15.
38669         * tests/test-dprintf-posix2.sh: New file.
38670         * tests/test-dprintf-posix2.c: New file.
38671         * modules/dprintf-posix-tests (Files): Add them.
38672         (configure.ac): Check for getrlimit and setrlimit.
38673         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38674
38675 2009-12-19  Bruno Haible  <bruno@clisp.org>
38676
38677         fprintf-posix: Check against memory leak fixed on 2009-12-15.
38678         * tests/test-fprintf-posix3.sh: New file.
38679         * tests/test-fprintf-posix3.c: New file.
38680         * modules/fprintf-posix-tests (Files): Add them.
38681         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38682
38683 2009-12-19  Eric Blake  <ebb9@byu.net>
38684
38685         dirfd: fix prototype
38686         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
38687         * lib/dirfd.c (dirfd): Likewise.
38688
38689         canonicalize: reduce memory usage
38690         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
38691         allocation to size.
38692         Reported by Solar Designer <solar@openwall.com>.
38693
38694 2009-12-19  Bruno Haible  <bruno@clisp.org>
38695
38696         New module attribute 'Applicability'.
38697         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
38698         * gnulib-tool: New option --extract-applicability.
38699         (func_usage): Document it.
38700         (sed_extract_prog): Recognize it.
38701         (func_get_applicability): New function.
38702         (func_import): Generalize handling of 'link-warning' module.
38703         * modules/link-warning (Applicability): New section.
38704         * modules/arg-nonnull (Applicability): New section.
38705         Repoted by Simon Josefsson <simon@josefsson.org>.
38706
38707 2009-12-19  Bruno Haible  <bruno@clisp.org>
38708
38709         fflush: tweak
38710         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
38711         * lib/fseeko.c (rpl_fseeko): Likewise.
38712
38713 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
38714
38715         * lib/gl_list.h: Fix typo in comment.
38716
38717 2009-12-16  Eric Blake  <ebb9@byu.net>
38718
38719         fcntl: use to simplify other modules
38720         * modules/cloexec (Depends-on): Add fcntl.
38721         * modules/fchdir (Depends-on): Likewise.
38722         * modules/fd-safer-flag (Depends-on): Likewise.
38723         * modules/unistd-safer (Depends-on): Likewise.
38724         * modules/dup3 (configure.ac): Set module indicator.
38725         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
38726         missing.
38727         * lib/fchdir.c (_gl_register_dup): Fix comment.
38728         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
38729         * lib/dup-safer.c (dup_safer): Likewise.
38730         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
38731         * lib/dup3.c (dup3): Likewise.
38732         * tests/test-fchdir.c (main): Enhance test.
38733         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
38734
38735         fcntl: port portions of fcntl to mingw
38736         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
38737         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
38738         replacement for mingw.
38739         * modules/fcntl (Description): Update.
38740         (Depends-on): Add dup2.
38741         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
38742         * modules/fcntl-h (Makefile.am): Substitute it.
38743         * lib/fcntl.in.h (fcntl): Update declaration.
38744         (F_DUPFD, F_GETFD): New macros, when needed.
38745         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38746         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
38747         * tests/test-fcntl.c (check_flags, main): Enhance test for items
38748         we now guarantee.
38749
38750         fcntl: work around cygwin bug in F_DUPFD
38751         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
38752         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
38753         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
38754         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
38755         * doc/posix-functions/fcntl.texi (fcntl): Document it.
38756
38757         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
38758         * modules/fcntl (Files): List new files.
38759         (configure.ac): Run a test.
38760         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
38761         * lib/fcntl.c (rpl_fcntl): Likewise.
38762         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
38763         (gl_FCNTL_H): Always replace fcntl.h.
38764         * modules/fcntl-h (Makefile.am): Substitute witnesses.
38765         * lib/fcntl.in.h (fcntl): Declare replacement.
38766         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
38767         needed, plus a witness.
38768         * doc/posix-functions/fcntl.texi (fcntl): Document this.
38769         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
38770         * tests/test-fcntl.c: New file.
38771         * modules/fcntl-tests: Likewise.
38772
38773         binary-io: avoid potential compilation warning
38774         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
38775         directives.
38776
38777         fflush: avoid compilation error on NetBSD
38778         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
38779         between off_t and fpos_t, since the latter is sometimes a struct.
38780         * lib/fseeko.c (rpl_fseeko): Likewise.
38781         Reported by Alexander Nasonov <alnsn@yandex.ru>.
38782
38783 2009-12-15  Eric Blake  <ebb9@byu.net>
38784
38785         fcntl-h, stdio, sys_ioctl: fix declarations
38786         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
38787         function must not take arguments.
38788         * lib/sys_ioctl.in.h (ioctl): Likewise.
38789         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
38790         (open): Add a link warning.
38791
38792 2009-12-15  Jim Meyering  <meyering@redhat.com>
38793
38794         areadlink, areadlink-with-size: relax license to LGPLv2+
38795         * modules/areadlink (License): Relax to LGPLv2+.
38796         * modules/areadlink-with-size (License): Likewise.
38797
38798 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
38799             Bruno Haible  <bruno@clisp.org>
38800
38801         *printf: Fix memory leak.
38802         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
38803         * lib/vfprintf.c (vfprintf): Likewise.
38804         * lib/dprintf.c (dprintf): Likewise.
38805         * lib/vdprintf.c (vdprintf): Likewise.
38806
38807 2009-12-14  Eric Blake  <ebb9@byu.net>
38808
38809         accept4: adjust module dependencies
38810         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
38811
38812         utimens: one more try at avoiding compiler warning
38813         * lib/utimens.c (lutimens): Lower scope of result.
38814
38815 2009-12-13  Bruno Haible  <bruno@clisp.org>
38816
38817         Move the malloc checking from module 'list' to new module 'xlist'.
38818         * modules/xlist: New file.
38819         * lib/gl_xlist.h: New file.
38820         * lib/gl_xlist.c: New file.
38821         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
38822         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
38823         gl_list_add_last, gl_list_add_before, gl_list_add_after,
38824         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
38825         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
38826         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
38827         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
38828         gl_sortedlist_nx_add): New declarations.
38829         (struct gl_list_implementation): Rename and change methods accordingly.
38830         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
38831         (gl_list_nx_create): Renamed from gl_list_create.
38832         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38833         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38834         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38835         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38836         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38837         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38838         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38839         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38840         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
38841         gl_list_create_empty.
38842         (gl_list_nx_create): Renamed from gl_list_create.
38843         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38844         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38845         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38846         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38847         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38848         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38849         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38850         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38851         * lib/gl_array_list.c: Don't include xalloc.h.
38852         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
38853         NULL upon out-of-memory.
38854         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
38855         out-of-memory.
38856         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
38857         Change return type to 'int'.
38858         (gl_array_nx_set_at): Renamed from gl_array_set_at.
38859         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38860         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
38861         upon out-of-memory.
38862         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
38863         upon out-of-memory.
38864         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
38865         upon out-of-memory.
38866         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
38867         upon out-of-memory.
38868         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
38869         out-of-memory.
38870         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
38871         Update.
38872         (gl_array_list_implementation): Update.
38873         * lib/gl_carray_list.c: Don't include xalloc.h.
38874         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
38875         Return NULL upon out-of-memory.
38876         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
38877         out-of-memory.
38878         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
38879         Change return type to 'int'.
38880         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
38881         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38882         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
38883         upon out-of-memory.
38884         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
38885         upon out-of-memory.
38886         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
38887         out-of-memory.
38888         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
38889         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
38890         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
38891         Update.
38892         (gl_carray_list_implementation): Update.
38893         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
38894         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
38895         gl_linked_create_empty. Return NULL upon out-of-memory.
38896         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
38897         out-of-memory.
38898         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
38899         Change return type to 'int'. Return -1 upon out-of-memory.
38900         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
38901         out-of-memory.
38902         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
38903         upon out-of-memory.
38904         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
38905         upon out-of-memory.
38906         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
38907         NULL upon out-of-memory.
38908         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
38909         upon out-of-memory.
38910         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
38911         out-of-memory.
38912         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
38913         Update.
38914         * lib/gl_linked_list.c: Don't include xalloc.h.
38915         (gl_linked_list_implementation): Update.
38916         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
38917         (add_to_bucket): Change return type to 'int'.
38918         (gl_linkedhash_list_implementation): Update.
38919         * lib/gl_anytree_list1.h (free_subtree): New function.
38920         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
38921         gl_tree_create_empty. Return NULL upon out-of-memory.
38922         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
38923         Change return type to 'int'. Return -1 upon out-of-memory.
38924         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
38925         out-of-memory.
38926         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
38927         (gl_tree_remove_node): New function, moved here from
38928         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
38929         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
38930         Update.
38931         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
38932         malloc, not xmalloc. Return NULL upon out-of-memory.
38933         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38934         out-of-memory.
38935         (gl_tree_remove_node_from_tree): New function, extracted from
38936         gl_tree_remove_node.
38937         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38938         upon out-of-memory.
38939         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38940         out-of-memory.
38941         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38942         upon out-of-memory.
38943         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38944         upon out-of-memory.
38945         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38946         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
38947         not xmalloc. Return NULL upon out-of-memory.
38948         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38949         out-of-memory.
38950         (gl_tree_remove_node_from_tree): New function, extracted from
38951         gl_tree_remove_node.
38952         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38953         upon out-of-memory.
38954         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38955         out-of-memory.
38956         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38957         upon out-of-memory.
38958         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38959         upon out-of-memory.
38960         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38961         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
38962         gl_anytree_list1.h before gl_anyavltree_list2.h.
38963         (gl_avltree_list_implementation): Update.
38964         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
38965         gl_anytree_list1.h before gl_anyavltree_list2.h.
38966         (gl_rbtree_list_implementation): Update.
38967         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
38968         Change return type to 'int'. Return -1 upon out-of-memory. Use
38969         __builtin_expect.
38970         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
38971         (gl_avltreehash_list_implementation): Update.
38972         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
38973         (gl_rbtreehash_list_implementation): Update.
38974         * modules/array-list (Depends-on): Remove xalloc.
38975         * modules/carray-list (Depends-on): Likewise.
38976         * modules/linked-list (Depends-on): Likewise.
38977         * modules/linkedhash-list (Depends-on): Likewise.
38978         * modules/avltree-list (Depends-on): Likewise.
38979         * modules/rbtree-list (Depends-on): Likewise.
38980         * modules/avltreehash-list (Depends-on): Likewise.
38981         * modules/rbtreehash-list (Depends-on): Likewise.
38982
38983         * modules/xsublist: New file.
38984         * lib/gl_xsublist.h: New file.
38985         * lib/gl_xsublist.c: New file.
38986         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
38987         (gl_sublist_nx_create): New declaration.
38988         * lib/gl_sublist.c: Don't include xalloc.h.
38989         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
38990         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
38991         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
38992         Change return type to 'int'. Return -1 upon out-of-memory.
38993         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
38994         upon out-of-memory.
38995         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
38996         NULL upon out-of-memory.
38997         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
38998         upon out-of-memory.
38999         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
39000         NULL upon out-of-memory.
39001         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
39002         NULL upon out-of-memory.
39003         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
39004         upon out-of-memory.
39005         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
39006         (gl_sublist_list_implementation): Update.
39007         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
39008         upon out-of-memory.
39009         * modules/sublist (Depends-on): Remove xalloc.
39010
39011         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
39012         * tests/test-carray_list.c: Likewise.
39013         * tests/test-linked_list.c: Likewise.
39014         * tests/test-linkedhash_list.c: Likewise.
39015         * tests/test-avltree_list.c: Likewise.
39016         * tests/test-rbtree_list.c: Likewise.
39017         * tests/test-avltreehash_list.c: Likewise.
39018         * tests/test-rbtreehash_list.c: Likewise.
39019         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
39020         * modules/carray-list-tests (Makefile.am): Likewise.
39021         * modules/linked-list-tests (Makefile.am): Likewise.
39022         * modules/linkedhash-list-tests (Makefile.am): Likewise.
39023         * modules/avltree-list-tests (Makefile.am): Likewise.
39024         * modules/rbtree-list-tests (Makefile.am): Likewise.
39025         * modules/avltreehash-list-tests (Makefile.am): Likewise.
39026         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
39027
39028         * NEWS: Mention the changes.
39029
39030         * lib/clean-temp.c: Include gl_xlist.h.
39031         * modules/clean-temp (Depends-on): Add xlist.
39032
39033         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
39034         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
39035
39036         * tests/test-array_oset.c: Include gl_xlist.h.
39037         * modules/array-oset-tests (Depends-on): Add xlist.
39038
39039         Reported by José E. Marchesi <jemarch@gnu.org>.
39040
39041 2009-12-13  Bruno Haible  <bruno@clisp.org>
39042
39043         Move the malloc checking from module 'oset' to new module 'xoset'.
39044         * modules/xoset: New file.
39045         * lib/gl_xoset.h: New file.
39046         * lib/gl_xoset.c: New file.
39047         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
39048         declarations.
39049         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
39050         (struct gl_oset_implementation): Rename and change methods accordingly.
39051         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
39052         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
39053         'int'. Mark as __warn_unused_result__.
39054         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
39055         gl_oset_create_empty.
39056         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
39057         'int'.
39058         * lib/gl_array_oset.c: Don't include xalloc.h.
39059         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
39060         malloc, not xmalloc.
39061         (grow): Change return type to 'int'. Don't call xalloc_die.
39062         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
39063         to 'int'.
39064         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
39065         'int'.
39066         (gl_array_oset_implementation): Update.
39067         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
39068         gl_tree_create_empty.
39069         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
39070         'int'.
39071         * lib/gl_avltree_oset.c: Don't include xalloc.h.
39072         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
39073         xmalloc.
39074         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
39075         not xmalloc.
39076         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
39077         xmalloc.
39078         (gl_avltree_oset_implementation): Update.
39079         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
39080         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
39081         xmalloc.
39082         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
39083         not xmalloc.
39084         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
39085         xmalloc.
39086         (gl_rbtree_oset_implementation): Update.
39087         * modules/array-oset (Depends-on): Remove xalloc.
39088         * modules/avltree-oset (Depends-on): Likewise.
39089         * modules/rbtree-oset (Depends-on): Likewise.
39090         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
39091         * tests/test-avltree_oset.c: Likewise.
39092         * tests/test-rbtree_oset.c: Likewise.
39093         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
39094         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
39095         * modules/rbtree-oset-tests (Makefile.am): Likewise.
39096         * NEWS: Mention the change.
39097
39098 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
39099
39100         maint.mk: allow a project to override release-prep commands
39101         * top/maint.mk (alpha, beta, stable): Move release-preparatory
39102         commands into a new rule.
39103         (release-prep): New rule.
39104         (release-prep-hook): New overridable variable.
39105
39106 2009-12-13  Bruno Haible  <bruno@clisp.org>
39107
39108         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
39109
39110 2009-12-13  Jim Meyering  <meyering@redhat.com>
39111
39112         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
39113         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
39114
39115 2009-12-12  Bruno Haible  <bruno@clisp.org>
39116
39117         duplocale: Tweak.
39118         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
39119
39120 2009-12-12  Karl Berry  <karl@gnu.org>
39121
39122         * config/srclist.txt (strtoll.c): tab changes, no more sync.
39123
39124 2009-12-12  Bruno Haible  <bruno@clisp.org>
39125
39126         * m4/po.m4: Undo incorrect untabification.
39127
39128 2009-12-12  Bruno Haible  <bruno@clisp.org>
39129
39130         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
39131         * modules/c-strtod (Depends-on): Add locale.
39132         * modules/c-strtold (Depends-on): Likewise.
39133
39134 2009-12-12  Bruno Haible  <bruno@clisp.org>
39135
39136         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
39137
39138 2009-12-11  Eric Blake  <ebb9@byu.net>
39139
39140         setenv: relax requirement in light of POSIX ruling
39141         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
39142         not NULL.
39143         * tests/test-setenv.c (main): Relax test.
39144         * tests/test-unsetenv.c (main): Likewise.
39145         * doc/posix-functions/setenv.texi (setenv): Document this.
39146         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39147
39148 2009-12-11  Bruno Haible  <bruno@clisp.org>
39149
39150         New module 'fd-safer-flag'.
39151         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
39152         * lib/dup-safer.c (dup_safer_flag): Remove function.
39153         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
39154         * lib/fd-safer.c (fd_safer_flag): Remove function.
39155         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
39156         * modules/cloexec (configure.ac): Drop indicator macro.
39157         * modules/fd-safer-flag: New file.
39158         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
39159         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
39160         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
39161
39162 2009-12-11  Bruno Haible  <bruno@clisp.org>
39163
39164         Tests for module 'nl_langinfo'.
39165         * modules/nl_langinfo-tests: New file.
39166         * tests/test-nl_langinfo.sh: New file.
39167         * tests/test-nl_langinfo.c: New file.
39168
39169         New module 'nl_langinfo'.
39170         * lib/nl_langinfo.c: New file.
39171         * m4/nl_langinfo.m4: New file.
39172         * modules/nl_langinfo: New file.
39173         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
39174
39175 2009-12-11  Bruno Haible  <bruno@clisp.org>
39176
39177         Tests for module 'langinfo'.
39178         * modules/langinfo-tests: New file.
39179         * tests/test-langinfo.c: New file.
39180
39181         New module 'langinfo'.
39182         * lib/langinfo.in.h: New file.
39183         * m4/langinfo_h.m4: New file.
39184         * modules/langinfo: New file.
39185         * doc/posix-headers/langinfo.texi: Mention the new module.
39186
39187 2009-12-11  Bruno Haible  <bruno@clisp.org>
39188
39189         * lib/config.charset: Untabify.
39190
39191 2009-12-11  Bruno Haible  <bruno@clisp.org>
39192
39193         * modules/unistd-safer (configure.ac): Drop indicator macro.
39194
39195 2009-12-11  Bruno Haible  <bruno@clisp.org>
39196
39197         Move pipe2-safer code to its own file.
39198         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
39199         * lib/pipe-safer.c (pipe2_safer): Remove function.
39200         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
39201         (Makefile.am): Add it to lib_SOURCES.
39202
39203 2009-12-10  Bruno Haible  <bruno@clisp.org>
39204
39205         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
39206
39207 2009-12-10  Bruno Haible  <bruno@clisp.org>
39208
39209         Declare which arguments expect non-NULL values, for GCC and clang.
39210         * build-aux/arg-nonnull.h: New file.
39211         * modules/arg-nonnull: New file.
39212         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
39213         (inet_ntop, inet_pton): Use it.
39214         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
39215         (closedir, dirfd, opendir, scandir, alphasort): Use it.
39216         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
39217         (open, openat): Use it.
39218         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
39219         (fnmatch): Use it.
39220         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
39221         (getopt, getopt_long, getopt_long_only): Use it.
39222         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
39223         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
39224         Use it.
39225         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
39226         (iconv_open): Use it.
39227         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
39228         (strtoimax, strtoumax): Use it.
39229         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
39230         (duplocale): Use it.
39231         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
39232         (frexp, frexpl): Use it.
39233         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
39234         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
39235         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
39236         (tsearch, tfind, tdelete, twalk): Use it.
39237         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
39238         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
39239         sigpending): Use it.
39240         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
39241         (posix_spawn, posix_spawnp, posix_spawnattr_init,
39242         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
39243         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
39244         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
39245         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
39246         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
39247         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
39248         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
39249         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
39250         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
39251         Use it.
39252         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
39253         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
39254         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
39255         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
39256         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
39257         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
39258         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
39259         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
39260         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
39261         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
39262         strtoull, unsetenv): Use it.
39263         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
39264         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
39265         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
39266         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
39267         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
39268         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
39269         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
39270         (strcasecmp, strncasecmp): Use it.
39271         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
39272         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
39273         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
39274         rpl_setsockopt): Use it.
39275         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
39276         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
39277         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
39278         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
39279         (gettimeofday): Use it.
39280         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
39281         (times): Use it.
39282         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
39283         (uname): Use it.
39284         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
39285         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
39286         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
39287         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
39288         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
39289         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
39290         unlinkat, write): Use it.
39291         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
39292         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
39293         * lib/argv-iter.h: Include arg-nonnull.h.
39294         (_ATTRIBUTE_NONNULL_): Remove macro.
39295         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
39296         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
39297         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
39298         optimization.
39299         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
39300         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
39301         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
39302         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
39303         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
39304         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
39305         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
39306         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
39307         * modules/arpa_inet (Depends-on): Add arg-nonnull.
39308         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
39309         * modules/dirent (Depends-on): Add arg-nonnull.
39310         (Makefile.am): Insert arg-nonnull.h into dirent.h.
39311         * modules/fcntl-h (Depends-on): Add arg-nonnull.
39312         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
39313         * modules/fnmatch (Depends-on): Add arg-nonnull.
39314         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
39315         * modules/getopt-posix (Depends-on): Add arg-nonnull.
39316         (Makefile.am): Insert arg-nonnull.h into getopt.h.
39317         * modules/glob (Depends-on): Add arg-nonnull.
39318         (Makefile.am): Insert arg-nonnull.h into glob.h.
39319         * modules/iconv_open (Depends-on): Add arg-nonnull.
39320         (Makefile.am): Insert arg-nonnull.h into iconv.h.
39321         * modules/inttypes (Depends-on): Add arg-nonnull.
39322         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
39323         * modules/locale (Depends-on): Add arg-nonnull.
39324         (Makefile.am): Insert arg-nonnull.h into locale.h.
39325         * modules/math (Depends-on): Add arg-nonnull.
39326         (Makefile.am): Insert arg-nonnull.h into math.h.
39327         * modules/netdb (Depends-on): Add arg-nonnull.
39328         (Makefile.am): Insert arg-nonnull.h into netdb.h.
39329         * modules/search (Depends-on): Add arg-nonnull.
39330         (Makefile.am): Insert arg-nonnull.h into search.h.
39331         * modules/signal (Depends-on): Add arg-nonnull.
39332         (Makefile.am): Insert arg-nonnull.h into signal.h.
39333         * modules/spawn (Depends-on): Add arg-nonnull.
39334         (Makefile.am): Insert arg-nonnull.h into spawn.h.
39335         * modules/stdio (Depends-on): Add arg-nonnull.
39336         (Makefile.am): Insert arg-nonnull.h into stdio.h.
39337         * modules/stdlib (Depends-on): Add arg-nonnull.
39338         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
39339         * modules/string (Depends-on): Add arg-nonnull.
39340         (Makefile.am): Insert arg-nonnull.h into string.h.
39341         * modules/strings (Depends-on): Add arg-nonnull.
39342         (Makefile.am): Insert arg-nonnull.h into strings.h.
39343         * modules/sys_socket (Depends-on): Add arg-nonnull.
39344         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
39345         * modules/sys_stat (Depends-on): Add arg-nonnull.
39346         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
39347         * modules/sys_time (Depends-on): Add arg-nonnull.
39348         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
39349         * modules/sys_times (Depends-on): Add arg-nonnull.
39350         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
39351         * modules/sys_utsname (Depends-on): Add arg-nonnull.
39352         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
39353         * modules/time (Depends-on): Add arg-nonnull.
39354         (Makefile.am): Insert arg-nonnull.h into time.h.
39355         * modules/unistd (Depends-on): Add arg-nonnull.
39356         (Makefile.am): Insert arg-nonnull.h into unistd.h.
39357         * modules/wchar (Depends-on): Add arg-nonnull.
39358         (Makefile.am): Insert arg-nonnull.h into wchar.h.
39359         * modules/argv-iter (Depends-on): Add arg-nonnull.
39360         * tests/test-canonicalize.c (null_ptr): New function.
39361         (main): Use it.
39362         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
39363         (main): Use it.
39364         * tests/test-memmem.c (null_ptr): New function.
39365         (main): Use it.
39366         Reported by Jim Meyering.
39367
39368 2009-12-10  Bruno Haible  <bruno@clisp.org>
39369
39370         Use spaces for indentation, not tabs.
39371         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
39372         * m4/*.m4: Untabify.
39373         * build-aux/*.h: Untabify.
39374         * tests/**/*.[hc]: Untabify.
39375         * README: New section "Indent with spaces, not TABs", based on
39376         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
39377         * NEWS: Mention the change.
39378
39379 2009-12-10  Bruno Haible  <bruno@clisp.org>
39380
39381         pty test: Fix link error.
39382         * modules/pty-tests (Makefile.am): Add the default LDADD value to
39383         test_pty_LDADD.
39384
39385 2009-12-07  Simon Josefsson  <simon@josefsson.org>
39386
39387         * modules/pty: New file.
39388         * modules/pty-tests: New file.
39389         * m4/pty.m4: New file.
39390         * tests/test-pty.c: New file.
39391         * doc/glibc-headers/pty.texi: Modified.
39392         * doc/glibc-functions/forkpty.texi: Modified.
39393         * doc/glibc-functions/openpty.texi: Modified.
39394
39395 2009-12-10  Bruno Haible  <bruno@clisp.org>
39396
39397         Avoid syntax error in C++ mode.
39398         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
39399
39400 2009-12-10  Bruno Haible  <bruno@clisp.org>
39401
39402         Use sed with option -e.
39403         * gnulib-tool (func_version, func_emit_copyright_notice,
39404         func_emit_initmacro_end, func_import, func_create_testdir): Pass
39405         option -e to sed.
39406         * modules/link-warning (Makefile.am): Likewise.
39407
39408 2009-12-10  Jim Meyering  <meyering@redhat.com>
39409
39410         mgetgroups: do not write bytes beyond end of malloc'd buffer
39411         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
39412         username, we call getgroups with a one-element-shorter buffer,
39413         but still told it the length was original, max_n_groups.
39414
39415 2009-12-09  Eric Blake  <ebb9@byu.net>
39416
39417         cloexec: relax license
39418         * modules/cloexec (Maintainer): Add myself.
39419         (License): Use LGPL, not GPL.
39420
39421         link-warning: optimize generation
39422         * modules/link-warning (Makefile.am): Reduce process usage.
39423
39424 2009-12-09  Bruno Haible  <bruno@clisp.org>
39425
39426         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
39427         workaround was added on 2009-11-17.
39428
39429 2009-12-09  Jim Meyering  <meyering@redhat.com>
39430             Bruno Haible  <bruno@clisp.org>
39431
39432         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
39433         * modules/link-warning (Makefile.am): Make the comment-removing sed
39434         command more robust in the face of bootstrap-prepended comment lines.
39435
39436 2009-12-09  Bruno Haible  <bruno@clisp.org>
39437
39438         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
39439         most one group.
39440
39441 2009-12-09  Simon Josefsson <simon@josefsson.org>
39442             Bruno Haible  <bruno@clisp.org>
39443
39444         * build-aux/link-warning.h: Add copyright notice.
39445         * modules/link-warning (Makefile.am): Generate link-warning.h from
39446         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
39447         * NEWS: Mention change in link-warning module.
39448         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
39449         * modules/dirent (Makefile.am): Add dependency to dirent.h.
39450         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
39451         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
39452         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
39453         * modules/math (Makefile.am): Add dependency to math.h.
39454         * modules/search (Makefile.am): Add dependency to search.h.
39455         * modules/signal (Makefile.am): Add dependency to signal.h.
39456         * modules/spawn (Makefile.am): Add dependency to spawn.h.
39457         * modules/stdio (Makefile.am): Add dependency to stdio.h.
39458         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
39459         * modules/string (Makefile.am): Add dependency to string.h.
39460         * modules/strings (Makefile.am): Add dependency to strings.h.
39461         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
39462         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
39463         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
39464         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
39465         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
39466         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
39467         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
39468         * modules/unistd (Makefile.am): Add dependency to unistd.h.
39469         * modules/wchar (Makefile.am): Add dependency to wchar.h.
39470
39471 2009-12-09  Bruno Haible  <bruno@clisp.org>
39472
39473         fchdir: Optimize away rpl_fstat when possible.
39474         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
39475         REPLACE_OPEN_DIRECTORY.
39476         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
39477
39478 2009-12-09  Bruno Haible  <bruno@clisp.org>
39479
39480         * lib/fchdir.c: Update comment.
39481
39482 2009-12-09  Bruno Haible  <bruno@clisp.org>
39483
39484         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
39485
39486 2009-12-08  Eric Blake  <ebb9@byu.net>
39487
39488         fchdir: avoid memory leak on re-registration.
39489         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
39490
39491 2009-12-08  Jim Meyering  <meyering@redhat.com>
39492
39493         init.sh: avoid Solaris 10 /bin/sh portability problem
39494         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
39495         sourced script:
39496           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
39497           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
39498           bar
39499         tests/init.sh relied on that, accepting a --set-path=DIR argument,
39500         and two tests used that idiom.
39501         * tests/init.sh: Update suggested usage comments.
39502         (path_prepend_): New function, to be used in place
39503         of the --src-path=DIR option.
39504         (setup_): Move PATH-prepending code into path_prepend_.
39505         * tests/test-pread.sh: Adapt to new usage.
39506         * tests/test-xalloc-die.sh: Likewise.
39507
39508 2009-12-08  Simon Josefsson  <simon@josefsson.org>
39509
39510         * doc/gnulib.texi (Glibc pty.h): Add.
39511         * doc/glibc-functions/forkpty.texi: Add.
39512         * doc/glibc-functions/openpty.texi: Add.
39513         Suggested by Bruno Haible.
39514
39515 2009-12-08  Eric Blake  <ebb9@byu.net>
39516
39517         fchdir: fix logic bugs
39518         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
39519         * tests/test-fchdir.c (main): Enhance test.
39520         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
39521         is in use.
39522
39523         dup2: fix logic bugs
39524         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
39525         REPLACE_DUP2 to decide when rpl_dup2 is needed.
39526         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
39527         exists.
39528         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
39529
39530 2009-12-07  Eric Blake  <ebb9@byu.net>
39531
39532         unlink: fix m4 detection
39533         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
39534
39535         unistd-safer: add unit test
39536         * modules/unistd-safer-tests: New file.
39537         * tests/test-dup-safer.c: Likewise.
39538         * tests/test-cloexec.c (setmode): Avoid compiler warning.
39539         * tests/test-dup2.c (setmode): Likewise.
39540         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
39541
39542         cloexec: preserve text vs. binary across dup_cloexec
39543         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
39544         mode.
39545         * modules/dup2-tests (Depends-on): Add binary-io.
39546         * modules/cloexec-tests (Depends-on): Likewise.
39547         * tests/test-dup2.c (setmode, is_mode): New helpers.
39548         (main): Add tests that translation mode is preserved.
39549         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
39550         Reported by Bruno Haible.
39551
39552         mgetgroups: reduce duplicate listings
39553         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
39554         resulting array.
39555         * tests/test-chown.h (test_chown): Simplify client.
39556         * tests/test-lchown.h (test_lchown): Likewise.
39557
39558 2009-12-06  Bruno Haible  <bruno@clisp.org>
39559
39560         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
39561         value.
39562
39563 2009-12-06  Bruno Haible  <bruno@clisp.org>
39564
39565         * lib/progname.c: Include stdio.h, stdlib.h.
39566         (set_program_name): Reject a NULL argument.
39567
39568 2009-12-05  Eric Blake  <ebb9@byu.net>
39569
39570         pipe2-safer: new module
39571         * modules/pipe2-safer: New file.
39572         * lib/unistd-safer.h (pipe2_safer): New prototype.
39573         * lib/unistd--.h (pipe2): New wrapper.
39574         * lib/pipe-safer.c (pipe2_safer): New function.
39575         * modules/pipe (Depends-on): Add pipe2-safer.
39576         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
39577
39578         stdlib-safer: preserve cloexec flag for mkostemp[s]
39579         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
39580         fd_safer_flag.
39581
39582         unistd-safer: allow preservation of cloexec status via flag
39583         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
39584         prototypes.
39585         * lib/dup-safer.c (dup_safer_flag): New function.
39586         * lib/fd-safer.c (fd_safer_flag): Likewise.
39587         * modules/cloexec (configure.ac): Set witness.
39588
39589         test-dup2: enhance test
39590         * modules/dup2-tests (Depends-on): Add cloexec.
39591         * tests/test-dup2.c (main): Enhance test.
39592
39593         cloexec: add dup_cloexec
39594         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
39595         header and comments.
39596         * lib/cloexec.c (set_cloexec_flag): Add comments.
39597         (dup_cloexec): New function, with mingw implementation borrowed
39598         from...
39599         * lib/w32spawn.h (dup_noinherit): ...here.
39600         * modules/execute (Depends-on): Add cloexec.
39601         * modules/pipe (Depends-on): Likewise.
39602         * modules/cloexec (Depends-on): Add dup2.
39603         * modules/cloexec-tests (Files): New file.
39604         * tests/test-cloexec.c: Likewise.
39605
39606         test-xalloc-die: fix test for mingw
39607         * modules/xalloc-die-tests (Files): Add tests/init.sh.
39608         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
39609         directory and .exe suffix off argv[0] output.
39610
39611         test-fseeko: fix test for mingw
39612         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
39613         than undefining fseek, so test will pass on mingw.
39614
39615 2009-12-05  Bruno Haible  <bruno@clisp.org>
39616
39617         * lib/progname.h (set_program_name): Clarify specification.
39618         * lib/progname.c (set_program_name): Likewise.
39619         Reported by Jim Meyering.
39620
39621 2009-12-05  Jim Meyering  <meyering@redhat.com>
39622
39623         maint.mk: backslash-escape parens in default regexp
39624         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
39625         backslash-escape the literal parentheses.
39626
39627         maint.mk: news-date-check: use grep -E
39628         * top/maint.mk (today): Define a Make variable, not a...
39629         (news-date-check): ...shell variable.
39630         (news-date-regexp): Use the Make variable.
39631         Use grep's -E option.  Change the failing diagnostic to mention
39632         the variable, $(news-date-regexp).
39633
39634 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
39635
39636         maintainer-makefile: allow customization of NEWS entry format
39637         * top/maint.mk (news-date-regexp): New overridable variable.
39638         (news-date-check): Use it.
39639
39640 2009-12-04  Eric Blake  <ebb9@byu.net>
39641
39642         mgetgroups: add xgetgroups, and avoid ENOSYS failures
39643         * lib/mgetgroups.h (xgetgroups): New prototype.
39644         * lib/mgetgroups.c (xgetgroups): New wrapper.
39645         (mgetgroups): Handle ENOSYS.
39646         * modules/mgetgroups (Depends-on): Add realloc.
39647         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
39648
39649         mgetgroups: avoid argument promotion issues with -1
39650         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
39651         for invalid gid_t.
39652         * tests/test-chown.h (getegid, test_chown): Likewise.
39653         * tests/test-lchown.h (getegid, test_lchown): Likewise.
39654
39655 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
39656
39657         exclude: Fix header file problems.
39658         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
39659
39660 2009-12-01  Jim Meyering  <meyering@redhat.com>
39661
39662         fts: fts_open: do not let an empty string cause immediate failure
39663         This is required in support of GNU rm, for which the command
39664         "rm A '' B" must process and remove both A and B, in spite of
39665         the empty string argument.
39666         * lib/fts.c (fts_open): Do not let the presence of an empty string
39667         cause fts_open to fail immediately.  Most fts-using tools must be
39668         able to process all arguments, in order, and can be expected to
39669         diagnose such arguments themselves.
39670
39671 2009-11-30  Eric Blake  <ebb9@byu.net>
39672
39673         utimens: fix compilation error
39674         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
39675         Declare variable at right scope.
39676
39677 2009-11-29  Jim Meyering  <meyering@redhat.com>
39678
39679         bootstrap: handle perl-5.11's changed --version output
39680         * build-aux/bootstrap (get_version): Handle perl separately,
39681         since perl-5.11's --version output is different.
39682
39683 2009-11-28  Jim Meyering  <meyering@redhat.com>
39684
39685         userspec: depend on the inttostr module, too
39686         * modules/userspec (Depends-on): Add inttostr.
39687
39688         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
39689         * lib/userspec.c (parse_with_separator): Do not accept a user ID
39690         number of MAXUID when it evaluates to (uid_t) -1.
39691         Likewise for group ID.  Reported by Matt McCutchen in
39692         <http://savannah.gnu.org/bugs/?28113>
39693
39694         userspec: reformat to use spaces, not TABs
39695         * lib/userspec.c: Expand TABs to spaces.
39696         Add Emacs' "indent-tabs-mode: nil" hint.
39697
39698 2009-11-27  Eric Blake  <ebb9@byu.net>
39699
39700         getopt-gnu: flush out another BSD bug
39701         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
39702         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
39703         flush out BSD bug.
39704         * tests/test-getopt.h (test_getopt): End lists with NULL.
39705         * tests/test-getopt_long.h (test_getopt_long): Likewise.
39706         (test_getopt_long_posix): Enhance test.
39707         * modules/getopt-posix-tests (Depends-on): Add stdbool.
39708         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
39709         getopt-gnu.
39710         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39711         Likewise.
39712
39713 2009-11-27  Simon Josefsson  <simon@josefsson.org>
39714
39715         * modules/idpriv-droptemp-tests (Notice): Fix text.
39716
39717 2009-11-27  Jim Meyering  <meyering@redhat.com>
39718
39719         test-xalloc-die: avoid spurious failure due to libtool argv difference
39720         In a libtool-enabled project, this test would fail due to a difference
39721         in the emitted program name, e.g.,
39722         -test-xalloc-die: memory exhausted
39723         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
39724         Use program to avoid that.
39725         * modules/xalloc-die-tests (Depends-on): Add progname.
39726         * tests/test-xalloc-die.c: Include progname.h".
39727         (program_name): Remove decl.
39728         (main): Call set_program_name.
39729         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
39730
39731 2009-11-26  Richard Jones  <rjones@redhat.com>
39732
39733         w32sock: leave win32 error in place.
39734         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
39735
39736 2009-11-26  Eric Blake  <ebb9@byu.net>
39737
39738         init.sh: suggest to use skip_ and fail_ functions in comments
39739         * tests/init.sh: Add a sentence.
39740
39741 2009-11-25  Bruno Haible  <bruno@clisp.org>
39742
39743         init.sh: add documentation in comments
39744         * tests/init.sh: Add some developer and user documentation.
39745
39746 2009-11-26  Jim Meyering  <meyering@redhat.com>
39747
39748         init.sh: accommodate even those who specify bogus srcdir manually
39749         * tests/init.sh: Normally, srcdir is guaranteed by automake and
39750         configure-time tests to be sanitized, so that there is no need to
39751         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
39752         (with no double quotes) suffices.  However, since tests may be
39753         invoked manually, and since you may explicitly set srcdir to the
39754         name of a directory containing spaces, do quote its uses here.
39755         * tests/test-pread.sh: Likewise.
39756         Suggested by Bruno Haible.
39757
39758         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
39759         * tests/test-pread.sh: Write no data into the pipe, because
39760         test-pread actually reads none.  This avoids a diagnostic,
39761         "bash: echo: write error: Broken pipe", that arises in the unusual
39762         event something is ignoring SIGPIPE, and might be interpreted
39763         as some sort of failure.  Reported by Bruno Haible.
39764
39765 2009-11-25  Jim Meyering  <meyering@redhat.com>
39766
39767         test-pread: cover failure with ESPIPE and EINVAL
39768         * tests/test-pread.c (main): Test for failure, too.
39769         * tests/test-pread.sh: Invoke with stdin on a pipe.
39770         Suggested by Eric Blake.
39771
39772         pread: improvement and fix
39773         * modules/pread (Depends-on): Depend on lseek, for portability to
39774         e.g., mingw.  Suggested by Eric Blake.
39775         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
39776
39777         unistd.in.h: correct declaration of pread
39778         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
39779         Reported by Richard W.M. Jones.
39780
39781         test-pread.sh: distribute the test script
39782         * modules/pread-tests (Files): Include test-pread.sh.
39783
39784         test-pread.sh: clean up
39785         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
39786         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
39787         That is unnecessary, since it's always ".".
39788         Suggestion from Eric Blake.
39789
39790         test-pread.sh: make executable
39791         * tests/test-pread.sh: Set executable bit.
39792         Reported by Eric Blake.
39793
39794         correct typo in test-pread.sh
39795         * tests/test-pread.sh: Add #! line.
39796
39797         test pread
39798         * tests/test-pread.c: New file.
39799         * tests/test-pread.sh: Likewise.
39800         * modules/pread-tests: Likewise.
39801
39802         pread: new module
39803         * modules/pread: New file.
39804         * lib/unistd.in.h (pread): Define/declare.
39805         * lib/pread.c (pread): New file.
39806         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
39807         * modules/unistd (Makefile.am): Substitute witnesses.
39808         * doc/posix-functions/pread.texi (pread): Update.
39809         * MODULES.html.sh: Add pread.
39810
39811 2009-11-25  Jim Meyering  <meyering@redhat.com>
39812
39813         tests/init.sh: new file to be used via most *.sh tests
39814         * tests/init.sh: New file.
39815
39816 2009-11-25  Eric Blake  <ebb9@byu.net>
39817
39818         utimens: work around older Linux failure with symlinks
39819         * lib/utimens.c (lutimensat_works_really): New variable.
39820         (fdutimens, lutimens): Use it to manage kernels that support
39821         nanosecond times on files, but not on symlinks.
39822         Reported by OndÅ™ej Vašík.
39823
39824         utimes: fix configure grammar
39825         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
39826
39827 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
39828
39829         regex: Fix fastmap for multibyte character ranges.
39830         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
39831         characters when a multibyte character range is included.
39832
39833 2009-11-22  Andy Wingo  <wingo@pobox.com>
39834
39835         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
39836         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
39837
39838 2009-11-24  Bruno Haible  <bruno@clisp.org>
39839
39840         doc: Most *_l functions exist in MacOS X 10.5.
39841         * doc/posix-functions/duplocale.texi: Update platforms list.
39842         * doc/posix-functions/freelocale.texi: Likewise.
39843         * doc/posix-functions/newlocale.texi: Likewise.
39844         * doc/posix-functions/uselocale.texi: Likewise.
39845         * doc/posix-functions/isalnum_l.texi: Likewise.
39846         * doc/posix-functions/isalpha_l.texi: Likewise.
39847         * doc/posix-functions/isblank_l.texi: Likewise.
39848         * doc/posix-functions/iscntrl_l.texi: Likewise.
39849         * doc/posix-functions/isdigit_l.texi: Likewise.
39850         * doc/posix-functions/isgraph_l.texi: Likewise.
39851         * doc/posix-functions/islower_l.texi: Likewise.
39852         * doc/posix-functions/isprint_l.texi: Likewise.
39853         * doc/posix-functions/ispunct_l.texi: Likewise.
39854         * doc/posix-functions/isspace_l.texi: Likewise.
39855         * doc/posix-functions/isupper_l.texi: Likewise.
39856         * doc/posix-functions/iswalnum_l.texi: Likewise.
39857         * doc/posix-functions/iswalpha_l.texi: Likewise.
39858         * doc/posix-functions/iswblank_l.texi: Likewise.
39859         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39860         * doc/posix-functions/iswctype_l.texi: Likewise.
39861         * doc/posix-functions/iswdigit_l.texi: Likewise.
39862         * doc/posix-functions/iswgraph_l.texi: Likewise.
39863         * doc/posix-functions/iswlower_l.texi: Likewise.
39864         * doc/posix-functions/iswprint_l.texi: Likewise.
39865         * doc/posix-functions/iswpunct_l.texi: Likewise.
39866         * doc/posix-functions/iswspace_l.texi: Likewise.
39867         * doc/posix-functions/iswupper_l.texi: Likewise.
39868         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39869         * doc/posix-functions/isxdigit_l.texi: Likewise.
39870         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
39871         * doc/posix-functions/strcasecmp_l.texi: Likewise.
39872         * doc/posix-functions/strcoll_l.texi: Likewise.
39873         * doc/posix-functions/strfmon_l.texi: Likewise.
39874         * doc/posix-functions/strftime_l.texi: Likewise.
39875         * doc/posix-functions/strncasecmp_l.texi: Likewise.
39876         * doc/posix-functions/strxfrm_l.texi: Likewise.
39877         * doc/posix-functions/tolower_l.texi: Likewise.
39878         * doc/posix-functions/toupper_l.texi: Likewise.
39879         * doc/posix-functions/towctrans_l.texi: Likewise.
39880         * doc/posix-functions/towlower_l.texi: Likewise.
39881         * doc/posix-functions/towupper_l.texi: Likewise.
39882         * doc/posix-functions/wcscoll_l.texi: Likewise.
39883         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39884         * doc/posix-functions/wctrans_l.texi: Likewise.
39885         * doc/posix-functions/wctype_l.texi: Likewise.
39886         * doc/glibc-functions/strptime_l.texi: Likewise.
39887         * doc/glibc-functions/strtod_l.texi: Likewise.
39888         * doc/glibc-functions/strtof_l.texi: Likewise.
39889         * doc/glibc-functions/strtol_l.texi: Likewise.
39890         * doc/glibc-functions/strtold_l.texi: Likewise.
39891         * doc/glibc-functions/strtoll_l.texi: Likewise.
39892         * doc/glibc-functions/strtoul_l.texi: Likewise.
39893         * doc/glibc-functions/strtoull_l.texi: Likewise.
39894         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39895         * doc/glibc-functions/wcstod_l.texi: Likewise.
39896         * doc/glibc-functions/wcstof_l.texi: Likewise.
39897         * doc/glibc-functions/wcstol_l.texi: Likewise.
39898         * doc/glibc-functions/wcstold_l.texi: Likewise.
39899         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39900         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39901         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39902
39903 2009-11-24  Bruno Haible  <bruno@clisp.org>
39904
39905         duplocale: Fix logic bug.
39906         * lib/duplocale.c: Don't include <langinfo.h>.
39907         (_NL_LOCALE_NAME): Remove macro.
39908         (rpl_duplocale): Use setlocale instead of nl_langinfo.
39909         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
39910
39911 2009-11-23  Jim Meyering  <meyering@redhat.com>
39912
39913         test-update-copyright: don't hard-code /usr/bin/perl
39914         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
39915         perl to print the current year.  Gilles Espinasse reported that
39916         the replaced use of perl was hard-coded as /usr/bin/perl.
39917
39918 2009-11-23  Bruno Haible  <bruno@clisp.org>
39919
39920         duplocale: Add support for glibc 2.3.x.
39921         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
39922
39923 2009-11-22  Bruno Haible  <bruno@clisp.org>
39924
39925         vasnprintf: Tiny optimization.
39926         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
39927         MacOS X.
39928
39929 2009-11-22  Bruno Haible  <bruno@clisp.org>
39930
39931         Tests for module 'duplocale'.
39932         * modules/duplocale-tests: New file.
39933         * tests/test-duplocale.c: New file.
39934
39935         New module 'duplocale'.
39936         * m4/duplocale.m4: New file.
39937         * lib/locale.in.h (duplocale): New declaration.
39938         * lib/duplocale.c: New file.
39939         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
39940         gl_LOCALE_H_DEFAULTS): New macros.
39941         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
39942         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
39943         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
39944         REPLACE_DUPLOCALE.
39945         * modules/duplocale: New file.
39946         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
39947
39948 2009-11-22  Bruno Haible  <bruno@clisp.org>
39949
39950         * modules/locale-tests (configure.ac): Test for newlocale function.
39951         * tests/test-locale.c: When the system has extended locale functions,
39952         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
39953
39954         locale: Make locale_t available when possible.
39955         * lib/locale.in.h: Include <xlocale.h> when it exists.
39956         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
39957         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
39958         * modules/locale (Depends-on): Add extensions.
39959         (Makefile.am): Also substitute HAVE_XLOCALE_H.
39960         * doc/posix-headers/locale.texi: Document the problem with locale_t.
39961
39962 2009-11-22  Bruno Haible  <bruno@clisp.org>
39963
39964         Add comments.
39965         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
39966         invocation.
39967         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
39968         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
39969         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39970
39971 2009-11-22  Bruno Haible  <bruno@clisp.org>
39972
39973         error: account for the possibility of freopen (stdout).
39974         * lib/error.c: Include <unistd.h>.
39975         (flush_stdout): New function, extracted from error and error_at_line.
39976         Determine stdout's fd dynamically.
39977         (error, error_at_line): Invoke flush_stdout.
39978         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
39979         * modules/error (Depends-on): Add unistd.
39980
39981 2009-11-22  Bruno Haible  <bruno@clisp.org>
39982
39983         diffseq: Add comment.
39984         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
39985
39986 2009-11-22  Jim Meyering  <meyering@redhat.com>
39987
39988         c-stack: avoid defining an unused static function
39989         * lib/c-stack.c (find_stack_direction): Do not define this function
39990         when it will not be used.
39991
39992         diffseq: avoid spurious gcc warnings
39993         * lib/diffseq.h (IF_LINT2): Define.
39994         (compareseq): Use it to initialize two members of "part".
39995         This avoids two used-uninitialized warnings.
39996
39997 2009-11-21  Jim Meyering  <meyering@redhat.com>
39998
39999         c-stack: avoid "ignoring return value of `write'" warning
40000         * lib/c-stack.c: Include "ignore-value.h".
40001         (die): Explicitly ignore each write return value.
40002         * modules/c-stack (Depends-on): Add ignore-value.
40003
40004 2009-11-21  Bruno Haible  <bruno@clisp.org>
40005
40006         diffseq: reduce scope of variable 'best'.
40007         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
40008         variable, earlier used for two different purposes.
40009
40010 2009-11-21  Jim Meyering  <meyering@redhat.com>
40011
40012         diffseq: remove useless assignment to "best"
40013         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
40014         assignment.  At that point "best" is already guaranteed to be zero.
40015
40016 2009-11-20  Eric Blake  <ebb9@byu.net>
40017
40018         build: mention ftp redirector in release announcements
40019         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
40020         values that used to come from cfg.mk; mention FTP redirect URL.
40021         * build-aux/announce-gen: Mention the mirror list.
40022         Suggested by Karl Berry.
40023
40024         nanosleep: improve port to mingw
40025         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
40026         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
40027         LIB_NANOSLEEP, but only when needed.
40028         * modules/select (Link): Document LIBSOCKET.
40029         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
40030         enough.
40031
40032         nanosleep: work around cygwin bug
40033         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
40034         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
40035         bug.
40036         (getnow): Delete, not needed.
40037         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
40038         LIB_CLOCK_GETTIME.
40039         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
40040         clock-time, gettime.
40041         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
40042         bug.
40043         * modules/nanosleep-tests: New test.
40044         * tests/test-nanosleep.c: New file.
40045
40046         sleep: work around cygwin bug
40047         * lib/sleep.c (rpl_sleep): Work around the bug.
40048         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
40049         (gl_PREREQ_SLEEP): Delete unused macro.
40050         * modules/sleep (Depends-on): Add verify.
40051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
40052         * modules/unistd (Makefile.am): Substitute witness.
40053         * lib/unistd.in.h (sleep): Update prototype.
40054         * doc/posix-functions/sleep.texi (sleep): Document the bug.
40055         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
40056         * modules/sleep-tests (Depends-on): Check for alarm.
40057
40058 2009-11-20  Jim Meyering  <meyering@redhat.com>
40059
40060         maint.mk: improve sc_prohibit_magic_number_exit
40061         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
40062         so it does not match uses like System.exit(1).
40063         Add comments showing how to correct all offenders.
40064
40065 2009-11-19  Eric Blake  <ebb9@byu.net>
40066
40067         xalloc-die-tests: add missing library
40068         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
40069
40070         test-xvasprintf: silence compiler warnings
40071         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
40072         empty string from gcc.
40073
40074 2009-11-19  Jim Meyering  <meyering@redhat.com>
40075
40076         xfreopen: new module, from coreutils
40077         * modules/xfreopen: New module.
40078         * lib/xfreopen.c: New file.
40079         * lib/xfreopen.h: New file.
40080         * MODULES.html.sh (File stream based Input/Output"): Add it.
40081
40082 2009-11-19  Eric Blake  <ebb9@byu.net>
40083
40084         manywarnings: depend on warnings
40085         * modules/manywarnings (Depends-on): Add warnings.
40086
40087         build: avoid compiler warnings
40088         * lib/select.c (rpl_select): Delete unused variable.
40089         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
40090
40091 2009-11-18  Eric Blake  <ebb9@byu.net>
40092
40093         tests: avoid false negative with --with-packager
40094         * tests/test-version-etc.sh: Discard packager information.
40095         * tests/test-argp-version-etc-1.sh: Likewise.
40096         Reported by Mike Frysinger.
40097
40098         utimens: fix regression on Solaris
40099         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
40100         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
40101         can only change fd timestamps via futimesat.  Instead, use an
40102         additional witness macro to avoid BSD bug.
40103         Reported by Jim Meyering.
40104
40105 2009-11-17  Eric Blake  <ebb9@byu.net>
40106
40107         usleep: use it to simplify tests
40108         * modules/stat-time-tests (Depends-on): Add usleep.
40109         (configure.ac): Drop usleep check.
40110         * modules/chown-tests (Depends-on, configure.ac): Likewise.
40111         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
40112         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
40113         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
40114         * modules/openat-tests (Depends-on, configure.ac): Likewise.
40115         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
40116         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
40117         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
40118         Likewise.
40119         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
40120         * tests/test-lchown.h (nap): Likewise.
40121         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
40122         * tests/test-stat-time.c (nap): Likewise.
40123         * tests/test-utimens-common.h (nap): Update comments.
40124
40125         usleep: new module
40126         * modules/usleep: New file.
40127         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
40128         * lib/usleep.c (usleep): Likewise.
40129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40130         * modules/unistd (Makefile.am): Substitute witnesses.
40131         * lib/unistd.in.h (usleep): Add declaration.
40132         * doc/pastposix-functions/usleep.texi (usleep): Document this.
40133         * MODULES.html.sh (Date and time): Likewise.
40134         * modules/usleep-tests (Depends-on): New test.
40135         * tests/test-usleep.c: New file.
40136
40137         chown: work around OpenBSD bug
40138         * lib/chown.c (rpl_chown): Work around the bug.
40139         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
40140         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
40141         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
40142         * modules/chown (Depends-on): Add stdbool.
40143         * modules/lchown (Depends-on): Likewise.
40144         * doc/posix-functions/chown.texi (chown): Document the bug.
40145         * doc/posix-functions/lchown.texi (lchown): Likewise.
40146         * tests/test-lchown.h (test_chown): Relax test.
40147
40148         mkstemp: avoid conflict with C++ keyword template
40149         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
40150         * lib/mkostemp.c (mkostemp): Likewise.
40151         * lib/mkostemps.c (mkostemps): Likewise.
40152         * lib/mkstemp.c (mkstemp): Likewise.
40153         * lib/mkstemps.c (mkstemps): Likewise.
40154
40155         xalloc-die-tests: optimize
40156         * tests/test-xalloc-die.sh: Reduce number of processes.
40157
40158 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40159
40160         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
40161         patch from ludo@gnu.org (Ludovic Courtès).
40162
40163 2009-11-17  Jim Meyering  <meyering@redhat.com>
40164
40165         version-etc: use proper license string
40166         * modules/version-etc (License): Use LGPL, not LGPLv3+.
40167         * modules/version-etc-fsf: Likewise.
40168
40169 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40170
40171         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
40172         printed to stdout.  Deal with EOL differences.
40173
40174 2009-11-17  Eric Blake  <ebb9@byu.net>
40175
40176         unsetenv: work around Solaris bug
40177         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
40178         * lib/unsetenv.c (rpl_unsetenv): Work around it.
40179         Reported by Jim Meyering.
40180
40181         vasnprintf: avoid compiler warnings
40182         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
40183         variables.
40184         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
40185
40186 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40187
40188         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
40189         settings since xalloc-die is no longer the self test,
40190         xalloc-die.sh is.
40191
40192 2009-11-17  Jim Meyering  <meyering@redhat.com>
40193
40194         test-xalloc-die.sh: make the code agree with the commit log
40195         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
40196         at the end, just in case you happen to have a test-xalloc-die
40197         program in some other PATH directory.
40198
40199         test-xalloc-die.sh: fix a portability bug
40200         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
40201         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
40202         Otherwise, argv[0] (as often seen in diagnostics) would be too
40203         system-dependent, sometimes with, and sometimes without the leading "./".
40204
40205         version-etc-fsf: relax license to LGPLv3+
40206         * modules/version-etc-fsf (License): Relax license.
40207
40208 2009-11-16  Eric Blake  <ebb9@byu.net>
40209
40210         xalloc-die-tests: avoid printing null pointer
40211         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
40212         shell script.
40213         * tests/test-xalloc-die.c (program_name): Declare.
40214         * tests/test-xalloc-die.sh (tmpfiles): New file.
40215
40216         setenv, unsetenv: work around various bugs
40217         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
40218         (setenv) [HAVE_SETENV]: Work around bugs.
40219         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
40220         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
40221         for bugs.
40222         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
40223         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
40224         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
40225         * modules/stdlib (Makefile.am): Update substitutions.
40226         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
40227         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
40228         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
40229         * modules/setenv-tests: New test.
40230         * modules/unsetenv-tests: Likewise.
40231         * tests/test-setenv.c: New file.
40232         * tests/test-unsetenv.c: Likewise.
40233
40234 2009-11-16  Jim Meyering  <meyering@redhat.com>
40235
40236         version-etc: relax license to LGPLv3+
40237         * modules/version-etc (License): Relax license.
40238
40239         better AC_REQUIRE expanded-before-required-warning avoidance
40240         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
40241         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
40242         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
40243         which is no longer needed.
40244
40245 2009-11-16  Eric Blake  <ebb9@byu.net>
40246
40247         test-freading: clean up temporary file
40248         * tests/test-freading.c (main): Remove file on success, and use
40249         ASSERT more liberally.
40250         Reported by Jim Meyering.
40251
40252 2009-11-16  Jim Meyering  <meyering@redhat.com>
40253
40254         avoid new AC_REQUIRE expanded-before-required warnings
40255         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
40256         merely using it.
40257         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
40258         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
40259
40260 2009-11-15  Simon Josefsson  <simon@josefsson.org>
40261
40262         * tests/test-xalloc-die.c: New file.
40263         * modules/xalloc-die-tests: New file.
40264         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
40265         XFAIL_TESTS so it can be appended by modules.
40266
40267 2009-11-15  Simon Josefsson  <simon@josefsson.org>
40268
40269         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
40270         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
40271
40272 2009-11-14  Eric Blake  <ebb9@byu.net>
40273
40274         fnmatch: avoid compiler warning
40275         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
40276         to silence compiler warning about mismatch signedness in ?:.
40277         Reported by Robert Millan.
40278
40279         intprops: add double-inclusion guard
40280         * lib/intprops.h: Allow idempotent includes.
40281         Suggested by Bruce Korb.
40282
40283         openat: detect Solaris fchownat bug
40284         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
40285         penalizing glibc chownat when only lchownat is broken.
40286         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
40287         trailing slash bugs.
40288         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
40289         * modules/openat-tests (Files): Include more files.
40290         (Depends-on): Add mgetgroups, sleep, stat-time.
40291         (configure.ac): Add additional checks.
40292         (Makefile.am): Build new test.
40293         * tests/test-fchownat.c: New file.
40294
40295         lchown: detect Solaris and FreeBSD bug
40296         * lib/lchown.c (rpl_lchown): Work around bug.
40297         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
40298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40299         * modules/unistd (Makefile.am): Populate it.
40300         * lib/unistd.in.h (lchown): Update declaration.
40301         * doc/posix-functions/lchown.texi (lchown): Document the bug.
40302         * modules/lchown-tests: New file.
40303         * tests/test-lchown.h (test_lchown): Likewise.
40304         * tests/test-lchown.c (main): Likewise.
40305
40306         chown: detect Solaris and FreeBSD bug
40307         * lib/chown.c (rpl_chown): Work around bug.
40308         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
40309         (gl_PREREQ_CHOWN): Delete.
40310         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40311         * modules/unistd (Makefile.am): Populate it.
40312         * lib/unistd.in.h (chown): Update declaration.
40313         * lib/lchown.c (chown): Update client.
40314         * modules/lchown (Depends-on): Add lstat.
40315         * doc/posix-functions/chown.texi (chown): Document the bug.
40316         * doc/posix-functions/getgroups.texi (getgroups): Document
40317         getgroups pitfall.
40318         * modules/chown-tests: New file.
40319         * tests/test-chown.h (test_chown): Likewise.
40320         * tests/test-chown.c (main): Likewise.
40321
40322 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
40323
40324         gnulib-tool: correctly detect absence of m4 directories
40325         * gnulib-tool: Avoid extra newline on data passed to wc -l.
40326
40327 2009-11-14  Jim Meyering  <meyering@redhat.com>
40328
40329         maint.mk: Prohibit inclusion of "xalloc.h" without use.
40330         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
40331
40332 2009-11-14  John W. Eaton  <jwe@gnu.org>
40333
40334         strftime.h: wrap function declaration in extern "C" block
40335         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
40336
40337 2009-11-13  Eric Blake  <ebb9@byu.net>
40338
40339         getgroups: avoid compiler warning
40340         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
40341
40342         getgroups: work around FreeBSD bug
40343         * lib/getgroups.c (rpl_getgroups): Work around the bug.
40344         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
40345         * doc/posix-functions/getgroups.texi (getgroups): Document it.
40346         * tests/test-getgroups.c (main): Fix buffer overrun.
40347
40348         getgroups: avoid compilation failure
40349         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
40350         * modules/getgroups (Depends-on): Add stdint.
40351
40352 2009-11-13  Jim Meyering  <meyering@redhat.com>
40353
40354         test-getgroups: avoid compilation failure
40355         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
40356
40357 2009-11-13  Eric Blake  <ebb9@byu.net>
40358
40359         mgetgroups: new module, taken from coreutils
40360         * modules/mgetgroups: New file.
40361         * lib/mgetgroups.h: Likewise.
40362         * lib/mgetgroups.c (mgetgroups): Likewise.
40363         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
40364         * MODULES.html.sh (Users and groups): Mention it.
40365
40366         getgroups: don't expose GETGROUPS_T to user
40367         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
40368         an element at a time if GETGROUPS_T is wrong size.
40369         * lib/getugroups.h (getugroups): Change signature.
40370         * lib/unistd.in.h (getgroups): Likewise.
40371         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
40372         signature needs fixing.
40373         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
40374         AC_TYPE_GETGROUPS.
40375         * modules/group-member (Depends-on): Add getgroups.
40376         * lib/group-member.c (group_info, get_group_info): Use gid_t.
40377         (group_member): Rely on getgroups replacement.
40378         * lib/getugroups.c (getugroups): Use gid_t.
40379         * tests/test-getgroups.c (main): Likewise.
40380         * NEWS: Mention the signature change.
40381         * doc/posix-functions/getgroups.texi (getgroups): Mention the
40382         problem with signature.
40383         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
40384         GETGROUPS_T is still useful for setgroups.
40385
40386         getgroups, getugroups: provide stubs for mingw
40387         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
40388         * lib/getugroups.c (getugroups): Likewise.
40389         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
40390         function.  Modernize replacement scheme.
40391         (gl_PREREQ_GETGROUPS): Delete.
40392         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
40393         * modules/getgroups (configure.ac): Declare witness.
40394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
40395         * modules/unistd (Depends-on): Substitute witness.
40396         * lib/unistd.in.h (getgroups): Declare replacement.
40397
40398         getgroups: avoid calling exit
40399         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
40400         drop xalloc.
40401         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
40402         dependencies.
40403         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
40404         exiting, in the rare case of malloc failure.
40405
40406         getgroups: fix logic error
40407         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
40408         has more than 20 groups.
40409         * modules/getgroups-tests: New test.
40410         * tests/test-getgroups.c: New file.
40411
40412 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40413
40414         * tests/test-base64.c: Improve.
40415
40416 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40417
40418         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
40419         Blake <ebb9@byu.net>.
40420
40421 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40422
40423         * tests/test-xvasprintf.c: Add %s%s related checks.
40424
40425 2009-11-12  Eric Blake  <ebb9@byu.net>
40426
40427         version-etc: match standards.texi style
40428         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
40429         and use <> only for URLs.
40430
40431 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
40432
40433         fts: do not fail on a submount during traversal
40434         * lib/fts.c (fts_build): Read the stat info again after opening
40435         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
40436         Original report at http://bugzilla.redhat.com/501848.
40437
40438 2009-11-12  Jim Meyering  <meyering@redhat.com>
40439
40440         bootstrap: sync from coreutils
40441         * build-aux/bootstrap (bootstrap_epilogue): New function.
40442         Use git_modules_config in one more place.  This make bootstrap's
40443         --gnulib-srcdir option more useful for testing.
40444
40445         bootstrap: generalize autoheader check
40446         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
40447         AC_CONFIG_HEADERS.
40448
40449 2009-11-11  Eric Blake  <ebb9@byu.net>
40450
40451         mkfifoat: use new modules for Solaris and BSD bugs
40452         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
40453         * lib/mkfifoat.c (mknodat): Split...
40454         * lib/mknodat.c (mknodat): ...into new file.
40455         * modules/mkfifoat (Files): Ship new file.
40456         (Depends-on): Add mkfifo, mknod.
40457         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
40458         (Depends-on): Add symlink.
40459         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
40460         redundant with test_mkfifo.h.
40461         (do_mkfifoat, do_mknodat): New helpers.
40462
40463         mknod: new module
40464         * modules/mknod: New file.
40465         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
40466         * lib/mknod.c (mknod): Likewise.
40467         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
40468         defaults.
40469         * modules/sys_stat (Makefile.am): Substitute them.
40470         * lib/sys_stat.in.h (mknod): Declare replacement.
40471         * MODULES.html.sh (Support for systems lacking POSIX:2008):
40472         Document it.
40473         * doc/posix-functions/mknod.texi (mknod): Likewise.
40474         * modules/mknod-tests: New test.
40475         * tests/test-mknod.c: Likewise.
40476
40477         mkfifo: new module
40478         * modules/mkfifo: New file.
40479         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
40480         * lib/mkfifo.c (mkfifo): Likewise.
40481         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
40482         defaults.
40483         * modules/sys_stat (Makefile.am): Substitute them.
40484         * lib/sys_stat.in.h (mkfifo): Declare replacement.
40485         * MODULES.html.sh (Support for systems lacking POSIX:2008):
40486         Document it.
40487         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
40488         * modules/mkfifo-tests: New test.
40489         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
40490         from test-mkfifoat.c.
40491         * tests/test-mkfifo.c: New file.
40492
40493         readlink: detect FreeBSD bug
40494         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
40495         slash on symlink.
40496         * doc/posix-functions/readlink.texi (readlink): Document the bug.
40497         * tests/test-readlink.h (test_readlink): Enhance test.
40498
40499         symlink: detect FreeBSD bug
40500         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
40501         slash on symlink.
40502         * doc/posix-functions/symlink.texi (symlink): Document the bug.
40503         * tests/test-symlink.h (test_symlink): Enhance test.
40504
40505 2009-11-10  Eric Blake  <ebb9@byu.net>
40506
40507         link: detect FreeBSD bug
40508         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
40509         symlink.
40510         * doc/posix-functions/link.texi (link): Document the bug.
40511         * tests/test-link.h (test_link): Enhance test.
40512         * tests/test-linkat.c (main): Update caller.
40513
40514         unlink, remove: detect FreeBSD bug
40515         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
40516         slash on symlink.
40517         * doc/posix-functions/unlink.texi (unlink): Document the bug.
40518         * doc/posix-functions/remove.texi (remove): Likewise.
40519         * tests/test-unlink.h (test_unlink): Enhance test.
40520         * tests/test-remove.c (main): Likewise.
40521
40522 2009-11-09  Eric Blake  <ebb9@byu.net>
40523
40524         rename: detect FreeBSD bug
40525         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
40526         slash on symlink.
40527         * modules/renameat-tests (Depends-on): Add filenamecat.
40528         * tests/test-rename.h (test_rename): Allow one more errno.
40529         * tests/test-renameat.c (main): Likewise.
40530         * doc/posix-functions/rename.texi (rename): Document the bug.
40531
40532         open: detect FreeBSD bug
40533         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
40534         symlink.
40535         * doc/posix-functions/open.texi (open): Document the bug.
40536         * doc/posix-functions/utimes.texi (utimes): Likewise.
40537         * tests/test-open.h (test_open): Add parameters, and test symlink
40538         handling.
40539         * tests/test-open.c (main): Adjust caller.
40540         * tests/test-fcntl-safer.c (main): Likewise.
40541         * modules/open-tests (Depends-on): Add stdbool, symlink.
40542         * modules/fcntl-safer-tests (Depends-on): Likewise.
40543         * tests/test-openat.c (main): Add test-open tests.
40544
40545         stat: detect FreeBSD bug
40546         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
40547         symlink.
40548         * doc/posix-functions/stat.texi (stat): Document the bug.
40549         * tests/test-stat.h (test_stat_func): Add argument.
40550         * tests/test-stat.c (main): Adjust caller.
40551         * tests/test-fstatat.c (main): Likewise.
40552         * modules/stat-tests (Depends-on): Add stdbool, symlink.
40553         Reported by Jim Meyering.
40554
40555 2009-11-09  James Youngman  <jay@gnu.org>
40556
40557         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
40558         * lib/strftime.c: Correct placement of #include "ignore-value.h".
40559
40560 2009-11-08  Jim Meyering  <meyering@redhat.com>
40561
40562         utimens: remove invalid futimesat call
40563         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
40564         It used the file descriptor of the target file as the DIR_FD
40565         parameter and NULL as the file name.  That caused failure with
40566         errno == EFAULT on FreeBSD-8.0-rc2
40567
40568 2009-11-07  Eric Blake  <ebb9@byu.net>
40569
40570         fflush, freadseek: use fseeko, not fseek
40571         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
40572         (clear_ungetc_buffer): Avoid potential problems on large files.
40573         * lib/freadseek.c (freadseek): Likewise.
40574         * modules/freadseek (Depends-on): Add fseeko.
40575         * modules/fseek (configure.ac): Set a witness.
40576         * tests/test-fflush.c (main): Use fseeko.
40577         * tests/test-fpurge.c (fseek): Disable link warning.
40578         * tests/test-freadable.c (fseek): Likewise.
40579         * tests/test-freading.c (fseek): Likewise.
40580         * tests/test-fseeko.c (fseek): Likewise.
40581         * tests/test-ftell.c (fseek): Likewise.
40582         * tests/test-ftello.c (fseek): Likewise.
40583         * tests/test-fwritable.c (fseek): Likewise.
40584         * tests/test-fwriting.c (fseek): Likewise.
40585
40586 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40587
40588         * modules/memchr (Depends-on): Drop getpagesize dependency.
40589
40590 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40591
40592         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
40593         Reported by Ludovic Courtès.
40594         * build-aux/pmccabe2html: Improve example usage.
40595         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
40596
40597 2009-11-06  Jim Meyering  <meyering@redhat.com>
40598
40599         do-release-commit-and-tag: New module.
40600         Automate the release-commit and tag process.
40601         * build-aux/do-release-commit-and-tag: New script, from coreutils.
40602         * modules/do-release-commit-and-tag: New file.
40603         * MODULES.html.sh (Support for maintaining and releasing): Add it.
40604
40605 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40606
40607         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
40608         because test-select.c uses inet_pton.
40609
40610 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40611
40612         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
40613         GETADDRINFO_LIB.  Bump serial number.
40614         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
40615         Suggested by Eric Blake <ebb9@byu.net>.
40616
40617 2009-11-05  Eric Blake  <ebb9@byu.net>
40618
40619         strtod: detect darwin bug
40620         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
40621         Reported by Leo Davis.
40622
40623         freopen-safer: new module
40624         * modules/freopen-safer: New module.
40625         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
40626         * lib/freopen-safer.c (freopen_safer): New file.
40627         * lib/stdio-safer.h (freopen_safer): New declaration.
40628         * lib/stdio--.h (freopen): New override.
40629         * MODULES.html.sh (File stream based Input/Output): Mention it.
40630         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
40631         freopen-safer module.
40632         * doc/posix-functions/stderr.texi (stderr): Likewise.
40633         * doc/posix-functions/stdin.texi (stdin): Likewise.
40634         * doc/posix-functions/stdout.texi (stdout): Likewise.
40635         * modules/freopen-safer-tests: New test.
40636         * tests/test-reopen-safer.c: New file.
40637
40638 2009-11-05  Jim Meyering  <meyering@redhat.com>
40639
40640         maint.mk: Prohibit inclusion of "close-stream.h" without use.
40641         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
40642
40643 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40644
40645         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
40646
40647 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40648
40649         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
40650
40651 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40652
40653         Fix link error.
40654         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40655         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40656
40657 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40658
40659         * tests/test-func.c: Also test value of __func__.
40660
40661 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40662
40663         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
40664         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
40665
40666 2009-11-05  Bruno Haible  <bruno@clisp.org>
40667
40668         Fix link error.
40669         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40670         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40671         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
40672
40673 2009-11-05  Bruno Haible  <bruno@clisp.org>
40674
40675         Tests for module 'inet_pton'.
40676         * modules/inet_pton-tests: New file.
40677         * tests/test-inet_pton.c: New file.
40678
40679 2009-11-05  Bruno Haible  <bruno@clisp.org>
40680
40681         Tests for module 'inet_ntop'.
40682         * modules/inet_ntop-tests: New file.
40683         * tests/test-inet_ntop.c: New file.
40684
40685 2009-11-04  Eric Blake  <ebb9@byu.net>
40686
40687         stdlib-safer: wrap all mkstemp variants
40688         * modules/mkostemp (configure.ac): Set witness.
40689         * modules/mkostemps (configure.ac): Likewise.
40690         * modules/mkstemps (configure.ac): Likewise.
40691         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
40692         (mkstemps_safer): Wrap more functions.
40693         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
40694         wrapping.
40695         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
40696         (mkstemps_safer): Implement the wrappers.
40697
40698         mkstemps, mkostemps: new modules
40699         * modules/mkostemps: New module.
40700         * modules/mkstemps: Likewise.
40701         * lib/mkostemps.c (mkostemps): New file.
40702         * lib/mkstemps.c (mkstemps): Likewise.
40703         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
40704         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
40705         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
40706         * modules/stdlib (Makefile.am): Substitute them.
40707         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
40708         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
40709         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
40710         * doc/gnulib.texi (Glibc stdlib.h): Include them.
40711         * MODULES.html.sh (File system functions): Mention them.
40712
40713         tempname: resync from glibc
40714         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
40715         same values for __GT_FILE as glibc.  Abort even when assertions
40716         are disabled.
40717         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
40718         match its value otherwise.  Allow idempotent inclusion.
40719         * lib/mkdtemp.c (mkdtemp): Adjust caller.
40720         * lib/mkostemp.c (mkostemp): Likewise.
40721         * lib/mkstemp.c (mkstemp): Likewise.
40722         * lib/tmpfile.c (tmpfile): Likewise.
40723         * NEWS: Document this.
40724
40725         utimens: fix use of futimens on older Linux
40726         * lib/utimens.c (fdutimens): Use updated, rather than original,
40727         timespec to avoid bug in older Linux kernel.
40728         Reported by Simon Josefsson.
40729
40730 2009-11-04  Bruno Haible  <bruno@clisp.org>
40731
40732         Make num_processors more flexible and consistent.
40733         * lib/nproc.h (enum nproc_query): New type.
40734         (num_processors): Add a 'query' argument.
40735         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
40736         (num_processors): Add a 'query' argument. Test the value of the
40737         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
40738         mingw, count the number of CPUs available for the current process.
40739         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
40740         Check for sched_getaffinity and sched_getaffinity_np.
40741         * modules/nproc (Depends-on): Add c-ctype, extensions.
40742         * NEWS: Mention the change.
40743
40744 2009-11-03  Bruno Haible  <bruno@clisp.org>
40745
40746         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
40747
40748 2009-11-03  Jim Meyering  <meyering@redhat.com>
40749
40750         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
40751         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
40752         if it is defined.
40753
40754 2009-11-02  Eric Blake  <ebb9@byu.net>
40755
40756         mktime, timegm: share common declaration
40757         * lib/mktime-internal.h: New file.
40758         * lib/mktime.c: Use it rather than open-coding a declaration.
40759         * lib/timegm.c: Likewise.
40760         * modules/mktime (Files): Ship it.
40761         * modules/timegm (Files): Likewise.
40762         Suggested by Bruno Haible.
40763
40764         test-update-copyright: update test to match script changes
40765         * tests/test-update-copyright.sh: Avoid hard-coding perl
40766         location.  Don't update *.bak created by earlier runs.
40767
40768 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
40769             Simon Josefsson  <simon@josefsson.org>
40770             Bruno Haible  <bruno@clisp.org>
40771
40772         Fix link error on Solaris 8.
40773         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
40774         also in libnsl. Define also INET_PTON_LIB.
40775         * modules/inet_pton (Link): New section.
40776
40777 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40778             Bruno Haible  <bruno@clisp.org>
40779
40780         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
40781         * modules/inet_ntop (Link): New section.
40782         Reported by Boyan Kasarov <bkasarov@gmail.com>.
40783
40784 2009-11-02  Eric Blake  <ebb9@byu.net>
40785
40786         maint: avoid compiler warnings in m4 macros
40787         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
40788         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
40789
40790 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40791
40792         * m4/pmccabe2html.m4: Remove file.
40793         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
40794         function.  Change maintainer.
40795         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
40796         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
40797         Courtès).
40798
40799 2009-10-31  Eric Blake  <ebb9@byu.net>
40800
40801         fseeko: fix m4 regression
40802         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
40803         regression from 2009-10-27.
40804         Reported by Ralf Wildenhues.
40805
40806 2009-10-31  Jim Meyering  <meyering@redhat.com>
40807
40808         inttostr: aesthetics and improved (compile-time) safety
40809         Define inttype_is_signed rather than inttype_is_unsigned,
40810         since the sole use is via "#if inttype_is_signed".
40811         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
40812         inttype_is_unsigned.
40813         * lib/offtostr.c (inttype_is_signed): Likewise.
40814         * lib/uinttostr.c (inttype_is_signed): Likewise.
40815         * lib/umaxtostr.c (inttype_is_signed): Likewise.
40816         * lib/inttostr.c (inttostr): Use verify to cross-check the
40817         inttype_is_signed value and the signedness of the actual type.
40818         * modules/inttostr (Depends-on): Add verify.
40819
40820 2009-10-30  Eric Blake  <ebb9@byu.net>
40821
40822         build: avoid compiler warnings
40823         * lib/fchmodat.c (lchmod): Mark unused variables.
40824         * lib/getopt.c (_getopt_initialize): Likewise.
40825         * lib/mktime.c (__mktime_internal): Provide prototype.
40826         * lib/inttostr.c (inttostr): Avoid compiler warning even with
40827         older gcc that do not understand #pragma GCC diagnostic.
40828         * lib/uinttostr.c (inttype_is_unsigned): Define.
40829         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
40830
40831 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
40832
40833         stat: fix compilation on AIX
40834         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
40835         only see struct stat64.
40836
40837 2009-10-30  Eric Blake  <ebb9@byu.net>
40838
40839         exclude: make more robust
40840         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
40841         rather than masking a coding bug.
40842         Suggested by Bruno Haible.
40843
40844 2009-10-30  Jim Meyering  <meyering@redhat.com>
40845
40846         perl scripts: remove #!/usr/bin/perl in favor of more portable...
40847         Rather than putting #!/usr/bin/perl on the first line,
40848         start with a variant of what's recommended by "man perlrun" that
40849         invokes the first "perl" program from your shell's search path.
40850         * build-aux/gitlog-to-changelog: Replace #!... as above.
40851         Add a "Local Variables" perl mode setting.
40852         Prompted by a patch from Ludovic Courtès.
40853         Improved by Eric Blake.
40854         * build-aux/useless-if-before-free: Likewise.
40855         * build-aux/announce-gen: Likewise.
40856         * build-aux/update-copyright: Likewise.
40857
40858 2009-10-29  Eric Blake  <ebb9@byu.net>
40859
40860         filenamecat-lgpl: adjust clients
40861         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
40862         filenamecat.
40863         * modules/renameat (Depends-on): Likewise.
40864
40865         filenamecat: split into filenamecat-lgpl
40866         * modules/filenamecat-lgpl: New module.
40867         * modules/filenamecat (Files): Move library-safe files into
40868         filenamecat-lgpl.
40869         (Depends-on): Add filenamecat-lgpl.
40870         (configure.ac): Declare witness.
40871         * lib/filenamecat.h (file_name_concat): Only declare when using
40872         GPL module.
40873         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
40874         Move...
40875         * lib/filenamecat-lgpl.c: ...into new file.
40876         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
40877         (gl_FILE_NAME_CONCAT): Use it.
40878         * MODULES.html.sh (File system functions): Mention new module.
40879
40880         argp: avoid memory leak
40881         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
40882         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
40883         base_name, since the latter malloc()s and can call exit().
40884         Leak introduced 2006-07-03.
40885
40886         dirname-lgpl: adjust clients that don't need full dirname
40887         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
40888         * modules/filenamecat (Depends-on): Likewise.
40889         * modules/linkat (Depends-on): Likewise.
40890         * modules/mkancesdirs (Depends-on): Likewise.
40891         * modules/mkdir (Depends-on): Likewise.
40892         * modules/openat (Depends-on): Likewise.
40893         * modules/savewd (Depends-on): Likewise.
40894         * modules/rename (Depends-on): Likewise.
40895         (License): Relax license.
40896         * modules/mkdir-tests (Depends-on): Drop progname.
40897         (Makefile.am): Delete unneeded LDADD.
40898         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
40899
40900         dirname: split into dirname-lgpl
40901         * modules/dirname-lgpl: New module.
40902         * modules/dirname (Files): Move library-safe files into
40903         dirname-lgpl.
40904         (Depends-on): Add dirname-lgpl.
40905         (configure.ac): Declare witness.
40906         * modules/double-slash-root (License): Relax license.
40907         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
40908         module.
40909         * lib/dirname.c (dir_len, mdir_name): Move...
40910         * lib/dirname-lgpl.c: ...into new file.
40911         * lib/basename.c (last_component, base_len): Move...
40912         * lib/basename-lgpl.c: ...into new file.
40913         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
40914         (gl_DIRNAME): Use it.
40915         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
40916         Mention new module.
40917         * modules/dirname-tests (Depends-on): Add progname.
40918         * tests/test-dirname.c (program_name): Delete.
40919
40920         mkdir: make safe for libraries
40921         * modules/mkdir (Depends-on): Drop xalloc.
40922         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
40923         exit.
40924
40925         tests: avoid some compiler warnings
40926         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
40927         literals.
40928         * tests/test-memchr.c (main): Avoid type mismatch.
40929         * tests/test-arpa_inet.c (main): Avoid unused parameters.
40930         * tests/test-base64.c (main): Likewise.
40931         * tests/test-getdelim.c (main): Likewise.
40932         * tests/test-gethostname.c (main): Likewise.
40933         * tests/test-getline.c (main): Likewise.
40934         * tests/test-netinet_in.c (main): Likewise.
40935         * tests/test-select.c (open_server_socket, main): Likewise.
40936         * tests/test-select-stdin.c (main): Likewise.
40937         * tests/test-sockets.c (main): Likewise.
40938         * tests/test-strsignal.c (main): Likewise.
40939         * tests/test-sys_select.c (main): Likewise.
40940         * tests/test-sys_socket.c (main): Likewise.
40941         * tests/test-u64.c (main): Likewise.
40942         * tests/test-xfprintf-posix.c (main): Likewise.
40943         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
40944
40945         sockets: avoid compiler warning
40946         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
40947
40948         maint: detect usage(1) and other suspicious exits
40949         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
40950
40951 2009-10-29  Jim Meyering  <meyering@redhat.com>
40952
40953         timespec: long-to-int truncation could make timespec_cmp malfunction
40954         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
40955         a multiple of 2^32 nanoseconds as no difference.
40956
40957 2009-10-28  Jim Meyering  <meyering@redhat.com>
40958
40959         fprintftime: wrap macro code argument in "do {...} while(0)"
40960         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
40961         cpy macro must be a statement that can be followed by a semicolon.
40962         Now that the else clause contains a comment and is hence longer
40963         than one line, I require curly braces.  That in turn requires
40964         that we wrap this code block in the standard do...while(0).
40965
40966         fprintftime: remove stray semicolon from previous change
40967         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
40968
40969         fprintftime: avoid a warning about ignored fwrite return value
40970         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
40971         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
40972         that is unsafe.
40973         * modules/fprintftime (Depends-on): Add ignore-value.
40974
40975         exclude: avoid an unwarranted warning
40976         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
40977
40978 2009-10-27  Eric Blake  <ebb9@byu.net>
40979
40980         fseek: avoid compilation failure when fflush is replaced
40981         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
40982         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
40983         module is in use.
40984         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
40985         module is not in use; since REPLACE_FSEEK worked otherwise.
40986         (GNULIB_FTELLO): Likewise for ftell.
40987         Reported by Ian Beckwith and others.
40988
40989 2009-10-27  Bruno Haible  <bruno@clisp.org>
40990
40991         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
40992         Reported by Jim Meyering.
40993
40994 2009-10-27  Jim Meyering  <jim@meyering.net>
40995             Bruno Haible  <bruno@clisp.org>
40996
40997         Avoid warning despite dropping the return value of fwrite.
40998         * lib/unicodeio.c: Include ignore-value.h.
40999         (fwrite_success_callback): Explicitly ignore fwrite's return value.
41000         * modules/unicodeio (Depends-on): Add ignore-value.
41001
41002 2009-10-26  Eric Blake  <ebb9@byu.net>
41003
41004         areadlinkat: fix fallback path
41005         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
41006         pointer and zero.
41007
41008 2009-10-22  Pádraig Brady  <P@draigBrady.com>
41009
41010         Use a better IO block size for modern systems
41011         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
41012         * lib/md2.c: Likewise.
41013         * lib/md4.c: Likewise.
41014         * lib/md5.c: Likewise.
41015         * lib/sha1.c: Likewise.
41016         * lib/sha256.c: Likewise.
41017         * lib/sha512.c: Likewise.
41018
41019 2009-10-22  Eric Blake  <ebb9@byu.net>
41020
41021         tests: avoid several compiler warnings
41022         * tests/test-getcwd.c (main): Avoid buffer underflow.
41023         * tests/test-getdate.c (main): String literals are not safe with
41024         putenv, so use setenv.  Declare unused argument.
41025         * modules/getdate-tests (Depends-on): Add setenv.
41026         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
41027         problems with string literals in char *.
41028         * tests/test-hash.c (main): Avoid shadowing declaration.
41029         (insert_new): Treat string literals as char const *.
41030         * tests/test-getopt.h (test_getopt): Likewise.
41031         (getopt_loop): Alter types to minimize casting elsewhere.
41032         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
41033         (test_getopt_long_posix): Likewise.
41034         (do_getopt_long): Add wrapper to minimize casting.
41035         * tests/test-atexit.c (clear_temp_file): Use void.
41036         * tests/test-areadlink-with-size.c (main): Declare unused
41037         arguments.
41038         * tests/test-areadlink.c (main): Likewise.
41039         * tests/test-areadlinkat-with-size.c (main): Likewise.
41040         * tests/test-areadlinkat.c (main): Likewise.
41041         * tests/test-canonicalize-lgpl.c (main): Likewise.
41042         * tests/test-canonicalize.c (main): Likewise.
41043         * tests/test-dirent-safer.c (main): Likewise.
41044         * tests/test-dirname.c (main): Likewise.
41045         * tests/test-dup2.c (main): Likewise.
41046         * tests/test-fchdir.c (main): Likewise.
41047         * tests/test-fcntl-h.c (main): Likewise.
41048         * tests/test-fcntl-safer.c (main): Likewise.
41049         * tests/test-fdopendir.c (main): Likewise.
41050         * tests/test-fdutimensat.c (main): Likewise.
41051         * tests/test-fflush.c (main): Likewise.
41052         * tests/test-filenamecat.c (main): Likewise.
41053         * tests/test-filevercmp.c (main): Likewise.
41054         * tests/test-fopen-safer.c (main): Likewise.
41055         * tests/test-fopen.c (main): Likewise.
41056         * tests/test-fpending.c (main): Likewise.
41057         * tests/test-fpurge.c (main): Likewise.
41058         * tests/test-freading.c (main): Likewise.
41059         * tests/test-fstatat.c (main): Likewise.
41060         * tests/test-fsync.c (main): Likewise.
41061         * tests/test-futimens.c (main): Likewise.
41062         * tests/test-getndelim2.c (main): Likewise.
41063         * tests/test-gettimeofday.c (main): Likewise.
41064         * tests/test-getopt.c (main): Likewise.
41065         * tests/test-i-ring.c (main): Likewise.
41066         * tests/test-inttypes.c (main): Likewise.
41067         * tests/test-link.c (main): Likewise.
41068         * tests/test-lstat.c (main): Likewise.
41069         * tests/test-math.c (main): Likewise.
41070         * tests/test-md5.c (main): Likewise.
41071         * tests/test-memchr2.c (main): Likewise.
41072         * tests/test-memrchr.c (main): Likewise.
41073         * tests/test-mkdir.c (main): Likewise.
41074         * tests/test-mkdirat.c (main): Likewise.
41075         * tests/test-mkfifoat.c (main): Likewise.
41076         * tests/test-open.c (main): Likewise.
41077         * tests/test-openat-safer.c (main): Likewise.
41078         * tests/test-openat.c (main): Likewise.
41079         * tests/test-quotearg.c (main): Likewise.
41080         * tests/test-rawmemchr.c (main): Likewise.
41081         * tests/test-readlink.c (main): Likewise.
41082         * tests/test-remove.c (main): Likewise.
41083         * tests/test-rename.c (main): Likewise.
41084         * tests/test-renameat.c (main): Likewise.
41085         * tests/test-rmdir.c (main): Likewise.
41086         * tests/test-sha1.c (main): Likewise.
41087         * tests/test-signal.c (main): Likewise.
41088         * tests/test-sigaction.c (main): Likewise.
41089         * tests/test-stat.c (main): Likewise.
41090         * tests/test-stat-time.c (main): Likewise.
41091         * tests/test-stddef.c (main): Likewise.
41092         * tests/test-stdint.c (main): Likewise.
41093         * tests/test-stdio.c (main): Likewise.
41094         * tests/test-stdlib.c (main): Likewise.
41095         * tests/test-strchrnul.c (main): Likewise.
41096         * tests/test-strerror.c (main): Likewise.
41097         * tests/test-string.c (main): Likewise.
41098         * tests/test-strtod.c (main): Likewise.
41099         * tests/test-strverscmp.c (main): Likewise.
41100         * tests/test-symlink.c (main): Likewise.
41101         * tests/test-symlinkat.c (main): Likewise.
41102         * tests/test-sys_stat.c (main): Likewise.
41103         * tests/test-sys_time.c (main): Likewise.
41104         * tests/test-time.c (main): Likewise.
41105         * tests/test-unistd.c (main): Likewise.
41106         * tests/test-unlink.c (main): Likewise.
41107         * tests/test-unlinkat.c (main): Likewise.
41108         * tests/test-utimens.c (main): Likewise.
41109         * tests/test-utimensat.c (main): Likewise.
41110         * tests/test-version-etc.c (main): Likewise.
41111         * tests/test-wchar.c (main): Likewise.
41112         * tests/test-wctype.c (main): Likewise.
41113         * tests/test-xprintf-posix.c (main): Likewise.
41114         * tests/test-posixtm.c (main): Likewise.
41115         (STREQ): Delete unused macro.
41116         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
41117         shadowed variables.
41118         * tests/test-memchr.c (main): Likewise.
41119
41120 2009-10-21  Eric Blake  <ebb9@byu.net>
41121
41122         areadlinkat: avoid failure on older glibc
41123         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
41124         rather than mis-comparing 0 against FUNC_RESULT of char*.
41125
41126 2009-10-21  Bruno Haible  <bruno@clisp.org>
41127
41128         * modules/stpncpy (License): Relicense under LGPLv2+.
41129         Reported by David Lutterkort <lutter@redhat.com>.
41130
41131 2009-10-20  Eric Blake  <ebb9@byu.net>
41132
41133         utimensat: work around Solaris 9 bug
41134         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
41135         has trailing slash bugs.
41136         * tests/test-lutimens.h (test_lutimens): Enhance test.
41137         * tests/test-utimens.h (test_utimens): Likewise.
41138         * doc/posix-functions/utime.texi (utime): Enhance documentation.
41139         * doc/posix-functions/utimes.texi (utimes): Likewise.
41140         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41141         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
41142         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
41143         * doc/posix-functions/futimens.texi (futimens): Likewise.
41144
41145         fdutimensat: new module
41146         * modules/fdutimensat: New file.
41147         * lib/fdutimensat.c (fdutimensat): Likewise.
41148         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
41149         * MODULES.html.sh (File system functions): Mention module.
41150         * modules/fdutimensat-tests: New test.
41151         * tests/test-fdutimensat.c: Likewise.
41152
41153         doc: regenerate INSTALL
41154         * doc/INSTALL: Reflect recent autoconf update.
41155         * doc/INSTALL.ISO: Likewise.
41156         * doc/INSTALL.UTF-8: Likewise.
41157
41158 2009-10-20  Pádraig Brady  <P@draigBrady.com>
41159
41160         acl: warn if ACL support is not detected
41161         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
41162
41163 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
41164
41165         * lib/nproc.h: Add extern "C" block for C++.
41166
41167 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
41168             Bruno Haible  <bruno@clisp.org>
41169
41170         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
41171         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
41172         * doc/posix-functions/isalpha.texi: Likewise.
41173         * doc/posix-functions/isblank.texi: Likewise.
41174         * doc/posix-functions/iscntrl.texi: Likewise.
41175         * doc/posix-functions/isdigit.texi: Likewise.
41176         * doc/posix-functions/isgraph.texi: Likewise.
41177         * doc/posix-functions/islower.texi: Likewise.
41178         * doc/posix-functions/isprint.texi: Likewise.
41179         * doc/posix-functions/ispunct.texi: Likewise.
41180         * doc/posix-functions/isspace.texi: Likewise.
41181         * doc/posix-functions/isupper.texi: Likewise.
41182         * doc/posix-functions/isxdigit.texi: Likewise.
41183
41184 2009-10-18  Bruno Haible  <bruno@clisp.org>
41185
41186         Tests for module 'isblank'.
41187         * modules/isblank-tests: New file.
41188         * tests/test-isblank.c: New file.
41189
41190         New module 'isblank'.
41191         * lib/isblank.c: New file.
41192         * m4/isblank.m4: New file.
41193         * modules/isblank: New file.
41194         * doc/posix-functions/isblank.texi: Mention the new module.
41195
41196 2009-10-18  Bruno Haible  <bruno@clisp.org>
41197
41198         New module 'ctype'.
41199         * lib/ctype.in.h: New file.
41200         * m4/ctype.m4: New file.
41201         * modules/ctype: New file.
41202         * doc/posix-headers/ctype.texi: Mention the new module.
41203
41204 2009-10-18  Jim Meyering  <meyering@redhat.com>
41205
41206         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
41207         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
41208         right after its initialization, rather than farther down.
41209         Keeping these in close proximity makes it easier to ensure
41210         that each such variable is initialized.  E.g.,
41211
41212             LIB_CLOCK_GETTIME=
41213             AC_SUBST([LIB_CLOCK_GETTIME])
41214
41215         This change also increments these serial numbers.
41216         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
41217         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41218         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41219
41220 2009-10-18  Bruno Haible  <bruno@clisp.org>
41221
41222         Don't let environment variables perturb build.
41223         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
41224         (gl_PREREQ_GETHRXTIME): ... not here.
41225
41226 2009-10-18  Bruno Haible  <bruno@clisp.org>
41227
41228         Avoid symlink attack in localcharset module.
41229         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
41230         (O_NOFOLLOW): Define fallback.
41231         (get_charset_aliases): Don't open the file if it is a symbolic link.
41232         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
41233         gl_FCNTL_H.
41234         (gl_FCNTL_H): Require it.
41235         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
41236         * modules/localcharset (Files): Add m4/fcntl_h.m4.
41237         Reported by Fergal Glynn <fglynn@veracode.com>.
41238
41239 2009-10-18  Bruno Haible  <bruno@clisp.org>
41240
41241         Implement nproc for mingw.
41242         * lib/nproc.c: Include <windows.h>
41243         (num_processors): On native Windows platforms, try GetSystemInfo.
41244
41245 2009-10-18  Bruno Haible  <bruno@clisp.org>
41246
41247         Implement nproc for IRIX.
41248         * lib/nproc.c: Include <sys/sysmp.h>.
41249         (num_processors): On IRIX systems, try sysmp.
41250         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
41251
41252 2009-10-18  Bruno Haible  <bruno@clisp.org>
41253
41254         Implement nproc for HP-UX.
41255         * lib/nproc.c: Include <sys/pstat.h>
41256         (num_processors): On HP-UX systems, try pstat_getdynamic.
41257         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
41258         pstat_getdynamic.
41259
41260 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
41261             Bruno Haible  <bruno@clisp.org>
41262
41263         Implement nproc for NetBSD, OpenBSD.
41264         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
41265         (ARRAY_SIZE): New macro.
41266         (num_processors): On BSD systems, try sysctl of HW_NCPU.
41267         * m4/nproc.m4: New file.
41268         * modules/nproc (Files): Add m4/nproc.m4.
41269         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
41270         (Makefile.am): Instead, augment lib_SOURCES.
41271
41272 2009-10-18  Bruno Haible  <bruno@clisp.org>
41273
41274         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
41275         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
41276         sys/param.h.
41277
41278 2009-10-16  Eric Blake  <ebb9@byu.net>
41279
41280         utimensat: new module
41281         * modules/utimensat: New file.
41282         * lib/utimensat.c (utimensat): Likewise.
41283         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
41284         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
41285         so we can work around Linux bugs.
41286         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41287         * modules/sys_stat (Makefile.am): Substitute them.
41288         * lib/sys_stat.in.h (utimensat): Declare it.
41289         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41290         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41291         * modules/utimensat-tests: New test.
41292         * tests/test-utimensat.c: Likewise.
41293
41294         utimens: let lutimens work on non-symlinks
41295         * lib/utimens.c (lutimens): Fall back to utimens rather than
41296         failing with ENOSYS, when file is not a symlink.
41297         (utimens): Reduce redirection.
41298         * tests/test-lutimens.h (test_lutimens): Update test to cover
41299         non-symlinks.
41300         * tests/test-utimens.h (test_utimens): Update test to cover
41301         symlinks.
41302         * tests/test-utimens.c (main): Update caller.
41303
41304         utimens: cache whether utimensat syscall works
41305         * lib/utimens.c (utimensat_works_really): New cache variable.
41306         (fdutimens, lutimens): Use it to avoid failing syscall.
41307
41308         test-stat-time, test-utimens: improve portability
41309         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
41310         ext4 on alpha, and for cygwin.
41311         * tests/test-utimens-common.h: New file.
41312         (nap): Factor delays into single function.
41313         * tests/test-lutimens.h (test_lutimens): Use new header.
41314         * tests/test-futimens.h (test_futimens): Likewise.
41315         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
41316         timestamps to occur from same machine, as was done previously for
41317         test_utimens.
41318         * modules/utimens-tests (Files): Ship new file.
41319         * modules/futimens-tests (Files): Likewise.
41320         Reported in part by Jim Meyering.
41321
41322         sys_stat: sort replacement declarations
41323         * lib/sys_stat.in.h: Sort declarations.
41324         * lib/futimens.c (futimens): Fix typo.
41325
41326 2009-10-15  Jim Meyering  <meyering@redhat.com>
41327
41328         don't let environment settings perturb build
41329         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
41330         could cause a configure-time and/or build-time malfunction.
41331         Typically, a configure-time function-in-library test is performed
41332         via code like this:
41333
41334           LIB_VAR=
41335           AC_SUBST([LIB_VAR])
41336           prefix_saved_LIBS=$LIBS
41337             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
41338                        [test "$ac_cv_search_FUNC" = "none required" ||
41339                         LIB_VAR=$ac_cv_search_FUNC])
41340           LIBS=$prefix_saved_LIBS
41341
41342         However, in each of the files affected by this change, the LIB_VAR=
41343         initialization was omitted.  Thus, when set in the environment, its
41344         value would propagate into generated Makefiles when FUNC is not found
41345         in LIB_NAME.
41346         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
41347         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41348         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41349
41350 2009-10-14  Eric Blake  <ebb9@byu.net>
41351
41352         fchdir: avoid infinite recursion in mingw
41353         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
41354         recursing.
41355
41356         test-stat-time: port to mingw
41357         * tests/test-stat-time.c (force_unlink): Return a value.
41358         (test_ctime) [W32]: Fix compilation error.
41359         (nap): Don't call usleep with too large an argument.  Use
41360         force_unlink.
41361         * doc/pastposix-functions/usleep.texi (usleep): Document the
41362         portability issue.
41363
41364 2009-10-13  Jim Meyering  <meyering@redhat.com>
41365
41366         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
41367         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
41368         * modules/pipe-filter-ii: Likewise.
41369         * modules/sys_socket-tests: Likewise.
41370         * modules/tsearch-tests: Likewise.
41371         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
41372         (check): Depend on it.
41373
41374 2009-10-12  Eric Blake  <ebb9@byu.net>
41375
41376         utimens-tests: port to NFS file systems
41377         * tests/test-utimens.h (test_utimens): Refactor utimecmp
41378         comparisons to avoid spurious failures from timestamp drift
41379         between NFS machines.
41380
41381 2009-10-12  Eric Blake  <ebb9@byu.net>
41382
41383         stat-time-tests: minor cleanups
41384         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
41385         * tests/test-stat-time.c (nap): Separate assignment from call.
41386         Suggested by Paolo Bonzini and Bruno Haible.
41387
41388         sys_stat: guarantee struct timespec
41389         * lib/sys_stat.in.h (includes): Always include <time.h>
41390         * modules/sys_stat (Depends-on): Add time.
41391         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
41392         mode_t permission values.
41393         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
41394         get at subsecond timestamps.
41395
41396 2009-10-10  Eric Blake  <ebb9@byu.net>
41397
41398         futimens: new module
41399         * modules/futimens: New file.
41400         * lib/futimens.c (futimens): Likewise.
41401         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
41402         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
41403         we can work around Linux bugs.
41404         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41405         * modules/sys_stat (Makefile.am): Substitute them.
41406         * lib/sys_stat.in.h (futimens): Declare it.
41407         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41408         * doc/posix-functions/futimens.texi (futimens): Likewise.
41409         * modules/futimens-tests: New test.
41410         * tests/test-futimens.c: Likewise.
41411
41412         utimens: introduce fdutimens
41413         * lib/utimens.h (fdutimens): New prototype.
41414         * lib/utimens.c (gl_futimens): Move guts...
41415         (fdutimens): ...to new interface.
41416         * tests/test-utimens.c (do_fdutimens): Use it.
41417
41418         utimens: add UTIME_NOW and UTIME_OMIT support
41419         * lib/utimens.c (validate_timespec, update_timespec): New helper
41420         functions.
41421         (gl_futimens, lutimens): Use them.
41422         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
41423         stdbool, sys_stat.
41424         (Link): Mention resulting library dependency.
41425         * modules/utimecmp (Link): Likewise.
41426         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
41427         (Makefile.am): Pick up library dependency.
41428         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
41429         definition.
41430         * tests/test-sys_stat.c: Test the definitions.
41431         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
41432         * NEWS: Document library dependency.
41433
41434         utimecmp: support symlink timestamps
41435         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
41436         hashing when possible.  Use pathconf when available.
41437         (SYSCALL_RESOLUTION): Recognize tighter resolution.
41438         * modules/utimecmp (Depends-on): Add lstat.
41439
41440         utimens: add lutimens interface
41441         * lib/utimens.c (lutimens): New function.
41442         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
41443         * lib/utimens.h (lutimens): Declare new interface.
41444         * tests/test-utimens.c (main): Enhance test.
41445         * tests/test-lutimens.h (test_lutimens): New file.
41446         * modules/utimens-tests (Files): Distribute it.
41447         (Depends-on): Add symlink.
41448         (configure.ac): Check for usleep.
41449
41450         utimens: validate futimens usage
41451         * lib/utimens.c (gl_futimens): Require valid fd up front, using
41452         fewer syscalls on failure later on.  Avoid compiler warning on
41453         mingw.
41454         * modules/utimens (Depends-on): Add dup2.
41455
41456         utimens: add test
41457         * modules/utimens-tests: New test.
41458         * tests/test-utimens.h: New file.
41459         * tests/test-futimens.h: Likewise.
41460         * tests/test-utimens.c: Likewise.
41461
41462         doc: mention timestamp portability issues
41463         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
41464         instead.
41465         * doc/posix-functions/utime.texi (utime): Likewise.
41466         * doc/posix-functions/utimes.texi (utimes): Likewise.
41467         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
41468         instead.
41469         * doc/posix-functions/futimens.texi (futimens): Mention utimens
41470         module.
41471         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41472         Mention weakness with symlink timestamps.
41473         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
41474         to utimensat/futimens instead.
41475         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
41476
41477         test-dup2: enhance test
41478         * tests/test-dup2.c (main): Also check AT_FDCWD.
41479
41480         test-stat-time: avoid more spurious failures
41481         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
41482         xfs; and avoid race if the two timestamps cross quantization edge.
41483
41484         relocatable: prefer 'file system' over 'filesystem'
41485         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
41486         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
41487         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
41488         * doc/relocatable.texi (Enabling Relocatability): Likewise.
41489         * lib/relocatable.c (compute_curr_prefix): Likewise.
41490
41491 2009-10-10  Jim Meyering  <meyering@redhat.com>
41492
41493         stat-time-tests: check for the usleep function
41494         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
41495
41496 2009-10-10  Bruno Haible  <bruno@clisp.org>
41497
41498         * modules/xnanosleep: Put the Link section after the Include section.
41499
41500 2009-10-09  Eric Blake  <ebb9@byu.net>
41501
41502         dup2: work around FreeBSD 6.1 bug
41503         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
41504         * doc/posix-functions/dup2.texi (dup2): Document it.
41505         Reported by Nelson H. F. Beebe and Jim Meyering.
41506
41507         test-stat-time: port to buggy NFS clients
41508         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
41509         (test_ctime): Also skip test if mtime and ctime are skewed.
41510
41511         maint: prefer 'file system' over 'filesystem'
41512         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
41513         * doc/posix-functions/lstat.texi (lstat): Likewise.
41514         * lib/file-has-acl.c (file_has_acl): Likewise.
41515         * lib/fwriteerror.c [TEST]: Likewise.
41516         * tests/test-areadlink.h (test_areadlink): Likewise.
41517         * tests/test-areadlinkat-with-size.c (main): Likewise.
41518         * tests/test-areadlinkat.c (main): Likewise.
41519         * tests/test-canonicalize-lgpl.c (main): Likewise.
41520         * tests/test-canonicalize.c (main): Likewise.
41521         * tests/test-fstatat.c (main): Likewise.
41522         * tests/test-linkat.c (main): Likewise.
41523         * tests/test-lstat.h (test_lstat_func): Likewise.
41524         * tests/test-mkdir.h (test_mkdir): Likewise.
41525         * tests/test-readlink.h (test_readlink): Likewise.
41526         * tests/test-remove.c (main): Likewise.
41527         * tests/test-rename.h (test_rename): Likewise.
41528         * tests/test-renameat.c (main): Likewise.
41529         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41530         * tests/test-symlink.h (test_symlink): Likewise.
41531         * tests/test-symlinkat.c (main): Likewise.
41532         * tests/test-unlink.h (test_unlink_func): Likewise.
41533         * tests/test-unlinkat.c (main): Likewise.
41534
41535         maint: make realtime library usage explicit
41536         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
41537         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
41538         * modules/settime (Link): Likewise.
41539         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
41540
41541         test-stat-time: speed up execution
41542         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
41543         warning on mingw.
41544         (nap): New helper function.
41545         (prepare_test): Use it to reduce sleep time.
41546         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
41547         execution.
41548         * modules/stat-time-tests (configure.ac): Check for usleep.
41549
41550 2009-10-09  Jim Meyering  <meyering@redhat.com>
41551
41552         selinux-h: always use getfilecon wrappers
41553         * lib/getfilecon.c: New file.
41554         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
41555         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
41556         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
41557         (fgetfilecon): Provide a stub.
41558         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
41559         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
41560         file unconditionally.
41561         When <selinux/selinux.h> is found, arrange to use wrappers.
41562         * modules/selinux-h (Files): Add getfilecon.c.
41563         (Makefile.am): Substitute include-next-related bits
41564         into the now-always-generated selinux/selinux.h file.
41565         * doc/glibc-functions/lgetfilecon.texi: New file.
41566         * doc/glibc-functions/fgetfilecon.texi: New file.
41567         * doc/glibc-functions/getfilecon.texi: New file.
41568         * doc/glibc-functions/getfilecon-desc.texi: New file.
41569         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
41570         which to pull in the new files.
41571         * MODULES.html.sh (Misc): Add selinux-h.
41572
41573 2009-10-08  Jim Meyering  <meyering@redhat.com>
41574
41575         unistd: fix comment typo
41576         * lib/unistd.in.h (euidaccess): Fix a comment typo.
41577
41578 2009-10-08  Eric Blake  <ebb9@byu.net>
41579
41580         areadlink: use SIZE_MAX consistently
41581         * modules/areadlink (Depends-on): Add stdint.
41582         * modules/areadlink-with-size (Depends-on): Likewise.
41583         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
41584         gives NULL; drop sys/types, since unistd gives size_t; and add
41585         stdint for SIZE_MAX.
41586         (SIZE_MAX): Rely on headers.
41587         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
41588         and add stdint.
41589         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
41590         (SIZE_MAX): Likewise.
41591         (INITIAL_BUF_SIZE): Turn into enum.
41592         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
41593
41594 2009-10-08  Jim Meyering  <meyering@redhat.com>
41595
41596         areadlinkat: avoid compilation failure
41597         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
41598         Fix typo in comment.
41599
41600 2009-10-07  Eric Blake  <ebb9@byu.net>
41601
41602         areadlinkat-with-size: new module
41603         * modules/areadlinkat-with-size: New module.
41604         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
41605         * lib/areadlink.h (areadlinkat): Declare it.
41606         * MODULES.html.sh (File system functions): Mention it.
41607         * modules/areadlinkat-with-size-tests: New test.
41608         * tests/test-areadlinkat-with-size.c: New file.
41609
41610         xreadlinkat: new module
41611         * modules/xreadlinkat: New module.
41612         * lib/xreadlinkat.c (xreadlinkat): New file.
41613         * lib/xreadlink.h (xreadlinkat): Declare it.
41614         * MODULES.html.sh (File system functions): Mention it.
41615
41616         areadlinkat: new module
41617         * lib/at-func.c (FUNC_FAIL): New define.
41618         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
41619         * modules/areadlinkat: New module.
41620         * lib/linkat.c (areadlinkat): Move...
41621         * lib/areadlinkat.c (areadlinkat): ...to new file.
41622         * lib/areadlink.h (areadlinkat): Declare it.
41623         * modules/linkat (Depends-on): Add areadlinkat.
41624         * MODULES.html.sh (File system functions): Mention it.
41625         * modules/areadlinkat-tests: New test.
41626         * tests/test-areadlinkat.c: New file.
41627
41628         areadlink, areadlink-with-size: add tests
41629         * modules/areadlink-tests: New test.
41630         * modules/areadlink-with-size-tests: Likewise.
41631         * tests/test-areadlink.h: New file.
41632         * tests/test-areadlink.c: Likewise.
41633         * tests/test-areadlink-with-size.c: Likewise.
41634
41635         maint: minor cleanups
41636         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
41637         _UNUSED_PARAMETER_ instead.
41638         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
41639         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
41640         * modules/linkat-tests (Files): Distribute test-link.h.
41641
41642         openat, utimens: whitespace cleanup
41643         * lib/openat.c: Prefer space throughout, rather than mix of 8
41644         spaces vs. tabs.
41645         * lib/at-func.c: Likewise.
41646         * lib/utimens.c: Likewise.
41647
41648         openat: avoid using wrong fd
41649         * lib/openat.c (openat_permissive): Reject user's fd if saving the
41650         working directory chooses same fd.
41651         * lib/at-func.c (AT_FUNC_NAME): Likewise.
41652
41653         mkdir, mkdirat: fix cygwin 1.5.x bug
41654         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
41655         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
41656         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
41657         bug.
41658         (gl_PREREQ_MKDIR): Delete unused macro.
41659         * modules/mkdir (Files): Track file rename.
41660         (configure.ac): Update macro name.
41661         * modules/openat (Depends-on): Add mkdir.
41662         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
41663
41664         mkdir, mkdirat: add tests
41665         * modules/mkdir-tests: New test.
41666         * tests/test-mkdir.h: New file.
41667         * tests/test-mkdir.c: Likewise.
41668         * tests/test-mkdirat.c: Likewise.
41669         * modules/openat-tests (Files): Add new files.
41670         (Makefile.am): Run new test.
41671
41672 2009-10-06  Eric Blake  <ebb9@byu.net>
41673
41674         doc: tweak *at function documentation
41675         * doc/posix-functions/faccessat.texi (faccessat): Mention
41676         known issue with replacement.
41677         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
41678         * doc/posix-functions/linkat.texi (linkat): Likewise.
41679         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41680         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41681         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41682         * doc/posix-functions/renameat.texi (renameat): Likewise.
41683         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41684
41685         openat: fix GNU/Hurd bug in unlinkat
41686         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
41687         broken.
41688         * doc/posix-functions/unlink.texi (unlink): Document this.
41689         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
41690
41691         fdopendir: fix GNU/Hurd bug
41692         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
41693         allowing non-directory fds.
41694         * lib/fdopendir.c (rpl_fdopendir): Work around it.
41695         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
41696         * modules/dirent (Makefile.am): Substitute it.
41697         * lib/dirent.in.h (fdopendir): Declare replacement.
41698         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
41699         * tests/test-fdopendir.c (main): Test something other than
41700         /dev/null, since on Hurd that behaves like a directory.
41701
41702         test-symlink: port to GNU/Hurd
41703         * tests/test-symlink.h (test_symlink): Relax expected errno.
41704
41705         doc: tweak more cygwin information
41706         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
41707         now compatible with glibc.
41708         * doc/posix-functions/getopt.texi (getopt): Likewise.
41709
41710         getopt-gnu: add another test
41711         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
41712         guarantee behavior relied on by m4.
41713         * tests/test-getopt.c (main): Use it.
41714         * modules/getopt-posix-tests (Depends-on): Add setenv.
41715         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
41716
41717         getopt: fix compilation on darwin
41718         * lib/getopt.in.h (includes): Leave breadcrumbs during system
41719         include.
41720         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
41721         Reported by Ludovic Courtès.
41722
41723 2009-10-06  Bruno Haible  <bruno@clisp.org>
41724
41725         * modules/size_max (Description): Discourage its use.
41726         Reported by Simon Josefsson.
41727
41728 2009-10-06  Jim Meyering  <meyering@redhat.com>
41729
41730         linkat: avoid compilation failure
41731         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
41732
41733 2009-10-05  Eric Blake  <ebb9@byu.net>
41734
41735         linkat: support Linux 2.6.17
41736         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
41737         linkat on Linux, but allow cache variable override.
41738         * lib/linkat.c (rpl_linkat): Define override.
41739         * modules/linkat (Depends-on): Add symlinkat.
41740         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
41741         * modules/unistd (Makefile.am): Substitute it.
41742         * lib/unistd.in.h (linkat): Declare replacement.
41743         Reported by Pádraig Brady.
41744
41745         quotearg: port test to systems with C.UTF-8 locale
41746         * tests/test-quotearg.c (struct result_strings): Add another
41747         member, differentiating between C.ASCII and C.UTF-8 handling.
41748         (compare_strings): Add parameter.
41749         (main): Adjust all callers.
41750
41751         getopt: avoid clash with FreeBSD _getopt_internal
41752         * lib/getopt.in.h (_getopt_internal): Override the name.
41753         * lib/getopt_int.h (includes): Pick up any overrides.
41754         Reported by Reuben Thomas.
41755
41756         hash: allow C89 compilation
41757         * lib/hash.c (check_tuning): Move declaration before statement.
41758         Reported by Reuben Thomas.
41759
41760 2009-10-05  Karl Berry  <karl@gnu.org>
41761
41762         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
41763
41764 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
41765             Bruno Haible  <bruno@clisp.org>
41766
41767         * lib/uname.c (uname): Use a table-driven algorithm to compute
41768         Windows NT versions.
41769
41770 2009-10-04  Bruno Haible  <bruno@clisp.org>
41771
41772         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
41773         program_invocation_short_name.
41774         * modules/progname (configure.ac): Test for presence of
41775         program_invocation_short_name.
41776         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41777
41778 2009-10-04  Bruno Haible  <bruno@clisp.org>
41779
41780         * lib/progname.c (set_program_name): Fix comment.
41781         Reported by Jim Meyering.
41782
41783 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41784             Bruno Haible  <bruno@clisp.org>
41785
41786         * lib/uname.c: Include <string.h>.
41787         (uname): Do only one call to GetVersionEx in the common case.
41788
41789 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41790             Bruno Haible  <bruno@clisp.org>
41791
41792         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
41793         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
41794         (uname): Add support for Windows CE and various non-x86 CPU types.
41795
41796 2009-10-03  Bruno Haible  <bruno@clisp.org>
41797
41798         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
41799         invocation to tests/configure.ac.
41800         Reported by Ian Beckwith <ianb@erislabs.net>.
41801
41802 2009-10-02  Eric Blake  <ebb9@byu.net>
41803
41804         fchdir: avoid compiler warning
41805         * lib/fchdir.c (canonicalize_file_name)
41806         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
41807
41808         test-open: support mingw errno values
41809         * tests/test-open.h (test_open): Relax test.
41810         * tests/test-fopen.h (test_fopen): Likewise.
41811         * tests/test-openat-safer.c (main): Likewise.
41812
41813         open: fix opening directory on mingw
41814         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
41815
41816         test-open: on GNU/Hurd, /dev/null is a directory
41817         * tests/test-fopen.h (main): Rename...
41818         (test_fopen): ...to this.  Use a guaranteed non-directory when
41819         confirming open behavior on trailing slash.
41820         * tests/test-openat-safer.c (main): Likewise.
41821         * tests/test-open.h (main): Likewise....
41822         (test_open): ...to this.
41823         * tests/test-fopen.c (main): Adjust caller.
41824         * tests/test-fopen-safer.c (main): Likewise.
41825         * tests/test-open.c (main): Likewise.
41826         * tests/test-fcntl-safer.c (main): Likewise.
41827         Reported by Samuel Thibault.
41828
41829         rename, fchdir: don't ignore chdir failure
41830         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
41831         * lib/rename.c (rpl_rename) [W32]: Likewise.
41832         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
41833         an empty destination directory if source cannot be renamed,
41834         although there is still possibility for failure.
41835         * doc/posix-functions/rename.texi (rename): Document the race.
41836         Reported by Jim Meyering.
41837
41838         maint: cleanup whitespace in recent commits
41839         * lib/rename.c (rpl_rename): Remove tabs.
41840         * tests/test-link.h (test_link): Likewise.
41841         * lib/fchdir.c (get_name): Likewise.
41842         Reported by Jim Meyering.
41843
41844 2009-10-02  Ben Pfaff  <blp@gnu.org>
41845
41846         relocatable-prog-wrapper: Add missing dependency on
41847         double-slash-root.
41848         * modules/relocatable-prog-wrapper: Add dependency.
41849         Reported by Ian Beckwith <ianb@erislabs.net>.
41850
41851 2009-10-02  Eric Blake  <ebb9@byu.net>
41852
41853         renameat: fix Solaris bugs
41854         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
41855         needed fixing.
41856         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
41857         * modules/stdio (Makefile.am): Substitute it.
41858         * lib/stdio.in.h (renameat): Declare replacement.
41859         * lib/renameat.c (rpl_renameat): Implement fix.
41860
41861         renameat: new module
41862         * modules/renameat: New file.
41863         * lib/renameat.c (renameat): Likewise.
41864         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
41865         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41866         * modules/stdio (Makefile.am): Substitute them.
41867         * lib/stdio.in.h (renameat): Declare it.
41868         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41869         * doc/posix-functions/renameat.texi (renameat): Likewise.
41870         * modules/renameat-tests: New test.
41871         * tests/test-renameat.c: Likewise.
41872
41873         rename: fix mingw bugs
41874         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
41875         directory overwrite bugs.
41876
41877         rename: fix another cygwin 1.5 bug
41878         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
41879         checks.
41880         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
41881         unnecessary cygwin workarounds.  Also work around bug with moving
41882         full directory onto an empty one.
41883         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
41884
41885         rename-dest-slash: merge into rename module
41886         * modules/rename-dest-slash (Status): Mark obsolete.
41887         (Depends-on): Add rename.
41888         (Files): Let rename do it all.
41889         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
41890         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
41891         * m4/rename-dest-slash.m4: ...so this file can be deleted.
41892         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
41893         * lib/rename.c (rpl_rename): Update comments.
41894
41895         rename: fix cygwin 1.5.x bugs
41896         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
41897         * lib/rename.c (rpl_rename): Work around them.
41898         * modules/rename (Depends-on): Add same-inode.
41899
41900         rename: fix Solaris 10 bug
41901         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41902         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
41903         was the only bug.
41904
41905         rename: fix Solaris 9 bug
41906         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
41907         on non-directory.  Avoid calling exit.
41908         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
41909         strdup.
41910         * modules/rename-tests (Depends-on): Drop lstat.
41911         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41912         (gl_PREREQ_RENAME): Delete unused macro.
41913
41914         rename-dest-slash: fix NetBSD bug
41915         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
41916         links.
41917         * modules/rename-dest-slash (Depends-on): Add same-inode.
41918
41919         rename-tests: new test, exposes several platform bugs
41920         * modules/rename-tests: New file.
41921         * tests/test-rename.h: Likewise.
41922         * tests/test-rename.c: Likewise.
41923         * doc/posix-functions/rename.texi (rename): Improve documentation,
41924         including bugs that will eventually be fixed in gnulib.
41925
41926 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
41927
41928         * lib/uname.c: Include <stdlib.h>
41929         (uname): Assume version info is available.
41930
41931 2009-10-02  Jim Meyering  <meyering@redhat.com>
41932
41933         gnu-web-doc-update: correct --help output
41934         * build-aux/gnu-web-doc-update: Make --help output relevant.
41935
41936         gnu-web-doc-update: add standard options
41937         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
41938
41939         gnu-web-doc-update: New module.
41940         Use this script to automatically update the on-line web documentation
41941         for your GNU project at http://www.gnu.org/software/$pkg/manual/
41942         * modules/gnu-web-doc-update: New file, from coreutils.
41943         * build-aux/gnu-web-doc-update: New script.
41944
41945 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
41946
41947         link: LoadLibrary is not needed.
41948         * lib/link.c: Use GetModuleHandle.
41949
41950 2009-10-01  Eric Blake  <ebb9@byu.net>
41951
41952         getopt: bump serial number
41953         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
41954         change.
41955
41956         tests: tighten link, rmdir, and remove tests
41957         * tests/test-link.h (includes): No need to use <config.h> here.
41958         Clean up if directory hard link was created, otherwise test for
41959         trailing '.'.
41960         * tests/test-linkat.c (main): Simplify.
41961         * tests/test-remove.c (main): Enhance test for trailing '.'.
41962         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41963
41964 2009-10-01  Jim Meyering  <meyering@redhat.com>
41965
41966         maint.mk: requiring "make major" was annoying, for a "minor" release.
41967         What is intended is "stable", to contrast with alpha and beta,
41968         so require "make stable", not "make major".
41969         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
41970         (get_tool_versions): Likewise.
41971         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
41972
41973 2009-09-30  Ben Pfaff  <blp@gnu.org>
41974
41975         Fix broken build of replacement for Windows tmpfile().
41976         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
41977         flags argument added along with the 'mkostemp' module.
41978
41979 2009-09-28  Bruno Haible  <bruno@clisp.org>
41980
41981         Avoid identifier clash with POSIX function 'remove' defined as a macro.
41982         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
41983         to 'remove_elt'.
41984         (gl_list_remove): Update.
41985         * lib/gl_list.c (gl_list_remove): Update.
41986         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
41987         to 'remove_elt'.
41988         (gl_oset_remove): Update.
41989         * lib/gl_list.c (gl_oset_remove): Update.
41990         Reported by Eric Blake.
41991
41992 2009-09-28  Eric Blake  <ebb9@byu.net>
41993
41994         doc: mention yet more cygwin 1.7 status
41995         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
41996         cygwin.
41997         * doc/glibc-functions/execvpe.texi (execvpe): New file.
41998         * doc/gnulib.texi (Glibc unistd.h): Mention it.
41999
42000         argp: fix test failure
42001         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
42002         that are not upper-case.  Pass correct range to tolower.
42003
42004 2009-09-27  Jim Meyering  <meyering@redhat.com>
42005
42006         test-yesno: work around sparc-dash here-document infelicity
42007         Without this change, the literal \177 byte in a here document
42008         would make dash 0.5.5.1-3 access uninitialized memory.
42009         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
42010         Instead, use a marker, "@", and filter through tr to create the desired
42011         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
42012
42013 2009-09-27  Bruno Haible  <bruno@clisp.org>
42014
42015         Disable untested support for new flavours of ACLs on AIX.
42016         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
42017         progress.
42018         * lib/set-mode-acl.c (qset_acl): Likewise.
42019
42020 2008-12-07  Bruno Haible  <bruno@clisp.org>
42021
42022         Add support for new flavours of ACLs on AIX. (Untested.)
42023         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
42024         (file_has_acl): Add support for newer AIX.
42025         * lib/set-mode-acl.c (qset_acl): Likewise.
42026         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
42027         Rainer Tammer <tammer@tammer.net>.
42028
42029 2009-09-26  Eric Blake  <ebb9@byu.net>
42030
42031         argp: fix compilation of getopt
42032         * lib/getopt.in.h (includes): Use different guard than glibc.
42033         Reported by Sergey Poznyakoff.
42034
42035         doc: mention more cygwin 1.7 status
42036         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
42037         bug.
42038         * doc/posix-functions/execl.texi (execl): Likewise.
42039         * doc/posix-functions/execle.texi (execle): Likewise.
42040         * doc/posix-functions/execlp.texi (execlp): Likewise.
42041         * doc/posix-functions/execv.texi (execv): Likewise.
42042         * doc/posix-functions/execve.texi (execve): Likewise.
42043         * doc/posix-functions/execvp.texi (execvp): Likewise.
42044         * doc/glibc-functions/canonicalize_file_name.texi
42045         (canonicalize_file_name): Cygwin 1.7 now provides this.
42046         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
42047         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
42048         on AT_SYMLINK_NOFOLLOW.
42049
42050 2009-09-24  Eric Blake  <ebb9@byu.net>
42051
42052         test-linkat: make test more robust
42053         * tests/test-linkat.c (main): Avoid collision with EEXIST.
42054
42055         getopt: fix inclusion guards for cygwin
42056         * modules/getopt-posix (Depends-on): Add include-next.
42057         (Makefile.am): Substitute more items in replacement header.
42058         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
42059         <getopt.h>.
42060         * lib/getopt.in.h (includes): Use split inclusion guard, and
42061         prefer <getopt.h> over include <unistd.h> when one is present.
42062         (option): Also override name of 'struct option'.
42063
42064         same-inode: revert prior change; it is not yet ready
42065         * NEWS: Undo mention of this change.
42066         * lib/same-inode.h (same-inode.h): Undo tri-state change.
42067         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
42068         * lib/cycle-check.c (cycle_check): Likewise.
42069         * lib/same.c (same_name): Likewise.
42070         * lib/at-func2.c (at_func2): Likewise.
42071
42072 2009-09-23  Eric Blake  <ebb9@byu.net>
42073
42074         linkat: new module
42075         * modules/linkat: New file.
42076         * lib/at-func2.c (at_func2): Likewise.
42077         * lib/linkat.c (linkat): Likewise.
42078         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
42079         * lib/openat-priv.h (at_func2): Add declaration.
42080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42081         * modules/unistd (Makefile.am): Substitute them.
42082         * lib/unistd.in.h (linkat): Declare it.
42083         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42084         * doc/posix-functions/linkat.texi (linkat): Likewise.
42085         * doc/posix-functions/link.texi (link): Tweak wording.
42086         * tests/test-link.c (main): Move guts...
42087         * tests/test-link.h (test_link): ...into new file.
42088         * modules/linkat-tests: New test.
42089         * tests/test-linkat.c: Likewise.
42090         * modules/link-tests (Files): Ship new file.
42091         (Depends-on): Add stdbool.
42092
42093         dirname: add library-safe mdir_name
42094         * lib/dirname.h (mdir_name): New prototype.
42095         * lib/dirname.c (dir_name): Move guts...
42096         (mdir_name): ...to new function that avoids xalloc_die.
42097
42098         fchdir: another mingw fix
42099         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
42100         * lib/fchdir.c (get_name): New helper method; skips canonicalize
42101         on mingw (where it has not yet been ported), and make it optional
42102         elsewhere.
42103         (_gl_register_fd): Use it.
42104
42105         same-inode: make SAME_INODE tri-state, to port to mingw
42106         * NEWS: Mention this change.
42107         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
42108         st_ino always being 0.
42109         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
42110         * lib/cycle-check.c (cycle_check): Likewise.
42111         * lib/same.c (same_name): Likewise.
42112
42113         lstat: avoid mingw compilation error
42114         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
42115         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
42116         lstat ourselves.
42117         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
42118         was adequate.
42119         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
42120         the checks for lstat.
42121         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
42122
42123         link: fix test failure on Solaris 9
42124         * lib/link.c (rpl_link): Don't assume link will catch bogus
42125         trailing slash on source.
42126
42127         test-symlinkat: enhance test
42128         * tests/test-readlink.c (main): Move guts...
42129         * tests/test-readlink.h (test_readlink): ...into new file.
42130         * tests/test-symlink.c (main): Move guts...
42131         * tests/test-symlink.h (test_symlink): ...into new file.
42132         * tests/test-symlinkat.c (main): Use new files for further
42133         coverage.
42134         (do_symlink, do_readlink): New helper functions.
42135         * modules/symlink-tests (Files): Ship new file.
42136         (Depends-on): Add stdbool.
42137         * modules/readlink-tests (Files): Ship new file.
42138         (Depends-on): Add stdbool.
42139         * modules/symlinkat-tests (Files): Use new files.
42140
42141 2009-09-23  Eric Blake  <ebb9@byu.net>
42142
42143         readlink: document portability issue with symlink length
42144         * doc/posix-functions/lstat.texi (lstat): Mention that some file
42145         systems have bogus st_size on symlinks, and mention the
42146         areadlink-with-size module.
42147         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
42148         * doc/posix-functions/readlink.texi (readlink): Mention the
42149         areadlink module, and ERANGE failure.
42150         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42151         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
42152
42153         readlink: fix Solaris 9 bug with trailing slash
42154         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
42155         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
42156         * doc/posix-functions/readlink.texi (readlink): Document this.
42157         * modules/readlink-tests: New test.
42158         * tests/test-readlink.c: Likewise.
42159
42160         readlink: fix cygwin 1.5.x bug with return type
42161         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
42162         * lib/unistd.in.h (readlink): Use ssize_t.
42163         * lib/readlink.c (readlink): Likewise.
42164         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42165         * modules/unistd (Makefile.am): Substitute it.
42166         * lib/unistd.in.h (readlink): Declare replacement.
42167         * doc/posix-functions/readlink.texi (readlink): Document this.
42168
42169         symlink: use throughout gnulib
42170         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
42171         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
42172         symlink is not used.
42173         * modules/symlinkat (Depends-on): Add symlink.
42174         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
42175         * modules/canonicalize-tests (Depends-on): Likewise.
42176         * modules/lstat-tests (Depends-on): Likewise.
42177         * modules/openat-tests (Depends-on): Likewise.
42178         * modules/remove-tests (Depends-on): Likewise.
42179         * modules/rmdir-tests (Depends-on): Likewise.
42180         * modules/unlink-tests (Depends-on): Likewise.
42181         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
42182         * tests/test-canonicalize.c (symlink): Likewise.
42183         * tests/test-fstatat.c (symlink): Likewise.
42184         * tests/test-lstat.c (symlink): Likewise.
42185         * tests/test-remove.c (symlink): Likewise.
42186         * tests/test-rmdir.c (symlink): Likewise.
42187         * tests/test-unlink.c (symlink): Likewise.
42188         * tests/test-unlinkat.c (symlink): Likewise.
42189
42190         symlink: new module, for Solaris 9 bug
42191         * modules/symlink: New file.
42192         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
42193         * lib/symlink.c: Likewise.
42194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
42195         * modules/unistd (Makefile.am): Substitute them.
42196         * lib/unistd.in.h (symlink): Declare replacement.
42197         * MODULES.html.sh (File system functions): Mention it.
42198         * doc/posix-functions/symlink.texi (symlink): Likewise.
42199         * modules/symlink-tests: New test.
42200         * tests/test-symlink.c: Likewise.
42201
42202 2009-09-23  Bruno Haible  <bruno@clisp.org>
42203
42204         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
42205         when needed.
42206         Test case: gnulib-tool --import --with-tests atexit inttypes.
42207         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
42208
42209 2009-09-23  Bruno Haible  <bruno@clisp.org>
42210
42211         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
42212         subcommand, not in a subshell.
42213
42214 2009-09-22  Eric Blake  <ebb9@byu.net>
42215
42216         unistd: sort replacement declarations
42217         * lib/unistd.in.h: Sort declarations.
42218
42219         open, openat: minor optimization
42220         * lib/open.c (open): If open succeeded, len is non-zero.
42221         * lib/openat.c (rpl_openat): Likewise.
42222
42223         link-follow: ensure correct result
42224         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
42225         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
42226         distinguish between possible failures.
42227
42228 2009-09-21  Eric Blake  <ebb9@byu.net>
42229
42230         fts: avoid compiler warning
42231         * lib/fts.c (dirent_inode_sort_may_be_useful)
42232         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
42233
42234 2009-09-19  Bruno Haible  <bruno@clisp.org>
42235
42236         * lib/progreloc.c (canonicalize_file_name): New declaration.
42237
42238 2009-09-19  Eric Blake  <ebb9@byu.net>
42239
42240         link: fix quoting
42241         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
42242
42243         openat: fix openat bugs on Solaris 9
42244         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
42245         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
42246         * modules/openat (Depends-on): Add open.
42247         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
42248         * modules/fcntl-h (Makefile.am): Substitute it.
42249         * lib/fcntl.in.h (openat): Declare replacement.
42250         * doc/posix-functions/openat.texi (openat): Document this.
42251
42252         openat: move fstatat and unlinkat into correct files
42253         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
42254         compiled.
42255         * lib/openat.c (fstatat, unlinkat): Move...
42256         * lib/fstatat.c (fstatat): ...into correct files.
42257         * lib/unlinkat.c (unlinkat): Likewise.
42258
42259         openat: fix unlinkat bugs on Solaris 9
42260         * lib/unlinkat.c (unlinkat): New file.
42261         * modules/openat (Depends-on): Add unlink.
42262         (Files): Distribute it.
42263         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
42264         trailing slash behavior is broken.
42265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42266         * modules/unistd (Makefile.am): Substitute it.
42267         * lib/unistd.in.h (unlinkat): Declare replacement.
42268         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
42269
42270         openat: fix fstatat bugs on Solaris 9
42271         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
42272         stat.
42273         * doc/posix-functions/fstatat.texi (fstatat): Document this.
42274
42275         test-unlinkat: enhance test, to expose Solaris 9 bug
42276         * tests/test-unlink.c (main): Factor guts...
42277         * tests/test-unlink.h (test_rmdir_func): ...into new file.
42278         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
42279         * tests/test-rmdir.c (main): Adjust caller.
42280         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
42281         (unlinker): New helper function.
42282         (rmdirat): Enhance check.
42283         * modules/rmdir-tests (Depends-on): Add stdbool.
42284         * modules/unlink-tests (Depends-on): Likewise.
42285         (Files): Add test-unlink.h.
42286         * modules/openat-tests (Files): Likewise.
42287         (Depends-on): Add unlinkdir.
42288
42289         test-fstatat: new test, to expose Solaris 9 bugs
42290         * tests/test-stat.c (main): Factor guts...
42291         * tests/test-stat.h (test_stat_func): ...into new file.
42292         * tests/test-lstat.c (main): Factor guts...
42293         * tests/test-lstat.h (test_lstat_func): ...into new file.
42294         * tests/test-fstatat.c: New file.
42295         * modules/stat-tests (Files): Add test-stat.h.
42296         * modules/lstat-tests (Files): Add test-lstat.h.
42297         (Depends-on): Add stdbool.
42298         * modules/openat-tests (Depends-on): Add pathmax.
42299         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
42300         (Makefile.am): Run new test.
42301
42302         remove: new module, for mingw and Solaris 9 bugs
42303         * modules/remove: New file.
42304         * lib/remove.c: Likewise.
42305         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
42306         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
42307         * modules/stdio (Makefile.am): Use them.
42308         * lib/stdio.in.h (remove): Declare replacement.
42309         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42310         * doc/posix-functions/remove.texi (remove): Likewise.
42311         * modules/remove-tests: New test.
42312         * tests/test-remove.c: Likewise.
42313
42314         unlink: new module, for Solaris 9 bug
42315         * modules/unlink: New file.
42316         * lib/unlink.c: Likewise.
42317         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
42318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42319         * modules/unistd (Makefile.am): Use them.
42320         * lib/unistd.in.h (stat): Declare replacement.
42321         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42322         * doc/posix-functions/unlink.texi (unlink): Likewise.
42323         * modules/unlink-tests: New test.
42324         * tests/test-unlink.c: Likewise.
42325
42326         lstat: fix Solaris 9 bug
42327         * lib/lstat.c (lstat): Also check for trailing slash on
42328         non-symlink, non-directories.  Use stat module to simplify logic.
42329         * doc/posix-functions/lstat.texi (lstat): Document it.
42330         * modules/lstat-tests (Depends-on): Add errno, same-inode.
42331         (configure.ac): Check for symlink.
42332         * tests/test-lstat.c (main): Add more tests.
42333
42334         stat: add as dependency to other modules
42335         * modules/chown (Depends-on): Add stat.
42336         * modules/euidaccess (Depends-on): Likewise.
42337         * modules/fchdir (Depends-on): Likewise.
42338         * modules/isdir (Depends-on): Likewise.
42339         * modules/link (Depends-on): Likewise.
42340         * modules/lstat (Depends-on): Likewise.
42341         * modules/mkdir-p (Depends-on): Likewise.
42342         * modules/modechange (Depends-on): Likewise.
42343         * modules/open (Depends-on): Likewise.
42344         * modules/readlink (Depends-on): Likewise.
42345         * modules/same (Depends-on): Likewise.
42346
42347         stat: fix Solaris 9 bug
42348         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
42349         slash.
42350         * lib/stat.c (rpl_stat): Work around it.
42351         * doc/posix-functions/stat.texi (stat): Update documentation.
42352
42353         stat: new module, for mingw bug
42354         * modules/stat: New file.
42355         * lib/stat.c: Likewise.
42356         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
42357         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42358         * modules/sys_stat (Makefile.am): Use them.
42359         * lib/sys_stat.in.h (stat): Declare replacement.
42360         * lib/openat.c (fstatat): Deal with lstat and stat being function
42361         macros.
42362         * modules/openat (Depends-on): Add inline.
42363         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42364         * doc/posix-functions/stat.texi (stat): Likewise.
42365         * modules/stat-tests: New test.
42366         * tests/test-stat.c: Likewise.
42367
42368 2009-09-19  Jim Meyering  <meyering@redhat.com>
42369
42370         syntax-check: detect unnecessary inclusion of canonicalize.h
42371         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
42372
42373 2009-09-19  Eric Blake  <ebb9@byu.net>
42374
42375         canonicalize-lgpl: adjust clients to use correct header
42376         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
42377         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
42378         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
42379         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
42380         * lib/progreloc.c (includes): Likewise.
42381
42382 2009-09-19  Jim Meyering  <meyering@redhat.com>
42383
42384         test-posixtm.c: correct a comment
42385         * tests/test-posixtm.c: Correct first-line comment.
42386         Spotted by Eric Blake.
42387
42388 2009-09-16  Jim Meyering  <meyering@redhat.com>
42389
42390         posixtm-tests: make T const-correct; add a test case
42391         * tests/test-posixtm.c (T): Declare const.
42392         Add a test for -(2^31+1).
42393         Remove useless can-succeed-only-in-2002 test.
42394
42395         posixtm-tests: adjust the sole failing test
42396         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
42397         expected output matches what mktime now produces.  Cross-checked via
42398         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
42399
42400         posixtm: move #ifdef'd tests into a new module
42401         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
42402         * tests/test-posixtm.c: ... this new file.
42403         * modules/posixtm-tests: New module.
42404
42405 2009-09-19  Eric Blake  <ebb9@byu.net>
42406
42407         openat: simplify use of at-func.c
42408         * lib/at-func.c (includes): Include prerequisites here, to
42409         simplify requirements on client files.
42410         * lib/openat-priv.h: Add double-inclusion guard.
42411         * lib/faccessat.c (includes): Simplify.
42412         * lib/fchmodat.c (includes): Likewise.
42413         * lib/fchownat.c (includes): Likewise.
42414         * lib/mkdirat.c (includes): Likewise.
42415         * lib/mkfifoat.c (includes): Likewise.
42416         * lib/symlinkat.c (includes): Likewise.
42417
42418         openat: allow return of fd 0
42419         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
42420         * modules/save-cwd (Depends-on): Replace fcntl-safer with
42421         unistd-safer.
42422         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
42423         <fcntl.h>; this module does not leak fds.
42424         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
42425         must be allowed to return 0, leaving openat_safer to add the
42426         safety.
42427         (openat_permissive): Avoid writing to just-opened fd 2 if
42428         restoring the current directory fails.
42429         * lib/openat-die.c (openat_restore_fail): Add comment.
42430         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
42431         (save_cwd): Guarantee safe fd, but without use of open_safer.
42432         * tests/test-openat.c: New test.
42433         * modules/openat-tests (Files, Makefile.am): Distribute and build
42434         new file.
42435
42436         relocatable-prog-wrapper: fix build
42437         * modules/relocatable-prog-wrapper (Files): Update name of
42438         canonicalize m4 file, broken on 2009-09-17.
42439         Reported by emad hajjar <aleppos@hotmail.com>.
42440
42441 2009-09-19  Bruno Haible  <bruno@clisp.org>
42442
42443         * lib/safe-alloc.h: Use the standard header with GPL copyright.
42444         * lib/safe-alloc.c: Likewise.
42445         Reported by Ian Beckwith <ianb@erislabs.net>.
42446
42447 2009-09-18  Bruno Haible  <bruno@clisp.org>
42448
42449         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
42450         Reported by <erobles@sensacd.com.mx>.
42451
42452 2009-09-17  Eric Blake  <ebb9@byu.net>
42453
42454         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
42455         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
42456         slashes when checking if last component is missing.
42457         * tests/test-canonicalize.c (main): Test this.
42458
42459         canonicalize, canonicalize-lgpl: honor // if distinct from /
42460         * modules/canonicalize (Files): Add double-slash-root.m4.
42461         * modules/canonicalize-lgpl (Files): Likewise.
42462         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
42463         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
42464         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
42465         fallback definition.
42466         (canonicalize_filename_mode): Use it to protect //.
42467         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
42468         (__realpath): Likewise.
42469         * tests/test-canonicalize.c (main): Test this.
42470         * tests/test-canonicalize-lgpl.c (main): Likewise.
42471         * modules/canonicalize-tests (Depends-on): Add same-inode.
42472         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
42473
42474         canonicalize-lgpl: fix glibc bug with trailing slash
42475         * m4/canonicalize-lgpl.m4: Move contents...
42476         * m4/canonicalize.m4: ...here.
42477         (gl_CANONICALIZE_LGPL): Factor realpath check...
42478         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
42479         glibc 2.3.5 bug, fixed 2005-04-27.
42480         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
42481         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
42482         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
42483         * modules/canonicalize-lgpl (Files): Manage file rename.
42484         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
42485         * modules/stdlib (Makefile.am): Substitute witness.
42486         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
42487         is needed.
42488         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
42489         replacement is required.
42490         * lib/canonicalize.c (canonicalize_file_name): Likewise.
42491         * doc/glibc-functions/canonicalize_file_name.texi
42492         (canonicalize_file_name): Document this.
42493         * doc/posix-functions/realpath.texi (realpath): Likewise.
42494
42495         canonicalize-lgpl: reject non-directory with trailing slash
42496         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
42497         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
42498         catches failures in glibc 2.3.5.
42499         * tests/test-canonicalize.c (main): Likewise.
42500
42501         canonicalize-lgpl: use native realpath if it works
42502         * lib/canonicalize-lgpl.c (realpath): Guard with
42503         FUNC_REALPATH_WORKS.
42504         * lib/stdlib.in.h (realpath): Make declaration optional based on
42505         HAVE_REALPATH.
42506         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
42507         native realpath works.
42508         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
42509         * modules/stdlib (Makefile.am): Substitute witness.
42510
42511         canonicalize, canonicalize-lgpl: use <stdlib.h>
42512         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
42513         (Include): Mention <stdlib.h>.
42514         (configure.ac): Mention functions we provide.
42515         * modules/canonicalize (configure.ac): Likewise.
42516         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
42517         realpath if canonicalize_file_name is missing.
42518         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
42519         * modules/stdlib (Makefile.am): Substitute witnesses.
42520         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
42521         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
42522         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
42523         * NEWS: Document this.
42524         * doc/glibc-functions/canonicalize_file_name.texi
42525         (canonicalize_file_name): Likewise.
42526         * doc/posix-functions/realpath.texi (realpath): Likewise.
42527         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
42528
42529         test-canonicalize: consolidate into single C program
42530         * tests/test-canonicalize.sh: Delete; move setup into...
42531         * tests/test-canonicalize.c (main): ...the program, making it
42532         easier to run in debugger.  Add some tests.
42533         * modules/canonicalize-tests (Files): Remove unused file.
42534         (Depends-on): Add progname.
42535         (configure.ac, Makefile.am): Simplify.
42536
42537         test-canonicalize-lgpl: consolidate into single C program
42538         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
42539         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
42540         easier to run in debugger.  Add some tests.
42541         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
42542         (configure.ac, Makefile.am): Simplify.
42543
42544         canonicalize: avoid resolvepath
42545         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
42546         unnecessary checks.
42547         * lib/canonicalize.c (includes): Simplify.
42548         (canonicalize_file_name): Drop resolvepath implementation.
42549         * modules/canonicalize (Depends-on): Drop filenamecat.
42550
42551         canonicalize: don't lose errno
42552         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
42553         over calls to free.
42554
42555         canonicalize: simplify errno handling
42556         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
42557         assignment.
42558
42559         canonicalize, canonicalize-lgpl: update module dependencies
42560         * modules/canonicalize (Depends-on): Add extensions, lstat,
42561         pathmax, stdlib.
42562         (Files): Drop pathmax.h.
42563         (configure.ac): Adjust macro name.
42564         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
42565         lstat, stdlib, sys_stat.
42566         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
42567         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
42568         extensions.
42569         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
42570         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
42571         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
42572         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
42573         declaration, if available.
42574         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
42575         we can rely on the readlink module.
42576         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
42577         (includes): Use <unistd.h> unconditionally.
42578
42579 2009-09-17  Eric Blake  <ebb9@byu.net>
42580
42581         maint: make Include sections of modules consistent
42582         * modules/alloca: Use only header name; no need to list #include.
42583         * modules/alloca-opt: Likewise.
42584         * modules/arpa_inet: Likewise.
42585         * modules/canon-host: Likewise.
42586         * modules/configmake: Likewise.
42587         * modules/dirent: Likewise.
42588         * modules/eealloc: Likewise.
42589         * modules/environ: Likewise.
42590         * modules/fchdir: Likewise.
42591         * modules/fcntl: Likewise.
42592         * modules/fcntl-h: Likewise.
42593         * modules/gethrxtime: Likewise.
42594         * modules/gettime: Likewise.
42595         * modules/ignore-value: Likewise.
42596         * modules/inet_ntop: Likewise.
42597         * modules/inet_pton: Likewise.
42598         * modules/inttypes: Likewise.
42599         * modules/isnand-nolibm: Likewise.
42600         * modules/isnanf-nolibm: Likewise.
42601         * modules/mbchar: Likewise.
42602         * modules/mbfile: Likewise.
42603         * modules/mbiter: Likewise.
42604         * modules/mbuiter: Likewise.
42605         * modules/netdb: Likewise.
42606         * modules/netinet_in: Likewise.
42607         * modules/nproc: Likewise.
42608         * modules/pagealign_alloc: Likewise.
42609         * modules/poll: Likewise.
42610         * modules/printf-frexp: Likewise.
42611         * modules/pthread: Likewise.
42612         * modules/putenv: Likewise.
42613         * modules/random_r: Likewise.
42614         * modules/relocatable-prog: Likewise.
42615         * modules/search: Likewise.
42616         * modules/select: Likewise.
42617         * modules/selinux-h: Likewise.
42618         * modules/settime: Likewise.
42619         * modules/signal: Likewise.
42620         * modules/size_max: Likewise.
42621         * modules/socklen: Likewise.
42622         * modules/ssize_t: Likewise.
42623         * modules/stdarg: Likewise.
42624         * modules/stdbool: Likewise.
42625         * modules/stddef: Likewise.
42626         * modules/stdint: Likewise.
42627         * modules/stdio: Likewise.
42628         * modules/stdlib: Likewise.
42629         * modules/string: Likewise.
42630         * modules/strings: Likewise.
42631         * modules/sys_file: Likewise.
42632         * modules/sys_ioctl: Likewise.
42633         * modules/sys_select: Likewise.
42634         * modules/sys_socket: Likewise.
42635         * modules/sys_stat: Likewise.
42636         * modules/sys_time: Likewise.
42637         * modules/sys_times: Likewise.
42638         * modules/sys_utsname: Likewise.
42639         * modules/sys_wait: Likewise.
42640         * modules/sysexits: Likewise.
42641         * modules/time: Likewise.
42642         * modules/times: Likewise.
42643         * modules/tmpfile: Likewise.
42644         * modules/trim: Likewise.
42645         * modules/unistd: Likewise.
42646         * modules/wchar: Likewise.
42647         * modules/wctype: Likewise.
42648
42649 2009-09-17  Bruno Haible  <bruno@clisp.org>
42650
42651         Make getdate.y compile on QNX and NetBSD 5 / i386.
42652         * m4/getdate.m4 (gl_GETDATE): Conditionally define
42653         TIME_T_FITS_IN_LONG_INT.
42654         * lib/getdate.y (long_time_t): New type.
42655         (relative_time): Change type of 'seconds' field to long_time_t.
42656         (get_date): Update types of local variables. Check against overflow
42657         during conversion from long_time_t to time_t.
42658         Reported by Matt Kraai <kraai@ftbfs.org>
42659         and Hasso Tepper <hasso@netbsd.org>.
42660
42661 2009-09-17  Bruno Haible  <bruno@clisp.org>
42662
42663         * modules/COPYING: Update copyright years.
42664         * modules/README: Likeiwse.
42665         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
42666         Reported by Ian Beckwith <ianb@erislabs.net>.
42667
42668 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42669
42670         * users.txt: Update references for gnuit package.
42671
42672 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42673
42674         * m4/getdelim.m4: Fix typo in copyright line.
42675
42676 2009-09-17  Bruno Haible  <bruno@clisp.org>
42677
42678         * lib/atoll.c: Use the standard header with GPL copyright.
42679         * lib/argz.in.h: Likewise.
42680         * lib/glob.c: Likewise.
42681         * lib/glob-libc.h: Likewise.
42682         * lib/random_r.c: Likewise.
42683         * lib/siglist.h: Likewise.
42684         * lib/strsignal.c: Likewise.
42685         Reported by Ian Beckwith <ianb@erislabs.net>.
42686
42687 2009-09-17  Eric Blake  <ebb9@byu.net>
42688
42689         rmdir: ensure correct dependency order
42690         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
42691
42692 2009-09-17  Bruno Haible  <bruno@clisp.org>
42693
42694         Disable assertion that fails on NetBSD 5 / i386.
42695         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
42696         Reported by Sam Steingold <sds@gnu.org>
42697         and Hasso Tepper <hasso@netbsd.org>.
42698
42699 2009-09-16  Eric Blake  <ebb9@byu.net>
42700
42701         unlinkdir: port to mingw
42702         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
42703         on which no one can unlink a directory.
42704
42705         stdlib: sort witness names
42706         * modules/stdlib (Makefile.am): Sort replacements.
42707         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42708         * lib/stdlib.in.h: Likewise.
42709
42710         parse-duration-tests: avoid link failure
42711         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
42712         LIBINTL.
42713         Reported by Tom G. Christensen.
42714
42715         openat-tests: ensure unlinkat behaves like rmdir
42716         * tests/test-rmdir.c (main): Factor guts...
42717         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
42718         * modules/rmdir-tests (Files): Ship new file.
42719         * modules/openat-tests: New test.
42720         * tests/test-unlinkat.c: Likewise.
42721
42722         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
42723         * modules/rmdir-errno (Status, Notice): Now obsolete.
42724
42725         rmdir: work around cygwin 1.5.x and mingw bugs
42726         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
42727         * lib/rmdir.c (rmdir): Work around it.
42728         * modules/rmdir (Status, Notice): No longer obsolete.
42729         (Files): Add dos.m4.
42730         (Depends-on): Add unistd.
42731         (configure.ac): Set witnesses.
42732         (License): Relax to LGPLv2+.
42733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
42734         * modules/unistd (Makefile.am): Substitute witnesses.
42735         * lib/unistd.in.h (rmdir): Declare replacement.
42736         * doc/posix-functions/rmdir.texi (rmdir): Document this.
42737         * modules/rmdir-tests: New tests.
42738         * tests/test-rmdir.c: Likewise.
42739
42740 2009-09-15  Eric Blake  <ebb9@byu.net>
42741
42742         fchdir: improve use of replacement functions
42743         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
42744         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
42745         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
42746         REPLACE_CLOSEDIR.
42747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
42748         * modules/sys_stat (Makefile.am): Substitute correct witness.
42749         * modules/dirent (Makefile.am): Likewise.
42750         * modules/unistd (Makefile.am): Likewise.
42751         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
42752         * lib/unistd.in.h (dup): Likewise.
42753         * lib/sys_stat.in.h (fstat): Likewise.
42754
42755         maint: ignore gnulib-tool temp files
42756         * .gitignore: Ignore files created during gnulib-tool --test.
42757
42758 2009-09-13  Jim Meyering  <meyering@redhat.com>
42759
42760         posixtm: don't reject a time that specify "60" as the number of seconds
42761         * lib/posixtm.c (posixtime): The code to reject invalid dates
42762         would also reject a time specified with the .60 suffix.
42763         But POSIX allows that, in order to accommodate leap seconds.
42764         So don't reject it.
42765         (main): Adjust tests accordingly.
42766         * modules/posixtm (Depends-on): Add stpcpy.
42767
42768 2009-09-11  Jim Meyering  <meyering@redhat.com>
42769
42770         announce-gen: include [$release_type] in emitted Subject:
42771         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
42772         e.g., [stable] in the emitted Subject: line.
42773
42774 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42775
42776         Remove obsolete macros from several modules.
42777         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
42778         obsolete Autoconf macros with their modern counterparts.
42779         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
42780         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
42781         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
42782         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42783         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
42784         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42785         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42786         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42787         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
42788         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
42789         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
42790         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
42791         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
42792         * m4/sockets.m4 (gl_SOCKETS): Likewise.
42793         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
42794         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
42795         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
42796         * m4/time_r.m4 (gl_TIME_R): Likewise.
42797         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
42798         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
42799         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
42800
42801         Fix copyright header in build-aux scripts.
42802         * build-aux/git-version-gen: Fix copyright header to match GPLv3
42803         recommendation.
42804         * build-aux/ncftpput-ftp: Likewise.
42805         * build-aux/update-copyright: Likewise.
42806
42807 2009-09-09  Eric Blake  <ebb9@byu.net>
42808
42809         test-link: allow Linux choice of errno
42810         * tests/test-link.c (main): Relax test for alternate error.
42811
42812         strndup: fix improper m4 caching
42813         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
42814         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
42815         (gl_PREREQ_STRNDUP): Delete.
42816         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
42817         * modules/string (Makefile.am): Substitute it.
42818         * lib/string.in.h (strndup): Modernize prototype.
42819
42820         getcwd: port to mingw
42821         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
42822         different from the POSIX assumptions made throughout the getcwd
42823         module; fortunately, the mingw getcwd does not need replacement.
42824         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
42825         * modules/getcwd-tests: New test.
42826         * tests/test-getcwd.c: Likewise.
42827
42828         link: fix platform bugs
42829         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
42830         * lib/link.c (link): Work around them.  Fix related mingw bug.
42831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
42832         * modules/unistd (Makefile.am): Substitute it.
42833         * lib/unistd.in.h (link): Declare replacement.
42834         * doc/posix-functions/link.texi (link): Document this.
42835         * modules/link (Depends-on): Add strdup-posix, sys_stat.
42836
42837         test-link: consolidate into single C program, test more cases
42838         * tests/test-link.sh: Delete.
42839         * tests/test-link.c: Test more error conditions.  Exposes bugs on
42840         at least Cygwin and Solaris.
42841         * modules/link-tests (Files): Remove unused file.
42842         (Depends-on): Add errno, sys_stat.
42843         (Makefile.am): Simplify.
42844
42845 2009-09-08  Bruno Haible  <bruno@clisp.org>
42846
42847         Work around towlower, towupper bug on mingw.
42848         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
42849         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
42850         * doc/posix-functions/towlower.texi: Mention the mingw bug.
42851         * doc/posix-functions/towupper.texi: Likewise.
42852         Reported by Eric Blake.
42853
42854 2009-09-08  Jim Meyering  <meyering@redhat.com>
42855
42856         build: don't try to run autoheader if we don't use it
42857         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
42858         is not used in configure.ac.
42859
42860 2009-09-08  Eric Blake  <ebb9@byu.net>
42861
42862         euidaccess: fix compilation error
42863         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
42864
42865         rawmemchr: relax license
42866         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
42867         okay.
42868         Reported by Jim Meyering.
42869
42870         mkfifoat: new module
42871         * modules/mkfifoat: New file.
42872         * lib/mkfifoat.c: Likewise.
42873         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
42874         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42875         * modules/sys_stat (Makefile.am): Use them.
42876         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
42877         * MODULES.html.sh (File system functions): Mention module.
42878         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
42879         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
42880         * modules/mkfifoat-tests: New test.
42881         * tests/test-mkfifoat.c: Likewise.
42882
42883         strchrnul: relax license
42884         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
42885         okay.
42886         Reported by Jim Meyering.
42887
42888 2009-09-08  Eric Blake  <ebb9@byu.net>
42889
42890         fstatat: fix compilation on Solaris
42891         * lib/fstatat.c (includes): Add fcntl.h.
42892         Reported by Pádraig Brady.
42893
42894 2009-09-07  Eric Blake  <ebb9@byu.net>
42895
42896         rename: modernize replacement
42897         * modules/rename (Depends-on): Add stdio.
42898         (configure.ac): Declare witness.
42899         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
42900         stdio take care of replacement.
42901         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
42902         * modules/stdio (Makefile.am): Substitute them.
42903         * lib/stdio.in.h (rename): Declare replacement.
42904         * lib/rename.c (includes): Allow cross-compilation to non-windows
42905         machines.
42906         * doc/posix-functions/rename.texi (rename): Improve
42907         documentation.
42908
42909         stdio: sort witness names
42910         * modules/stdio (Makefile.am): Sort replacements.
42911         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42912         * lib/stdio.in.h: Likewise.
42913
42914         getcwd: minor cleanups
42915         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
42916         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
42917
42918         openat: provide more convenience names
42919         * modules/faccessat (configure.ac): Add C witness.
42920         * lib/unistd.in.h (readlinkat): Fix typo.
42921         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
42922         convenience wrappers.
42923         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
42924         wrappers in syntax checks.
42925
42926 2009-09-06  Eric Blake  <ebb9@byu.net>
42927
42928         doc: fix comments in recent patches
42929         * lib/faccessat.c: Mention correct function.
42930         * lib/fchmodat.c: Likewise.
42931         * lib/fchownat.c: Likewise.
42932         * lib/symlinkat.c: Likewise.
42933         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
42934         constants.
42935
42936         faccessat, symlinkat: continue cleanup of previous patch
42937         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
42938         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42939         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
42940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
42941         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
42942         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
42943         set.
42944
42945 2009-09-06  Bruno Haible  <bruno@clisp.org>
42946
42947         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
42948         (fstatat): Declare if GNULIB_FSTATAT is set.
42949         (mkdirat): Declare if GNULIB_MKDIRAT is set.
42950         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
42951         (unlinkat): Declare if GNULIB_UNLINKAT is set.
42952         * modules/fcntl-h (Files): Remove m4/openat.m4.
42953         * modules/sys_stat (Files): Remove m4/openat.m4.
42954         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
42955         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
42956         * modules/unistd (Files): Remove m4/openat.m4.
42957         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
42958         GNULIB_OPENAT.
42959         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
42960         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
42961         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
42962         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
42963         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
42964         gl_OPENAT_DEFAULTS.
42965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
42966         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
42967         Don't require gl_OPENAT_DEFAULTS.
42968         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
42969         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
42970         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
42971         (gl_OPENAT_DEFAULTS): Remove macro.
42972
42973 2009-09-06  Bruno Haible  <bruno@clisp.org>
42974
42975         * modules/openat (configure.ac): Remove unneeded witness.
42976
42977 2009-09-06  Bruno Haible  <bruno@clisp.org>
42978
42979         Set errno to ENOSYS when a function is entirely unsupported.
42980         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
42981         EOPNOTSUPP.
42982         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42983         * modules/chown (Depends-on): Remove errno.
42984
42985 2009-09-06  Bruno Haible  <bruno@clisp.org>
42986
42987         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
42988
42989 2009-09-06  Bruno Haible  <bruno@clisp.org>
42990
42991         * lib/sys_stat.in.h: Fix preprocessor command indentation.
42992
42993 2009-09-06  Ben Pfaff  <blp@gnu.org>
42994             Bruno Haible  <bruno@clisp.org>
42995
42996         Work around a glibc bug in strtok_r.
42997         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
42998         Undefine if UNDEFINE_STRTOK_R is set.
42999         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
43000         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43001         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
43002         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
43003         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
43004         UNDEFINE_STRTOK_R.
43005         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
43006
43007 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
43008
43009         exclude: minor fix
43010         * lib/exclude.c: Include wctype.h
43011
43012 2009-09-06  Akim Demaille  <demaille@gostai.com>
43013
43014         bootstrap: improve error message
43015         * build-aux/bootstrap (find_tool): Upon failure, report the list
43016         of candidates.
43017         Honor the initial value of the envvar.
43018
43019 2009-09-05  Eric Blake  <ebb9@byu.net>
43020
43021         symlinkat: new module
43022         * modules/symlinkat: New file.
43023         * lib/symlinkat.c: Likewise.
43024         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
43025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43026         * modules/unistd (Makefile.am): Use them.
43027         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
43028         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
43029         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
43030         * MODULES.html.sh (File system functions): Mention module.
43031         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
43032         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43033         * modules/symlinkat-tests: New test.
43034         * tests/test-symlinkat.c: Likewise.
43035
43036         test-openat-safer: add more checks
43037         * tests/test-openat-safer.c (main): Check more code paths.
43038
43039 2009-09-05  Jim Meyering  <meyering@redhat.com>
43040
43041         syntax-check: detect unnecessary inclusion of openat.h
43042         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
43043
43044 2009-09-05  Bruno Haible  <bruno@clisp.org>
43045
43046         Support towlower, towupper.
43047         * doc/posix-functions/towlower.texi: Mention module wctype.
43048         * doc/posix-functions/towupper.texi: Likewise.
43049         * lib/wctype.in.h (towlower, towupper): New functions.
43050         * tests/test-wctype.c: Include stdio.h, stdlib.h.
43051         (ASSERT): New macro.
43052         (e): New variable.
43053         (main): Test also towlower, towupper. Test WEOF argument.
43054         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43055
43056 2009-09-05  Bruno Haible  <bruno@clisp.org>
43057
43058         Fix conversion behaviour when the input is invalid.
43059         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
43060         mark occurring in first pass of indirect conversion.
43061         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
43062         input.
43063         Found by clang's static analyzer.
43064
43065 2009-09-05  Bruno Haible  <bruno@clisp.org>
43066
43067         * tests/test-striconveh.c (main): Test indirect conversion on platforms
43068         where direct conversion is possible.
43069
43070 2009-09-04  Eric Blake  <ebb9@byu.net>
43071
43072         openat: fail with ENOENT on empty name
43073         * lib/openat-proc.c (openat_proc_name): Special-case the empty
43074         buffer.
43075
43076         link-follow: fix logic bug in prior patch
43077         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
43078         reversed sense of yes and no in prior patch.  Avoid confusing
43079         compilation failure with desired semantics.
43080
43081         link-follow: accommodate mingw and cross-compilation
43082         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
43083         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
43084         cross-compilation results to -1, to make linkat easier to
43085         implement when cross-compiling.  Trivially support mingw.
43086         * modules/link-follow (configure.ac): Call new name.
43087         * NEWS: Mention this.
43088
43089 2009-09-03  Eric Blake  <ebb9@byu.net>
43090
43091         faccessat: compile replacement
43092         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
43093         needed.
43094
43095         fts: fix compilation error
43096         * lib/fts.c (includes): Re-add "openat.h", for
43097         openat_needs_fchdir.
43098
43099         faccessat: new module
43100         * modules/faccessat: New file.
43101         * lib/faccessat.c: Likewise.
43102         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
43103         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43104         * modules/unistd (Makefile.am): Use it.
43105         * lib/unistd.in.h (faccessat): Declare it.
43106         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
43107         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
43108         * MODULES.html.sh (File system functions): Mention it.
43109         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
43110         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
43111
43112         euidaccess: prefer POSIX over non-standard implementation
43113         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
43114         * lib/euidaccess.c (euidaccess): Use it if available.
43115
43116         openat: make template easier to use
43117         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
43118         AT_FUNC_F2 to be undefined.
43119         (VALIDATE_FLAG): New macro; use it to reject bad flags.
43120         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
43121         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
43122         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
43123         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
43124         Likewise.
43125         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
43126         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
43127         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
43128         Likewise.
43129
43130         openat: declare in POSIX headers
43131         * NEWS: Mention this.
43132         * modules/openat (configure.ac): Declare witnesses.
43133         (Depends-on): Add fcntl-h, sys_stat, unistd.
43134         (Include): Mention correct headers.
43135         * modules/fcntl-h (Depends-on): Add link-warning.
43136         (Files): Add openat.m4.
43137         (Makefile.am): Substitute witnesses.
43138         * modules/sys_stat (Files, Makefile.am): Likewise.
43139         * modules/unistd (Files, Makefile.am): Likewise.
43140         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
43141         (gl_OPENAT_DEFAULTS): New macro.
43142         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
43143         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
43144         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
43145         (SYS_STAT_H): Remove unused variable.
43146         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
43147         * lib/fcntl--.h (includes): Remove unneeded header.
43148         * lib/openat-safer.c (includes): Likewise.
43149         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
43150         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
43151         appropriate headers.
43152         (__OPENAT_PREFIX): Delete.
43153         * lib/fcntl.in.h (openat): Provide declaration.
43154         (AT_FDCWD): Fix Solaris bug.
43155         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
43156         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
43157         * lib/fchmodat.c (includes):  Adjust to find declaration.
43158         * lib/fchownat.c (includes): Likewise.
43159         * lib/mkdirat.c (includes): Likewise.
43160         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
43161         still visible.
43162
43163 2009-09-02  Eric Blake  <ebb9@byu.net>
43164
43165         errno: use consistently
43166         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
43167         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
43168         * lib/canonicalize.c (ELOOP): Likewise.
43169         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
43170         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
43171         * lib/lchown.c (EOPNOTSUPP): Likewise.
43172         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
43173         * lib/savewd.c (ESTALE): Likewise.
43174         * lib/settime.c (ENOSYS): Likewise.
43175         * lib/utimens.c (ENOSYS): Likewise.
43176         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
43177         * lib/chdir-safer.c (ELOOP): Likewise.
43178         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
43179         * modules/c-stack (Depends-on): Add errno.
43180         * modules/canonicalize (Depends-on): Likewise.
43181         * modules/chdir-safer (Depends-on): Likewise.
43182         * modules/fdopendir (Depends-on): Likewise.
43183         * modules/inet_ntop (Depends-on): Likewise.
43184         * modules/inet_pton (Depends-on): Likewise.
43185         * modules/lchown (Depends-on): Likewise.
43186         * modules/openat (Depends-on): Likewise.
43187         * modules/savewd (Depends-on): Likewise.
43188         * modules/settime (Depends-on): Likewise.
43189         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
43190
43191         fts: avoid leaking fds
43192         * modules/fts (Depends-on): Add cloexec.
43193         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
43194         flag.
43195
43196         fts: make directory fds more robust
43197         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
43198         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
43199
43200         backupfile, chdir-long, fts, savedir: make safer
43201         * lib/backupfile.c (includes): Use "dirent--.h", since
43202         numbered_backup can write to stderr during readdir.
43203         * lib/savedir.c (includes): Likewise.
43204         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
43205         emulation can write to stderr on failure.
43206         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
43207         * lib/getcwd.c: Document why opendir_safer is unused.
43208         * lib/glob.c: Likewise.
43209         * lib/scandir.c: Likewise.
43210         * lib/openat-proc.c: Likewise, for open_safer.
43211         * modules/backupfile (Depends-on): Add dirent-safer.
43212         * modules/savedir (Depends-on): Likewise.
43213         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
43214         * modules/chdir-long (Depends-on): Add openat-safer.
43215
43216         openat-safer: new module
43217         * modules/openat-safer: New file.
43218         * lib/openat-safer.c: Likewise.
43219         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
43220         * lib/fcntl-safer.h (openat_safer): Declare.
43221         * lib/fcntl--.h (openat): Override.
43222         * MODULES.html.sh (File descriptor based I/O): Mention it.
43223         * lib/openat.h: Add double-inclusion guards.
43224         * lib/openat.c (includes): Only include "fcntl-safer.h", not
43225         "fcntl--.h", so we can implement openat.
43226         * modules/openat-safer-tests: New test.
43227         * tests/test-openat-safer.c: New file.
43228
43229         dirent-safer: new module
43230         * modules/dirent-safer: New file.
43231         * lib/dirent--.h: Likewise.
43232         * lib/dirent-safer.h: Likewise.
43233         * lib/opendir-safer.c: Likewise.
43234         * m4/dirent-safer.m4: Likewise.
43235         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
43236         * modules/dirent-safer-tests: New test.
43237         * tests/test-dirent-safer.c: New file.
43238         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
43239
43240         fdopendir: optimize on mingw
43241         * lib/unistd.in.h (_gl_directory_name): New prototype.
43242         * lib/fchdir.c (_gl_directory_name): Implement it.
43243         (fchdir): Use it to simplify implementation.
43244         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
43245         fchdir, when available, to avoid calling [f]chdir().
43246
43247         fdopendir: split into its own module
43248         * lib/openat.c (fdopendir): Move...
43249         * lib/fdopendir.c: ...into new file.
43250         * modules/fdopendir: New module.
43251         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
43252         * modules/openat (Depends-on): Add fdopendir.
43253         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
43254         fdopendir here.
43255         * modules/savedir (Depends-on): Only need fdopendir, not full
43256         openat.
43257         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
43258         * lib/openat.h (fdopendir): Drop prototype.
43259         * lib/dirent.in.h (fdopendir): Provide prototype.
43260         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
43261         * modules/dirent (Makefile.am): Substitute them.
43262         * MODULES.html.sh (File system functions): Mention it.
43263         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
43264         * modules/fdopendir-tests: New file.
43265         * tests/test-fdopendir.c: Likewise.
43266
43267         fchdir: use more consistent macro convention
43268         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
43269         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
43270         REPLACE_FCHDIR, rather than relying on config.h macros.
43271         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
43272         inside a single make-time REPLACE_FCHDIR block, rather than using
43273         the config.h FCHDIR_REPLACEMENT.
43274         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
43275         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
43276         Manage fstat replacement.
43277         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
43278         REPLACE_FCHDIR.
43279         * modules/sys_stat (Files): Add m4/unistd_h.m4.
43280         (Makefile.am): Substitute REPLACE_FCHDIR.
43281         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
43282         FCHDIR_REPLACEMENT.
43283         * lib/dup-safer.c (dup_safer): Likewise.
43284         * lib/dup2.c (rpl_dup2): Likewise.
43285         * lib/dup3.c (rpl_dup3): Likewise.
43286         * lib/open.c (rpl_open): Likewise.
43287
43288         fchdir: simplify error handling, and support dup3
43289         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
43290         stdbool, malloc-posix, realloc-posix.
43291         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
43292         (ensure_dirs_slot): Return false on allocation failure.
43293         (rpl_dup2): Delete.
43294         (_gl_register_dup): New function.
43295         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
43296         (_gl_register_fd): Close fd on allocation failure.
43297         * lib/fcntl.in.h (_gl_register_fd): Update signature.
43298         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
43299         prototype.
43300         (rpl_dup2_fchdir): Delete prototype.
43301         * lib/open.c (open): Update caller.
43302         * lib/dup2.c (dup2): Track fchdir metadata.
43303         * lib/dup3.c (dup3): Likewise.
43304         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
43305         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
43306
43307 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43308
43309         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
43310         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
43311         don't pass arguments to AC_OUTPUT.
43312
43313 2009-09-02  Bruno Haible  <bruno@clisp.org>
43314
43315         * modules/mkdtemp (License): Relicense under LGPLv2+.
43316         Reported by Paolo Bonzini.
43317
43318 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43319
43320         Replace uses of obsolete autoconf macros in Jim's modules.
43321         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
43322         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
43323         can evoke a warning from autoconf when run with -Wobsolete
43324         enabled.  They were declared obsolete for good reasons (see
43325         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
43326         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
43327         should not continue using the deprecated macros.
43328         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
43329         obsolete Autoconf macros with modern counterparts.
43330         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
43331         * m4/dos.m4 (gl_AC_DOS): Likewise.
43332         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
43333         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
43334         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
43335         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
43336         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
43337         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
43338         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
43339         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
43340         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
43341         Likewise.
43342         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
43343         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
43344         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
43345         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
43346         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
43347         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
43348
43349 2009-09-01  Eric Blake  <ebb9@byu.net>
43350
43351         fchdir: fix off-by-one bug in previous patch
43352         * lib/fchdir.c (rpl_fstat): Use correct bounds.
43353         (_gl_unregister_fd): Delete useless if.
43354
43355 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
43356
43357         maint.mk: sort the list of syntax-check rules
43358         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
43359         easier to get a sense of progress when the rules are run sequentially
43360         and take a long time.
43361
43362 2009-09-01  Simon Josefsson  <simon@josefsson.org>
43363
43364         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
43365         * modules/netinet_in: Likewise.
43366         * modules/sys_file: Likewise.
43367         * modules/sys_ioctl: Likewise.
43368         * modules/sys_select: Likewise.
43369         * modules/sys_socket: Likewise.
43370         * modules/sys_stat: Likewise.
43371         * modules/sys_time: Likewise.
43372         * modules/sys_times: Likewise.
43373         * modules/sys_utsname: Likewise.
43374         * modules/sys_wait: Likewise.
43375
43376 2009-09-01  Jim Meyering  <meyering@redhat.com>
43377
43378         fts: help ensure that return values are not ignored
43379         * lib/fts_.h (__GNUC_PREREQ): Define.
43380         (__attribute_warn_unused_result__): Define.
43381         (fts_children, fts_close, fts_open, fts_read): Declare with
43382         __attribute_warn_unused_result__.
43383
43384         fts: fts_close now fails also when closing a dir file descriptor fails
43385         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
43386         and propagate to caller, along with errno.
43387
43388         announce-gen: correct formatting in --help output
43389         * build-aux/announce-gen (usage): Move the one-line description in
43390         --help output "up", to where it belongs, just after Usage:.
43391
43392 2009-08-31  Eric Blake  <ebb9@byu.net>
43393
43394         fchdir: port to mingw
43395         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
43396         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
43397         opened, then use a substitute.
43398         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
43399         replacement.
43400         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
43401         (_gl_register_fd): No need to check stat if open already filters
43402         all directories.
43403         (fchdir): Fix error condition to match POSIX.
43404         * modules/fchdir (Depends-on): Add sys_stat.
43405         * doc/posix-functions/open.texi (open): Document the limitation.
43406         * modules/fchdir-tests: New file.
43407         * tests/test-fchdir.c: Likewise.
43408
43409         canonicalize: allow cross-testing from cygwin to mingw
43410         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
43411         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
43412         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
43413         Likewise.
43414         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
43415         target does not support symlinks.
43416         * tests/test-canonicalize-lgpl.sh: Likewise.
43417
43418         chown: avoid compilation warning on mingw
43419         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
43420         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
43421         mingw.
43422         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
43423         * modules/chown (Depends-on): Add errno.
43424
43425 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
43426
43427         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
43428         command.
43429
43430 2009-08-31  Jim Meyering  <meyering@redhat.com>
43431
43432         canonicalize: remove useless initialization
43433         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
43434         initialization of local, "end".
43435
43436 2009-08-30  Bruno Haible  <bruno@clisp.org>
43437
43438         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
43439         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
43440         ENOSYS.
43441
43442 2009-08-30  Bruno Haible  <bruno@clisp.org>
43443
43444         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
43445         /usr/xpg4/bin/tr when it exists.
43446         * tests/test-pipe-filter-gi1.sh: Likewise.
43447
43448 2009-08-30  Bruno Haible  <bruno@clisp.org>
43449
43450         Work around deficient /usr/bin/id program on Solaris.
43451         * tests/test-file-has-acl.sh (ID): New variable.
43452         * tests/test-set-mode-acl.sh (ID): Likewise.
43453         * tests/test-copy-acl.sh (ID): Likewise.
43454         * tests/test-copy-file.sh (ID): Likewise.
43455
43456 2009-08-30  Bruno Haible  <bruno@clisp.org>
43457
43458         New module 'xstriconveh'.
43459         * lib/xstriconveh.h: New file.
43460         * lib/xstriconveh.c: New file.
43461         * modules/xstriconveh: New file.
43462
43463 2009-08-30  Bruno Haible  <bruno@clisp.org>
43464
43465         Make it easier to use mem_cd_iconveh.
43466         * lib/striconveh.h (iconveh_t): New type.
43467         (iconveh_open, iconveh_close): New declarations.
43468         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
43469         with a single 'const iconveh_t *' argument.
43470         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
43471         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
43472         with a single 'const iconveh_t *' argument.
43473         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
43474         * tests/test-striconveh.c (main): Update.
43475         * NEWS: Mention the change.
43476
43477 2009-08-30  Bruno Haible  <bruno@clisp.org>
43478
43479         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
43480         problem.
43481
43482 2009-08-30  Bruno Haible  <bruno@clisp.org>
43483
43484         Work around iconv_open problem on Solaris.
43485         * lib/iconv_open-solaris.gperf: New file.
43486         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
43487         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
43488         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
43489         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
43490         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
43491         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
43492
43493 2009-08-29  Jim Meyering  <meyering@redhat.com>
43494
43495         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
43496         * top/maint.mk (cvs-check): Remove target; it was just an alias
43497         to the better-named vc-diff-check.
43498         (maintainer-distcheck): Remove rule.  It was used only from
43499         the (alpha/beta/major) target, and all of its commands but one
43500         were coreutils-specific.
43501         (vc-dist): Remove rule.
43502         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
43503         Run vc-diff-check, not vc-dist.
43504         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
43505
43506 2009-08-27  Bruno Haible  <bruno@clisp.org>
43507
43508         * tests/test-bitrotate.c (main): Remove test that uses a shift count
43509         of 0.
43510
43511 2009-08-27  Bruno Haible  <bruno@clisp.org>
43512
43513         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
43514         compilers.
43515         * doc/func.texi: Document the SunPRO C bug.
43516
43517 2009-08-27  Bruno Haible  <bruno@clisp.org>
43518
43519         Fix link error on Solaris.
43520         * tests/test-parse-duration.c (xstrdup): Remove function.
43521
43522 2009-08-26  Pádraig Brady  <P@draigbrady.com>
43523
43524         ignore-value: handle pointer types, too
43525         * lib/ignore-value.h (__attribute__): Remove definition.
43526         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
43527         of a more concise and more-often effective "(void) i" statement.
43528         (ignore_ptr): New function to suppress warnings from functions that
43529         return pointers, and to make it explicit that one function doesn't
43530         handle all cases.
43531
43532 2009-08-25  Bruno Haible  <bruno@clisp.org>
43533
43534         dup2: work around a Linux bug.
43535         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
43536         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
43537         * doc/posix-functions/dup2.texi: Mention the Linux bug.
43538         Reported by Simon Josefsson.
43539
43540 2009-08-25  Jim Meyering  <meyering@redhat.com>
43541
43542         libguestfs uses gnulib
43543         * users.txt: Add libguestfs.
43544
43545 2009-08-24  Eric Blake  <ebb9@byu.net>
43546
43547         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
43548         * lib/pipe2.c (includes): Add binary-io.h.
43549         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
43550
43551 2009-08-24  Bruno Haible  <bruno@clisp.org>
43552
43553         Tolerate declared but missing accept4 syscall.
43554         * lib/accept4.c (accept4): Invoke original accept4 function first, if
43555         available.
43556         * lib/sys_socket.in.h (accept4): If the function is already present,
43557         override it.
43558         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
43559         * modules/accept4 (Makefile.am): Compile accept4.c always.
43560         Reported by Paolo Bonzini and Eric Blake.
43561
43562 2009-08-23  Bruno Haible  <bruno@clisp.org>
43563
43564         New module 'accept4'.
43565         * lib/sys_socket.in.h (accept4): New declaration.
43566         * lib/accept4.c: New file.
43567         * m4/accept4.m4: New file.
43568         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
43569         GNULIB_ACCEPT4, HAVE_ACCEPT4.
43570         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
43571         HAVE_ACCEPT4.
43572         * modules/accept4: New file.
43573         * doc/glibc-functions/accept4.texi: Mention the new module.
43574
43575 2009-08-24  Jim Meyering  <meyering@redhat.com>
43576
43577         progname: also set global program_invocation_name, when possible
43578         Before this change, a libtool-enabled program that calls glibc's
43579         error function would report the program name as
43580         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
43581         * modules/progname (configure.ac): Check for a declaration of
43582         program_invocation_name.
43583         * lib/progname.c:  Include <errno.h>.
43584         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
43585         Set program_invocation_name.
43586
43587 2009-08-23  Bruno Haible  <bruno@clisp.org>
43588
43589         * lib/dup3.c: Include <string.h>.
43590
43591 2009-08-23  Bruno Haible  <bruno@clisp.org>
43592
43593         * lib/dup3.c (dup3): Test only once whether the system actually exists.
43594         * lib/pipe2.c (pipe2): Likewise.
43595         Suggested by Eric Blake.
43596
43597 2009-08-23  Bruno Haible  <bruno@clisp.org>
43598
43599         Tolerate declared but missing dup3 syscall.
43600         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
43601         * lib/unistd.in.h (dup3): If the function is already present,
43602         override it.
43603         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
43604         * modules/dup3 (Makefile.am): Compile dup3.c always.
43605         Reported by Paolo Bonzini.
43606
43607 2009-08-23  Bruno Haible  <bruno@clisp.org>
43608
43609         Tolerate declared but missing pipe2 syscall.
43610         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
43611         available.
43612         * lib/unistd.in.h (pipe2): If the function is already present,
43613         override it.
43614         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
43615         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
43616         Reported by Paolo Bonzini.
43617
43618 2009-08-23  Bruno Haible  <bruno@clisp.org>
43619
43620         * lib/pipe2.c (pipe2): Move #ifs inside function.
43621
43622 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43623
43624         quotearg: document limitations of quote_these_too
43625         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
43626         those limitations are created.
43627         * lib/quotearg.h (set_char_quoting): Document that digits and
43628         letters that are special after backslash are not permitted.
43629         (quotearg_char): Cross-reference set_char_quoting documentation.
43630
43631 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
43632
43633         quotearg: implement custom_quoting_style
43634         * lib/quotearg.c: (struct quoting_options): Add left_quote and
43635         right_quote fields.
43636         (set_custom_quoting): New public function.
43637         (quotearg_buffer_restyled): Add left_quote and right_quote
43638         arguments, handle them very much like locale quoting, and update
43639         all uses.
43640         (quotearg_n_custom): New public function.
43641         (quotearg_n_custom_mem): New public function.
43642         (quotearg_custom): New public function.
43643         (quotearg_custom_mem): New public function.
43644         * lib/quotearg.h: Prototype and document new public functions.
43645         (enum quoting_style): For escape_quoting_style and
43646         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
43647         ignored even though they're otherwise like c_quoting_style.
43648         Add custom_quoting_style member and document with comparison to
43649         clocale_quoting_style.
43650         * tests/test-quotearg.c (custom_quotes): New array.
43651         (custom_results): New array.
43652         (main): Extend to test custom quoting.
43653
43654 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43655
43656         quotearg: fix right quote escaping when it's in quote_these_too
43657         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
43658         quote, be sure to prepend only one backslash.
43659         * tests/test-quotearg.c (use_quote_double_quotes): New function.
43660         (main): Test it.
43661
43662 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43663
43664         quotearg-tests: test escaping of embedded locale quotes
43665         * tests/test-quotearg.c (struct result_strings): Add member for
43666         new input.
43667         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
43668         (inputs): Add new input.
43669         (results_g): Add expected results.
43670         (flag_results): Likewise.
43671         (locale_results): Likewise.
43672         (compare_strings): Check those.
43673
43674 2009-08-23  Bruno Haible  <bruno@clisp.org>
43675
43676         Tests for module 'dup3'.
43677         * modules/dup3-tests: New file.
43678         * tests/test-dup3.c: New file.
43679
43680         New module 'dup3'.
43681         * lib/unistd.in.h (dup3): New declaration.
43682         * lib/dup3.c: New file.
43683         * m4/dup3.m4: New file.
43684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
43685         HAVE_DUP3.
43686         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
43687         * modules/dup3: New file.
43688         * doc/glibc-functions/dup3.texi: Mention the new module.
43689
43690 2009-08-23  Bruno Haible  <bruno@clisp.org>
43691
43692         Tweak the dup2 test.
43693         * tests/test-dup2.c (main): Create the test file empty. Verify that an
43694         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
43695         the test file is still empty. Fix argument order of lseek.
43696
43697 2009-08-23  Bruno Haible  <bruno@clisp.org>
43698
43699         Avoid test link errors when the modules getopt-gnu, gettext are used.
43700         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
43701         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43702
43703 2009-08-23  Bruno Haible  <bruno@clisp.org>
43704
43705         Fix getdtablesize() on mingw.
43706         * lib/getdtablesize.c (getdtablesize): Implement differently.
43707         * lib/unistd.in.h (getdtablesize): Improve comment.
43708
43709 2009-08-23  Bruno Haible  <bruno@clisp.org>
43710
43711         New module 'mkostemp'.
43712         Based on Ulrich Drepper's 2007-08-10 change in glibc.
43713         * lib/stdlib.in.h (mksotemp): New declaration.
43714         * lib/mkostemp.c: New file, from glibc with modifications.
43715         * lib/tempname.h (GT_FILE): Remove outdated comment.
43716         (gen_tempname): Add flags argument.
43717         * lib/tempname.c (__GT_BIGFILE): Remove macro.
43718         (__GT_FILE): Map to 1.
43719         (small_open, large_open): Remove macros.
43720         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
43721         * lib/mkstemp.c (mkstemp): Update.
43722         * lib/mkdtemp.c (mkdtemp): Likewise.
43723         * m4/mkostemp.m4: New file.
43724         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
43725         HAVE_MKOSTEMP.
43726         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
43727         HAVE_MKOSTEMP.
43728         * modules/mkostemp: New file, based on modules/mkstemp.
43729         * doc/glibc-functions/mkostemp.texi: Mention the new module.
43730         * NEWS: Mention the change.
43731
43732 2009-08-23  Bruno Haible  <bruno@clisp.org>
43733
43734         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
43735         Reported by Eric Blake.
43736
43737 2009-08-23  Bruno Haible  <bruno@clisp.org>
43738
43739         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
43740         Reported by Eric Blake.
43741
43742 2009-08-23  Bruno Haible  <bruno@clisp.org>
43743
43744         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
43745         * modules/pipe2 (Depends-on): Likewise.
43746
43747 2009-08-23  Eric Blake  <ebb9@byu.net>
43748
43749         fcntl-h: add O_TTY_INIT support
43750         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
43751         * tests/test-fcntl-h.c (o): Test it.
43752         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43753
43754         fcntl-h: rename from fcntl, in preparation for fcntl(2)
43755         * modules/fcntl: Move <fcntl.h> header replacement...
43756         * modules/fcntl-h: ...to new name, so as not to collide with
43757         like-named function.
43758         * tests/test-fcntl.c: Rename...
43759         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
43760         * modules/fcntl-tests: Rename...
43761         * modules/fcntl-h-tests: ...to this.  Update test file name.
43762         * modules/chdir-long (Depends-on): Update clients.
43763         * modules/chdir-safer (Depends-on): Likewise.
43764         * modules/fcntl-safer (Depends-on): Likewise.
43765         * modules/fts (Depends-on): Likewise.
43766         * modules/mkancesdirs (Depends-on): Likewise.
43767         * modules/mkdir-p (Depends-on): Likewise.
43768         * modules/open (Depends-on): Likewise.
43769         * modules/savewd (Depends-on): Likewise.
43770         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
43771         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43772
43773 2009-08-22  Bruno Haible  <bruno@clisp.org>
43774
43775         * modules/binary-io (License): Relicense under LGPL.
43776         * modules/pipe2 (License): Likewise.
43777
43778 2009-08-22  Bruno Haible  <bruno@clisp.org>
43779
43780         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
43781         return value.
43782         * lib/pipe-filter-gi.c (filter_init): Likewise.
43783         Reported by Eric Blake.
43784
43785 2009-08-22  Bruno Haible  <bruno@clisp.org>
43786
43787         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
43788         * modules/pipe (Depends-on): Add pipe2.
43789
43790 2009-08-22  Bruno Haible  <bruno@clisp.org>
43791
43792         Tests for module 'pipe2'.
43793         * modules/pipe2-tests: New file.
43794         * tests/test-pipe2.c: New file.
43795
43796         New module 'pipe2'.
43797         * lib/unistd.in.h (pipe2): New declaration.
43798         * lib/pipe2.c: New file.
43799         * m4/pipe2.m4: New file.
43800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
43801         HAVE_PIPE2.
43802         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
43803         * modules/pipe2: New file.
43804         * doc/glibc-functions/pipe2.texi: Mention the new module.
43805
43806 2009-08-22  Bruno Haible  <bruno@clisp.org>
43807
43808         Reference some new glibc functions.
43809         * doc/glibc-functions/accept4.texi: New file.
43810         * doc/glibc-functions/dup3.texi: New file.
43811         * doc/glibc-functions/mkostemp.texi: New file.
43812         * doc/glibc-functions/pipe2.texi: New file.
43813         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
43814         (Glibc sys/socket.h): Refer to accept4.
43815         (Glibc unistd.h): Refer to dup3, pipe2.
43816         Reported by Eric Blake.
43817
43818 2009-08-22  Jim Meyering  <meyering@redhat.com>
43819             Bruno Haible  <bruno@clisp.org>
43820
43821         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
43822         This makes it so packages using automake-1.11's silent-rules option
43823         can print e.g., a single "GEN    configmake.h" line, rather than
43824         the 30+ statements that perform the job.  If you want to see the
43825         actual commands, you can still run "make V=1".
43826         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
43827         so that make output is abbreviated when those variables are defined
43828         appropriately.
43829         * modules/argz: Likewise.
43830         * modules/arpa_inet: Likewise.
43831         * modules/byteswap: Likewise.
43832         * modules/configmake: Likewise.
43833         * modules/dirent: Likewise.
43834         * modules/errno: Likewise.
43835         * modules/fcntl: Likewise.
43836         * modules/float: Likewise.
43837         * modules/fnmatch: Likewise.
43838         * modules/getopt-posix: Likewise.
43839         * modules/glob: Likewise.
43840         * modules/iconv_open: Likewise.
43841         * modules/inttypes: Likewise.
43842         * modules/localcharset: Likewise.
43843         * modules/locale: Likewise.
43844         * modules/math: Likewise.
43845         * modules/netdb: Likewise.
43846         * modules/netinet_in: Likewise.
43847         * modules/poll: Likewise.
43848         * modules/posix_spawnp-tests: Likewise.
43849         * modules/sched: Likewise.
43850         * modules/search: Likewise.
43851         * modules/selinux-h: Likewise.
43852         * modules/signal: Likewise.
43853         * modules/spawn: Likewise.
43854         * modules/stdarg: Likewise.
43855         * modules/stdbool: Likewise.
43856         * modules/stddef: Likewise.
43857         * modules/stdint: Likewise.
43858         * modules/stdio: Likewise.
43859         * modules/stdlib: Likewise.
43860         * modules/string: Likewise.
43861         * modules/strings: Likewise.
43862         * modules/sys_file: Likewise.
43863         * modules/sys_ioctl: Likewise.
43864         * modules/sys_select: Likewise.
43865         * modules/sys_socket: Likewise.
43866         * modules/sys_stat: Likewise.
43867         * modules/sys_time: Likewise.
43868         * modules/sys_times: Likewise.
43869         * modules/sys_utsname: Likewise.
43870         * modules/sys_wait: Likewise.
43871         * modules/sysexits: Likewise.
43872         * modules/time: Likewise.
43873         * modules/unistd: Likewise.
43874         * modules/wchar: Likewise.
43875         * modules/wctype: Likewise.
43876
43877 2009-08-22  Jim Meyering  <meyering@redhat.com>
43878
43879         announce-gen: detect write failure
43880         * build-aux/announce-gen: Add Coda at end.
43881         Remove equivalent-but-more-verbose block at top.
43882
43883 2009-08-19  Akim Demaille  <demaille@gostai.com>
43884
43885         bootstrap: --help to stdout.
43886         * bootstrap (usage): Don't send --help to stderr.
43887         Use a here doc instead of a long string.
43888
43889 2009-08-21  Eric Blake  <ebb9@byu.net>
43890
43891         test-popen-safer: split from test-popen
43892         * tests/test-popen.c (main): Move...
43893         * tests/test-popen.h: ...into new file.
43894         * tests/test-popen-safer2.c: New file.
43895         * modules/popen-tests (Files): Add test-popen.h.
43896         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
43897         Suggested by Bruno Haible.
43898
43899         test-fcntl-safer: split from test-open
43900         * tests/test-open.c (main): Move...
43901         * tests/test-open.h: ...into new file.
43902         * tests/test-fcntl-safer.c: New file.
43903         * modules/open-tests (Files): Add test-open.h.
43904         * modules/fcntl-safer-tests: New file.
43905         Suggested by Bruno Haible.
43906
43907         test-fopen-safer: split from test-fopen
43908         * tests/test-fopen.c (main): Move...
43909         * tests/test-fopen.h: ...into new file.
43910         * tests/test-fopen-safer.c: New file.
43911         * modules/fopen-tests (Files): Add test-fopen.h.
43912         * modules/fopen-safer-tests: New file.
43913         Suggested by Bruno Haible.
43914
43915 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43916
43917         popen-safer: test O_CLOEXEC at run-time.
43918         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
43919
43920 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43921
43922         fcntl: move more flags to the header
43923         * lib/cloexec.c: Do not define FD_CLOEXEC here.
43924         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
43925         * lib/fcntl.in.h: Do both things here.
43926
43927 2009-08-21  Jim Meyering  <meyering@redhat.com>
43928
43929         consistently remove $@-t before redirecting to it
43930         * modules/argz: Remove $@-t and $@ before redirecting to the former.
43931         * modules/alloca-opt: Likewise.
43932         * modules/byteswap: Likewise.
43933         * modules/fnmatch: Likewise.
43934         * modules/getopt-posix: Likewise.
43935         * modules/glob: Likewise.
43936         * modules/poll: Likewise.
43937         * modules/posix_spawnp-tests: Likewise.
43938         * modules/sys_socket: Likewise.
43939         * modules/sysexits: Likewise.
43940
43941 2009-08-21  Eric Blake  <ebb9@byu.net>
43942
43943         popen: simplify access to original popen
43944         * lib/popen.c (rpl_popen): No need to worry about popen being a
43945         macro.
43946         Reported by Bruno Haible.
43947
43948 2009-08-20  Eric Blake  <ebb9@byu.net>
43949
43950         build: avoid some compiler warnings
43951         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
43952         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
43953         type.
43954         (new_exclude_segment, excluded_file_pattern_p)
43955         (excluded_file_name_p): Reduce scope.
43956         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
43957         old-style declaration.
43958
43959 2009-08-20  Simon Josefsson  <simon@josefsson.org>
43960
43961         * tests/test-exclude1.sh: Handle Windows EOL.
43962         * tests/test-exclude2.sh: Likewise.
43963         * tests/test-exclude3.sh: Likewise.
43964         * tests/test-exclude4.sh: Likewise.
43965         * tests/test-exclude5.sh: Likewise.
43966         * tests/test-exclude6.sh: Likewise.
43967         * tests/test-exclude7.sh: Likewise.
43968
43969 2009-08-19  Akim Demaille  <demaille@gostai.com>
43970
43971         bootstrap: find sha1sum when named gsha1sum.
43972         * bootstrap (find_tool): New.
43973         ($SHA1SUM): New.
43974         Use it.
43975
43976 2009-08-20  Jim Meyering  <meyering@redhat.com>
43977
43978         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
43979         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
43980         expression that converts "." in a file name to "\." in the resulting
43981         regexp.  Start with a dummy statement, so that prior shell variable
43982         definitions are expanded portably.  Reported by Simon Josefsson.
43983
43984 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
43985
43986         Fix polling for writeability of a screen buffer.
43987         * lib/poll.c: Distinguish input and screen buffers for the
43988         Win32 implementation.
43989         * lib/select.c: Likewise.
43990
43991 2009-08-19  Eric Blake  <ebb9@byu.net>
43992
43993         popen-safer: prevent popen from clobbering std descriptors
43994         * modules/popen-safer: New file.
43995         * lib/popen-safer.c: Likewise.
43996         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
43997         * lib/stdio--.h (popen): Provide override.
43998         * lib/stdio-safer.h (popen_safer): Provide declaration.
43999         * tests/test-popen.c (includes): Partially test this.
44000         * modules/popen-safer-tests: New file, for more tests.
44001         * tests/test-popen-safer.c: Likewise.
44002         * MODULES.html.sh (file stream based Input/Output): Mention it.
44003
44004         tests: test some of the *-safer modules
44005         * modules/fopen-safer (Depends-on): Add fopen.
44006         * modules/fcntl-safer (Depends-on): Add fcntl.
44007         * modules/stdlib-safer (Depends-on): Add stdlib.
44008         (configure.ac): Set indicator.
44009         * modules/unistd-safer (configure.ac): Likewise.
44010         * modules/tmpfile-safer (configure.ac): Likewise.
44011         (Depends-on): Add tmpfile.
44012         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
44013         active.
44014         * tests/test-fopen.c (includes): Test safer versions when they are
44015         in use.
44016         * tests/test-open.c (includes): Likewise.
44017
44018         popen: fix cygwin 1.5 bug when stdin closed
44019         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
44020         * modules/popen: New file.
44021         * modules/popen-tests: Likewise.
44022         * tests/test-popen.c: Likewise.
44023         * m4/popen.m4: Likewise.
44024         * lib/popen.c: Likewise.
44025         * lib/stdio.in.h (popen): New declaration.
44026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
44027         * modules/stdio (Makefile.am): Likewise.
44028         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
44029
44030 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
44031
44032         maint.mk: give full control over update-copyright exclusions
44033         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
44034         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
44035         (update-copyright): Don't force inclusion of top-level
44036         ChangeLog.  Don't force exclusion of all COPYING files, but make
44037         them the default exclusion instead.
44038
44039 2009-08-16  Bruno Haible  <bruno@clisp.org>
44040
44041         Fix test failures on Solaris 10.
44042         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
44043         tests when Solaris iconv() is used.
44044         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
44045         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
44046         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
44047         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
44048         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
44049
44050 2009-08-16  Bruno Haible  <bruno@clisp.org>
44051
44052         Fix test failures on Solaris 10.
44053         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
44054         'tr' program and pass it as first argument.
44055         * tests/test-pipe-filter-gi1.sh: Likewise.
44056         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
44057         program as first argument.
44058         * tests/test-pipe-filter-gi1.c (main): Likewise.
44059
44060 2009-08-16  Eric Blake  <ebb9@byu.net>
44061
44062         fpurge: fix previous commits
44063         * modules/fpurge (Makefile.am): Make replacement conditional,
44064         partially reverting 2007-04-29 change; missed in previous
44065         attempt.
44066         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
44067         is missing.
44068
44069 2009-08-16  Bruno Haible  <bruno@clisp.org>
44070
44071         Clarify fpurge's effect on the file position.
44072         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
44073         * tests/test-fpurge.c (main): Make a second pass for checking the file
44074         position.
44075
44076 2009-08-16  Bruno Haible  <bruno@clisp.org>
44077
44078         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
44079         declaration of fpurge is missing.
44080         * tests/test-fpurge.c (main): Check that the file has not more contents
44081         than expected. Close the file before removing it.
44082
44083 2009-08-15  Eric Blake  <ebb9@byu.net>
44084
44085         fpurge: don't wrap working cygwin implementation
44086         * lib/fpurge.c (fpurge): Fix comment typo.
44087         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
44088         1.7 to avoid replacement.
44089         * tests/test-fpurge.c (main): Enhance test.
44090
44091 2009-08-15  Eric Blake  <ebb9@byu.net>
44092         and Jim Meyering  <meyering@redhat.com>
44093
44094         test-update-copyright: skip if perl is insufficient
44095         * tests/test-update-copyright.sh: Failure to run maintainer tool
44096         should not cause testsuite failure on cygwin 1.5.
44097
44098 2009-08-14  Eric Blake  <ebb9@byu.net>
44099
44100         doc: mention more functions added in cygwin 1.7.0
44101         * doc/posix-headers/limits.texi (limits.h): Update for recent
44102         cygwin additions.
44103         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
44104         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
44105         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
44106         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
44107         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
44108
44109 2009-08-14  Eric Blake  <ebb9@byu.net>
44110
44111         maint.mk: simplify update-copyright rule
44112         * top/maint.mk (update-copyright-local): Delete, and document how
44113         to do it in cfg.mk instead.
44114         (update-copyright-exclude-regexp): Delete, and document how to do
44115         it in .x-update-copyright instead.
44116         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
44117         exclude ChangeLog.
44118
44119 2009-08-14  Bruno Haible  <bruno@clisp.org>
44120
44121         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
44122
44123 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44124
44125         maint.mk: support update-copyright-env
44126         * top/maint.mk (update-copyright-env): Define place-holder.
44127         (update-copyright): Expand $(update-copyright-env) before
44128         invoking update-copyright.
44129
44130 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44131
44132         update-copyright: implement forced reformatting
44133         * build-aux/update-copyright: Implement and document
44134         UPDATE_COPYRIGHT_FORCE.
44135         * tests/test-update-copyright.sh: Test it.
44136
44137 2009-08-14  Eric Blake  <ebb9@byu.net>
44138         and Bruno Haible  <bruno@clisp.org>
44139
44140         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
44141         * tests/test-locale.c: Revert previous patch related to NULL.
44142         * tests/test-stdio.c: Likewise.
44143         * tests/test-stdlib.c: Likewise.
44144         * tests/test-string.c: Likewise.
44145         * tests/test-unistd.c: Likewise.
44146         * modules/time-tests (Depends-on): Add verify.
44147         * modules/wchar-tests (Depends-on): Likewise.
44148         * tests/test-time.c: Test for NULL compliance.
44149         * tests/test-wchar.c: Likewise.
44150         * modules/locale (Depends-on): Add stddef.
44151         * modules/stdio (Depends-on): Likewise.
44152         * modules/stdlib (Depends-on): Likewise.
44153         * modules/string (Depends-on): Likewise.
44154         * modules/time (Depends-on): Likewise.
44155         * modules/unistd (Depends-on): Likewise.
44156         * modules/wchar (Depends-on): Likewise.
44157         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
44158         * lib/stdlib.in.h (includes): Likewise.
44159         * lib/string.in.h (includes): Likewise.
44160         * lib/time.in.h (includes): Likewise.
44161         * lib/unistd.in.h (includes): Likewise.
44162         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
44163         replaced.
44164         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
44165         * m4/stddef_h.m4: New file.
44166         * modules/stddef: Likewise.
44167         * lib/stddef.in.h: Likewise.
44168         * modules/stddef-tests: Likewise.
44169         * tests/test-stddef.c: Likewise.
44170         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
44171         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
44172         * doc/posix-headers/locale.texi (locale.h): Likewise.
44173         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
44174         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
44175         * doc/posix-headers/string.texi (string.h): Likewise.
44176         * doc/posix-headers/time.texi (time.h): Likewise.
44177         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
44178         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
44179
44180 2009-08-14  Eric Blake  <ebb9@byu.net>
44181
44182         doc: improve git diff of texinfo files
44183         * .gitattributes: Add rule for *.texi files, with hint on how to
44184         use it.
44185         Copied from m4, and based on a report by Bruno Haible.
44186
44187 2009-08-14  Bruno Haible  <bruno@clisp.org>
44188
44189         Disable multithread support by default on Cygwin 1.5.x for real.
44190         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
44191
44192 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44193
44194         update-copyright: much ado about intervals
44195         * build-aux/update-copyright: Implement and document
44196         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
44197         of copyright year intervals.
44198         Also, document UPDATE_COPYRIGHT_YEAR.
44199         * tests/test-update-copyright.sh: Test it.
44200
44201         update-copyright: convert 2-digit to 4-digit years
44202         * build-aux/update-copyright: Implement and document.
44203         * tests/test-update-copyright.sh: Update.
44204
44205 2009-08-14  Jim Meyering  <meyering@redhat.com>
44206
44207         test-exclude: avoid coreutils "make check" failure
44208         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
44209         just as in test-argmatch.c.
44210
44211 2009-08-13  Eric Blake  <ebb9@byu.net>
44212
44213         test-dup2: fix bad assumption
44214         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
44215         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
44216
44217         test-version-etc: fix CRLF portability issue
44218         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
44219         recognize \r.
44220         * tests/test-argp-version-etc-1.sh: Likewise.
44221
44222         getopt: update client modules
44223         * modules/argp (Depends-on): Use getopt-gnu.
44224         * modules/git-merge-changelog (Depends-on): Likewise.
44225         * modules/long-options (Depends-on): Likewise.
44226         * modules/xstrtol (Depends-on): Likewise.
44227
44228 2009-08-13  Simon Josefsson  <simon@josefsson.org>
44229
44230         * tests/test-version-etc.sh: Don't fail on different
44231         project/version.  Don't fail on CRLF differences.  Rewrite to use
44232         multiple -e instead of multiple sed forks, suggested by Eric Blake
44233         <ebb9@byu.net>.
44234         * tests/test-argp-version-etc-1.sh: Likewise.
44235
44236 2009-08-13  Simon Josefsson  <simon@josefsson.org>
44237
44238         * tests/test-version-etc.sh: Don't fail on different
44239         project/version.
44240
44241 2009-08-12  Bruno Haible  <bruno@clisp.org>
44242
44243         Tests for modules 'getopt-posix', 'getopt-gnu'.
44244         * modules/getopt-posix-tests: New file.
44245         * tests/test-getopt.c: New file.
44246         * tests/test-getopt.h: New file.
44247         * tests/test-getopt_long.h: New file.
44248
44249         New modules 'getopt-posix', 'getopt-gnu'.
44250         * modules/getopt-gnu: New file, renamed from modules/getopt.
44251         * modules/getopt-posix: New file.
44252         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
44253         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
44254         (gl_GETOPT): Remove macro.
44255         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
44256         Disable the test against BSD systems that declare optreset. Test
44257         against mingw bug. Test against lack of support of optional arguments
44258         on many platforms.
44259         * doc/glibc-headers/getopt.texi: Update module name and list of
44260         relevant platforms.
44261         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
44262         'getopt-gnu' and more portability problems.
44263         * NEWS: Mention the changes.
44264
44265 2009-08-12  Bruno Haible  <bruno@clisp.org>
44266
44267         Ensure that optarg etc. get declared by <unistd.h>.
44268         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
44269         AC_USE_SYSTEM_EXTENSIONS.
44270         * modules/getopt (Depends-on): Add 'extensions'.
44271
44272 2009-08-12  Bruno Haible  <bruno@clisp.org>
44273
44274         Avoid test link errors.
44275         * modules/pipe-filter-ii-tests (Makefile.am): Define
44276         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
44277         * modules/pipe-filter-gi-tests (Makefile.am): Define
44278         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
44279         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44280
44281 2009-08-12  Bruno Haible  <bruno@clisp.org>
44282
44283         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
44284         gl_GETOPT_SUBSTITUTE before.
44285         (gl_GETOPT): Use it.
44286         * m4/argp.m4 (gl_ARGP): Update.
44287         Reported by Sergey Poznyakoff.
44288
44289         * m4/getopt.m4: Reorder macros.
44290         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
44291         (gl_GETOPT_SUBSTITUTE): Remove macro.
44292
44293 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44294
44295         Minor improvement in gitlog-to-changelog
44296
44297         * build-aux/gitlog-to-changelog: New option `--format' makes
44298         output format string configurable.
44299
44300 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44301
44302         Optimize exclude: use hash tables for non-wildcard patterns.
44303
44304         * lib/exclude.c: Include hash.h and mbuiter.h
44305         (struct exclude_pattern, exclude_segment): New data types.
44306         (struct exclude): Rewrite.
44307         (fnmatch_pattern_has_wildcards): New function.
44308         (new_exclude_segment, free_exclude_segment): New functions.
44309         (excluded_file_pattern_p, excluded_file_name_p): New functions.
44310         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
44311         * lib/exclude.h (is_fnmatch_pattern): New prototype.
44312         * modules/exclude: Depend on hash and mbuiter.
44313
44314         * modules/exclude-tests: New file.
44315         * tests/test-exclude.c: New file.
44316         * tests/test-exclude1.sh: New file.
44317         * tests/test-exclude2.sh: New file.
44318         * tests/test-exclude3.sh: New file.
44319         * tests/test-exclude4.sh: New file.
44320         * tests/test-exclude5.sh: New file.
44321         * tests/test-exclude6.sh: New file.
44322         * tests/test-exclude7.sh: New file.
44323
44324 2009-08-12  Bruno Haible  <bruno@clisp.org>
44325
44326         Ensure that getopt() gets declared by <unistd.h>.
44327         * lib/unistd.in.h: Conditionally include getopt.h.
44328         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
44329         Set GNULIB_UNISTD_H_GETOPT.
44330         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44331         GNULIB_UNISTD_H_GETOPT.
44332         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
44333
44334 2009-08-12  Bruno Haible  <bruno@clisp.org>
44335
44336         Clarify logic.
44337         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
44338         gl_replace_getopt instead of GETOPT_H.
44339
44340 2009-08-12  Bruno Haible  <bruno@clisp.org>
44341
44342         * m4/getopt.m4: Add comments.
44343
44344 2009-08-12  Bruno Haible  <bruno@clisp.org>
44345
44346         Disable multithread support by default on Cygwin 1.5.x.
44347         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
44348         set gl_use_threads=no if not specified otherwise.
44349
44350 2009-08-11  Bruno Haible  <bruno@clisp.org>
44351
44352         Avoid compilation error on NetBSD 5.0.
44353         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
44354         * tests/test-stdio.c: Likewise.
44355         * tests/test-stdlib.c: Likewise.
44356         * tests/test-string.c: Likewise.
44357         * tests/test-unistd.c: Likewise.
44358         Reported by Greg Troxel <gdt@ir.bbn.com>
44359         at <https://savannah.gnu.org/support/?106973>.
44360
44361 2009-08-11  Bruno Haible  <bruno@clisp.org>
44362
44363         * modules/dup2-tests (Depends-on): Remove close.
44364
44365         Undo 2009-07-19 commit.
44366         * modules/acl-tests (Depends-on): Remove close.
44367         * modules/binary-io-tests (Depends-on): Likewise.
44368         * modules/closein-tests (Depends-on): Likewise.
44369         * modules/flock-tests (Depends-on): Likewise.
44370         * modules/fsync-tests (Depends-on): Likewise.
44371         * modules/lseek-tests (Depends-on): Likewise.
44372         * modules/pipe-tests (Depends-on): Likewise.
44373         * modules/posix_spawn-tests (Depends-on): Likewise.
44374         * modules/posix_spawnp-tests (Depends-on): Likewise.
44375         * modules/stat-time-tests (Depends-on): Likewise.
44376         * modules/yesno-tests (Depends-on): Likewise.
44377
44378 2009-08-10  Bruno Haible  <bruno@clisp.org>
44379
44380         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
44381
44382 2009-08-10  Bruno Haible  <bruno@clisp.org>
44383
44384         Fix a gcc warning.
44385         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
44386
44387 2009-08-10  Bruno Haible  <bruno@clisp.org>
44388
44389         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
44390         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
44391         not only the first time.
44392         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
44393         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
44394         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
44395         is 1, not only the the first time.
44396
44397 2009-08-10  Bruno Haible  <bruno@clisp.org>
44398
44399         Make it possible to use module 'gethostname' without module 'close'.
44400         * lib/unistd.in.h (close): Evoke a link error only if
44401         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
44402         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44403         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44404         * modules/unistd (Makefile.am): Substitute
44405         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44406         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
44407         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
44408         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
44409         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44410         * modules/sys_ioctl (Makefile.am): Substitute
44411         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44412         * modules/socket (configure.ac): On native Windows, set
44413         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
44414         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44415         Reported by Sam Steingold <sds@gnu.org>.
44416
44417 2009-08-10  Bruno Haible  <bruno@clisp.org>
44418
44419         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
44420         * modules/ioctl (configure.ac): Likewise.
44421
44422 2009-08-10  Bruno Haible  <bruno@clisp.org>
44423
44424         Avoid collision between gnulib wrapper and libintl wrapper.
44425         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
44426         already defined in intl/printf.c.
44427         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
44428         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
44429
44430 2009-08-09  Bruno Haible  <bruno@clisp.org>
44431
44432         Make <sys/select.h> really self-contained, also on Solaris 10.
44433         * lib/sys_select.in.h: Include <string.h>.
44434         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
44435         Solaris 10 problem.
44436         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
44437         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
44438         Reported by Jim Meyering.
44439
44440 2009-08-09  Bruno Haible  <bruno@clisp.org>
44441
44442         Avoid warnings from 'aclocal' that are due to a use of macro name
44443         AM_XGETTEXT_OPTION that is not defined in automake.
44444         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
44445         automake.
44446         * modules/error (configure.ac): Likewise.
44447         * modules/propername (configure.ac): Likewise.
44448         * modules/vasprintf (configure.ac): Likewise.
44449         * modules/verror (configure.ac): Likewise.
44450         * modules/xprintf (configure.ac): Likewise.
44451         * modules/xvasprintf (configure.ac): Likewise.
44452
44453 2009-08-08  Bruno Haible  <bruno@clisp.org>
44454
44455         Avoid compilation error in C++ mode.
44456         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
44457         Reported by Sam Steingold <sds@gnu.org>.
44458
44459 2009-08-08  Bruno Haible  <bruno@clisp.org>
44460
44461         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
44462         for the various Unix platforms.
44463         * doc/posix-headers/limits.texi: Update platforms list regarding
44464         HOST_NAME_MAX.
44465         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44466
44467 2009-08-07  Jim Meyering  <meyering@redhat.com>
44468
44469         selinux-at: fix typo in a comment
44470         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
44471         Spotted by Paolo Bonzini.
44472
44473         selinux-at: remove redundant m4 code, add documentation
44474         * modules/selinux-at (configure.ac): Remove redundant code.
44475         LIB_SELINUX is already set via the dependent module, selinux-h.
44476         (Include): Add quotes around selinux-at.h.
44477         * lib/selinux-at.h: Add documentation.
44478         Reported by Bruno Haible in
44479         http://marc.info/?l=gnulib-bug&m=124958988300749
44480
44481 2009-08-07  Bruno Haible  <bruno@clisp.org>
44482
44483         Avoid link error on MacOS X 10.3 and 10.4.
44484         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
44485         on non-ELF systems.
44486         * lib/argp-pv.c (argp_program_version): Likewise.
44487         Reported by Simon Josefsson.
44488
44489 2009-08-07  Simon Josefsson  <simon@josefsson.org>
44490
44491         * tests/test-version-etc.sh: Use $EXEEXT.
44492
44493 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
44494
44495         update-copyright: update documentation to point to maint.mk
44496         * build-aux/update-copyright: Here.
44497
44498 2009-08-06  Jim Meyering  <meyering@redhat.com>
44499
44500         maint.mk: support update-copyright-local
44501         * top/maint.mk (update-copyright-local): Define place-holder.
44502         (update-copyright): Depend on $(update-copyright-local).
44503
44504 2009-08-06  Jim Meyering  <meyering@redhat.com>
44505
44506         selinux-at: new module
44507         Initially written for coreutils, this module will soon be
44508         used by findutils, too.
44509         * MODULES.html.sh [Misc]: Add selinux-at.
44510         * lib/selinux-at.h: New file, from coreutils.
44511         * lib/selinux-at.c: Likewise.
44512         * modules/selinux-at: Likewise.
44513         (License): Change from LGPL to GPL, since it depends
44514         on the GPL'd openat module.
44515
44516         doc: update README
44517         * README: Remove references to cogito.
44518         Remove cvs-repo-updating instructions from 2007.
44519         Don't imply that CVS is better if you have limited disk space.
44520
44521 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44522
44523         update-copyright: support C-style comments
44524         * build-aux/update-copyright: Implement and document.
44525         * tests/test-update-copyright.sh: Test.
44526
44527 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44528
44529         update-copyright: support omitted "(C)"
44530         * build-aux/update-copyright: Implement and document.  Also,
44531         allow variable whitespace before "(C)".
44532         * tests/test-update-copyright.sh: Test.
44533
44534 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44535
44536         update-copyright: don't trip on non-FSF copyright statements
44537         * build-aux/update-copyright: Fix so that the first correctly
44538         formatted FSF copyright statement is recognized no matter what
44539         appears before it.  Update documentation.
44540         * tests/test-update-copyright.sh: Test that.
44541
44542 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44543
44544         update-copyright: clean up code a little
44545         * build-aux/update-copyright: Append "_re" to the name of any
44546         variable holding a regular expression.
44547         Replace "old" and "new" with "stmt" in variable names.
44548         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
44549         handled correctly.
44550         Format code more consistently.
44551
44552 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44553
44554         update-copyright-tests: improve portability
44555         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
44556         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
44557
44558 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
44559
44560         update-copyright: support @copyright{} and &copy;
44561         * build-aux/update-copyright: Implement and document.
44562         * tests/test-update-copyright.sh: Test.
44563
44564 2009-08-04  Jim Meyering  <meyering@redhat.com>
44565
44566         update-copyright-tests: correctly test EOL=\r\n handling
44567         * tests/test-update-copyright.sh: Put \r at the end of some lines
44568         for the dos-eol tests.  Based on a patch by Joel E. Denny.
44569
44570         maint.mk: make update-copyright exclusion list more configurable
44571         * top/maint.mk (update-copyright): Default to excluding COPYING,
44572         but allow an override, in case someone does want to update that file.
44573
44574         maint.mk: don't update copyright date in COPYING
44575         * top/maint.mk (update-copyright): Exclude COPYING.
44576
44577         maint.mk: add a copyright-updating rule
44578         * top/maint.mk (update-copyright): New rule.
44579         Derived from coreutils/Makefile.am.
44580
44581         update-copyright: rename some variables
44582         * build-aux/update-copyright: Rename a few variables for clarity.
44583         Tweak syntax.  List Joel E. Denny as coauthor.
44584
44585 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
44586
44587         update-copyright: fix bug for 2-digit last year and add tests
44588         * build-aux/update-copyright: Fix bug.
44589         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
44590         specified.
44591         * modules/update-copyright-tests: New
44592         * tests/test-update-copyright.sh: New.
44593
44594 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44595
44596         update-copyright: handle leading tabs in line prefix
44597         * build-aux/update-copyright: Count leading tabs as 8 spaces
44598         when computing margin.  This helps with the formatting of
44599         ChangeLogs, for example.
44600         Fix documentation a little.
44601
44602 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44603
44604         update-copyright: support EOL=\r\n
44605         * build-aux/update-copyright: Implement that.
44606
44607 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44608
44609         update-copyright: automatically format copyright statements
44610         * build-aux/update-copyright: Implement that.
44611         Also, be a little more predictable and safer by always failing
44612         when the full copyright format is not perfectly recognized as an
44613         unbroken whole.  Discussed at
44614         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
44615         Rewrite documentation.
44616
44617 2009-08-03  Bruno Haible  <bruno@clisp.org>
44618
44619         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
44620
44621 2009-08-02  Bruno Haible  <bruno@clisp.org>
44622
44623         Tests for module 'uname'.
44624         * modules/uname-tests: New file.
44625         * tests/test-uname.c: New file.
44626
44627         New module 'uname'.
44628         * lib/uname.c: New file.
44629         * m4/uname.m4: New file.
44630         * modules/uname: New file.
44631         * doc/posix-functions/uname.texi: Mention the new module.
44632
44633 2009-08-02  Bruno Haible  <bruno@clisp.org>
44634
44635         Tests for module 'sys_utsname'.
44636         * modules/sys_utsname-tests: New file.
44637         * tests/test-sys_utsname.c: New file.
44638
44639         New module 'sys_utsname'.
44640         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
44641         * m4/sys_utsname_h.m4: New file.
44642         * modules/sys_utsname: New file.
44643         * doc/posix-headers/sys_utsname.texi: Mention the new module.
44644
44645 2009-08-02  Bruno Haible  <bruno@clisp.org>
44646
44647         Implicitly initialize the sockets library.
44648         * lib/gethostname.c: Include sockets.h.
44649         (rpl_gethostname): Invoke gl_sockets_startup.
44650         * lib/socket.c: Include sockets.h.
44651         (rpl_socket): Invoke gl_sockets_startup.
44652         * modules/gethostname (Depends-on): Add sockets.
44653         * modules/socket (Depends-on): Likewise.
44654         * tests/test-poll.c: Don't include sockets.h.
44655         (main): Don't invoke gl_sockets_startup.
44656         * tests/test-select.c: Don't include sockets.h.
44657         (main): Don't invoke gl_sockets_startup.
44658
44659 2009-08-02  Bruno Haible  <bruno@clisp.org>
44660
44661         Allow multiple calls to gl_sockets_startup.
44662         * lib/sockets.c (initialized_sockets_version): New variable.
44663         (gl_sockets_startup): Do nothing if already called for this or a higher
44664         version.
44665         (gl_sockets_cleanup): Reset initialized_sockets_version.
44666
44667 2009-08-03  Simon Josefsson  <simon@josefsson.org>
44668
44669         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
44670         different project/version.
44671
44672 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
44673             Bruno Haible  <bruno@clisp.org>
44674
44675         Tests for module 'pipe-filter-gi'.
44676         * modules/pipe-filter-gi-tests: New file.
44677         * tests/test-pipe-filter-gi1.sh: New file.
44678         * tests/test-pipe-filter-gi1.c: New file.
44679         * tests/test-pipe-filter-gi2.sh: New file.
44680         * tests/test-pipe-filter-gi2-main.c: New file.
44681         * tests/test-pipe-filter-gi2-child.c: New file.
44682
44683         New module 'pipe-filter-gi'.
44684         * lib/pipe-filter-gi.c: New file.
44685         * modules/pipe-filter-gi: New file.
44686
44687 2009-08-02  Bruno Haible  <bruno@clisp.org>
44688             Paolo Bonzini  <bonzini@gnu.org>
44689
44690         Tests for module 'pipe-filter-ii'.
44691         * modules/pipe-filter-ii-tests: New file.
44692         * tests/test-pipe-filter-ii1.sh: New file.
44693         * tests/test-pipe-filter-ii1.c: New file.
44694         * tests/test-pipe-filter-ii2.sh: New file.
44695         * tests/test-pipe-filter-ii2-main.c: New file.
44696         * tests/test-pipe-filter-ii2-child.c: New file.
44697
44698         New module 'pipe-filter-ii'.
44699         * lib/pipe-filter.h: New file.
44700         * lib/pipe-filter-ii.c: New file.
44701         * lib/pipe-filter-aux.h: New file.
44702         * modules/pipe-filter-ii: New file.
44703
44704 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44705
44706         * lib/gc-libgcrypt.c: Change copyright to FSF.
44707         * lib/gc-gnulib.c: Likewise.
44708
44709 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
44710
44711         * lib/gethostname.c: Include limits.h.
44712
44713 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44714             Bruno Haible  <bruno@clisp.org>
44715
44716         Ensure HOST_NAME_MAX as part of the gethostname module.
44717         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
44718         define also HOST_NAME_MAX.
44719         * tests/test-gethostname.c: Include <limits.h>.
44720         (main): Check also HOST_NAME_MAX.
44721         * doc/posix-headers/limits.texi: Document the mingw problem.
44722
44723 2009-08-02  Bruno Haible  <bruno@clisp.org>
44724
44725         * lib/gethostname.c (gethostname): Fix handling of large len argument.
44726         Add comments.
44727
44728 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44729
44730         * lib/gethostname.c: Add Windows wrapper.
44731         * m4/gethostname.m4: Look for gethostname in -lws2_32.
44732         * modules/gethostname: Depend on sys_socket & errno, for also
44733         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
44734         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
44735
44736 2009-07-31  Jim Meyering  <meyering@redhat.com>
44737
44738         getloadavg: fix symbol name in comment
44739         * lib/getloadavg.c: Correct a typo I introduced when adding
44740         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
44741         Matt Kraai spotted the problem.
44742
44743 2009-07-29  Matt Kraai  <mkraai@beckman.com>
44744
44745         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
44746         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
44747         code also if ! defined N_NAME_POINTER.
44748         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
44749         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
44750         but the n_name member is a 12-byte array.
44751
44752 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
44753
44754         update-copyright: generalize comment handling
44755         * build-aux/update-copyright: Handle copyright statements
44756         within more comment styles.
44757         Document usage.
44758         Report any file with an external copyright holder or parse failure.
44759
44760 2009-07-29  Jim Meyering  <meyering@redhat.com>
44761
44762         mktime: correct setting of REPLACE_MKTIME
44763         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
44764
44765         update-copyright: new module
44766         * modules/update-copyright: New file.
44767         * build-aux/update-copyright: New file.
44768         * MODULES.html.sh (maint+release support): Add update-copyright.
44769
44770 2009-07-27  Bruno Haible  <bruno@clisp.org>
44771
44772         Fix compilation error when <ctime> is used and mktime is replaced.
44773         * lib/time.in.h (mktime): New declaration.
44774         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
44775         REPLACE_MKTIME instead of defining mktime in config.h.
44776         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
44777         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
44778         Reported by Ross McFarland <rwmcfa1@neces.com>.
44779
44780 2009-07-27  Bruno Haible  <bruno@clisp.org>
44781
44782         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
44783         Reported by Matt Kraai <mkraai@beckman.com>.
44784
44785 2009-07-25  Jim Meyering  <meyering@redhat.com>
44786
44787         maint.mk: avoid warnings about missing files
44788         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
44789         diagnostic when .prev-version does not exist.
44790         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
44791         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
44792         nonexistent cfg.mk.
44793         Suggestions from Simon Josefsson.
44794
44795 2009-07-25  Bruno Haible  <bruno@clisp.org>
44796
44797         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
44798         defined as macros. Needed on QNX 6.4.1.
44799         Reported by Matt Kraai <mkraai@beckman.com>.
44800
44801 2009-07-23  Jim Meyering  <meyering@redhat.com>
44802
44803         maint.mk: invoke "make dist" with a working value of XZ_OPT
44804         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
44805
44806 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
44807
44808         Make fseeko.c compile on QNX.
44809         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
44810
44811 2009-07-22  Peter Simons  <simons@cryp.to>
44812
44813         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
44814         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
44815         * lib/md4.h: Likewise.
44816         * lib/md5.h: Likewise.
44817         * lib/sha1.h: Likewise.
44818         * lib/sha256.h: Likewise.
44819         * lib/sha512.h: Likewise.
44820
44821         tests-sha1: don't assign literal string to 'char *' variable
44822         * tests/test-sha1.c (main): Declare locals with "const" to match
44823         attributes of the right hand side.
44824
44825 2009-07-21  Eric Blake  <ebb9@byu.net>
44826
44827         dup2: fix more mingw problems
44828         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
44829         fd to itself.
44830         * doc/posix-functions/dup2.texi (dup2): Document the bug.
44831         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
44832         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
44833         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
44834         care of mingw bugs.
44835
44836 2009-07-21  Jim Meyering  <meyering@redhat.com>
44837
44838         vc-list-files: avoid failure when /bin/sh is dash
44839         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
44840         On some Debian based systems, /bin/sh is a symlink to dash, and running
44841         this command would omit the "/" following each 'tests' prefix:
44842           dash -x build-aux/vc-list-files -C . tests
44843         That is because bash and dash work differently:
44844           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
44845           bash ok
44846           dash odd
44847
44848 2009-07-21  Eric Blake  <ebb9@byu.net>
44849
44850         dup2-tests: test previous patch
44851         * modules/dup2-tests: New file.
44852         * tests/test-dup2.c: Likewise.
44853         * tests/test-open.c (main): Avoid unspecified behavior.
44854         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
44855         test.
44856
44857         dup2: work around mingw and cygwin 1.5 bug
44858         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
44859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44860         * modules/unistd (Makefile.am): Substitute it.
44861         * lib/unistd.in.h (dup2): Declare the replacement.
44862         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
44863         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
44864         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
44865         * modules/execute (Depends-on): Add dup2.
44866         * modules/fseterr (Depends-on): Likewise.
44867         * modules/pipe (Depends-on): Likewise.
44868         * modules/posix_spawn-internal (Depends-on): Likewise.
44869
44870 2009-07-21  Bruno Haible  <bruno@clisp.org>
44871
44872         * modules/.gitattributes: New file.
44873
44874 2009-07-20  Bruno Haible  <bruno@clisp.org>
44875
44876         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
44877         (main): Use it.
44878
44879 2009-07-20  Eric Blake  <ebb9@byu.net>
44880
44881         test-pipe: make a bit more robust.
44882         * tests/test-pipe.c (myerr): Allow error messages regardless of
44883         what we do to stderr.
44884         (test_pipe): Rearrange to avoid deadlock.
44885         (child_main): Try a larger read, to ensure we avoided deadlock.
44886         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
44887         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
44888         if misused.
44889
44890 2009-07-19  Jim Meyering  <meyering@redhat.com>
44891
44892         fts: avoid false-positive cycle-detection
44893         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
44894         for each new command line argument.
44895
44896 2009-07-19  Bruno Haible  <bruno@clisp.org>
44897
44898         Fix build error on mingw with the modules sys_select and unistd.
44899         * modules/acl-tests (Depends-on): Add close.
44900         * modules/binary-io-tests (Depends-on): Likewise.
44901         * modules/closein-tests (Depends-on): Likewise.
44902         * modules/flock-tests (Depends-on): Likewise.
44903         * modules/fsync-tests (Depends-on): Likewise.
44904         * modules/lseek-tests (Depends-on): Likewise.
44905         * modules/pipe-tests (Depends-on): Likewise.
44906         * modules/posix_spawn-tests (Depends-on): Likewise.
44907         * modules/posix_spawnp-tests (Depends-on): Likewise.
44908         * modules/stat-time-tests (Depends-on): Likewise.
44909         * modules/yesno-tests (Depends-on): Likewise.
44910
44911 2009-07-19  Bruno Haible  <bruno@clisp.org>
44912
44913         Unify conditionals.
44914         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
44915         macros, not at the compiler macros.
44916         * lib/pipe.c: Likewise.
44917         * lib/execute.c: Likewise.
44918         * lib/spawni.c: Likewise.
44919
44920 2009-07-19  Bruno Haible  <bruno@clisp.org>
44921
44922         Fix handling of closed stdin/stdout/stderr on mingw.
44923         * lib/w32spawn.h: Include unistd.h.
44924         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
44925         file descriptor with O_NOINHERIT flag.
44926         (fd_safer_noinherit): New function, based on fd-safer.c.
44927         (dup_safer_noinherit): New function, based on dup-safer.c.
44928         (undup_safer_noinherit): New function.
44929         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
44930         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
44931         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
44932         instead of fd_safer.
44933         * tests/test-pipe.c: Include <windows.h>.
44934         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
44935         result.
44936
44937         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
44938         from main.
44939         (test_pipe): Pass an extra argument for disambiguation.
44940         (main): Invoke parent_main or child_main.
44941
44942         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
44943         consistently.
44944
44945 2009-07-18  Eric Blake  <ebb9@byu.net>
44946
44947         test-pipe: fix mingw build
44948         * tests/test-pipe.c (main): Avoid fcntl on mingw.
44949
44950 2009-07-18  Bruno Haible  <bruno@clisp.org>
44951
44952         * modules/pipe-tests (Makefile.am): Fix typo.
44953
44954 2009-07-18  Eric Blake  <ebb9@byu.net>
44955
44956         error: fix mingw build
44957         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
44958         Reported by Bruno Haible.
44959
44960         error: avoid undefined use of stdout
44961         * lib/error.c (error, error_at_line): Check that fd 1 is open
44962         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
44963         is handling faults and the close_stdout module wants to report the
44964         detection of closed stdout as an error.
44965
44966 2009-07-17  Eric Blake  <ebb9@byu.net>
44967
44968         pipe: be robust in face of closed fds
44969         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
44970         should cause child to misbehave.
44971         * modules/pipe-tests: New module.
44972         * tests/test-pipe.c: New file.
44973         * tests/test-pipe.sh: New file.
44974         Reported by Akim Demaille.
44975
44976 2009-07-14  Bruno Haible  <bruno@clisp.org>
44977
44978         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
44979         Reported by anonymous kc.
44980
44981 2009-07-07  Jim Meyering  <meyering@redhat.com>
44982
44983         maint.mk: don't look for translatable strings in *.m4 or *.mk
44984         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
44985         when searching for translatable strings.
44986
44987 2009-07-05  Jim Meyering  <meyering@redhat.com>
44988
44989         remove superfluous parentheses in STREQ definition
44990         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
44991         * lib/getugroups.c (STREQ): Likewise.
44992         * lib/fnmatch.c (STREQ): Likewise.
44993         Spotted by Bruno Haible.
44994
44995 2009-07-04  Jim Meyering  <meyering@redhat.com>
44996
44997         argv-iter: new module
44998         * MODULES.html.sh: Add argv-iter.
44999         * lib/argv-iter.c, lib/argv-iter.h: New files.
45000         * modules/argv-iter: New file.
45001         * modules/argv-iter-tests: New file.
45002         * tests/test-argv-iter.c: Test it.
45003
45004 2009-07-04  Bruno Haible  <bruno@clisp.org>
45005
45006         Fix assertion.
45007         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
45008         contains more exact copies of a given entry than file2, leave the extra
45009         copies unpaired rather than aborting.
45010         Reported by Eric Blake.
45011
45012 2009-07-02  Bruno Haible  <bruno@clisp.org>
45013
45014         Speedup git-merge-changelog for git cherry-pick.
45015         * lib/git-merge-changelog.c (struct entries_mapping): New type.
45016         (entries_mapping_get): New function, extracted from compute_mapping.
45017         (entries_mapping_reverse_get): New function.
45018         (compute_mapping): Add a 'full' argument. Return the result in a
45019         'struct entries_mapping'.
45020         (main): Update. Access the mappings through entries_mapping_get.
45021         Reported by Eric Blake.
45022
45023 2009-07-02  Bruno Haible  <bruno@clisp.org>
45024
45025         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
45026         best_i.
45027
45028 2009-07-02  Bruno Haible  <bruno@clisp.org>
45029
45030         Speed up approximate search for matching ChangeLog entries.
45031         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
45032         argument. Call fstrcmp_bounded instead of fstrcmp.
45033         (compute_mapping, try_split_merged_entry, main): Update callers.
45034
45035 2009-07-02  Bruno Haible  <bruno@clisp.org>
45036
45037         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
45038
45039 2009-06-30  Bruno Haible  <bruno@clisp.org>
45040
45041         Reduce the number of uc_is_cased calls.
45042         * lib/unicase.h (casing_suffix_context_t): Add
45043         'first_char_except_ignorable' field.
45044         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
45045         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
45046         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
45047         Update initializer.
45048         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
45049         case-ignorable characters.
45050         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
45051         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
45052         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
45053         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
45054         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
45055
45056 2009-06-30  Bruno Haible  <bruno@clisp.org>
45057
45058         Tests for module 'unicase/ignorable'.
45059         * modules/unicase/ignorable-tests: New file.
45060         * tests/unicase/test-ignorable.c: New file, generated by
45061         gen-uni-tables.
45062
45063         Tests for module 'unicase/cased'.
45064         * modules/unicase/cased-tests: New file.
45065         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
45066         * tests/unicase/test-predicate-part1.h: New file, derived from
45067         tests/unictype/test-predicate-part1.h.
45068         * tests/unicase/test-predicate-part2.h: New file, same as
45069         tests/unictype/test-predicate-part2.h.
45070
45071         Fix evaluation of "Before C" condition of FINAL_SIGMA.
45072         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
45073         (output_casing_properties): New function.
45074         (main): Call it.
45075         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
45076         * lib/unicase/cased.c: Include unictype/bitmap.h.
45077         (uc_is_cased): Define through a bitmap lookup.
45078         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
45079         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
45080         (uc_is_case_ignorable): Define through a bitmap lookup.
45081         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
45082         lib/unictype/bitmap.h.
45083         (Depends-on): Add inline. Clean up.
45084         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
45085         lib/unictype/bitmap.h.
45086         (Depends-on): Add inline. Clean up.
45087         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
45088         recognition.
45089         * tests/unicase/test-u16-tolower.c (main): Likewise.
45090         * tests/unicase/test-u32-tolower.c (main): Likewise.
45091
45092 2009-06-30  Bruno Haible  <bruno@clisp.org>
45093
45094         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
45095         * lib/unicase/u16-casemap.c: Likewise.
45096         * lib/unicase/u32-casemap.c: Likewise.
45097
45098 2009-06-29  Bruno Haible  <bruno@clisp.org>
45099
45100         Define u32_casefold as a wrapper around u32_ct_casefold.
45101         * lib/unicase/u32-casefold.c: Update.
45102         * modules/unicase/u32-casefold (Depends-on): Add
45103         unicase/u32-ct-casefold, unicase/empty-prefix-context,
45104         unicase/empty-suffix-context. Clean up.
45105
45106         Define u16_casefold as a wrapper around u16_ct_casefold.
45107         * lib/unicase/u16-casefold.c: Update.
45108         * modules/unicase/u16-casefold (Depends-on): Add
45109         unicase/u16-ct-casefold, unicase/empty-prefix-context,
45110         unicase/empty-suffix-context. Clean up.
45111
45112         Define u8_casefold as a wrapper around u8_ct_casefold.
45113         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
45114         * lib/unicase/u8-casefold.c: Update.
45115         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
45116         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45117
45118         Define u32_totitle as a wrapper around u32_ct_totitle.
45119         * lib/unicase/u32-totitle.c: Update.
45120         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
45121         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45122
45123         Define u16_totitle as a wrapper around u16_ct_totitle.
45124         * lib/unicase/u16-totitle.c: Update.
45125         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
45126         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45127
45128         Define u8_totitle as a wrapper around u8_ct_totitle.
45129         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
45130         functions.
45131         (FUNC): Delegate to U_CT_TOTITLE.
45132         * lib/unicase/u8-totitle.c: Update.
45133         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
45134         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45135
45136         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
45137         invocation.
45138         * modules/unicase/u32-tolower (Depends-on): Add
45139         unicase/empty-prefix-context, unicase/empty-suffix-context.
45140
45141         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
45142         invocation.
45143         * modules/unicase/u16-tolower (Depends-on): Add
45144         unicase/empty-prefix-context, unicase/empty-suffix-context.
45145
45146         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
45147         * modules/unicase/u8-tolower (Depends-on): Add
45148         unicase/empty-prefix-context, unicase/empty-suffix-context.
45149
45150         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
45151         invocation.
45152         * modules/unicase/u32-toupper (Depends-on): Add
45153         unicase/empty-prefix-context, unicase/empty-suffix-context.
45154
45155         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
45156         invocation.
45157         * modules/unicase/u16-toupper (Depends-on): Add
45158         unicase/empty-prefix-context, unicase/empty-suffix-context.
45159
45160         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
45161         * modules/unicase/u8-toupper (Depends-on): Add
45162         unicase/empty-prefix-context, unicase/empty-suffix-context.
45163
45164         New module 'unicase/u32-ct-casefold'.
45165         * lib/unicase/u32-ct-casefold.c: New file.
45166         * modules/unicase/u32-ct-casefold: New file.
45167
45168         New module 'unicase/u16-ct-casefold'.
45169         * lib/unicase/u16-ct-casefold.c: New file.
45170         * modules/unicase/u16-ct-casefold: New file.
45171
45172         New module 'unicase/u8-ct-casefold'.
45173         * lib/unicase/u8-ct-casefold.c: New file.
45174         * lib/unicase/u-ct-casefold.h: New file, derived from
45175         lib/unicase/u-casefold.h.
45176         * modules/unicase/u8-ct-casefold: New file.
45177
45178         New module 'unicase/u32-ct-totitle'.
45179         * lib/unicase/u32-ct-totitle.c: New file.
45180         * modules/unicase/u32-ct-totitle: New file.
45181
45182         New module 'unicase/u16-ct-totitle'.
45183         * lib/unicase/u16-ct-totitle.c: New file.
45184         * modules/unicase/u16-ct-totitle: New file.
45185
45186         New module 'unicase/u8-ct-totitle'.
45187         * lib/unicase/u8-ct-totitle.c: New file.
45188         * lib/unicase/u-ct-totitle.h: New file, derived from
45189         lib/unicase/u-totitle.h.
45190         * modules/unicase/u8-ct-totitle: New file.
45191
45192         New module 'unicase/u32-ct-tolower'.
45193         * lib/unicase/u32-ct-tolower.c: New file.
45194         * modules/unicase/u32-ct-tolower: New file.
45195
45196         New module 'unicase/u16-ct-tolower'.
45197         * lib/unicase/u16-ct-tolower.c: New file.
45198         * modules/unicase/u16-ct-tolower: New file.
45199
45200         New module 'unicase/u8-ct-tolower'.
45201         * lib/unicase/u8-ct-tolower.c: New file.
45202         * modules/unicase/u8-ct-tolower: New file.
45203
45204         New module 'unicase/u32-ct-toupper'.
45205         * lib/unicase/u32-ct-toupper.c: New file.
45206         * modules/unicase/u32-ct-toupper: New file.
45207
45208         New module 'unicase/u16-ct-toupper'.
45209         * lib/unicase/u16-ct-toupper.c: New file.
45210         * modules/unicase/u16-ct-toupper: New file.
45211
45212         New module 'unicase/u8-ct-toupper'.
45213         * lib/unicase/u8-ct-toupper.c: New file.
45214         * modules/unicase/u8-ct-toupper: New file.
45215
45216         Add context arguments to u*_casemap functions.
45217         * lib/unicase/unicasemap.h: Include unicase.h.
45218         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
45219         suffix_context arguments.
45220         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
45221         functions.
45222         (FUNC): Add prefix_context and suffix_context arguments. Use
45223         uc_is_cased and uc_is_case_ignorable.
45224         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
45225         * lib/unicase/u16-casemap.c: Likewise.
45226         * lib/unicase/u32-casemap.c: Likewise.
45227         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
45228         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45229         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
45230         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45231         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
45232         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45233
45234         New module 'unicase/u32-suffix-context'.
45235         * lib/unicase/u32-suffix-context.c: New file.
45236         * modules/unicase/u32-suffix-context: New file.
45237
45238         New module 'unicase/u16-suffix-context'.
45239         * lib/unicase/u16-suffix-context.c: New file.
45240         * modules/unicase/u16-suffix-context: New file.
45241
45242         New module 'unicase/u8-suffix-context'.
45243         * lib/unicase/u8-suffix-context.c: New file.
45244         * lib/unicase/u-suffix-context.h: New file.
45245         * modules/unicase/u8-suffix-context: New file.
45246
45247         New module 'unicase/empty-suffix-context'.
45248         * lib/unicase/empty-suffix-context.c: New file.
45249         * modules/unicase/empty-suffix-context: New file.
45250
45251         New module 'unicase/u32-prefix-context'.
45252         * lib/unicase/u32-prefix-context.c: New file.
45253         * modules/unicase/u32-prefix-context: New file.
45254
45255         New module 'unicase/u16-prefix-context'.
45256         * lib/unicase/u16-prefix-context.c: New file.
45257         * modules/unicase/u16-prefix-context: New file.
45258
45259         New module 'unicase/u8-prefix-context'.
45260         * lib/unicase/u8-prefix-context.c: New file.
45261         * lib/unicase/u-prefix-context.h: New file.
45262         * lib/unicase/context.h: New file.
45263         * modules/unicase/u8-prefix-context: New file.
45264
45265         New module 'unicase/empty-prefix-context'.
45266         * lib/unicase/empty-prefix-context.c: New file.
45267         * modules/unicase/empty-prefix-context: New file.
45268
45269         New module 'unicase/ignorable'.
45270         * lib/unicase/ignorable.c: New file.
45271         * modules/unicase/ignorable: New file.
45272
45273         New module 'unicase/cased'.
45274         * lib/unicase/caseprop.h: New file.
45275         * lib/unicase/cased.c: New file.
45276         * modules/unicase/cased: New file.
45277
45278         New functions for case mapping of substrings.
45279         * lib/unicase.h (casing_prefix_context_t): New type.
45280         (unicase_empty_prefix_context): New variable.
45281         (u8_casing_prefix_context, u16_casing_prefix_context,
45282         u32_casing_prefix_context, u8_casing_prefixes_context,
45283         u16_casing_prefixes_context, u32_casing_prefixes_context): New
45284         declarations.
45285         (casing_suffix_context_t): New type.
45286         (unicase_empty_suffix_context): New variable.
45287         (u8_casing_suffix_context, u16_casing_suffix_context,
45288         u32_casing_suffix_context, u8_casing_suffixes_context,
45289         u16_casing_suffixes_context, u32_casing_suffixes_context,
45290         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
45291         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
45292         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
45293         declarations.
45294
45295 2009-06-28  Jim Meyering  <meyering@redhat.com>
45296
45297         boostrap: indent only with spaces
45298         * build-aux/bootstrap: Indent only with spaces, never TABs.
45299
45300         bootstrap: split long lines
45301         * build-aux/bootstrap: Keep line length < 80.
45302
45303         bootstrap: sync from coreutils
45304         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
45305         just as autoreconf does.  Verify a list of prerequisite
45306         package-name,version-number pairs if defined in bootstrap.conf.
45307         Refer to README-prereq, if prerequisites are not satisfied.
45308
45309 2009-06-27  Eric Blake  <ebb9@byu.net>
45310
45311         tests: add test for bogus NULL definition
45312         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
45313         * tests/test-stdlib.c: Likewise.
45314         * tests/test-string.c: Likewise.
45315         * tests/test-locale.c: Likewise.
45316         * tests/test-unistd.c: Likewise.
45317         * modules/stdio-tests (Depends-on): Add verify.
45318         * modules/stdlib-tests (Depends-on): Likewise.
45319         * modules/string-tests (Depends-on): Likewise.
45320         * modules/locale-tests (Depends-on): Likewise.
45321         * modules/unistd-tests (Depends-on): Likewise.
45322
45323 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
45324
45325         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
45326         self-explaining comment.
45327         * m4/selinux-selinux-h: Update serial.
45328         (gl_LIBSELINUX): New macro, adding a warning for missing development
45329         packages to code extracted from...
45330         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
45331         Add warning for missing development packages here, too.
45332
45333 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
45334
45335         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
45336
45337 2009-06-25  Eric Blake  <ebb9@byu.net>
45338
45339         version-etc: fix regression
45340         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
45341         gcc.
45342         (version_etc): Use it, to catch bugs with trailing NULL.
45343         * lib/version-etc.c (version_etc_arn): Delete unused argument.
45344         (version_etc_va): Fix logic bug.
45345         * modules/version-etc-tests: Add test.
45346         * tests/test-version-etc.c: New file.
45347         * tests/test-version-etc.sh: Likewise.
45348
45349 2009-06-25  Sam Steingold  <sds@gnu.org>
45350
45351         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
45352         mbtowc declaration.
45353
45354 2009-06-25  Eric Blake  <ebb9@byu.net>
45355
45356         fpurge: migrate into <stdio.h>
45357         * lib/fpurge.h: Delete...
45358         * lib/stdio.in.h (fpurge): ...and declare here, instead.
45359         * lib/fpurge.c (fpurge): Change declaring header.
45360         * modules/fpurge (Files): Drop deleted file.
45361         (Depends-on): Add stdio.
45362         (configure.ac): Set witness.
45363         * modules/stdio (Makefile.am): Support fpurge macros.
45364         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45365         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
45366         * lib/fflush.c: Update client.
45367         * tests/test-fpurge.c: Likewise.
45368         * NEWS: Mention the change.
45369
45370 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45371
45372         * lib/argp-version-etc.c (program_authors): Add const
45373         qualifier.
45374         * lib/version-etc.c: Fix typos in the comments.
45375         * modules/argp-version-etc: Depends on version-etc.
45376
45377 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45378
45379         argp-version-etc: new module.
45380
45381         * lib/argp-version-etc.c: New file.
45382         * lib/argp-version-etc.h: New file.
45383         * modules/argp-version-etc: New file.
45384         * modules/argp-version-etc-tests: New file.
45385         * tests/test-argp-version-etc.c: New test.
45386         * tests/test-argp-version-etc-1.sh: New test.
45387
45388 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45389
45390         Provide additional interfaces and documentation for version-etc
45391         module.
45392
45393         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
45394         interfaces.
45395         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
45396         prototypes.
45397
45398 2009-06-24  Bruno Haible  <bruno@clisp.org>
45399
45400         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
45401         HAVE_LIB${NAME} macro.
45402         Reported by Sam Steingold <sds@gnu.org>.
45403
45404 2009-06-23  Simon Josefsson  <simon@josefsson.org>
45405
45406         * modules/hash-tests (test_hash_LDADD): Link to libintl when
45407         needed.
45408
45409 2009-06-21  Bruno Haible  <bruno@clisp.org>
45410
45411         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
45412         work.
45413         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
45414         together with LIB${NAME}, LTLIB${NAME}.
45415         Reported by Sam Steingold <sds@gnu.org>.
45416
45417 2009-06-20  Jim Meyering  <meyering@redhat.com>
45418
45419         tests: make sc_require_test_exit_idiom more generic
45420         * top/maint.mk (Exit_witness_file): New overridable variable.
45421         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
45422         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
45423
45424 2009-06-19  Jim Meyering  <meyering@redhat.com>
45425
45426         hash: reverse order of src/dst parameters in an internal interface
45427         * lib/hash.c (transfer_entries): Reverse order of parameters to
45428         put DST before SRC.  Adjust callers.
45429
45430         tests: test-hash: avoid wholesale duplication
45431         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
45432         Instead, use a loop and add a single conditional.
45433
45434         tests: test-hash: allow seed selection via a command line argument
45435         * tests/test-hash.c (get_seed): New function.
45436         (main): Use it.
45437
45438 2009-06-19  Eric Blake  <ebb9@byu.net>
45439
45440         hash: avoid memory leak on allocation failure
45441         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
45442         failure.  Factor repeated algorithm...
45443         (transfer_entries): ...into new helper routine.
45444         (hash_delete): React to hash_rehash return value.
45445
45446         hash: reduce memory pressure in hash_rehash no-op case
45447         * lib/hash.c (next_prime): Avoid overflow.
45448         (hash_initialize): Factor bucket size computation...
45449         (compute_bucket_size): ...into new helper function.
45450         (hash_rehash): Use new function and open coding to reduce memory
45451         pressure, and avoid a memory leak in USE_OBSTACK code.
45452         Reported by Jim Meyering.
45453
45454 2009-06-18  Eric Blake  <ebb9@byu.net>
45455
45456         hash: make rotation more obvious
45457         * modules/hash (Depends-on): Add bitrotate and stdint.
45458         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
45459         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
45460         (SIZE_MAX): Rely on headers for definition.
45461         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
45462         (raw_hasher): Use rotr_sz.
45463         Suggested by Jim Meyering.
45464
45465         hash: fix memory leak in last patch
45466         * lib/hash.c (hash_rehash): Avoid memory leak.
45467
45468         hash: avoid no-op rehashing
45469         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
45470
45471         hash: provide default callback functions
45472         * lib/hash.c (raw_hasher, raw_comparator): New functions.
45473         (hash_initialize): Use them as defaults.
45474         * tests/test-hash.c (main): Test this.
45475
45476         hash: minor optimization
45477         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
45478         when possible.
45479         (hash_initialize): Document this promise.
45480         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
45481         * tests/test-hash.c (hash_compare_strings): Test this.
45482
45483 2009-06-18  Bruno Haible  <bruno@clisp.org>
45484
45485         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
45486         going to be replaced anyway.
45487
45488 2009-06-18  Bruno Haible  <bruno@clisp.org>
45489
45490         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
45491         in one place.
45492         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
45493         be replaced anyway.
45494
45495 2009-06-18  Eric Blake  <ebb9@byu.net>
45496
45497         hash: check for resize before insertion
45498         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
45499         threshold before insertion, so that a pathological hash_rehash
45500         that fills every bucket can still trigger another rehash.
45501
45502 2009-06-18  Jim Meyering  <meyering@redhat.com>
45503
45504         hash-tests: add a loop around the small tests
45505         * tests/test-hash.c (main): Repeat small tests with selected
45506         small initial table sizes.
45507
45508 2009-06-17  Eric Blake  <ebb9@byu.net>
45509
45510         hash: minor cleanups
45511         * lib/hash.h (hash_entry): Make opaque, by moving...
45512         * lib/hash.c (hash_entry): ...here.
45513         (hash_insert): Clarify restrictions on what can be inserted.
45514         (hash_get_next): Clarify when it is safe to remove an element
45515         during traversal.
45516         (check_tuning): Skip verification when tuning is known safe.
45517         (hash_initialize): Clarify restrictions on tuning.
45518
45519 2009-06-17  Jim Meyering  <jim@meyering.net>
45520         and Eric Blake  <ebb9@byu.net>
45521
45522         hash-tests: new module
45523         * modules/hash-tests: New file.
45524         * tests/test-hash.c: New file.
45525
45526 2009-06-17  Eric Blake  <ebb9@byu.net>
45527
45528         strstr-simple: document new module
45529         * MODULES.html.sh: Document new module.
45530
45531         strstr, strcasestr: replace on platforms with broken memchr
45532         * modules/strstr: Split into...
45533         * modules/strstr-simple: ...new module that does not care about
45534         performance, but does care about glibc bug.
45535         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
45536         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
45537         if platform memchr is broken, per Debian bug 521737.
45538         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
45539         memchr.
45540         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
45541         * doc/posix-functions/strstr.texi (strstr): Document the fix.
45542         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45543         * modules/mountlist (Depends-on): Add strstr-simple.
45544         * modules/gen-uni-tables (Depends-on): Likewise.
45545         * modules/argz (Depends-on): Add strstr.
45546
45547 2009-06-17  Bruno Haible  <bruno@clisp.org>
45548
45549         * modules/posix_spawn-internal (Depends-on): Add errno.
45550
45551 2009-06-17  Bruno Haible  <bruno@clisp.org>
45552
45553         Define missing ESTALE on Interix 3.5.
45554         * lib/errno.in.h (ESTALE): Assign a value if missing.
45555         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
45556         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
45557         missing.
45558         * doc/posix-headers/errno.texi: Mention the Interix bug.
45559         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
45560
45561 2009-06-15  Eric Blake  <ebb9@byu.net>
45562
45563         memchr, memchr2: add valgrind exception
45564         * lib/memchr.valgrind: New file.
45565         * lib/memchr2.valgrind: New file.
45566         * modules/memchr (Files): Distribute valgrind file.
45567         * modules/memchr2 (Files): Likewise.
45568
45569         docs: memchr is no longer obsolete
45570         * MODULES.html.sh: Move memchr from obsolete to string.h section.
45571         * lib/string.in.h (memchr): Simplify logic.
45572
45573 2009-06-14  Jim Meyering  <meyering@redhat.com>
45574
45575         link-follow: fix the "checking..." message to not mention trailing slash
45576         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
45577         never considered trailing slashes.
45578
45579 2009-06-14  Bruno Haible  <bruno@clisp.org>
45580
45581         * m4/memchr.m4: Mention also the bug on IA-64.
45582         * doc/posix-functions/memchr.texi: Likewise.
45583
45584 2009-06-12  Eric Blake  <ebb9@byu.net>
45585
45586         memchr: detect broken x86_64 and alpha implementations
45587         * modules/memchr-tests (Depends-on): Move mmap detection...
45588         * modules/memchr (Depends-on): ...here.
45589         (configure.ac): Set indicator.
45590         * lib/string.in.h (memchr): Declare replacement.
45591         * modules/string (Makefile.am): Trigger replacement.
45592         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
45593         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
45594         bugs.
45595         * doc/posix-functions/memchr.texi (memchr): Document the bug.
45596         * modules/getpagesize (License): Relax license.
45597
45598 2009-06-11  Bruno Haible  <bruno@clisp.org>
45599
45600         * lib/idpriv.h: Add more references.
45601
45602 2009-06-08  Bruno Haible  <bruno@clisp.org>
45603
45604         Tests for module 'idpriv-droptemp'.
45605         * modules/idpriv-droptemp-tests: New file.
45606         * tests/test-idpriv-droptemp.sh: New file.
45607         * tests/test-idpriv-droptemp.su.sh: New file.
45608         * tests/test-idpriv-droptemp.c: New file.
45609
45610         New module 'idpriv-droptemp'.
45611         * lib/idpriv-droptemp.c: New file.
45612         * modules/idpriv-droptemp: New file.
45613
45614 2009-06-08  Bruno Haible  <bruno@clisp.org>
45615
45616         Tests for module 'idpriv-drop'.
45617         * modules/idpriv-drop-tests: New file.
45618         * tests/test-idpriv-drop.sh: New file.
45619         * tests/test-idpriv-drop.su.sh: New file.
45620         * tests/test-idpriv-drop.c: New file.
45621
45622         New module 'idpriv-drop'.
45623         * lib/idpriv.h: New file.
45624         * lib-idpriv-drop.c: New file.
45625         * m4/idpriv.m4: New file.
45626         * modules/idpriv-drop: New file.
45627
45628 2009-06-08  Bruno Haible  <bruno@clisp.org>
45629
45630         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
45631         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45632         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45633         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45634         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45635         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45636         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45637
45638 2009-06-08  Eric Blake  <ebb9@byu.net>
45639
45640         test-strstr: use memory fence, when possible
45641         * tests/test-strstr.c (main): Use memory fence, in order to be
45642         more likely to trigger Debian bug 521737.
45643         * modules/strstr-tests (Files): Pull in additional files.
45644
45645         memchr: no longer obsolete, for wider field testing
45646         * modules/memchr (Status, Notice): Delete, this module is no
45647         longer obsolete.
45648         * modules/vasnprintf (Depends-on): Add memchr.
45649
45650 2009-06-07  Jim Meyering  <meyering@redhat.com>
45651
45652         hash: declare some functions with the warn_unused_result attribute
45653         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
45654
45655 2009-06-07  Bruno Haible  <bruno@clisp.org>
45656
45657         * tests/test-alignof.c: Don't test int64_t if it does not exist.
45658         Reported by Eric Blake.
45659
45660 2009-06-06  Eric Blake  <ebb9@byu.net>
45661
45662         test-alignof: fix typo with long double
45663         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
45664         compiler error.
45665
45666 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
45667
45668         Escape non-texinfo { and }s.
45669         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
45670         markup error.
45671
45672 2009-06-04  Jim Meyering  <meyering@redhat.com>
45673
45674         gitlog-to-changelog: don't infloop on an empty commit log
45675         * build-aux/gitlog-to-changelog: Warn about an empty log message.
45676         Reported by Boris Petersen <transacid@centerim.org>.
45677
45678 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
45679
45680         version-etc: extend for packagers
45681         Add three new configure options, intended for packagers:
45682           --with-packager="packager name"
45683           --with-packager-version="packager-specific version"
45684           --with-packager-bug-reports="packager bug reporting"
45685         An example with coreutils:
45686           $ ./configure \
45687             --with-packager=Gentoo \
45688             --with-packager-bug-report=http://bugs.gentoo.org/ \
45689             --with-packager-version="patchset 1.6"
45690           $ ./src/ls --version | head -n2
45691           ls (GNU coreutils) 7.1-dirty
45692           Packaged by Gentoo (patchset 1.6)
45693         Note that the bug reporting info via --help doesn't show up because
45694         coreutils uses its own custom emit_bug_reporting_address() implementation
45695         in src/system.h.  If it didn't, it'd look like:
45696           $ ./src/ls --help | tail -n4
45697           Report bugs to <bug-coreutils@gnu.org>.
45698           Report Gentoo bugs to <http://bugs.gentoo.org/>.
45699           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
45700           General help using GNU software: <http://www.gnu.org/gethelp/>.
45701         * lib/version-etc.c: Print new information, if provided.
45702         * m4/version-etc.m4: New file.
45703         * modules/version-etc (Files): Add m4/version-etc.m4.
45704         (configure.ac): Add gl_VERSION_ETC.
45705
45706 2009-05-31  Bruno Haible  <bruno@clisp.org>
45707
45708         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
45709         and 'int64_t'.
45710         * modules/alignof-tests (Dependencies): Add stdint.
45711         Reported by Eric Blake.
45712
45713 2009-05-31  Bruno Haible  <bruno@clisp.org>
45714
45715         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
45716         restriction due to compiler bugs.
45717         Reported by Eric Blake.
45718
45719 2009-05-31  Simon Josefsson  <simon@josefsson.org>
45720             Bruno Haible  <bruno@clisp.org>
45721
45722         Fix test-alignof failure.
45723         * lib/alignof.h (alignof_slot): New macro.
45724         (alignof_type): New macro, with the same semantics as the previous
45725         'alignof'.
45726         (alignof): Alias to alignof_slot.
45727         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
45728         check that the results are usable as constant expressions.
45729
45730 2009-05-31  Bruno Haible  <bruno@clisp.org>
45731
45732         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
45733         * tests/test-memchr.c (main): Check that memchr does not read past the
45734         first occurrence of the byte.
45735         * tests/test-strstr.c (main): Update comment.
45736         Suggested by Eric Blake.
45737
45738 2009-05-30  Bruno Haible  <bruno@clisp.org>
45739
45740         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
45741         detail how to use dumpbin.
45742         Reported by David Byron <dbyron@dbyron.com>.
45743
45744 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45745
45746         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
45747
45748 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45749
45750         * m4/manywarnings.m4: Add GCC 4.4 warnings.
45751
45752 2009-05-28  Bruno Haible  <bruno@clisp.org>
45753
45754         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
45755         build-aux/ files.
45756
45757 2009-05-28  Simon Josefsson  <simon@josefsson.org>
45758
45759         * gnulib-tool (func_import): Transform license on build-aux/ files too.
45760
45761 2009-05-27  Simon Josefsson  <simon@josefsson.org>
45762
45763         * gnulib-tool (sed_transform_main_lib_file)
45764         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
45765         regexps.
45766
45767 2009-05-26  Simon Josefsson  <simon@josefsson.org>
45768
45769         * tests/test-strstr.c: Add another self-test.
45770         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
45771         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
45772
45773 2009-05-23  Bruno Haible  <bruno@clisp.org>
45774
45775         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
45776         change.
45777
45778 2009-05-21  Bruno Haible  <bruno@clisp.org>
45779
45780         Simplify use of mode_t varargs.
45781         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
45782         uses 'mode_t' or 'int'.
45783         * lib/openat.c (openat): Likewise.
45784         * lib/open-safer.c (open_safer): Likewise.
45785         * m4/mode_t.m4: New file.
45786         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
45787         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
45788         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
45789         * modules/open (Files): Add m4/mode_t.m4.
45790         * modules/openat (Files): Likewise.
45791         * modules/fcntl-safer (Files): Likewise.
45792         Suggested by Eric Blake.
45793
45794 2009-05-21  Pádraig Brady  <P@draigbrady.com>
45795
45796         * doc/glibc-functions/fallocate.texi: New file.
45797         * doc/gnulib.texi: Include it.
45798
45799 2009-05-21  Eric Blake  <ebb9@byu.net>
45800             Bruno Haible  <bruno@clisp.org>
45801
45802         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
45803         invocations.
45804         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45805
45806 2009-05-21  Eric Blake  <ebb9@byu.net>
45807             Bruno Haible  <bruno@clisp.org>
45808
45809         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
45810         include_next. Fix of 2008-11-20 commit.
45811         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
45812         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
45813         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
45814         NEXT_MATH_H.
45815         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
45816         instead of NEXT_MATH_H.
45817
45818 2009-05-21  Bruno Haible  <bruno@clisp.org>
45819
45820         Avoid redefinition warnings for SIZE_MAX.
45821         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
45822         Reported by Simon Josefsson.
45823
45824 2009-05-21  Bruno Haible  <bruno@clisp.org>
45825
45826         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
45827         AC_CACHE_VAL.
45828
45829 2009-05-20  Bruno Haible  <bruno@clisp.org>
45830
45831         Make zeroptr.h work on mingw.
45832         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
45833         mprotect.
45834         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
45835         * modules/memchr2-tests (configure.ac): Likewise.
45836         * modules/memcmp-tests (configure.ac): Likewise.
45837         * modules/memmem-tests (configure.ac): Likewise.
45838         * modules/memrchr-tests (configure.ac): Likewise.
45839         Reported by Simon Josefsson.
45840
45841 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45842
45843         * tests/test-glob.c: Include string.h for strcmp prototype.
45844
45845 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45846
45847         * modules/getdelim (Depends-on): Add explicit stdint, although it
45848         was implicitly already pulled in via realloc-posix.
45849         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
45850
45851 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45852
45853         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
45854         G. Christensen" <tgc@jupiterrise.com>.
45855         * m4/sys_socket_h.m4: Check for sa_family_t.
45856         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
45857         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
45858         * tests/test-sys_socket.c: Check that sa_family_t works.
45859
45860 2009-05-18  Eric Blake  <ebb9@byu.net>
45861
45862         maint.mk: allow gnulib_dir in VPATH build
45863         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
45864
45865 2009-05-15  Jim Meyering  <meyering@redhat.com>
45866
45867         maint.mk: Give gnulib_dir a default definition.
45868         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
45869         Thus, most packages no longer need to specify this variable in cfg.mk
45870
45871 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
45872
45873         rename.m4: fix typos that would make non-mingw cross-configure fail
45874         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
45875
45876 2009-05-13  Eric Blake  <ebb9@byu.net>
45877
45878         mmap-anon: avoid out-of-order autoconf expansion
45879         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
45880         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
45881         * modules/memchr-tests (Depends-on): Add extensions.
45882         * modules/memchr2-tests (Depends-on): Add extensions.
45883         * modules/memcmp-tests (Depends-on): Add extensions.
45884         * modules/memmem-tests (Depends-on): Add extensions.
45885         * modules/memrchr-tests (Depends-on): Add extensions.
45886
45887 2009-05-13  Bruno Haible  <bruno@clisp.org>
45888
45889         Make some tests ISO C 99 compliant.
45890         * tests/zerosize-ptr.h: New file.
45891         * tests/test-memchr.c: Include zerosize-ptr.h.
45892         (main): Use a zero-size object pointer instead of NULL.
45893         * tests/test-memchr2.c: Include zerosize-ptr.h.
45894         (main): Use a zero-size object pointer instead of NULL.
45895         * tests/test-memcmp.c: Include zerosize-ptr.h.
45896         (main): Use a zero-size object pointer instead of NULL.
45897         * tests/test-memmem.c: Include zerosize-ptr.h.
45898         (main): Use a zero-size object pointer instead of NULL.
45899         * tests/test-memrchr.c: Include zerosize-ptr.h.
45900         (main): Use a zero-size object pointer instead of NULL.
45901         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
45902         m4/mmap-anon.m4.
45903         (Depends-on): Add getpagesize.
45904         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45905         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
45906         m4/mmap-anon.m4.
45907         (Depends-on): Add getpagesize.
45908         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45909         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
45910         m4/mmap-anon.m4.
45911         (Depends-on): Add getpagesize.
45912         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45913         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
45914         m4/mmap-anon.m4.
45915         (Depends-on): Add getpagesize.
45916         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45917         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
45918         m4/mmap-anon.m4.
45919         (Depends-on): Add getpagesize.
45920         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45921
45922 2009-05-12  Bruno Haible  <bruno@clisp.org>
45923
45924         Tests for module 'alignof'.
45925         * modules/alignof-tests: New file.
45926         * tests/test-alignof.c: New file.
45927
45928 2009-05-12  Bruno Haible  <bruno@clisp.org>
45929
45930         Fix alignof macro.
45931         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
45932         vendor compilers that are always correct.
45933
45934 2009-05-12  Bruno Haible  <bruno@clisp.org>
45935
45936         Make the MAP_ANONYMOUS detection work on HP-UX 11.
45937         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
45938         not whether its fully works.
45939
45940 2009-05-12  Bruno Haible  <bruno@clisp.org>
45941
45942         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
45943
45944 2009-05-12  Jim Meyering  <meyering@redhat.com>
45945
45946         * top/maint.mk: Adjust backslash alignment.
45947
45948 2009-05-11  Simon Josefsson  <simon@josefsson.org>
45949
45950         * top/maint.mk: Make $(srcdir)/build-aux configurable.
45951
45952 2009-05-11  Eric Blake  <ebb9@byu.net>
45953
45954         argp: avoid undefined behavior
45955         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
45956         macros.
45957
45958 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45959
45960         * tests/test-vc-list-files-git.sh: Do git config of user.email and
45961         user.name to prevent git commit from complaining.
45962
45963 2009-05-10  Bruno Haible  <bruno@clisp.org>
45964
45965         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
45966         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
45967         it rewrites every file name only once.
45968         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
45969
45970 2009-05-08  Bruno Haible  <bruno@clisp.org>
45971
45972         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
45973         instead of 'max'.
45974
45975 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45976
45977         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
45978         sockaddr_storage test.
45979
45980 2009-05-07  Simon Josefsson  <simon@josefsson.org>
45981
45982         * modules/sys_socket (Makefile.am): Substitute
45983         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
45984         * m4/sys_socket_h.m4: Check for sockaddr_storage.
45985         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
45986         * tests/test-sys_socket.c: Check sockaddr_storage.
45987
45988 2009-05-08  Bruno Haible  <bruno@clisp.org>
45989
45990         New module 'alignof'.
45991         * lib/alignof.h: New file.
45992         * modules/alignof: New file.
45993
45994 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45995             Bruno Haible  <bruno@clisp.org>
45996
45997         Fix test-file-has-acl on FreeBSD.
45998         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
45999         mask is implicitly added.
46000         * tests/test-file-has-acl.c: Include <signal.h>.
46001         (main): Terminate the test after 5 seconds.
46002         * modules/acl-tests (configure.ac): Check for alarm function.
46003
46004 2009-05-04  Bruno Haible  <bruno@clisp.org>
46005
46006         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
46007         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
46008         * modules/errno (configure.ac): Drop AC_REQUIRE.
46009         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
46010         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
46011
46012 2009-05-04  Simon Josefsson  <simon@josefsson.org>
46013
46014         * modules/glob-tests: New module.
46015         * tests/test-glob.c: Add.
46016
46017 2009-05-04  Simon Josefsson  <simon@josefsson.org>
46018
46019         * modules/fnmatch-tests: New module.
46020         * tests/test-fnmatch.c: Add.
46021
46022 2009-05-04  Eric Blake  <ebb9@byu.net>
46023
46024         maint: make the new no-submodule-changes rule VPATH-safe
46025         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
46026
46027 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46028             Bruno Haible  <bruno@clisp.org>
46029
46030         acl: Fix infinite loop on FreeBSD.
46031         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
46032         of return value from acl_get_entry.
46033         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
46034         Likewise.
46035
46036 2009-05-03  Bruno Haible  <bruno@clisp.org>
46037
46038         * lib/acl-internal.h (acl_entries): Clarify return value.
46039         * lib/acl_entries.c (acl_entries): Likewise.
46040
46041 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46042
46043         Bug fix in acl module.
46044         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
46045
46046 2009-05-03  Bruno Haible  <bruno@clisp.org>
46047
46048         Create gperf-generated file in the source dir, not in the build dir.
46049         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
46050         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
46051         * modules/unicase/locale-language (unicase/locale-languages.h):
46052         Likewise.
46053         * modules/unicase/special-casing (unicase/special-casing-table.h):
46054         Likewise.
46055         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
46056         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
46057         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
46058         Reported by Ralf Wildenhues.
46059
46060 2009-05-03  Bruno Haible  <bruno@clisp.org>
46061
46062         * modules/fnmatch (Description, configure.ac): Taken from
46063         fnmatch-posix.
46064         * modules/fnmatch-posix: Turn into a symbolic reference to the
46065         'fnmatch' module, and deprecate.
46066         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
46067
46068 2009-05-03  Bruno Haible  <bruno@clisp.org>
46069
46070         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
46071         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
46072         Reported by Ralf Wildenhues.
46073
46074 2009-05-04  Simon Josefsson  <simon@josefsson.org>
46075
46076         * m4/fnmatch.m4: Fix fnmatch re-define.
46077
46078 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46079
46080         priv-set: new module and tests; adapt write-any-file
46081         * lib/priv-set.c: New file.
46082         * lib/priv-set.h: New file.
46083         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
46084         * lib/write-any-file.c: Simplify by using priv-set module.
46085         * m4/priv-set.m4: New file.
46086         * modules/priv-set: New file.
46087         * modules/unlinkdir: Add dependency on priv-set module.
46088         * modules/write-any-file: Likewise.
46089
46090         Tests for module 'priv-set'.
46091         * modules/priv-set-tests: New file.
46092         * tests/test-priv-set.c: New file.
46093
46094 2009-05-03  Jim Meyering  <meyering@redhat.com>
46095             Bruno Haible  <bruno@clisp.org>
46096
46097         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
46098         use the converted UTF-8 variant of the name instead.
46099
46100 2009-05-03  Jim Meyering  <meyering@redhat.com>
46101
46102         tests: tighten some getdate tests
46103         * tests/test-getdate.c (main): Tighten tests: require equality,
46104         not just greater than.  Set TZ envvar to UTC0.
46105
46106 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
46107
46108         getdate: correctly interpret "next monday" when run on a Monday
46109         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
46110         that e.g., "next tues" (when run on a tuesday) results in a date
46111         that is one week in the future, and not today's date.
46112         I.e., add a week when the wday is the same as the current one.
46113         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
46114         and earlier by Martin Bernreuther and Jan Minář.
46115         * tests/test-getdate.c (main): Check that "next DAY" is always in
46116         the future and that "last DAY" is always in the past.
46117
46118 2009-05-02  Jim Meyering  <meyering@redhat.com>
46119
46120         build: ensure that a release build fails when a submodule is unclean
46121         * top/maint.mk (no-submodule-changes): New rule.
46122         (alpha beta major): Depend on it.
46123
46124 2009-05-02  Bruno Haible  <bruno@clisp.org>
46125
46126         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
46127         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
46128         shell variable gl_fnmatch_required to detect which variant is
46129         requested.
46130         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
46131         gl_FUNC_FNMATCH_POSIX.
46132         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
46133         exclude fnmatch-posix.
46134
46135 2009-05-02  Bruno Haible  <bruno@clisp.org>
46136
46137         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
46138         * modules/mbsrtowcs (License): Change to LGPLv2+.
46139         * modules/strnlen1 (License): Likewise.
46140         Reported by Simon Josefsson.
46141
46142 2009-05-02  Bruno Haible  <bruno@clisp.org>
46143
46144         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
46145         "cross".
46146         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
46147         gnulib-tool was called with option --source-base=lib.
46148
46149 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46150
46151         Use automake *-local hooks without commands, for extensibility.
46152         * modules/localcharset (Makefile.am): Rename install-exec-local
46153         rule to install-exec-localcharset, and make it a prerequisite of
46154         install-exec-local.  Likewise, rename the uninstall-local rule to
46155         uninstall-localcharset, and make it a prerequisite of the former.
46156
46157 2009-05-01  Bruno Haible  <bruno@clisp.org>
46158
46159         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
46160         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
46161         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
46162         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
46163         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
46164         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
46165         m4/locale-zh.m4, m4/codeset.m4.
46166
46167         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
46168         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
46169         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
46170         m4/locale-zh.m4.
46171
46172         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
46173         REPLACE_WCRTOMB if mbstate_t must be replaced.
46174         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
46175         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
46176
46177 2009-05-01  Bruno Haible  <bruno@clisp.org>
46178
46179         Avoid compiler warnings when redefining macros defined by <libintl.h>.
46180         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
46181         dngettext, dcngettext, textdomain, bindtextdomain,
46182         bind_textdomain_codeset): Undefine before redefining.
46183
46184 2009-04-30  Bruno Haible  <bruno@clisp.org>
46185
46186         Fix bug introduced on 2009-04-25.
46187         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
46188         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
46189         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
46190         is defined.
46191         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
46192         is defined.
46193         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
46194         is defined.
46195         Reported by Elbert_Pol <elbert.pol@gmail.com>.
46196
46197 2009-04-28  Bruno Haible  <bruno@clisp.org>
46198
46199         Comment tweaks.
46200         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
46201         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
46202         * lib/unicase.h (u*_casexfrm): Likewise.
46203         Reported by Paolo Bonzini.
46204
46205 2009-04-28  Bruno Haible  <bruno@clisp.org>
46206
46207         Fix a compilation error.
46208         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
46209         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46210         Reported by Jim Meyering.
46211
46212 2009-04-27  Bruno Haible  <bruno@clisp.org>
46213
46214         New module 'libunistring'.
46215         * modules/libunistring: New file.
46216         * m4/libunistring.m4: New file.
46217         * MODULES.html.sh (Unicode string functions): Add it.
46218
46219 2009-04-27  Eric Blake  <ebb9@byu.net>
46220
46221         maint.mk: allow package-specific header to provide <config.h>
46222         * top/maint.mk (sc_require_config_h): New variable.
46223         (sc_require_config_h, sc_require_config_h_first): Use it.
46224
46225 2009-04-27  Simon Josefsson  <simon@josefsson.org>
46226
46227         * top/maint.mk (sc_avoid_if_before_free): Except
46228         useless-if-before-free script.
46229
46230 2009-04-27  Eric Blake  <ebb9@byu.net>
46231
46232         maintainer-makefile: depend on all required helper scripts
46233         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
46234         useless-if-before-free.
46235         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
46236         version, rather than assuming gnulib checkout is available.
46237         Reported by Simen Josefsson.
46238
46239 2009-04-26  Bruno Haible  <bruno@clisp.org>
46240
46241         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
46242         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
46243         "../" or "..".
46244
46245 2009-04-26  Bruno Haible  <bruno@clisp.org>
46246
46247         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
46248         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
46249         AC_LIB_HAVE_LINKFLAGS.
46250
46251 2009-04-26  Bruno Haible  <bruno@clisp.org>
46252
46253         Simplify calling convention of u*_conv_from_encoding.
46254         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
46255         u32_conv_from_encoding): Expect a resultbuf argument and return the
46256         result directly as a pointer.
46257         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
46258         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
46259         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
46260         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
46261         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
46262         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
46263         Update.
46264         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
46265         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
46266         * lib/vasnprintf.c (VASNPRINTF): Update.
46267         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
46268         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
46269         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
46270         * NEWS: Mention the change.
46271
46272 2009-04-26  Bruno Haible  <bruno@clisp.org>
46273
46274         Simplify calling convention of u*_conv_to_encoding.
46275         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
46276         u32_conv_to_encoding): Expect a resultbuf argument and return the
46277         result directly as a pointer.
46278         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
46279         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
46280         freeing scaled_offsets if mem_iconveha failed.
46281         * lib/unicase/u-casexfrm.h (FUNC): Update.
46282         * lib/uninorm/u-normxfrm.h (FUNC): Update.
46283         * lib/vasnprintf.c (VASNPRINTF): Update.
46284         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
46285         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
46286         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
46287         * NEWS: Mention the change.
46288
46289 2009-04-26  Bruno Haible  <bruno@clisp.org>
46290
46291         Avoid test failures on AIX and OSF/1.
46292         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
46293         malloc(0).
46294         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
46295         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
46296         Likewise.
46297         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
46298         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
46299         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
46300         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
46301         * doc/posix-functions/malloc.texi: Document the portability problem
46302         related to malloc(0).
46303
46304 2009-04-26  Bruno Haible  <bruno@clisp.org>
46305
46306         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
46307         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
46308         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
46309
46310 2009-04-25  Bruno Haible  <bruno@clisp.org>
46311
46312         Avoid link error when creating a namespace clean library.
46313         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
46314         as macro with arguments if already defined as an alias.
46315         * lib/signbitf.c (gl_signbitf): Don't undefine.
46316         * lib/signbitd.c (gl_signbitd): Don't undefine.
46317         * lib/signbitl.c (gl_signbitl): Don't undefine.
46318
46319 2009-04-25  Jim Meyering  <meyering@redhat.com>
46320
46321         vc-list-files: fix another quoting bug
46322         * build-aux/vc-list-files: Avoid sed backslash expansion
46323         of pathological directory names.
46324
46325 2009-04-25  Eric Blake  <ebb9@byu.net>
46326
46327         vc-list-files: fix shell quoting error
46328         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
46329         timestamp.
46330
46331 2009-04-25  Jim Meyering  <meyering@redhat.com>
46332
46333         vc-list-files: restore lost functionality with subdir argument
46334         * build-aux/vc-list-files: When given a non-"." sub-directory
46335         argument, substitute the $dir/ prefix back onto each resulting name.
46336         Otherwise, coreutils' root_tests check would fail.
46337
46338 2009-04-24  Eric Blake  <ebb9@byu.net>
46339
46340         vc-list-files: ignore git symlinks
46341         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
46342         than ls-files, to ignore git symlinks.
46343
46344         maint.mk: import improvements from m4
46345         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
46346         (move_if_change): Delete unused macro.
46347         (news-date-check, vc-diff-check): Support VPATH builds.
46348         (announcement): Likewise.  Split --bootstrap-tools list...
46349         (boostrap-tools): ...into separate list, which can be overridden
46350         in cfg.mk.
46351         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
46352         requiring dependency on useless-if-before-free module.
46353         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
46354         Support VPATH builds.
46355
46356 2009-04-24  Jim Meyering  <meyering@redhat.com>
46357
46358         maint.mk: remove coreutils-specific rules and variables
46359         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
46360         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
46361         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
46362
46363         maint.mk: remove obsolete rule
46364         * top/maint.mk (rel-check): Remove rule.
46365         (WGET, WGETFLAGS): Remove now-unused variables.
46366
46367 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46368
46369         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
46370         consistency.
46371
46372         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
46373         '$(PATH_SEPARATOR)' instead of ':'.
46374
46375 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46376
46377         * lib/getopt1.c (main): Use 'const' for static array.
46378
46379 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46380
46381         * top/maint.mk: Sync with coreutils.
46382         * NEWS: Explain incompatibilities.
46383
46384 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46385             Bruno Haible  <bruno@clisp.org>
46386
46387         Fix cross-compilation results.
46388         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
46389         statement, as third argument of AC_TRY_RUN.
46390         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
46391         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
46392         Likewise.
46393         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46394         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
46395         Likewise.
46396         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
46397         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
46398         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
46399
46400 2009-04-20  Bruno Haible  <bruno@clisp.org>
46401
46402         Avoid test failure on mingw.
46403         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
46404
46405 2009-04-20  Bruno Haible  <bruno@clisp.org>
46406
46407         Avoid compilation error on mingw.
46408         * modules/localename-tests (Depends-on): Add locale.
46409
46410 2009-04-19  Bruno Haible  <bruno@clisp.org>
46411
46412         Support for building a shared library on Windows platforms.
46413         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
46414         (main): Test the presence of UNINORM_NFC here.
46415         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
46416         (main): Test the presence of UNINORM_NFD here.
46417         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
46418         (main): Test the presence of UNINORM_NFKC here.
46419         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
46420         (main): Test the presence of UNINORM_NFKD here.
46421
46422 2009-04-19  Bruno Haible  <bruno@clisp.org>
46423
46424         Avoid a compiler warning.
46425         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
46426         Change type of variable 'sequence'.
46427
46428 2009-04-19  Bruno Haible  <bruno@clisp.org>
46429
46430         * modules/configmake (Makefile.am): When the contents of configmake.h
46431         does not change, arrange to preserve its modification time.
46432
46433 2009-04-17  Simon Josefsson  <simon@josefsson.org>
46434
46435         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
46436         gettext domain.
46437
46438 2009-04-16  Jim Meyering  <meyering@redhat.com>
46439
46440         useless-if-before-free: improve conversion code
46441         * build-aux/useless-if-before-free: Adjust code-in-comment to match
46442         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
46443
46444 2009-04-14  Bruno Haible  <bruno@clisp.org>
46445
46446         * modules/fcntl (Depends-on): Add extensions.
46447         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
46448
46449 2009-04-12  Ben Pfaff  <blp@gnu.org>
46450
46451         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
46452         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
46453
46454 2009-03-20  Ben Pfaff  <blp@gnu.org>
46455
46456         Make rename replace existing destinations on Windows.
46457         * m4/rename.m4: Add test for Mingw.
46458         * lib/rename.c: Add rename replacement that uses MoveFileEx with
46459         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
46460         * doc/posix-functions/rename.texi: Document.
46461
46462 2009-04-10  Bruno Haible  <bruno@clisp.org>
46463
46464         New include file "iconveh.h".
46465         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
46466         * lib/striconveh.h: Include it.
46467         (enum iconv_ilseq_handler): Remove definition.
46468         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
46469         striconveh.h.
46470         * lib/striconveha.c: Include striconveh.h.
46471         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
46472         * modules/striconveh (Files): Add lib/iconveh.h.
46473         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
46474         lib/striconveh.h.
46475
46476 2009-04-10  Bruno Haible  <bruno@clisp.org>
46477
46478         * lib/uniconv.h: Update comment.
46479
46480 2009-04-10  Bruno Haible  <bruno@clisp.org>
46481
46482         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
46483         always.
46484         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46485         * lib/unistr/u16-mbtouc-aux.c: Likewise.
46486         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
46487         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
46488         "unistring-notinline.h", so that the function gets defined always.
46489         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46490         * lib/unistr/u8-uctomb.c: Likewise.
46491         * lib/unistr/u16-mbtouc.c: Likewise.
46492         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46493         * lib/unistr/u16-uctomb.c: Likewise.
46494         * lib/unistr/u32-mbtouc.c: Likewise.
46495         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
46496         * lib/unistr/u32-uctomb.c: Likewise.
46497
46498 2009-04-10  Bruno Haible  <bruno@clisp.org>
46499
46500         Mark 'utime' obsolete.
46501         * modules/utime (Status, Notice): New sections.
46502         Suggested by Jim Meyering.
46503
46504         Fix cross-compile guess for utime test.
46505         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
46506         autoconf.
46507         * doc/posix-functions/utime.texi: Give more precisions.
46508         Reported by Jan <ipif@ymail.com>.
46509
46510 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
46511
46512         filevercmp: correct today's change
46513         * lib/filevercmp.c: Also handle coreutils' test inputs.
46514         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
46515
46516         Fix regression in 'filevercmp' module. Thanks Sven Joachim
46517         for reporting it.
46518         * lib/filevercmp.c: Special handle for "", "." and "..".
46519         * tests/test-filevercmp.c: Enlarge the set suite.
46520
46521 2009-04-07  Jim Meyering  <meyering@redhat.com>
46522
46523         useless-if-before-free: show how to remove braced useless free, too
46524         * build-aux/useless-if-before-free: still only in a comment, though.
46525
46526 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
46527
46528         maint.mk: import changes to syntax-check macros from coreutils
46529         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
46530         Use them in the relevant macros.
46531
46532 2009-04-06  Bruno Haible  <bruno@clisp.org>
46533
46534         Fix unportable use of bit-fields.
46535         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
46536         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
46537         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
46538
46539 2009-04-06  Bruno Haible  <bruno@clisp.org>
46540
46541         Avoid test failures on AIX and OSF/1.
46542         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
46543         that malloc(0) = NULL.
46544         * tests/unicase/test-u8-tolower.c (check): Likewise.
46545         * tests/unicase/test-u8-totitle.c (check): Likewise.
46546         * tests/unicase/test-u8-toupper.c (check): Likewise.
46547         * tests/unicase/test-u16-casefold.c (check): Likewise.
46548         * tests/unicase/test-u16-tolower.c (check): Likewise.
46549         * tests/unicase/test-u16-totitle.c (check): Likewise.
46550         * tests/unicase/test-u16-toupper.c (check): Likewise.
46551         * tests/unicase/test-u32-casefold.c (check): Likewise.
46552         * tests/unicase/test-u32-tolower.c (check): Likewise.
46553         * tests/unicase/test-u32-totitle.c (check): Likewise.
46554         * tests/unicase/test-u32-toupper.c (check): Likewise.
46555         * tests/uninorm/test-u8-nfc.c (check): Likewise.
46556         * tests/uninorm/test-u8-nfd.c (check): Likewise.
46557         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
46558         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
46559         * tests/uninorm/test-u16-nfc.c (check): Likewise.
46560         * tests/uninorm/test-u16-nfd.c (check): Likewise.
46561         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
46562         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
46563         * tests/uninorm/test-u32-nfc.c (check): Likewise.
46564         * tests/uninorm/test-u32-nfd.c (check): Likewise.
46565         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
46566         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
46567
46568 2009-04-05  Bruno Haible  <bruno@clisp.org>
46569
46570         Work around an autoconf limitation.
46571         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
46572         comment line if it would be longer than 3 KB.
46573
46574 2009-04-05  Bruno Haible  <bruno@clisp.org>
46575
46576         Avoid test failure with libiconv-1.13.
46577         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
46578         of the expected test results.
46579
46580 2009-04-05  Bruno Haible  <bruno@clisp.org>
46581
46582         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
46583         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
46584         that it should be installed.
46585
46586 2009-04-05  Bruno Haible  <bruno@clisp.org>
46587
46588         * gnulib-tool: New option --copy-file.
46589         (func_usage): Document it.
46590         (func_dest_tmpfilename): Moved out of func_import.
46591         (func_add_file, func_update_file): New functions, extracted from
46592         func_import.
46593         (func_import): Update.
46594
46595 2009-04-05  Karl Berry  <karl@gnu.org>
46596
46597         * README: prominently mention gnulib-tool.
46598         Rearrange sections so getting the code is near the top.
46599
46600 2009-04-05  Bruno Haible  <bruno@clisp.org>
46601
46602         * lib/unicase.h: Mention u*_cmp2.
46603         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
46604         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
46605         * lib/unicase/ulc-casecmp.c: Likewise.
46606         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
46607         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
46608         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
46609         unistr/u8-cmp.
46610         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
46611         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
46612         unistr/u16-cmp.
46613         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
46614         unistr/u32-cmp.
46615
46616         * lib/uninorm.h: Mention u*_cmp2.
46617         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
46618         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
46619         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
46620         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
46621         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
46622         unistr/u8-cmp.
46623         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
46624         unistr/u16-cmp.
46625         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
46626         unistr/u32-cmp.
46627
46628         New module 'unistr/u32-cmp2'.
46629         * lib/unistr/u32-cmp2.c: New file.
46630         * modules/unistr/u32-cmp2: New file.
46631
46632         New module 'unistr/u16-cmp2'.
46633         * lib/unistr/u16-cmp2.c: New file.
46634         * modules/unistr/u16-cmp2: New file.
46635
46636         New module 'unistr/u8-cmp2'.
46637         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
46638         * lib/unistr/u8-cmp2.c: New file.
46639         * lib/unistr/u-cmp2.h: New file.
46640         * modules/unistr/u8-cmp2: New file.
46641
46642 2009-04-05  Bruno Haible  <bruno@clisp.org>
46643
46644         * lib/unictype.h (uc_property_is_valid): New macro.
46645         * tests/unictype/test-pr_byname.c (main): Use it.
46646
46647         * lib/unistr.h: Doc fixes.
46648         * lib/uniconv.h: Doc fixes.
46649         * lib/unictype.h: Doc fixes.
46650
46651 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
46652
46653         Port coreutils 7.2 to Solaris 8.
46654
46655         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
46656         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
46657         for Solaris 8.  This is a bit of a hack, as it means it's the
46658         caller's responsibility to add -lnsl if needed, but most likely it
46659         won't be needed since only getaddrinfo uses this and getaddrinfo
46660         isn't needed on Solaris 8.
46661
46662         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
46663         problem to Solaris 8 encountered with coreutils 7.2, which
46664         resulted in a message "fnmatch.c:292: warning: passing argument 4
46665         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
46666         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
46667
46668 2009-04-03  Simon Josefsson  <simon@josefsson.org>
46669
46670         * m4/ld-version-script.m4: Add FIXME comment.
46671
46672 2009-04-02  Simon Josefsson  <simon@josefsson.org>
46673
46674         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
46675         SOVERSION variable.
46676
46677 2009-04-02  Bruno Haible  <bruno@clisp.org>
46678
46679         * Makefile (info, html, dvi, pdf): Combine the rules.
46680         Suggested by Jim Meyering.
46681
46682 2009-04-01  Bruno Haible  <bruno@clisp.org>
46683
46684         * Makefile (info, html, dvi, pdf): New targets.
46685         Reported by Reuben Thomas <rrt@sc3d.org>.
46686
46687 2009-04-01  Bruno Haible  <bruno@clisp.org>
46688
46689         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
46690         can be put into PATH.
46691         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
46692
46693 2009-04-01  Bruno Haible  <bruno@clisp.org>
46694
46695         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
46696
46697 2009-04-01  Bruno Haible  <bruno@clisp.org>
46698
46699         Rename module 'visibility'.
46700         * modules/lib-symbol-visibility: Renamed from modules/visibility.
46701         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
46702         * doc/gnulib.texi: Update.
46703         * MODULES.html.sh (Misc): Update.
46704         * NEWS: Mention the change.
46705
46706 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46707
46708         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
46709         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
46710         Eric Blake <ebb9@byu.net> for review.
46711         * MODULES.html.sh: Add lib-msvc-compat.
46712         * doc/gnulib.texi: Link to new section.
46713         * m4/ld-output-def.m4: New file.
46714         * doc/ld-output-def.texi: New file.
46715
46716 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46717
46718         Rename ld-version-script to lib-symbol-versions.  Suggested by
46719         Bruno Haible <bruno@clisp.org>.
46720         * modules/ld-version-script: Renamed to lib-symbol-versions.
46721         * doc/ld-version-script.texi: Fix module name.
46722         * MODULES.html.sh: Add lib-symbol-versions.
46723
46724 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46725
46726         * modules/u64-tests: New file.
46727         * tests/test-u64.c: New file.
46728
46729 2009-03-04  Simon Josefsson  <simon@josefsson.org>
46730
46731         * MODULES.html.sh: Mention u64.
46732         * modules/u64: New module.
46733         * modules/crypto/sha512: Depend on u64 module instead of providing
46734         u64.h.
46735
46736 2009-03-27  Eric Blake  <ebb9@byu.net>
46737
46738         test-strerror: make debugging EAI_SYSTEM easier
46739         * modules/getaddrinfo-tests (Depends-on): Add strerror.
46740         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
46741         failure was EAI_SYSTEM.
46742
46743 2009-03-25  Bruno Haible  <bruno@clisp.org>
46744
46745         Fix a problem with --enable-relocatable on Solaris 7.
46746         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
46747         since 2008-02-24.
46748
46749 2009-03-25  Eric Blake  <ebb9@byu.net>
46750
46751         test-sockets: avoid gcc warning
46752         * tests/test-sockets.c (main): Silence compiler warning.
46753
46754 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
46755
46756         New modules nproc, pthread, contributed by Glen Lenker.
46757
46758         * MODULES.html.sh: Add pthread, nproc.
46759         * lib/nproc.c: New file.
46760         * lib/nproc.h: New file.
46761         * lib/pthread.in.h: New file.
46762         * m4/pthread.m4: New file.
46763         * modules/nproc: New file.
46764         * modules/pthread: New file.
46765
46766 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46767
46768         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
46769         New variable.
46770
46771 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
46772
46773         filevercmp: handle simple~ and numbered.~3~ backup suffixes
46774         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
46775         * tests/test-filevercmp.c: Add tests for backup suffixes.
46776
46777 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46778
46779         * modules/stdlib (Depends-on): Add stdint, needed when defining
46780         struct random_data on, for example, HP-UX 10.20.  Reported by
46781         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46782
46783 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46784
46785         * lib/readline.c (readline): Call fflush on stdout after printing
46786         prompt.
46787
46788 2009-03-20  Bruno Haible  <bruno@clisp.org>
46789
46790         Remove dependency from 'close' module to -lws2_32 on native Windows.
46791         * lib/close-hook.h: New file.
46792         * lib/close-hook.c: New file.
46793         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
46794         w32sock.h.
46795         (_gl_close_fd_maybe_socket): Remove function.
46796         (rpl_close): Invoke execute_all_close_hooks instead of
46797         _gl_close_fd_maybe_socket.
46798         * lib/sockets.c: Include close-hook.h, w32sock.h.
46799         (close_fd_maybe_socket): New function, essentially from lib/close.c.
46800         (close_sockets_hook): New variable.
46801         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
46802         (gl_sockets_cleanup): Unregister it.
46803         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
46804         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
46805         * modules/close-hook: New file.
46806         * modules/close (Files): Remove lib/w32sock.h.
46807         (Depends-on): Add close-hook.
46808         (Link): Remove section.
46809         * modules/sockets (Files): Add lib/w32sock.h.
46810         (Depends-on): Add close-hook.
46811         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
46812         invocation.
46813         * NEWS: Mention that LIB_CLOSE is gone.
46814
46815 2009-03-23  Eric Blake  <ebb9@byu.net>
46816
46817         signal-tests: test previous patch
46818         * tests/test-signal.c: New file.
46819         * modules/signal-tests: Likewise.
46820
46821         signal.h: always support 'volatile sig_atomic_t'
46822         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
46823         (gl_SIGNAL_H_DEFAULTS): Add a default.
46824         * modules/signal (Makefile.am): Substitute if needed.
46825         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
46826         users can blindly add volatile.
46827         * doc/posix-headers/signal.texi (signal.h): Document it.
46828         Reported by Matthew Woehlke.
46829
46830 2009-03-23  Jim Meyering  <meyering@redhat.com>
46831
46832         pathmax: PATH_MAX: use pathconf only when available
46833         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
46834         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
46835         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
46836         This avoids a link failure in a PSP cross-compilation environment
46837         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
46838
46839         * lib/vasnprintf.c (divide): Fix typo in comment.
46840
46841 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46842
46843         * gnulib-tool (func_filter_filelist): Fix comment.
46844
46845 2009-03-20  Bruno Haible  <bruno@clisp.org>
46846
46847         Make sockets.h self-contained.
46848         * lib/sockets.c: Include sockets.h first.
46849         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
46850
46851 2009-03-19  Eric Blake  <ebb9@byu.net>
46852
46853         doc: mention more functions added in cygwin 1.7.0
46854         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
46855         addition.
46856         * doc/posix-functions/log2f.texi: Likewise.
46857
46858 2009-03-19  Jim Meyering  <meyering@redhat.com>
46859
46860         fsusage: avoid syntax error due to statement-before-declaration
46861         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
46862         after all declarations.  Reported by Matthew Woehlke in
46863         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
46864
46865 2009-03-18  Eric Blake  <ebb9@byu.net>
46866
46867         build-aux/compile: sync from automake
46868         * build-aux/compile: New file, from automake.
46869         * config/srclist.txt: Mention build-aux/compile.
46870
46871 2009-03-17  Bruno Haible  <bruno@clisp.org>
46872
46873         * lib/git-merge-changelog.c: Fix typo in comment.
46874         Reported by Reuben Thomas <rrt@sc3d.org>.
46875
46876 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
46877
46878         * m4/regex.m4: update and improve help for
46879         --without-included-regex.
46880
46881 2009-03-17  Simon Josefsson  <simon@josefsson.org>
46882
46883         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
46884         failure on missing include files.
46885
46886 2009-03-17  Eric Blake  <ebb9@byu.net>
46887
46888         doc: mention more functions added in cygwin 1.7.0
46889         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
46890         addition.
46891         * doc/posix-functions/fwscanf.texi: Likewise.
46892         * doc/posix-functions/swprintf.texi: Likewise.
46893         * doc/posix-functions/swscanf.texi: Likewise.
46894         * doc/posix-functions/vfwprintf.texi: Likewise.
46895         * doc/posix-functions/vfwscanf.texi: Likewise.
46896         * doc/posix-functions/vswprintf.texi: Likewise.
46897         * doc/posix-functions/vswscanf.texi: Likewise.
46898         * doc/posix-functions/vwprintf.texi: Likewise.
46899         * doc/posix-functions/vwscanf.texi: Likewise.
46900         * doc/posix-functions/wcscasecmp.texi: Likewise.
46901         * doc/posix-functions/wcsdup.texi: Likewise.
46902         * doc/posix-functions/wcsftime.texi: Likewise.
46903         * doc/posix-functions/wcsncasecmp.texi: Likewise.
46904         * doc/posix-functions/wprintf.texi: Likewise.
46905         * doc/posix-functions/wscanf.texi: Likewise.
46906         * doc/glibc-functions/gethostbyname2.texi: Likewise.
46907
46908 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46909
46910         maint.mk: really add $(AM_MAKEFLAGS)
46911         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
46912         was inadvertently omitted in the last commit.
46913         Spotted by Bruno Haible.
46914
46915         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
46916         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
46917         $(AM_MAKEFLAGS)' rather than plain `make'.
46918
46919         gnulib-tool: execute $MAKE not make
46920         * gnulib-tool: Default $MAKE to 'make'.
46921         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
46922         than make.  Initialize $MAKE in the do-autobuild script.
46923
46924         gnulib-tool: use $MAKE not make in generated files
46925         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
46926         make, in generated files.  Initialize $MAKE in the do-autobuild
46927         script.
46928
46929         * top/GNUmakefile (_have-git-version-gen): Fix typo.
46930
46931         GNUmakefile: disable parallelism only for multiple, recursive targets
46932         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
46933         additions in the Makefile.
46934         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
46935         by Automake.
46936         (.NOTPARALLEL): Only disable parallel builds if multiple targets
46937         are listed on the command line and at least one of them is
46938         listed in $(ALL_RECURSIVE_TARGETS).
46939
46940 2009-03-14  Bruno Haible  <bruno@clisp.org>
46941
46942         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
46943         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
46944         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
46945         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
46946         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
46947         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
46948         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
46949         unistr/u8-uctomb.
46950         * modules/unistr/u8-strchr (Depends-on): Likewise.
46951         * modules/unistr/u8-strrchr (Depends-on): Likewise.
46952         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
46953         unistr/u16-uctomb.
46954         * modules/unistr/u16-strchr (Depends-on): Likewise.
46955         * modules/unistr/u16-strrchr (Depends-on): Likewise.
46956
46957 2009-03-12  Bruno Haible  <bruno@clisp.org>
46958
46959         Work around select() bug on Interix 3.5.
46960         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
46961         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
46962         * m4/select.m4: New file.
46963         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
46964         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
46965         * modules/select (Files): Add m4/select.m4.
46966         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
46967         * modules/nanosleep (Depends-on): Add select.
46968         * modules/poll (Depends-on): Likewise.
46969         * doc/posix-functions/select.texi: Mention the Interix bug.
46970         Reported by Markus Duft <mduft@gentoo.org>.
46971
46972         * lib/select.c: Renamed from lib/winsock-select.c.
46973         * modules/select (Files): Add lib/select.c, remove
46974         lib/winsock-select.c.
46975         (configure.ac): Update.
46976
46977 2009-03-12  Jim Meyering  <meyering@redhat.com>
46978
46979         avoid gcc warnings about unused macro definitions
46980         * lib/readtokens.c (STREQ): Remove unused definition.
46981         * lib/xmalloc.c (SIZE_MAX): Likewise.
46982         * lib/openat-die.c (N_): Likewise.
46983         * lib/mountlist.c (SIZE_MAX): Remove definition.
46984         Instead, include <stdint.h>.
46985         * lib/readutmp.c: Likewise.
46986         * modules/readutmp (Depends-on): Add stdint.
46987         * modules/mountlist (Depends-on): Add stdint.
46988         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
46989
46990 2009-03-10  Bruno Haible  <bruno@clisp.org>
46991
46992         Tests for module 'mbmemcasecoll'.
46993         * modules/mbmemcasecoll-tests: New file.
46994         * tests/test-mbmemcasecoll1.sh: New file.
46995         * tests/test-mbmemcasecoll2.sh: New file.
46996         * tests/test-mbmemcasecoll3.sh: New file.
46997         * tests/test-mbmemcasecoll.c: New file.
46998
46999         New module 'mbmemcasecoll'.
47000         * lib/mbmemcasecoll.h: New file.
47001         * lib/mbmemcasecoll.c: New file.
47002         * modules/mbmemcasecoll: New file.
47003
47004         * tests/test-mbmemcasecmp.h: New file, extracted from
47005         tests/test-mbmemcasecmp.c.
47006         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
47007         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
47008         (main): Update.
47009         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
47010
47011 2009-03-09  Bruno Haible  <bruno@clisp.org>
47012
47013         Tests for module 'mbmemcasecmp'.
47014         * modules/mbmemcasecmp-tests: New file.
47015         * tests/test-mbmemcasecmp1.sh: New file.
47016         * tests/test-mbmemcasecmp2.sh: New file.
47017         * tests/test-mbmemcasecmp3.sh: New file.
47018         * tests/test-mbmemcasecmp.c: New file.
47019
47020         New module 'mbmemcasecmp'.
47021         * lib/mbmemcasecmp.h: New file.
47022         * lib/mbmemcasecmp.c: New file.
47023         * modules/mbmemcasecmp: New file.
47024
47025 2009-03-09  Bruno Haible  <bruno@clisp.org>
47026
47027         Tests for module 'unicase/ulc-casecoll'.
47028         * modules/unicase/ulc-casecoll-tests: New file.
47029         * tests/unicase/test-ulc-casecoll1.sh: New file.
47030         * tests/unicase/test-ulc-casecoll2.sh: New file.
47031         * tests/unicase/test-ulc-casecoll.c: New file.
47032
47033         New module 'unicase/ulc-casecoll'.
47034         * lib/unicase.h (ulc_casecoll): New declaration.
47035         * lib/unicase/ulc-casecoll.c: New file.
47036         * modules/unicase/ulc-casecoll: New file.
47037
47038         New module 'unicase/ulc-casexfrm'.
47039         * lib/unicase.h (ulc_casexfrm): New declaration.
47040         * lib/unicase/ulc-casexfrm.c: New file.
47041         * modules/unicase/ulc-casexfrm: New file.
47042
47043 2009-03-09  Bruno Haible  <bruno@clisp.org>
47044
47045         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
47046         invocations.
47047
47048         * m4/mbscasecmp.m4: Remove file.
47049         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
47050         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
47051
47052         * m4/mbscasestr.m4: Remove file.
47053         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
47054         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
47055
47056         * m4/mbschr.m4: Remove file.
47057         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
47058         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
47059
47060         * m4/mbscspn.m4: Remove file.
47061         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
47062         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
47063
47064         * m4/mbslen.m4: Remove file.
47065         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
47066         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
47067
47068         * m4/mbsncasecmp.m4: Remove file.
47069         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
47070         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
47071
47072         * m4/mbsnlen.m4: Remove file.
47073         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
47074         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
47075
47076         * m4/mbspbrk.m4: Remove file.
47077         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
47078         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
47079
47080         * m4/mbspcasecmp.m4: Remove file.
47081         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
47082         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
47083
47084         * m4/mbsrchr.m4: Remove file.
47085         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
47086         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
47087
47088         * m4/mbssep.m4: Remove file.
47089         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
47090         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
47091
47092         * m4/mbsspn.m4: Remove file.
47093         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
47094         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
47095
47096         * m4/mbsstr.m4: Remove file.
47097         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
47098         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
47099
47100         * m4/mbstok_r.m4: Remove file.
47101         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
47102         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
47103
47104         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
47105
47106         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
47107         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
47108
47109         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
47110
47111 2009-03-08  Bruno Haible  <bruno@clisp.org>
47112
47113         Tests for module 'unicase/ulc-casecmp'.
47114         * modules/unicase/ulc-casecmp-tests: New file.
47115         * tests/unicase/test-ulc-casecmp1.sh: New file.
47116         * tests/unicase/test-ulc-casecmp2.sh: New file.
47117         * tests/unicase/test-ulc-casecmp.c: New file.
47118
47119         New module 'unicase/ulc-casecmp'.
47120         * lib/unicase.h (ulc_casecmp): New declaration.
47121         * lib/unicase/ulc-casecmp.c: New file.
47122         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
47123         'const SRC_UNIT *'.
47124         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
47125         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
47126         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
47127         * modules/unicase/ulc-casecmp: New file.
47128
47129         Tests for module 'unicase/u32-is-cased'.
47130         * modules/unicase/u32-is-cased-tests: New file.
47131         * tests/unicase/test-u32-is-cased.c: New file.
47132
47133         Tests for module 'unicase/u16-is-cased'.
47134         * modules/unicase/u16-is-cased-tests: New file.
47135         * tests/unicase/test-u16-is-cased.c: New file.
47136
47137         Tests for module 'unicase/u8-is-cased'.
47138         * modules/unicase/u8-is-cased-tests: New file.
47139         * tests/unicase/test-u8-is-cased.c: New file.
47140         * tests/unicase/test-is-cased.h: New file.
47141
47142         New module 'unicase/u32-is-cased'.
47143         * lib/unicase/u32-is-cased.c: New file.
47144         * modules/unicase/u32-is-cased: New file.
47145
47146         New module 'unicase/u16-is-cased'.
47147         * lib/unicase/u16-is-cased.c: New file.
47148         * modules/unicase/u16-is-cased: New file.
47149
47150         New module 'unicase/u8-is-cased'.
47151         * lib/unicase/u8-is-cased.c: New file.
47152         * lib/unicase/u-is-cased.h: New file.
47153         * modules/unicase/u8-is-cased: New file.
47154
47155         Tests for module 'unicase/u32-is-casefolded'.
47156         * modules/unicase/u32-is-casefolded-tests: New file.
47157         * tests/unicase/test-u32-is-casefolded.c: New file.
47158
47159         Tests for module 'unicase/u16-is-casefolded'.
47160         * modules/unicase/u16-is-casefolded-tests: New file.
47161         * tests/unicase/test-u16-is-casefolded.c: New file.
47162
47163         Tests for module 'unicase/u8-is-casefolded'.
47164         * modules/unicase/u8-is-casefolded-tests: New file.
47165         * tests/unicase/test-u8-is-casefolded.c: New file.
47166         * tests/unicase/test-is-casefolded.h: New file.
47167
47168         New module 'unicase/u32-is-casefolded'.
47169         * lib/unicase/u32-is-casefolded.c: New file.
47170         * modules/unicase/u32-is-casefolded: New file.
47171
47172         New module 'unicase/u16-is-casefolded'.
47173         * lib/unicase/u16-is-casefolded.c: New file.
47174         * modules/unicase/u16-is-casefolded: New file.
47175
47176         New module 'unicase/u8-is-casefolded'.
47177         * lib/unicase/u8-is-casefolded.c: New file.
47178         * modules/unicase/u8-is-casefolded: New file.
47179
47180         Tests for module 'unicase/u32-is-titlecase'.
47181         * modules/unicase/u32-is-titlecase-tests: New file.
47182         * tests/unicase/test-u32-is-titlecase.c: New file.
47183
47184         Tests for module 'unicase/u16-is-titlecase'.
47185         * modules/unicase/u16-is-titlecase-tests: New file.
47186         * tests/unicase/test-u16-is-titlecase.c: New file.
47187
47188         Tests for module 'unicase/u8-is-titlecase'.
47189         * modules/unicase/u8-is-titlecase-tests: New file.
47190         * tests/unicase/test-u8-is-titlecase.c: New file.
47191         * tests/unicase/test-is-titlecase.h: New file.
47192
47193         New module 'unicase/u32-is-titlecase'.
47194         * lib/unicase/u32-is-titlecase.c: New file.
47195         * modules/unicase/u32-is-titlecase: New file.
47196
47197         New module 'unicase/u16-is-titlecase'.
47198         * lib/unicase/u16-is-titlecase.c: New file.
47199         * modules/unicase/u16-is-titlecase: New file.
47200
47201         New module 'unicase/u8-is-titlecase'.
47202         * lib/unicase/u8-is-titlecase.c: New file.
47203         * modules/unicase/u8-is-titlecase: New file.
47204
47205         Tests for module 'unicase/u32-is-lowercase'.
47206         * modules/unicase/u32-is-lowercase-tests: New file.
47207         * tests/unicase/test-u32-is-lowercase.c: New file.
47208
47209         Tests for module 'unicase/u16-is-lowercase'.
47210         * modules/unicase/u16-is-lowercase-tests: New file.
47211         * tests/unicase/test-u16-is-lowercase.c: New file.
47212
47213         Tests for module 'unicase/u8-is-lowercase'.
47214         * modules/unicase/u8-is-lowercase-tests: New file.
47215         * tests/unicase/test-u8-is-lowercase.c: New file.
47216         * tests/unicase/test-is-lowercase.h: New file.
47217
47218         New module 'unicase/u32-is-lowercase'.
47219         * lib/unicase/u32-is-lowercase.c: New file.
47220         * modules/unicase/u32-is-lowercase: New file.
47221
47222         New module 'unicase/u16-is-lowercase'.
47223         * lib/unicase/u16-is-lowercase.c: New file.
47224         * modules/unicase/u16-is-lowercase: New file.
47225
47226         New module 'unicase/u8-is-lowercase'.
47227         * lib/unicase/u8-is-lowercase.c: New file.
47228         * modules/unicase/u8-is-lowercase: New file.
47229
47230         Tests for module 'unicase/u32-is-uppercase'.
47231         * modules/unicase/u32-is-uppercase-tests: New file.
47232         * tests/unicase/test-u32-is-uppercase.c: New file.
47233
47234         Tests for module 'unicase/u16-is-uppercase'.
47235         * modules/unicase/u16-is-uppercase-tests: New file.
47236         * tests/unicase/test-u16-is-uppercase.c: New file.
47237
47238         Tests for module 'unicase/u8-is-uppercase'.
47239         * modules/unicase/u8-is-uppercase-tests: New file.
47240         * tests/unicase/test-u8-is-uppercase.c: New file.
47241         * tests/unicase/test-is-uppercase.h: New file.
47242
47243         New module 'unicase/u32-is-uppercase'.
47244         * lib/unicase/u32-is-uppercase.c: New file.
47245         * modules/unicase/u32-is-uppercase: New file.
47246
47247         New module 'unicase/u16-is-uppercase'.
47248         * lib/unicase/u16-is-uppercase.c: New file.
47249         * modules/unicase/u16-is-uppercase: New file.
47250
47251         New module 'unicase/u8-is-uppercase'.
47252         * lib/unicase/u8-is-uppercase.c: New file.
47253         * modules/unicase/u8-is-uppercase: New file.
47254
47255         New module 'unicase/u32-is-invariant'.
47256         * lib/unicase/u32-is-invariant.c: New file.
47257         * modules/unicase/u32-is-invariant: New file.
47258
47259         New module 'unicase/u16-is-invariant'.
47260         * lib/unicase/u16-is-invariant.c: New file.
47261         * modules/unicase/u16-is-invariant: New file.
47262
47263         New module 'unicase/u8-is-invariant'.
47264         * lib/unicase/u8-is-invariant.c: New file.
47265         * lib/unicase/invariant.h: New file.
47266         * lib/unicase/u-is-invariant.h: New file.
47267         * modules/unicase/u8-is-invariant: New file.
47268
47269         Tests for module 'unicase/u32-casecoll'.
47270         * modules/unicase/u32-casecoll-tests: New file.
47271         * tests/unicase/test-u32-casecoll.c: New file.
47272
47273         Tests for module 'unicase/u16-casecoll'.
47274         * modules/unicase/u16-casecoll-tests: New file.
47275         * tests/unicase/test-u16-casecoll.c: New file.
47276
47277         Tests for module 'unicase/u8-casecoll'.
47278         * modules/unicase/u8-casecoll-tests: New file.
47279         * tests/unicase/test-u8-casecoll.c: New file.
47280
47281         New module 'unicase/u32-casecoll'.
47282         * lib/unicase/u32-casecoll.c: New file.
47283         * modules/unicase/u32-casecoll: New file.
47284
47285         New module 'unicase/u16-casecoll'.
47286         * lib/unicase/u16-casecoll.c: New file.
47287         * modules/unicase/u16-casecoll: New file.
47288
47289         New module 'unicase/u8-casecoll'.
47290         * lib/unicase/u8-casecoll.c: New file.
47291         * lib/unicase/u-casecoll.h: New file.
47292         * modules/unicase/u8-casecoll: New file.
47293
47294         New module 'unicase/u32-casexfrm'.
47295         * lib/unicase/u32-casexfrm.c: New file.
47296         * modules/unicase/u32-casexfrm: New file.
47297
47298         New module 'unicase/u16-casexfrm'.
47299         * lib/unicase/u16-casexfrm.c: New file.
47300         * modules/unicase/u16-casexfrm: New file.
47301
47302         New module 'unicase/u8-casexfrm'.
47303         * lib/unicase/u8-casexfrm.c: New file.
47304         * lib/unicase/u-casexfrm.h: New file.
47305         * modules/unicase/u8-casexfrm: New file.
47306
47307         Tests for module 'unicase/u32-casecmp'.
47308         * modules/unicase/u32-casecmp-tests: New file.
47309         * tests/unicase/test-u32-casecmp.c: New file.
47310
47311         Tests for module 'unicase/u16-casecmp'.
47312         * modules/unicase/u16-casecmp-tests: New file.
47313         * tests/unicase/test-u16-casecmp.c: New file.
47314
47315         Tests for module 'unicase/u8-casecmp'.
47316         * modules/unicase/u8-casecmp-tests: New file.
47317         * tests/unicase/test-u8-casecmp.c: New file.
47318         * tests/unicase/test-casecmp.h: New file.
47319
47320         New module 'unicase/u32-casecmp'.
47321         * lib/unicase/u32-casecmp.c: New file.
47322         * modules/unicase/u32-casecmp: New file.
47323
47324         New module 'unicase/u16-casecmp'.
47325         * lib/unicase/u16-casecmp.c: New file.
47326         * modules/unicase/u16-casecmp: New file.
47327
47328         New module 'unicase/u8-casecmp'.
47329         * lib/unicase/u8-casecmp.c: New file.
47330         * lib/unicase/u-casecmp.h: New file.
47331         * modules/unicase/u8-casecmp: New file.
47332
47333         Tests for module 'unicase/u32-casefold'.
47334         * modules/unicase/u32-casefold-tests: New file.
47335         * tests/unicase/test-u32-casefold.c: New file.
47336
47337         Tests for module 'unicase/u16-casefold'.
47338         * modules/unicase/u16-casefold-tests: New file.
47339         * tests/unicase/test-u16-casefold.c: New file.
47340
47341         Tests for module 'unicase/u8-casefold'.
47342         * modules/unicase/u8-casefold-tests: New file.
47343         * tests/unicase/test-u8-casefold.c: New file.
47344
47345         New module 'unicase/u32-casefold'.
47346         * lib/unicase/u32-casefold.c: New file.
47347         * modules/unicase/u32-casefold: New file.
47348
47349         New module 'unicase/u16-casefold'.
47350         * lib/unicase/u16-casefold.c: New file.
47351         * modules/unicase/u16-casefold: New file.
47352
47353         New module 'unicase/u8-casefold'.
47354         * lib/unicase/u8-casefold.c: New file.
47355         * lib/unicase/u-casefold.h: New file.
47356         * modules/unicase/u8-casefold: New file.
47357
47358         New module 'unicase/tocasefold'.
47359         * lib/unicase/casefold.h: New file.
47360         * lib/unicase/tocasefold.c: New file.
47361         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
47362         * modules/unicase/tocasefold: New file.
47363
47364         Tests for module 'unicase/u32-totitle'.
47365         * modules/unicase/u32-totitle-tests: New file.
47366         * tests/unicase/test-u32-totitle.c: New file.
47367
47368         Tests for module 'unicase/u16-totitle'.
47369         * modules/unicase/u16-totitle-tests: New file.
47370         * tests/unicase/test-u16-totitle.c: New file.
47371
47372         Tests for module 'unicase/u8-totitle'.
47373         * modules/unicase/u8-totitle-tests: New file.
47374         * tests/unicase/test-u8-totitle.c: New file.
47375
47376         New module 'unicase/u32-totitle'.
47377         * lib/unicase/u32-totitle.c: New file.
47378         * modules/unicase/u32-totitle: New file.
47379
47380         New module 'unicase/u16-totitle'.
47381         * lib/unicase/u16-totitle.c: New file.
47382         * modules/unicase/u16-totitle: New file.
47383
47384         New module 'unicase/u8-totitle'.
47385         * lib/unicase/u8-totitle.c: New file.
47386         * lib/unicase/u-totitle.h: New file.
47387         * modules/unicase/u8-totitle: New file.
47388
47389         Tests for module 'unicase/u32-tolower'.
47390         * modules/unicase/u32-tolower-tests: New file.
47391         * tests/unicase/test-u32-tolower.c: New file.
47392
47393         Tests for module 'unicase/u16-tolower'.
47394         * modules/unicase/u16-tolower-tests: New file.
47395         * tests/unicase/test-u16-tolower.c: New file.
47396
47397         Tests for module 'unicase/u8-tolower'.
47398         * modules/unicase/u8-tolower-tests: New file.
47399         * tests/unicase/test-u8-tolower.c: New file.
47400
47401         New module 'unicase/u32-tolower'.
47402         * lib/unicase/u32-tolower.c: New file.
47403         * modules/unicase/u32-tolower: New file.
47404
47405         New module 'unicase/u16-tolower'.
47406         * lib/unicase/u16-tolower.c: New file.
47407         * modules/unicase/u16-tolower: New file.
47408
47409         New module 'unicase/u8-tolower'.
47410         * lib/unicase/u8-tolower.c: New file.
47411         * modules/unicase/u8-tolower: New file.
47412
47413         Tests for module 'unicase/u32-toupper'.
47414         * modules/unicase/u32-toupper-tests: New file.
47415         * tests/unicase/test-u32-toupper.c: New file.
47416
47417         Tests for module 'unicase/u16-toupper'.
47418         * modules/unicase/u16-toupper-tests: New file.
47419         * tests/unicase/test-u16-toupper.c: New file.
47420
47421         Tests for module 'unicase/u8-toupper'.
47422         * modules/unicase/u8-toupper-tests: New file.
47423         * tests/unicase/test-u8-toupper.c: New file.
47424
47425         New module 'unicase/u32-toupper'.
47426         * lib/unicase/u32-toupper.c: New file.
47427         * modules/unicase/u32-toupper: New file.
47428
47429         New module 'unicase/u16-toupper'.
47430         * lib/unicase/u16-toupper.c: New file.
47431         * modules/unicase/u16-toupper: New file.
47432
47433         New module 'unicase/u8-toupper'.
47434         * lib/unicase/u8-toupper.c: New file.
47435         * modules/unicase/u8-toupper: New file.
47436
47437         New module 'unicase/u32-casemap'.
47438         * lib/unicase/u32-casemap.c: New file.
47439         * modules/unicase/u32-casemap: New file.
47440
47441         New module 'unicase/u16-casemap'.
47442         * lib/unicase/u16-casemap.c: New file.
47443         * modules/unicase/u16-casemap: New file.
47444
47445         New module 'unicase/u8-casemap'.
47446         * lib/unicase/unicasemap.h: New file.
47447         * lib/unicase/u8-casemap.c: New file.
47448         * lib/unicase/u-casemap.h: New file.
47449         * modules/unicase/u8-casemap: New file.
47450
47451         New module 'unicase/special-casing'.
47452         * lib/unicase/special-casing.h: New file.
47453         * lib/unicase/special-casing.c: New file.
47454         * lib/unicase/special-casing-table.gperf: New file, generated by
47455         gen-uni-tables.c.
47456         * modules/unicase/special-casing: New file.
47457
47458         Tests for module 'unicase/locale-language'.
47459         * modules/unicase/locale-language-tests: New file.
47460         * tests/unicase/test-locale-language.sh: New file.
47461         * tests/unicase/test-locale-language.c: New file.
47462
47463         New module 'unicase/locale-language'.
47464         * lib/unicase/locale-language.c: New file.
47465         * lib/unicase/locale-languages.gperf: New file.
47466         * modules/unicase/locale-language: New file.
47467
47468         Generate more tables for case conversion and case folding.
47469         * lib/gen-uni-tables.c (SCC_*): New enum items.
47470         (struct special_casing_rule): New type.
47471         (casing_rules, num_casing_rules, allocated_casing_rules): New
47472         variables.
47473         (add_casing_rule, fill_casing_rules): New functions.
47474         (struct casefold_rule): New type.
47475         (casefolding_rules, num_casefolding_rules,
47476         allocated_casefolding_rules): New variables.
47477         (fill_casefolding_rules): New function.
47478         (unicode_casefold): New variable.
47479         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
47480         sort_casing_rules, output_casing_rules): New functions.
47481         (main): Accept to more arguments: SpecialCasing.txt and
47482         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
47483         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
47484         Output mapping for casefolding.
47485
47486         * lib/unicase.h: Include stdbool.h, uninorm.h.
47487         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
47488         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
47489         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
47490         arguments.
47491         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
47492         resultp arguments.
47493         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
47494         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
47495         resultp arguments.
47496         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
47497         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
47498         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
47499         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
47500         declarations.
47501         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
47502
47503 2009-03-08  Bruno Haible  <bruno@clisp.org>
47504
47505         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
47506         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
47507         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
47508         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
47509
47510 2009-03-07  Bruno Haible  <bruno@clisp.org>
47511
47512         Adjust u*_normcmp, u*_normcoll API.
47513         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
47514         u16_normcoll, u32_normcoll): Change failure conventions.
47515         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
47516         errno and return -1.
47517         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
47518
47519 2009-03-07  Bruno Haible  <bruno@clisp.org>
47520
47521         Tests for module 'uninorm/u32-normcoll'.
47522         * modules/uninorm/u32-normcoll-tests: New file.
47523         * tests/uninorm/test-u32-normcoll.c: New file.
47524
47525         Tests for module 'uninorm/u16-normcoll'.
47526         * modules/uninorm/u16-normcoll-tests: New file.
47527         * tests/uninorm/test-u16-normcoll.c: New file.
47528
47529         Tests for module 'uninorm/u8-normcoll'.
47530         * modules/uninorm/u8-normcoll-tests: New file.
47531         * tests/uninorm/test-u8-normcoll.c: New file.
47532
47533 2009-03-07  Bruno Haible  <bruno@clisp.org>
47534
47535         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
47536         tests/uninorm/test-u32-normcmp.c.
47537         * tests/uninorm/test-u32-normcmp.c: Include it.
47538         (test_nonascii): New function, extracted from main. Add some more
47539         tests.
47540         (main): Invoke test_ascii and test_nonascii.
47541         * modules/uninorm/u32-normcmp-tests (Files): Add
47542         tests/uninorm/test-u32-normcmp.h.
47543         (Depends-on): Remove uninorm/u32-normcmp.
47544
47545         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
47546         tests/uninorm/test-u16-normcmp.c.
47547         * tests/uninorm/test-u16-normcmp.c: Include it.
47548         (test_nonascii): New function, extracted from main. Add some more
47549         tests.
47550         (main): Invoke test_ascii and test_nonascii.
47551         * modules/uninorm/u16-normcmp-tests (Files): Add
47552         tests/uninorm/test-u16-normcmp.h.
47553         (Depends-on): Remove uninorm/u16-normcmp.
47554
47555         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
47556         tests/uninorm/test-u8-normcmp.c.
47557         * tests/uninorm/test-u8-normcmp.c: Include it.
47558         (test_nonascii): New function, extracted from main. Add some more
47559         tests.
47560         (main): Invoke test_ascii and test_nonascii.
47561         * modules/uninorm/u8-normcmp-tests (Files): Add
47562         tests/uninorm/test-u8-normcmp.h.
47563         (Depends-on): Remove uninorm/u8-normcmp.
47564
47565 2009-03-07  Bruno Haible  <bruno@clisp.org>
47566
47567         New module 'uninorm/u32-normcoll'.
47568         * lib/uninorm/u32-normcoll.c: New file.
47569         * modules/uninorm/u32-normcoll: New file.
47570
47571         New module 'uninorm/u16-normcoll'.
47572         * lib/uninorm/u16-normcoll.c: New file.
47573         * modules/uninorm/u16-normcoll: New file.
47574
47575         New module 'uninorm/u8-normcoll'.
47576         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
47577         declarations.
47578         * lib/uninorm/u8-normcoll.c: New file.
47579         * lib/uninorm/u-normcoll.h: New file.
47580         * modules/uninorm/u8-normcoll: New file.
47581
47582         New module 'uninorm/u32-normxfrm'.
47583         * lib/uninorm/u32-normxfrm.c: New file.
47584         * modules/uninorm/u32-normxfrm: New file.
47585
47586         New module 'uninorm/u16-normxfrm'.
47587         * lib/uninorm/u16-normxfrm.c: New file.
47588         * modules/uninorm/u16-normxfrm: New file.
47589
47590         New module 'uninorm/u8-normxfrm'.
47591         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
47592         declarations.
47593         * lib/uninorm/u8-normxfrm.c: New file.
47594         * lib/uninorm/u-normxfrm.h: New file.
47595         * modules/uninorm/u8-normxfrm: New file.
47596
47597 2009-03-07  Bruno Haible  <bruno@clisp.org>
47598
47599         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
47600         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
47601         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
47602
47603 2009-03-07  Bruno Haible  <bruno@clisp.org>
47604
47605         New module 'memxfrm'.
47606         * lib/memxfrm.h: New file.
47607         * lib/memxfrm.c: New file.
47608         * modules/memxfrm: New file.
47609
47610 2009-03-07  Bruno Haible  <bruno@clisp.org>
47611
47612         New module 'memcmp2'.
47613         * lib/memcmp2.h: New file.
47614         * lib/memcmp2.c: New file.
47615         * modules/memcmp2: New file.
47616
47617 2009-03-07  Bruno Haible  <bruno@clisp.org>
47618
47619         Tests for module 'uninorm/decomposing-form'.
47620         * modules/uninorm/decomposing-form-tests: New file.
47621         * tests/uninorm/test-decomposing-form.c: New file.
47622
47623         New module 'uninorm/decomposing-form'.
47624         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
47625         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
47626         Add 'decomposing_variant' field.
47627         * lib/uninorm/decomposing-form.c: New file.
47628         * lib/uninorm/nfc.c (uninorm_nfc): Update.
47629         * lib/uninorm/nfd.c (uninorm_nfd): Update.
47630         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
47631         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
47632         * modules/uninorm/decomposing-form: New file.
47633         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
47634         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
47635
47636 2009-03-07  Bruno Haible  <bruno@clisp.org>
47637
47638         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
47639         strings.
47640
47641 2009-03-06  Bruno Haible  <bruno@clisp.org>
47642
47643         Tests for module 'uninorm/u32-normcmp'.
47644         * tests/uninorm/test-u32-normcmp.c: New file.
47645         * modules/uninorm/u32-normcmp-tests: New file.
47646
47647         Tests for module 'uninorm/u16-normcmp'.
47648         * tests/uninorm/test-u16-normcmp.c: New file.
47649         * modules/uninorm/u16-normcmp-tests: New file.
47650
47651         Tests for module 'uninorm/u8-normcmp'.
47652         * tests/uninorm/test-u8-normcmp.c: New file.
47653         * modules/uninorm/u8-normcmp-tests: New file.
47654
47655         New module 'uninorm/u32-normcmp'.
47656         * lib/uninorm/u32-normcmp.c: New file.
47657         * modules/uninorm/u32-normcmp: New file.
47658
47659         New module 'uninorm/u16-normcmp'.
47660         * lib/uninorm/u16-normcmp.c: New file.
47661         * modules/uninorm/u16-normcmp: New file.
47662
47663         New module 'uninorm/u8-normcmp'.
47664         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
47665         declarations.
47666         * lib/uninorm/u8-normcmp.c: New file.
47667         * lib/uninorm/u-normcmp.h: New file.
47668         * modules/uninorm/u8-normcmp: New file.
47669
47670 2009-03-06  Bruno Haible  <bruno@clisp.org>
47671
47672         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
47673         Reported by Eric Blake.
47674
47675 2009-03-06  Eric Blake  <ebb9@byu.net>
47676             Bruno Haible  <bruno@clisp.org>
47677
47678         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
47679         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
47680         condition.
47681         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47682         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
47683         condition.
47684         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47685
47686 2009-03-06  Eric Blake  <ebb9@byu.net>
47687
47688         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
47689         to avoid compiler warnings.
47690         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
47691
47692 2009-03-05  Bruno Haible  <bruno@clisp.org>
47693
47694         * tests/test-ftell.c (main): Disable test beyond end of file on
47695         FreeMiNT.
47696         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47697
47698 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
47699
47700         * lib/filevercmp.c: Move hidden files up in ordering.
47701         * tests/test-filevercmp.c: Add tests for hidden files.
47702
47703 2009-03-04  Bruno Haible  <bruno@clisp.org>
47704
47705         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
47706         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
47707         AM_CFLAGS.
47708         Reported by Simon Josefsson.
47709
47710 2009-03-03  Bruno Haible  <bruno@clisp.org>
47711
47712         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
47713         Reported by Simon Josefsson.
47714
47715         * doc/ld-version-script.texi: Update node reference.
47716
47717 2009-03-03  Bruno Haible  <bruno@clisp.org>
47718
47719         * modules/visibility (License): Change to 'unlimited'.
47720         Suggested by Simon Josefsson.
47721
47722 2009-03-03  Jim Meyering  <meyering@redhat.com>
47723
47724         unlinkdir: cannot_unlink_dir may modify process state
47725         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
47726         it's neither thread-safe nor appropriate for use in a library.
47727
47728 2009-03-03  Eric Blake  <ebb9@byu.net>
47729
47730         test-closein: silence test under Darwin
47731         * tests/test-closein.sh: Ignore stderr from cat, since we don't
47732         care if it dies from EPIPE or EBADF.
47733
47734 2009-03-03  Bruno Haible  <bruno@clisp.org>
47735
47736         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
47737         earlier.
47738         * doc/visibility.texi: Fix @node and @section.
47739
47740 2009-03-03  Simon Josefsson  <simon@josefsson.org>
47741
47742         * doc/gnulib.texi: Link to sections for ld version script and
47743         visibility.
47744         * doc/visibility.texi: Add @node and @section.
47745         * modules/ld-version-script: New module.
47746         * m4/ld-version-script.m4: New file.
47747         * doc/ld-version-script.texi: New file.
47748
47749 2009-03-02  David Lutterkort  <lutter@redhat.com>
47750
47751         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
47752         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47753
47754 2009-03-02  Bruno Haible  <bruno@clisp.org>
47755
47756         * doc/visibility.texi: Mention libtool's -export-symbols option.
47757
47758 2009-03-02  Jim Meyering  <meyering@redhat.com>
47759
47760         announce-gen: new option: --no-print-checksums
47761         * build-aux/announce-gen (usage): Describe it.
47762         (print_checksums): Print a newline here, not in the [*] footnote.
47763         (main): Honor it.
47764
47765 2009-03-01  Bruno Haible  <bruno@clisp.org>
47766
47767         Use socklen_t in the native Windows replacements prototypes.
47768         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
47769         instead of 'int'.
47770         * lib/getsockopt.c (rpl_getsockopt): Likewise.
47771         * lib/setsockopt.c (rpl_setsockopt): Likewise.
47772         * modules/getsockopt (Depends-on): Add socklen.
47773         * modules/setsockopt (Depends-on): Add socklen.
47774
47775 2009-03-01  Bruno Haible  <bruno@clisp.org>
47776
47777         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
47778         least 4.2.
47779
47780 2009-03-01  Eric Blake  <ebb9@byu.net>
47781             Bruno Haible  <bruno@clisp.org>
47782
47783         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
47784         error messages.
47785         * lib/wait-process.c (wait_subprocess): Omit error message about
47786         deadly signal sent to the child of termsigp != NULL.
47787
47788 2009-03-01  Eric Blake  <ebb9@byu.net>
47789
47790         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
47791
47792 2009-03-01  Bruno Haible  <bruno@clisp.org>
47793
47794         Avoid a gcc warning.
47795         * tests/test-sched.c (b): Make global.
47796         Reported by Eric Blake.
47797
47798 2009-01-19  Martin Lambers  <marlam@marlam.de>
47799
47800         Provide POSIX semantics for socket timeout options on W32.
47801         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
47802         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
47803         * modules/setsockopt: Depend on sys_time module for struct timeval.
47804         * modules/getsockopt: Depend on sys_time module for struct timeval.
47805
47806 2009-03-01  Simon Josefsson  <simon@josefsson.org>
47807
47808         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
47809         __USE_GNU, for consistency with netdb.in.h.
47810         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47811
47812 2009-03-01  Bruno Haible  <bruno@clisp.org>
47813
47814         More support for FreeMiNT.
47815         * lib/fseeko.c (rpl_fseeko): Complete last commit.
47816         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47817
47818 2009-03-01  Bruno Haible  <bruno@clisp.org>
47819
47820         More support for FreeMiNT.
47821         * lib/fpurge.c (fpurge): Correct last commit.
47822         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47823
47824 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47825
47826         Fix unportable awk script in vc-list-files.
47827         * build-aux/vc-list-files: In the replacement awk script, use
47828         substr with a second argument of 1, not zero.
47829         Report by Simon Josefsson.
47830
47831 2009-02-28  Bruno Haible  <bruno@clisp.org>
47832
47833         More support for FreeMiNT.
47834         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
47835         to FreeMiNT today.
47836         * lib/fwriting.c (fwriting): Likewise.
47837         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
47838
47839 2009-02-28  Bruno Haible  <bruno@clisp.org>
47840
47841         * tests/test-freadseek.c (main): Disable test beyond end of file on
47842         FreeMiNT.
47843         * tests/test-ftello.c (main): Likewise.
47844         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47845
47846 2009-02-28  Bruno Haible  <bruno@clisp.org>
47847
47848         Add tentative support for FreeMiNT.
47849         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
47850         * lib/fpurge.c (fpurge): Likewise.
47851         * lib/freadable.c (freadable): Likewise.
47852         * lib/freading.c (freading): Likewise.
47853         * lib/freadptr.c (freadptr): Likewise.
47854         * lib/freadseek.c (freadptrinc): Likewise.
47855         * lib/fseeko.c (rpl_fseeko): Likewise.
47856         * lib/fseterr.c (fseterr): Likewise.
47857         * lib/fwritable.c (fwritable): Likewise.
47858         * lib/fwriting.c (fwriting): Likewise.
47859         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
47860         Hourihane.
47861         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47862
47863 2009-02-28  Bruno Haible  <bruno@clisp.org>
47864
47865         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
47866         SIGCHLD.
47867         Reported by Jim Meyering.
47868
47869 2009-02-28  Bruno Haible  <bruno@clisp.org>
47870
47871         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
47872         Mention the results of these tests on various platforms.
47873         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
47874         order.
47875         * doc/posix-functions/printf.texi: Likewise.
47876         * doc/posix-functions/snprintf.texi: Likewise.
47877         * doc/posix-functions/sprintf.texi: Likewise.
47878         * doc/posix-functions/vfprintf.texi: Likewise.
47879         * doc/posix-functions/vprintf.texi: Likewise.
47880         * doc/posix-functions/vsnprintf.texi: Likewise.
47881         * doc/posix-functions/vsprintf.texi: Likewise.
47882         * doc/glibc-functions/obstack_printf.texi: Likewise.
47883         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
47884
47885 2009-02-28  Bruno Haible  <bruno@clisp.org>
47886
47887         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
47888         Reported by Loïc Minier <lool@dooz.org>.
47889
47890 2009-02-27  Bruno Haible  <bruno@clisp.org>
47891
47892         * gnulib-tool (func_import): Make the sed expression used to create the
47893         sed script for updating the .gitignore file POSIX compliant.
47894         Reported by Eric Blake.
47895
47896 2009-02-27  Bruno Haible  <bruno@clisp.org>
47897
47898         * gnulib-tool (sed): Don't alias as "sed --posix".
47899         Reported by Eric Blake.
47900
47901 2009-02-27  Bruno Haible  <bruno@clisp.org>
47902
47903         Avoid test link errors.
47904         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
47905         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
47906         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
47907         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
47908         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47909
47910 2009-02-27  Bruno Haible  <bruno@clisp.org>
47911
47912         Avoid spurious "(cached)" in configure output.
47913         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
47914         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
47915         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47916         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47917         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47918         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
47919         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47920         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
47921         Reported by Eric Blake.
47922
47923 2009-02-27  Eric Blake  <ebb9@byu.net>
47924
47925         printf: fix regression in previous patch
47926         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
47927
47928 2009-02-27  Bruno Haible  <bruno@clisp.org>
47929
47930         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
47931         value.
47932         * lib/stdint.in.h: Likewise.
47933         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
47934
47935 2009-02-27  Eric Blake  <ebb9@byu.net>
47936
47937         doc: mention more functions added in cygwin 1.7.0
47938         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
47939         addition.
47940         * doc/posix-functions/open_wmemstream.texi: Likewise.
47941         * doc/posix-functions/wcsnlen.texi: Likewise.
47942         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47943         * doc/posix-functions/wcstod.texi: Likewise.
47944         * doc/posix-functions/wcstof.texi: Likewise.
47945         * doc/posix-functions/wcstoimax.texi: Likewise.
47946         * doc/posix-functions/wcstok.texi: Likewise.
47947         * doc/posix-functions/wcstoumax.texi: Likewise.
47948
47949         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
47950         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
47951         * doc/posix-functions/fprintf.texi: Update.
47952         * doc/posix-functions/printf.texi: Update.
47953         * doc/posix-functions/snprintf.texi: Update.
47954         * doc/posix-functions/sprintf.texi: Update.
47955         * doc/posix-functions/vfprintf.texi: Update.
47956         * doc/posix-functions/vprintf.texi: Update.
47957         * doc/posix-functions/vsnprintf.texi: Update.
47958         * doc/posix-functions/vsprintf.texi: Update.
47959         * doc/glibc-functions/obstack_printf.texi: Update.
47960         * doc/glibc-functions/obstack_vprintf.texi: Update.
47961
47962 2009-02-26  Eric Blake  <ebb9@byu.net>
47963
47964         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
47965         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
47966         compilation bug by using runtime conversion.
47967         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
47968         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
47969         * modules/ceill-tests (Files): Use nan.h.
47970         * modules/floorl-tests (Files): Likewise.
47971         * modules/frexpl-tests (Files): Likewise.
47972         * modules/isnanl-tests (Files): Likewise.
47973         * modules/ldexpl-tests (Files): Likewise.
47974         * modules/roundl-tests (Files): Likewise.
47975         * modules/truncl-tests (Files): Likewise.
47976         * tests/test-ceill.c (main): Use a working NaN.
47977         * tests/test-floorl.c (main): Likewise.
47978         * tests/test-frexpl.c (main): Likewise.
47979         * tests/test-isnan.c (test_long_double): Likewise.
47980         * tests/test-isnanl.h (main): Likewise.
47981         * tests/test-ldexpl.h (main): Likewise.
47982         * tests/test-roundl.h (main): Likewise.
47983         * tests/test-truncl.h (main): Likewise.
47984         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
47985
47986 2009-02-26  Eric Blake  <ebb9@byu.net>
47987             Bruno Haible  <bruno@clisp.org>
47988
47989         Work around a *printf bug with %ls on Solaris.
47990         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
47991         precision is specified, sprintf stops converting the wide string
47992         argument when the number of bytes that have been produced by this
47993         conversion equals or exceeds the precision.
47994         * doc/posix-functions/fprintf.texi: Update.
47995         * doc/posix-functions/printf.texi: Update.
47996         * doc/posix-functions/snprintf.texi: Update.
47997         * doc/posix-functions/sprintf.texi: Update.
47998         * doc/posix-functions/vfprintf.texi: Update.
47999         * doc/posix-functions/vprintf.texi: Update.
48000         * doc/posix-functions/vsnprintf.texi: Update.
48001         * doc/posix-functions/vsprintf.texi: Update.
48002         * doc/glibc-functions/obstack_printf.texi: Update.
48003         * doc/glibc-functions/obstack_vprintf.texi: Update.
48004
48005 2009-02-26  Eric Blake  <ebb9@byu.net>
48006
48007         stdlib: favor compiler check of random.h
48008         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
48009         to avoid an ObjC random.h installed by Swarm.
48010
48011 2009-02-26  Bruno Haible  <bruno@clisp.org>
48012
48013         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
48014         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
48015         Reported by Gary V. Vaughan <gary@gnu.org>.
48016
48017 2009-02-26  Bruno Haible  <bruno@clisp.org>
48018
48019         Fix *printf behaviour regarding the %ls directive.
48020         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
48021         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
48022         NEED_PRINTF_DIRECTIVE_LS.
48023         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
48024         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48025         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48026         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
48027         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
48028         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
48029         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48030         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48031         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48032         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48033         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48034         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
48035         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48036         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48037         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48038         * doc/posix-functions/fprintf.texi: Update.
48039         * doc/posix-functions/printf.texi: Update.
48040         * doc/posix-functions/snprintf.texi: Update.
48041         * doc/posix-functions/sprintf.texi: Update.
48042         * doc/posix-functions/vfprintf.texi: Update.
48043         * doc/posix-functions/vprintf.texi: Update.
48044         * doc/posix-functions/vsnprintf.texi: Update.
48045         * doc/posix-functions/vsprintf.texi: Update.
48046         * doc/glibc-functions/obstack_printf.texi: Update.
48047         * doc/glibc-functions/obstack_vprintf.texi: Update.
48048         Reported by Eric Blake.
48049
48050 2009-02-25  Bruno Haible  <bruno@clisp.org>
48051
48052         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
48053         with known value.
48054         Reported by Gary V. Vaughan <gary@gnu.org>.
48055
48056 2009-02-25  Bruno Haible  <bruno@clisp.org>
48057
48058         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
48059         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
48060         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
48061         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
48062         Reported by Gary V. Vaughan <gary@gnu.org>.
48063
48064 2009-02-25  Bruno Haible  <bruno@clisp.org>
48065
48066         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
48067         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
48068         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
48069         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
48070         Reported by Gary V. Vaughan <gary@gnu.org>.
48071
48072 2009-02-25  Eric Blake  <ebb9@byu.net>
48073
48074         tests: skip fseek/ftell tests if ungetc is broken
48075         * m4/ungetc.m4: New file.
48076         * modules/fseek-tests: Split test, so ungetc dependency is
48077         separate from rest of test.
48078         * modules/fseeko-tests: Likewise.
48079         * modules/ftell-tests: Likewise.
48080         * modules/ftello-tests: Likewise.
48081         * tests/test-fseek.c (main): Isolate ungetc dependency.
48082         * tests/test-fseeko.c (main): Likewise.
48083         * tests/test-ftell.c (main): Likewise.
48084         * tests/test-ftello.c (main): Likewise.
48085         * tests/test-fseek2.sh: New file.
48086         * tests/test-fseeko2.sh: Likewise.
48087         * tests/test-ftell2.sh: Likewise.
48088         * tests/test-ftello2.sh: Likewise.
48089
48090 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
48091
48092         test-getaddrinfo: fix usage of skip return code 77
48093         * tests/test-gettaddrinfo.c: Return skip code 77 only
48094         for first occurrence of skip (4x77 is not 77)
48095
48096 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
48097
48098         strtod: avoid C99 decl-after-statement
48099         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
48100
48101 2009-02-24  Eric Blake  <ebb9@byu.net>
48102
48103         strtod: detect HP-UX 11.31 bug
48104         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
48105         Reported by Gary V. Vaughan.
48106
48107 2009-02-23  Bruno Haible  <bruno@clisp.org>
48108
48109         Fix invalid read past end of memory block.
48110         * lib/vasnprintf.c (DCHAR_SET): Define.
48111         (local_wcslen): Define only when needed.
48112         (local_strnlen, local_wcsnlen): New functions.
48113         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
48114         directives that involve a conversion ourselves.
48115         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
48116         wcsnlen, mbrtowc, wcrtomb.
48117         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
48118         * tests/test-vasprintf-posix.c (test_function): Likewise.
48119         * tests/test-snprintf-posix.h (test_function): Likewise.
48120         * tests/test-sprintf-posix.h (test_function): Likewise.
48121         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48122
48123 2009-02-22  Bruno Haible  <bruno@clisp.org>
48124
48125         Implement new clarified decomposition of Hangul syllables.
48126         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
48127         of type LTV, return only a pairwise decomposition.
48128         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
48129         Likewise.
48130         * tests/uninorm/test-decomposition.c (main): Updated expected result.
48131         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
48132         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
48133
48134 2009-02-22  Bruno Haible  <bruno@clisp.org>
48135
48136         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
48137         zero-length results and shrink excess allocated memory.
48138         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
48139         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
48140         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
48141         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
48142         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
48143         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
48144         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
48145         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
48146         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
48147         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
48148         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
48149         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
48150
48151 2009-02-21  Bruno Haible  <bruno@clisp.org>
48152
48153         * doc/gnulib.texi: Include safe-alloc.texi earlier.
48154         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
48155         spaces after a period. Put a space between a macro name and its
48156         argument list. Trivial rewordings.
48157         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
48158         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
48159         (main): Return 0 explicitly.
48160
48161 2009-02-21  Bruno Haible  <bruno@clisp.org>
48162
48163         Tests for module 'uninorm/filter'.
48164         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
48165         * modules/uninorm/filter-tests: New file.
48166
48167         New module 'uninorm/filter'.
48168         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
48169         uninorm_filter_flush, uninorm_filter_free): New declarations.
48170         * lib/uninorm/uninorm-filter.c: New file.
48171         * modules/uninorm/filter: New file.
48172
48173 2009-02-21  Bruno Haible  <bruno@clisp.org>
48174
48175         Tests for module 'uninorm/nfkc'.
48176         * tests/uninorm/test-nfkc.c: New file.
48177         * tests/uninorm/test-u8-nfkc.c: New file.
48178         * tests/uninorm/test-u16-nfkc.c: New file.
48179         * tests/uninorm/test-u32-nfkc.c: New file.
48180         * tests/uninorm/test-u32-nfkc-big.sh: New file.
48181         * tests/uninorm/test-u32-nfkc-big.c: New file.
48182         * modules/uninorm/nfkc-tests: New file.
48183
48184         New module 'uninorm/nfkc'.
48185         * lib/uninorm/nfkc.c: New file.
48186         * modules/uninorm/nfkc: New file.
48187
48188         Tests for module 'uninorm/nfkd'.
48189         * tests/uninorm/test-nfkd.c: New file.
48190         * tests/uninorm/test-u8-nfkd.c: New file.
48191         * tests/uninorm/test-u16-nfkd.c: New file.
48192         * tests/uninorm/test-u32-nfkd.c: New file.
48193         * tests/uninorm/test-u32-nfkd-big.sh: New file.
48194         * tests/uninorm/test-u32-nfkd-big.c: New file.
48195         * modules/uninorm/nfkd-tests: New file.
48196
48197         New module 'uninorm/nfkd'.
48198         * lib/uninorm/nfkd.c: New file.
48199         * modules/uninorm/nfkd: New file.
48200
48201         Tests for module 'uninorm/nfc'.
48202         * tests/uninorm/test-nfc.c: New file.
48203         * tests/uninorm/test-u8-nfc.c: New file.
48204         * tests/uninorm/test-u16-nfc.c: New file.
48205         * tests/uninorm/test-u32-nfc.c: New file.
48206         * tests/uninorm/test-u32-nfc-big.sh: New file.
48207         * tests/uninorm/test-u32-nfc-big.c: New file.
48208         * modules/uninorm/nfc-tests: New file.
48209
48210         New module 'uninorm/nfc'.
48211         * lib/uninorm/nfc.c: New file.
48212         * modules/uninorm/nfc: New file.
48213
48214         Tests for module 'uninorm/nfd'.
48215         * tests/uninorm/test-nfd.c: New file.
48216         * tests/uninorm/test-u8-nfd.c: New file.
48217         * tests/uninorm/test-u16-nfd.c: New file.
48218         * tests/uninorm/test-u32-nfd.c: New file.
48219         * tests/uninorm/test-u32-nfd-big.sh: New file.
48220         * tests/uninorm/test-u32-nfd-big.c: New file.
48221         * tests/uninorm/test-u32-normalize-big.h: New file.
48222         * tests/uninorm/test-u32-normalize-big.c: New file.
48223         * tests/uninorm/NormalizationTest.txt: New file, created from
48224         Unicode 5.1.0 NormalizationTest.txt.
48225         * modules/uninorm/nfd-tests: New file.
48226
48227         New module 'uninorm/nfd'.
48228         * lib/uninorm/nfd.c: New file.
48229         * modules/uninorm/nfd: New file.
48230
48231         New module 'uninorm/u32-normalize'.
48232         * lib/uninorm/u32-normalize.c: New file.
48233         * modules/uninorm/u32-normalize: New file.
48234
48235         New module 'uninorm/u16-normalize'.
48236         * lib/uninorm/u16-normalize.c: New file.
48237         * modules/uninorm/u16-normalize: New file.
48238
48239         New module 'uninorm/u8-normalize'.
48240         * lib/uninorm/u8-normalize.c: New file.
48241         * lib/uninorm/normalize-internal.h: New file.
48242         * lib/uninorm/u-normalize-internal.h: New file.
48243         * modules/uninorm/u8-normalize: New file.
48244
48245         New module 'uninorm/decompose-internal'.
48246         * lib/uninorm/decompose-internal.c: New file.
48247         * modules/uninorm/decompose-internal: New file.
48248
48249         Tests for module 'uninorm/composition'.
48250         * tests/uninorm/test-composition.c: New file.
48251         * modules/uninorm/composition-tests: New file.
48252
48253         New module 'uninorm/composition'.
48254         * lib/uninorm/composition.c: New file.
48255         * lib/uninorm/composition-table.gperf: New file, generated by
48256         gen-uni-tables.
48257         * modules/uninorm/composition: New file.
48258
48259         Tests for module 'uninorm/compat-decomposition'.
48260         * tests/uninorm/test-compat-decomposition.c: New file.
48261         * modules/uninorm/compat-decomposition-tests: New file.
48262
48263         New module 'uninorm/compat-decomposition'.
48264         * lib/uninorm/decompose-internal.h: New file.
48265         * lib/uninorm/compat-decomposition.c: New file.
48266         * modules/uninorm/compat-decomposition: New file.
48267
48268         Tests for module 'uninorm/canonical-decomposition'.
48269         * tests/uninorm/test-canonical-decomposition.c: New file.
48270         * modules/uninorm/canonical-decomposition-tests: New file.
48271
48272         New module 'uninorm/canonical-decomposition'.
48273         * lib/uninorm/canonical-decomposition.c: New file.
48274         * modules/uninorm/canonical-decomposition: New file.
48275
48276         Tests for module 'uninorm/decomposition'.
48277         * tests/uninorm/test-decomposition.c: New file.
48278         * modules/uninorm/decomposition-tests: New file.
48279
48280         New module 'uninorm/decomposition'.
48281         * lib/uninorm/decomposition.c: New file.
48282         * modules/uninorm/decomposition: New file.
48283
48284         New module 'uninorm/decomposition-table'.
48285         * lib/uninorm/decomposition-table.h: New file.
48286         * lib/uninorm/decomposition-table.c: New file.
48287         * lib/uninorm/decomposition-table1.h: New file, generated by
48288         gen-uni-tables.
48289         * lib/uninorm/decomposition-table2.h: New file, generated by
48290         gen-uni-tables.
48291         * modules/uninorm/decomposition-table: New file.
48292
48293         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
48294         (UC_DECOMP_*): New enumeration items.
48295         (get_decomposition): New function.
48296         (struct decomp_table): New type.
48297         (output_decomposition, output_decomposition_tables): New functions.
48298         (unicode_composition_exclusions): New variable.
48299         (fill_composition_exclusions, debug_output_composition_tables): New
48300         functions.
48301         (main): Accept one more argument. Invoke fill_composition_exclusions.
48302         Output decomposition and composition tables.
48303
48304         New module 'uninorm/base'.
48305         * lib/uninorm.h: New file.
48306         * lib/unictype.h: Update comment.
48307         * modules/uninorm/base: New file.
48308
48309 2009-02-21  David Lutterkort  <lutter@redhat.com>
48310
48311         Tests for module 'safe-alloc'.
48312         * tests/test-safe-alloc.c: New file.
48313         * modules/safe-alloc-tests: New file.
48314
48315         New module 'safe-alloc'.
48316         * lib/safe-alloc.h: New file.
48317         * lib/safe-alloc.c: New file.
48318         * m4/safe-alloc.m4: New file.
48319         * modules/safe-alloc: New file.
48320         * doc/safe-alloc.texi: New file.
48321         * doc/gnulib.texi: Include it.
48322         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
48323         safe-alloc.
48324
48325 2009-02-18  Bruno Haible  <bruno@clisp.org>
48326
48327         Fix link error on non-glibc systems.
48328         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
48329         variable.
48330         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48331
48332 2009-02-18  Jim Meyering  <meyering@redhat.com>
48333
48334         fts: avoid used-uninitialized error due to recent change
48335         * lib/fts.c (fts_read): Guard uses of the new member,
48336         parent->fts_n_dirs_remaining, since it's not relevant for
48337         the parent of a directory specified on the command-line.
48338
48339 2009-02-17  James Youngman  <jay@gnu.org>
48340             Bruno Haible  <bruno@clisp.org>
48341
48342         * m4/include_next.m4: Reformulate comment.
48343
48344 2009-02-16  Jim Meyering  <meyering@redhat.com>
48345
48346         fts: add #if guards so that the fts_lgpl module still builds
48347         * lib/fts.c: Guard just-added hash-table-using parts with
48348         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
48349         Reported by Simon Josefsson.
48350
48351 2009-02-15  Bruno Haible  <bruno@clisp.org>
48352
48353         * modules/array-mergesort-tests: New file.
48354         * tests/test-array-mergesort.c: New file.
48355
48356         New module 'array-mergesort'.
48357         * modules/array-mergesort: New file.
48358         * lib/array-mergesort.h: New file.
48359
48360 2009-02-15  Bruno Haible  <bruno@clisp.org>
48361
48362         Fix 2009-02-07 commit.
48363         * lib/gen-uni-tables.c (output_predicate, output_category,
48364         output_combclass, output_bidi_category, output_decimal_digit,
48365         output_digit, output_numeric, output_mirror, output_scripts,
48366         output_ident_category, output_simple_mapping): Fix format directives.
48367         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
48368
48369 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
48370
48371         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
48372         fixes are available from IBM.
48373
48374 2009-02-13  Jim Meyering  <meyering@redhat.com>
48375
48376         fts: arrange not to stat non-directories in more cases
48377         This makes GNU find (when it doesn't need to stat each file)
48378         *much* more efficient at traversing reiserfs file systems.
48379         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
48380         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
48381         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
48382         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
48383         (leaf_optimization_applies): New function.
48384         (LCO_hash, LCO_compare): New helper functions.
48385         (link_count_optimize_ok): New function.
48386         (fts_stat): Initialize new member (if dir).
48387         (fts_read): Decrement parent's fts_n_dirs_remaining count if
48388         we've just stat'ed a directory.  Skip the stat call when possible.
48389         ---
48390         Note this AFS-related exchange:
48391         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
48392         and note find's pioctl call in find/fstype.c.
48393         But that is necessary only if you want to enable the
48394         optimization for AFS, and for now, I don't.
48395
48396         fts: move a function definition "up" (no semantic change)
48397         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
48398         "up" to precede upcoming use of a related function.
48399
48400 2009-02-11  Jim Meyering  <meyering@redhat.com>
48401
48402         fts: correct internal computation of nlinks (optimization-related)
48403         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
48404         whether the current entry is a directory, so don't test it.
48405
48406 2009-02-10  Bruno Haible  <bruno@clisp.org>
48407
48408         Tests for module 'uniwbrk/ulc-wordbreaks'.
48409         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
48410         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
48411         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
48412
48413         Tests for module 'uniwbrk/u32-wordbreaks'.
48414         * modules/uniwbrk/u32-wordbreaks-tests: New file.
48415         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
48416
48417         Tests for module 'uniwbrk/u16-wordbreaks'.
48418         * modules/uniwbrk/u16-wordbreaks-tests: New file.
48419         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
48420
48421         Tests for module 'uniwbrk/u8-wordbreaks'.
48422         * modules/uniwbrk/u8-wordbreaks-tests: New file.
48423         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
48424
48425 2009-02-10  Bruno Haible  <bruno@clisp.org>
48426
48427         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
48428         property.
48429         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
48430         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
48431         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
48432
48433 2009-02-10  Simon Josefsson  <simon@josefsson.org>
48434
48435         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
48436         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
48437
48438 2009-02-10  Bruno Haible  <bruno@clisp.org>
48439
48440         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
48441         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
48442         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
48443         * lib/unilbrk/u8-possible-linebreaks.c: Update.
48444         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
48445         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
48446
48447 2009-02-09  Simon Josefsson  <simon@josefsson.org>
48448
48449         * lib/sockets.h (gl_fd_to_handle): New function.
48450
48451         * tests/test-sockets.c: Call gl_fd_to_handle.
48452
48453 2009-02-09  Bruno Haible  <bruno@clisp.org>
48454
48455         * doc/havelib.texi: Document the conventions on bi-arch systems.
48456
48457 2009-02-08  Bruno Haible  <bruno@clisp.org>
48458
48459         Document the AC_LIB_LINKFLAGS macro.
48460         * doc/havelib.texi: New file, mostly written on 2005-05-24.
48461         * doc/gnulib.texi: Include it.
48462
48463 2009-02-08  Bruno Haible  <bruno@clisp.org>
48464
48465         Fix wrong order of sections, compared to TOC.
48466         * doc/gnulib.texi: Include relocatable-maint.texi after the
48467         "Regular expressions" node, not before.
48468
48469 2009-02-08  Bruno Haible  <bruno@clisp.org>
48470
48471         Tests for module 'unicase/totitle'.
48472         * modules/unicase/totitle-tests: New file.
48473
48474         Tests for module 'unicase/tolower'.
48475         * modules/unicase/tolower-tests: New file.
48476
48477         Tests for module 'unicase/toupper'.
48478         * modules/unicase/toupper-tests: New file.
48479         * tests/unicase/test-mapping-part1.h: New file.
48480         * tests/unicase/test-mapping-part2.h: New file.
48481
48482         New module 'unicase/totitle'.
48483         * modules/unicase/totitle: New file.
48484         * lib/unicase/totitle.c: New file.
48485
48486         New module 'unicase/tolower'.
48487         * modules/unicase/tolower: New file.
48488         * lib/unicase/tolower.c: New file.
48489
48490         New module 'unicase/toupper'.
48491         * modules/unicase/toupper: New file.
48492         * lib/unicase/toupper.c: New file.
48493         * lib/unicase/simple-mapping.h: New file.
48494
48495         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
48496         (mapping_table): New structure.
48497         (output_simple_mapping): New function.
48498         (main): Invoke output_simple_mapping_test and output_simple_mapping.
48499         * modules/gen-uni-tables (Description): Update.
48500         * lib/unicase/toupper.h: New file, automatically generated by
48501         gen-uni-tables.
48502         * lib/unicase/tolower.h: New file, automatically generated by
48503         gen-uni-tables.
48504         * lib/unicase/totitle.h: New file, automatically generated by
48505         gen-uni-tables.
48506         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
48507         gen-uni-tables.
48508         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
48509         gen-uni-tables.
48510         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
48511         gen-uni-tables.
48512
48513         New module 'unicase/base'.
48514         * modules/unicase/base: New file.
48515         * lib/unicase.h: New file.
48516
48517 2009-02-08  Bruno Haible  <bruno@clisp.org>
48518
48519         New module 'uniwbrk/ulc-wordbreaks'.
48520         * modules/uniwbrk/ulc-wordbreaks: New file.
48521         * lib/uniwbrk/ulc-wordbreaks.c: New file.
48522
48523         New module 'uniwbrk/u32-wordbreaks'.
48524         * modules/uniwbrk/u32-wordbreaks: New file.
48525         * lib/uniwbrk/u32-wordbreaks.c: New file.
48526
48527         New module 'uniwbrk/u16-wordbreaks'.
48528         * modules/uniwbrk/u16-wordbreaks: New file.
48529         * lib/uniwbrk/u16-wordbreaks.c: New file.
48530
48531         New module 'uniwbrk/u8-wordbreaks'.
48532         * modules/uniwbrk/u8-wordbreaks: New file.
48533         * lib/uniwbrk/u8-wordbreaks.c: New file.
48534         * lib/uniwbrk/u-wordbreaks.h: New file.
48535
48536         New module 'uniwbrk/table'.
48537         * modules/uniwbrk/table: New file.
48538         * lib/uniwbrk/wbrktable.h: New file.
48539         * lib/uniwbrk/wbrktable.c: New file.
48540
48541         New module 'uniwbrk/wordbreak-property'.
48542         * modules/uniwbrk/wordbreak-property: New file.
48543         * lib/uniwbrk/wordbreak-property.c: New file.
48544
48545         * lib/gen-uni-tables.c (WBP_*): New enum items.
48546         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
48547         (unicode_org_wbp): New variable.
48548         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
48549         New functions.
48550         (wbp_table): New structure.
48551         (output_wbp, output_wbrk_tables): New functions.
48552         (main): Accept additional argument. Invoke fill_org_wbp,
48553         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
48554         output_wbrk_tables.
48555         * modules/gen-uni-tables (Description): Update.
48556         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
48557         gen-uni-tables.
48558
48559         New module 'uniwbrk/base'.
48560         * modules/uniwbrk/base: New file.
48561         * lib/uniwbrk.h: New file.
48562
48563 2009-02-08  Bruno Haible  <bruno@clisp.org>
48564
48565         Update to Unicode 5.1.0.
48566         * lib/gen-uni-tables.c (is_property_alphabetic): Include
48567         U+2185..U+2188.
48568         (is_property_default_ignorable_code_point): Don't include characters
48569         of category Cc or Cs and not-a-characters.
48570         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
48571         U+0D79, U+109E, U+109F, U+A60C.
48572         * lib/unictype/bidi_of.h: Regenerated.
48573         * lib/unictype/blocks.h: Regenerated.
48574         * lib/unictype/categ_C.h: Regenerated.
48575         * lib/unictype/categ_Cf.h: Regenerated.
48576         * lib/unictype/categ_Cn.h: Regenerated.
48577         * lib/unictype/categ_L.h: Regenerated.
48578         * lib/unictype/categ_Ll.h: Regenerated.
48579         * lib/unictype/categ_Lm.h: Regenerated.
48580         * lib/unictype/categ_Lo.h: Regenerated.
48581         * lib/unictype/categ_Lu.h: Regenerated.
48582         * lib/unictype/categ_M.h: Regenerated.
48583         * lib/unictype/categ_Mc.h: Regenerated.
48584         * lib/unictype/categ_Me.h: Regenerated.
48585         * lib/unictype/categ_Mn.h: Regenerated.
48586         * lib/unictype/categ_N.h: Regenerated.
48587         * lib/unictype/categ_Nd.h: Regenerated.
48588         * lib/unictype/categ_Nl.h: Regenerated.
48589         * lib/unictype/categ_No.h: Regenerated.
48590         * lib/unictype/categ_P.h: Regenerated.
48591         * lib/unictype/categ_Pd.h: Regenerated.
48592         * lib/unictype/categ_Pe.h: Regenerated.
48593         * lib/unictype/categ_Pf.h: Regenerated.
48594         * lib/unictype/categ_Pi.h: Regenerated.
48595         * lib/unictype/categ_Po.h: Regenerated.
48596         * lib/unictype/categ_Ps.h: Regenerated.
48597         * lib/unictype/categ_S.h: Regenerated.
48598         * lib/unictype/categ_Sk.h: Regenerated.
48599         * lib/unictype/categ_Sm.h: Regenerated.
48600         * lib/unictype/categ_So.h: Regenerated.
48601         * lib/unictype/categ_of.h: Regenerated.
48602         * lib/unictype/combining.h: Regenerated.
48603         * lib/unictype/ctype_alnum.h: Regenerated.
48604         * lib/unictype/ctype_alpha.h: Regenerated.
48605         * lib/unictype/ctype_graph.h: Regenerated.
48606         * lib/unictype/ctype_lower.h: Regenerated.
48607         * lib/unictype/ctype_print.h: Regenerated.
48608         * lib/unictype/ctype_punct.h: Regenerated.
48609         * lib/unictype/ctype_upper.h: Regenerated.
48610         * lib/unictype/decdigit.h: Regenerated.
48611         * lib/unictype/digit.h: Regenerated.
48612         * lib/unictype/mirror.h: Regenerated.
48613         * lib/unictype/numeric.h: Regenerated.
48614         * lib/unictype/pr_alphabetic.h: Regenerated.
48615         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
48616         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
48617         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
48618         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
48619         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
48620         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
48621         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
48622         * lib/unictype/pr_combining.h: Regenerated.
48623         * lib/unictype/pr_dash.h: Regenerated.
48624         * lib/unictype/pr_decimal_digit.h: Regenerated.
48625         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
48626         * lib/unictype/pr_deprecated.h: Regenerated.
48627         * lib/unictype/pr_diacritic.h: Regenerated.
48628         * lib/unictype/pr_extender.h: Regenerated.
48629         * lib/unictype/pr_format_control.h: Regenerated.
48630         * lib/unictype/pr_grapheme_base.h: Regenerated.
48631         * lib/unictype/pr_grapheme_extend.h: Regenerated.
48632         * lib/unictype/pr_grapheme_link.h: Regenerated.
48633         * lib/unictype/pr_id_continue.h: Regenerated.
48634         * lib/unictype/pr_id_start.h: Regenerated.
48635         * lib/unictype/pr_ideographic.h: Regenerated.
48636         * lib/unictype/pr_ignorable_control.h: Regenerated.
48637         * lib/unictype/pr_lowercase.h: Regenerated.
48638         * lib/unictype/pr_math.h: Regenerated.
48639         * lib/unictype/pr_numeric.h: Regenerated.
48640         * lib/unictype/pr_other_alphabetic.h: Regenerated.
48641         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
48642         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
48643         * lib/unictype/pr_other_id_continue.h: Regenerated.
48644         * lib/unictype/pr_other_lowercase.h: Regenerated.
48645         * lib/unictype/pr_other_math.h: Regenerated.
48646         * lib/unictype/pr_punctuation.h: Regenerated.
48647         * lib/unictype/pr_sentence_terminal.h: Regenerated.
48648         * lib/unictype/pr_soft_dotted.h: Regenerated.
48649         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
48650         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
48651         * lib/unictype/pr_unified_ideograph.h: Regenerated.
48652         * lib/unictype/pr_uppercase.h: Regenerated.
48653         * lib/unictype/pr_xid_continue.h: Regenerated.
48654         * lib/unictype/pr_xid_start.h: Regenerated.
48655         * lib/unictype/pr_zero_width.h: Regenerated.
48656         * lib/unictype/scripts.h: Regenerated.
48657         * lib/unictype/scripts_byname.gperf: Regenerated.
48658         * lib/unictype/sy_java_ident.h: Regenerated.
48659         * lib/unilbrk/lbrkprop1.h: Regenerated.
48660         * lib/unilbrk/lbrkprop2.h: Regenerated.
48661         * tests/unictype/test-categ_C.c: Regenerated.
48662         * tests/unictype/test-categ_Cf.c: Regenerated.
48663         * tests/unictype/test-categ_Cn.c: Regenerated.
48664         * tests/unictype/test-categ_L.c: Regenerated.
48665         * tests/unictype/test-categ_Ll.c: Regenerated.
48666         * tests/unictype/test-categ_Lm.c: Regenerated.
48667         * tests/unictype/test-categ_Lo.c: Regenerated.
48668         * tests/unictype/test-categ_Lu.c: Regenerated.
48669         * tests/unictype/test-categ_M.c: Regenerated.
48670         * tests/unictype/test-categ_Mc.c: Regenerated.
48671         * tests/unictype/test-categ_Me.c: Regenerated.
48672         * tests/unictype/test-categ_Mn.c: Regenerated.
48673         * tests/unictype/test-categ_N.c: Regenerated.
48674         * tests/unictype/test-categ_Nd.c: Regenerated.
48675         * tests/unictype/test-categ_Nl.c: Regenerated.
48676         * tests/unictype/test-categ_No.c: Regenerated.
48677         * tests/unictype/test-categ_P.c: Regenerated.
48678         * tests/unictype/test-categ_Pd.c: Regenerated.
48679         * tests/unictype/test-categ_Pe.c: Regenerated.
48680         * tests/unictype/test-categ_Pf.c: Regenerated.
48681         * tests/unictype/test-categ_Pi.c: Regenerated.
48682         * tests/unictype/test-categ_Po.c: Regenerated.
48683         * tests/unictype/test-categ_Ps.c: Regenerated.
48684         * tests/unictype/test-categ_S.c: Regenerated.
48685         * tests/unictype/test-categ_Sk.c: Regenerated.
48686         * tests/unictype/test-categ_Sm.c: Regenerated.
48687         * tests/unictype/test-categ_So.c: Regenerated.
48688         * tests/unictype/test-ctype_alnum.c: Regenerated.
48689         * tests/unictype/test-ctype_alpha.c: Regenerated.
48690         * tests/unictype/test-ctype_graph.c: Regenerated.
48691         * tests/unictype/test-ctype_lower.c: Regenerated.
48692         * tests/unictype/test-ctype_print.c: Regenerated.
48693         * tests/unictype/test-ctype_punct.c: Regenerated.
48694         * tests/unictype/test-ctype_upper.c: Regenerated.
48695         * tests/unictype/test-decdigit.h: Regenerated.
48696         * tests/unictype/test-digit.h: Regenerated.
48697         * tests/unictype/test-numeric.h: Regenerated.
48698         * tests/unictype/test-pr_alphabetic.c: Regenerated.
48699         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
48700         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
48701         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
48702         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
48703         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
48704         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
48705         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
48706         * tests/unictype/test-pr_combining.c: Regenerated.
48707         * tests/unictype/test-pr_dash.c: Regenerated.
48708         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
48709         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
48710         * tests/unictype/test-pr_deprecated.c: Regenerated.
48711         * tests/unictype/test-pr_diacritic.c: Regenerated.
48712         * tests/unictype/test-pr_extender.c: Regenerated.
48713         * tests/unictype/test-pr_format_control.c: Regenerated.
48714         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
48715         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
48716         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
48717         * tests/unictype/test-pr_id_continue.c: Regenerated.
48718         * tests/unictype/test-pr_id_start.c: Regenerated.
48719         * tests/unictype/test-pr_ideographic.c: Regenerated.
48720         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
48721         * tests/unictype/test-pr_lowercase.c: Regenerated.
48722         * tests/unictype/test-pr_math.c: Regenerated.
48723         * tests/unictype/test-pr_numeric.c: Regenerated.
48724         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
48725         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
48726         Regenerated.
48727         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
48728         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
48729         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
48730         * tests/unictype/test-pr_other_math.c: Regenerated.
48731         * tests/unictype/test-pr_punctuation.c: Regenerated.
48732         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
48733         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
48734         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
48735         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
48736         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
48737         * tests/unictype/test-pr_uppercase.c: Regenerated.
48738         * tests/unictype/test-pr_xid_continue.c: Regenerated.
48739         * tests/unictype/test-pr_xid_start.c: Regenerated.
48740         * tests/unictype/test-pr_zero_width.c: Regenerated.
48741
48742         Update to Unicode 5.1.0.
48743         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
48744         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
48745         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
48746         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
48747         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
48748         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
48749         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
48750         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
48751         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
48752         (nonspacing_table_ind): Update.
48753         * tests/uniwidth/test-uc_width2.sh: Update expected result.
48754
48755         Update to Unicode 5.1.0.
48756         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
48757         code transform.
48758         * lib/uniname/uniname.c (unicode_character_name,
48759         unicode_name_character): Add the range 0x1Fxxx to the code transform.
48760         * lib/uniname/uninames.h: Regenerated.
48761         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
48762
48763 2009-02-07  Bruno Haible  <bruno@clisp.org>
48764
48765         Merge gen-ctype and gen-lbrk into a single program.
48766         * lib/gen-uni-tables.c: New file, incorporating
48767         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
48768         Add directory prefixes to the names of the generated files.
48769         * lib/unictype/gen-ctype.c: Remove file.
48770         * lib/unilbrk/gen-lbrk.c: Remove file.
48771         * modules/gen-uni-tables: New file.
48772         * modules/unictype/gen-ctype: Remove file.
48773         * modules/unilbrk/gen-lbrk: Remove file.
48774
48775 2009-02-07  Bruno Haible  <bruno@clisp.org>
48776
48777         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
48778
48779         New module 'unistr/u32-strcoll'.
48780         * modules/unistr/u32-strcoll: New file.
48781         * lib/unistr/u32-strcoll.c: New file.
48782
48783         New module 'unistr/u16-strcoll'.
48784         * modules/unistr/u16-strcoll: New file.
48785         * lib/unistr/u16-strcoll.c: New file.
48786
48787         New module 'unistr/u8-strcoll'.
48788         * modules/unistr/u8-strcoll: New file.
48789         * lib/unistr/u8-strcoll.c: New file.
48790         * lib/unistr/u-strcoll.h: New file.
48791
48792 2009-02-07  Bruno Haible  <bruno@clisp.org>
48793
48794         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
48795         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48796         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48797         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
48798         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
48799         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
48800
48801 2009-02-07  Bruno Haible  <bruno@clisp.org>
48802
48803         Make 64-bit clean.
48804         * lib/unictype/gen-ctype.c (output_predicate, output_category,
48805         output_combclass, output_bidi_category, output_decimal_digit,
48806         output_digit, output_numeric, output_mirror, output_scripts,
48807         output_ident_category): Use proper width specifier in format strings.
48808
48809 2009-02-07  Bruno Haible  <bruno@clisp.org>
48810
48811         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
48812         failure behaviour.
48813
48814 2009-02-07  Jim Meyering  <meyering@redhat.com>
48815
48816         regex: avoid compilation failure with upcoming gcc-4.4
48817         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
48818         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
48819         "... error: integer overflow in preprocessor expression".
48820
48821 2009-02-05  Ben Pfaff  <blp@gnu.org>
48822
48823         Fix link errors on Windows when close module is used.
48824         * modules/close: Add $(LIB_CLOSE) to Link section.
48825         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
48826         $(LIB_CLOSE) on Windows.
48827
48828 2009-02-05  Jim Meyering  <meyering@redhat.com>
48829
48830         still avoid unused-parameter warnings, but do it cleanly
48831         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
48832         (get_fs_usage): Cast to void instead.
48833         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
48834         (dev_from_mount_options, read_file_system_list): Cast to void.
48835         Prompted by Bruno Haible.
48836
48837 2009-02-04  Jim Meyering  <meyering@redhat.com>
48838
48839         fsusage.c: correct copyright year
48840         * lib/fsusage.c: Reflect year in which the change is pushed into
48841
48842         avoid misc. warnings
48843         * lib/fsusage.c (UNUSED_PARAM): Define.
48844         (get_fs_usage): Mark parameter "disk" as unused.
48845         * lib/getugroups.c (getgrent): Use "void" in prototype.
48846         * lib/mountlist.c: Mark unused parameters.
48847         (read_file_system_list): Declare a local with "const".
48848         * lib/nanosleep.c (getnow): Declare static.
48849         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
48850
48851         dirfd: set errno upon failure
48852         * lib/dirfd.c: Include <errno.h>.
48853         Set errno to ENOTSUP when returning -1.
48854         * modules/dirfd (Depends-on): Add errno.
48855         Suggested by John Kodis <kodis@comcast.net>.
48856
48857 2009-02-01  Bruno Haible  <bruno@clisp.org>
48858
48859         Don't assume sizeof (long) >= sizeof (void *).
48860         * lib/memcmp.c: Include stdint.h.
48861         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
48862         srcp2 to 'const byte *'.
48863         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
48864         types to uintptr_t.
48865         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
48866         * modules/memcmp (Depends-on): Add stdint.
48867         Reported by Ozkan Sezer <sezeroz@gmail.com>.
48868
48869 2009-01-30  Eric Blake  <ebb9@byu.net>
48870
48871         fix more require-before-expand issues
48872         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
48873         expand, AC_PROG_AWK.
48874         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
48875
48876 2009-01-28  Eric Blake  <ebb9@byu.net>
48877
48878         version-etc: use consistent URL formatting
48879         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
48880         Improve formatting.  Use fputs for string without %.
48881
48882 2009-01-28  Jim Meyering  <meyering@redhat.com>
48883
48884         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
48885         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
48886         "underquoted definition of NAME" from autoconf-2.59.
48887
48888 2009-01-28  Bruno Haible  <bruno@clisp.org>
48889
48890         * doc/gnulib.texi: Add "Obsolete modules" to index.
48891
48892 2009-01-28  Jim Meyering  <meyering@redhat.com>
48893
48894         useless-if-before-free: recognize more variants
48895         * build-aux/useless-if-before-free: Also recognize e.g.,
48896         if (NULL != p) free (p);
48897
48898 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
48899
48900         test-getaddrinfo: skip (don't fail) this test when there's no network
48901         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
48902         on the presumption that it means you lack network access.
48903
48904 2009-01-26  Jim Meyering  <meyering@redhat.com>
48905
48906         fflush: avoid warnings on modern systems
48907         * lib/fflush.c (rpl_fflush): Move declarations of locals,
48908         pos and result, into scopes where they're used.
48909
48910 2009-01-26  Eric Blake  <ebb9@byu.net>
48911
48912         Silence warning reintroduced by recent extensions patch.
48913         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
48914         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
48915         autoconf.
48916
48917         Backport improved autoconf semantics of AC_DEFUN_ONCE.
48918         * m4/00gnulib.m4: New file.
48919         * gnulib-tool (func_get_filelist): Always use it.
48920         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
48921         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
48922
48923 2009-01-25  Bruno Haible  <bruno@clisp.org>
48924
48925         Make test-quotearg work on MacOS X and AIX.
48926         * tests/test-quotearg.sh: New file.
48927         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
48928         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
48929         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
48930         include <libintl.h>.
48931         (fake_locale): Remove variable.
48932         (gettext, dgettext, dcgettext): Remove functions.
48933         (main): Instead of setting a fake locale, set a real locale. Call
48934         textdomain and bindtextdomain.
48935         * modules/quotearg-tests (Files): Add the new files.
48936         (Depends-on): Add gettext, setenv, unsetenv.
48937         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
48938         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
48939         Augment TESTS_ENVIRONMENT.
48940
48941 2009-01-25  Bruno Haible  <bruno@clisp.org>
48942
48943         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
48944         fr_FR.ISO8859-1 locale on MacOS X.
48945         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
48946         ja_JP.eucJP locale on MacOS X.
48947         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
48948         zh_CN.GB18030 locale on MacOS X.
48949
48950 2009-01-25  Bruno Haible  <bruno@clisp.org>
48951
48952         Avoid link errors on MacOS X 10.3.
48953         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
48954         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48955
48956 2009-01-25  Bruno Haible  <bruno@clisp.org>
48957
48958         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48959         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
48960         * modules/pipe (Files): Remove m4/posix_spawn.m4.
48961         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48962         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
48963         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48964         posix_spawnattr_init, posix_spawnattr_setsigmask,
48965         posix_spawnattr_setflags, posix_spawnattr_destroy.
48966
48967         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48968         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
48969         * modules/execute (Files): Remove m4/posix_spawn.m4.
48970         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48971         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48972         posix_spawnattr_init, posix_spawnattr_setsigmask,
48973         posix_spawnattr_setflags, posix_spawnattr_destroy.
48974
48975 2009-01-25  Bruno Haible  <bruno@clisp.org>
48976
48977         * lib/glthread/threadlib.c: Include <stdlib.h>.
48978
48979 2009-01-25  Bruno Haible  <bruno@clisp.org>
48980
48981         * lib/glthread/threadlib.c (dummy): New declaration.
48982
48983 2009-01-25  Bruno Haible  <bruno@clisp.org>
48984
48985         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
48986         multibyte characters also for the GB18030 encoding. Don't crash when
48987         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
48988
48989 2009-01-25  Bruno Haible  <bruno@clisp.org>
48990
48991         Avoid redefining 'struct random_data' on OSF/1 5.1.
48992         * lib/stdlib.in.h: Include <random.h> if it exists.
48993         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
48994         HAVE_RANDOM_H. Include <random.h> when testing whether
48995         'struct random_data' exists.
48996         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
48997
48998 2009-01-25  Bruno Haible  <bruno@clisp.org>
48999
49000         Don't install charset.alias on MacOS X >= 10.3.
49001         * lib/localcharset.c (DARWIN7): New macro.
49002         (get_charset_aliases): Hardcode the result for Darwin7.
49003         * modules/localcharset (install-exec-local): Don't install
49004         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
49005
49006 2009-01-25  Bruno Haible  <bruno@clisp.org>
49007
49008         Don't install charset.alias on mingw and Cygwin.
49009         * modules/localcharset (install-exec-local): Don't install
49010         charset.alias on mingw and Cygwin, if the file does not yet exist.
49011         The result for these platforms is hardcoded in localcharset.c.
49012
49013 2009-01-25  Bruno Haible  <bruno@clisp.org>
49014
49015         Make it possible again to use AC_GNU_SOURCE together with gnulib.
49016         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
49017         before requiring AC_USE_SYSTEM_EXTENSIONS.
49018
49019 2009-01-25  Jim Meyering  <meyering@redhat.com>
49020
49021         c-strtod: avoid warnings
49022         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
49023         "assignment discards qualifiers from pointer target type" warnings.
49024
49025 2009-01-24  Bruno Haible  <bruno@clisp.org>
49026
49027         Add support for non-UTF-8 locales on MacOS X.
49028         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
49029         canonical encodings. For Darwin 7 and newer, don't map traditional
49030         encodings to UTF-8.
49031         Reported by Vincent Lefevre <vincent@vinc17.org>
49032         at <http://savannah.gnu.org/bugs/?25235>.
49033
49034 2009-01-24  Bruno Haible  <bruno@clisp.org>
49035
49036         * doc/gnulib.texi (Obsolete modules): New section.
49037         Reported by Mike Frysinger <vapier@gentoo.org>.
49038
49039 2009-01-24  Bruno Haible  <bruno@clisp.org>
49040
49041         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
49042         (%.dvi): New rule.
49043
49044 2009-01-24  Bruno Haible  <bruno@clisp.org>
49045
49046         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
49047         Reported by Eric Blake.
49048
49049 2009-01-24  Bruno Haible  <bruno@clisp.org>
49050
49051         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
49052         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
49053         Reported by Gary V. Vaughan <gary@gnu.org>.
49054
49055 2009-01-24  Bruno Haible  <bruno@clisp.org>
49056
49057         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
49058
49059 2009-01-23  Bruno Haible  <bruno@clisp.org>
49060
49061         Make c-strtod, c-strtold usable in libraries.
49062         * lib/c-strtod.c: Include string.h instead of xalloc.h.
49063         (C_STRTOD): Call strdup instead of xstrdup.
49064         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
49065         * modules/c-strtold (Depends-on): Likewise.
49066         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
49067         * NEWS: Mention the change.
49068         Reported by Michael Gold <mgold@ncf.ca>.
49069
49070 2009-01-23  Jim Meyering  <meyering@redhat.com>
49071
49072         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
49073         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
49074         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
49075
49076 2009-01-23  Simon Josefsson  <simon@josefsson.org>
49077
49078         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
49079         GNU CoreUtils.
49080         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
49081         * modules/version-etc (Description): Update.
49082
49083 2009-01-22  Bruno Haible  <bruno@clisp.org>
49084
49085         Cache the C locale object.
49086         * lib/c-strtod.c (c_locale_cache): New variable.
49087         (c_locale): New function.
49088         (C_STRTOD): Use it, and don't call freelocale.
49089         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
49090         Suggested by Paolo Bonzini.
49091
49092 2009-01-21  Bruno Haible  <bruno@clisp.org>
49093
49094         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
49095         conditions other than overflow.
49096
49097 2009-01-21  Bruno Haible  <bruno@clisp.org>
49098
49099         * lib/c-strtod.c: Include errno.h.
49100         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
49101         value from STRTOD_L and STRTOD.
49102
49103 2009-01-21  Bruno Haible  <bruno@clisp.org>
49104         and Jim Meyering  <meyering@redhat.com>
49105
49106         nanosleep: skip configure test (fail it) for apple universal builds
49107         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
49108         universal builds, assume that nanosleep does not work.
49109         * modules/nanosleep (Depends-on): Add multiarch.
49110
49111         mktime: skip configure test (fail it) for apple universal builds
49112         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
49113         universal builds, assume that mktime does not work.
49114         * modules/mktime (Depends-on): Add multiarch.
49115
49116 2009-01-21  Eric Blake  <ebb9@byu.net>
49117
49118         multiarch: avoid expand-before-require warning
49119         * modules/multiarch (configure.ac): Require, rather than expand,
49120         gl_MULTIARCH.
49121         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
49122         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
49123         enforce that all clients require it.  Partial reversion of
49124         2008-12-29 patch.
49125
49126         error: avoid expand-before-require warning
49127         * modules/errno (configure.ac): Require, rather than expand,
49128         gl_HEADER_ERRNO_H.
49129         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
49130         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
49131         enforce that all clients require it.
49132
49133         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
49134         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
49135         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
49136         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
49137
49138 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
49139
49140         Revert:
49141         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
49142
49143         regex: do not depend on obsolete modules.
49144         * modules/regex: Remove memcmp and memmove.
49145
49146 2009-01-20  Bruno Haible  <bruno@clisp.org>
49147
49148         Make the 'link' module link on Windows NT 4.
49149         * lib/link.c (_WIN32_WINNT): Don't define.
49150         (CreateHardLinkFuncType): New type.
49151         (CreateHardLinkFunc, initialized): New variables.
49152         (initialize): New function.
49153         (link): Invoke CreateHardLink indirectly through the function pointer.
49154
49155 2009-01-20  Bruno Haible  <bruno@clisp.org>
49156
49157         Fix compilation failure on mingw.
49158         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
49159
49160 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
49161
49162         * doc/c-strtod.texi: Mention a couple of restrictions.
49163
49164 2009-01-20  Jim Meyering  <meyering@redhat.com>
49165
49166         gettimeofday: move more declarations out of functions
49167         * lib/gettimeofday.c: Move extern declarations of tzset and
49168         gmtime out of containing functions.  Prompted by Bruno Haible.
49169
49170 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
49171
49172         regex: do not depend on obsolete modules.
49173         * modules/regex: Remove memcmp and memmove.
49174
49175 2009-01-19  Bruno Haible  <bruno@clisp.org>
49176
49177         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
49178         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
49179         gl_BIGENDIAN, not AC_C_BIGENDIAN.
49180         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
49181         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
49182
49183 2009-01-19  Bruno Haible  <bruno@clisp.org>
49184
49185         * tests/test-link.c: Include <errno.h>.
49186         (main): Exit with code 77 when a hard link cannot be created due to
49187         the file system.
49188         * tests/test-link.sh: Skip test when a hard link cannot be created due
49189         to the file system.
49190         Suggested by Eric Blake.
49191
49192 2009-01-19  Martin Lambers  <marlam@marlam.de>
49193
49194         * modules/link-tests: New file.
49195         * tests/test-link.sh: New file.
49196         * tests/test-link.c: New file.
49197
49198 2009-01-19  Eric Blake  <ebb9@byu.net>
49199
49200         doc: mention another function added in cygwin 1.7.0
49201         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
49202         Another new function in cygwin 1.7.
49203
49204 2009-01-19  Bruno Haible  <bruno@clisp.org>
49205
49206         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
49207         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
49208         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
49209         gl_BIGENDIAN, not AC_C_BIGENDIAN.
49210         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
49211         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
49212         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
49213         * m4/md4.m4 (gl_MD4): Likewise.
49214         * m4/md5.m4 (gl_MD5): Likewise.
49215         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
49216         * m4/sha1.m4 (gl_SHA1): Likewise.
49217         * m4/sha256.m4 (gl_SHA256): Likewise.
49218         * m4/sha512.m4 (gl_SHA512): Likewise.
49219
49220 2009-01-19  Bruno Haible  <bruno@clisp.org>
49221
49222         * modules/uniname/uniname-tests (Depends-on): Add progname.
49223         * tests/uniname/test-uninames.c: Include progname.h.
49224         (main): Call set_program_name.
49225
49226         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
49227         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
49228         (main): Call set_program_name.
49229
49230         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
49231         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
49232         (main): Call set_program_name.
49233
49234         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
49235         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
49236         (main): Call set_program_name.
49237
49238         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
49239         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
49240         (main): Call set_program_name.
49241
49242         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
49243         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
49244         (main): Call set_program_name.
49245
49246         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
49247         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
49248         (main): Call set_program_name.
49249
49250         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
49251         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
49252         (main): Call set_program_name.
49253
49254         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
49255         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
49256         (main): Call set_program_name.
49257
49258 2009-01-19  Eric Blake  <ebb9@byu.net>
49259
49260         test-unistd: test previous patch
49261         * tests/test-unistd.c: Test *_FILENO macros.
49262
49263         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
49264         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49265         Guarantee a definition.
49266         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
49267         * modules/unistd-safer (Depends-on): Add dependency on unistd.
49268         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
49269         * lib/dup-safer.c (STDERR_FILENO): Likewise.
49270         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49271         Likewise.
49272         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
49273         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
49274         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49275         Likewise.
49276         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
49277         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
49278         (STDERR_FILENO): Likewise.
49279         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
49280         (STDERR_FILENO): Likewise.
49281         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
49282         (STDERR_FILENO): Likewise.
49283         Reported by Elbert Pol.
49284
49285 2009-01-19  Eric Blake  <ebb9@byu.net>
49286
49287         doc: mention more functions added in cygwin 1.7.0
49288         * doc/posix-functions/abort.texi (abort): Update wording related
49289         to cygwin.
49290         * doc/posix-functions/daylight.texi (daylight): Likewise.
49291         * doc/posix-functions/optarg.texi (optarg): Likewise.
49292         * doc/posix-functions/optarg.texi (opterr): Likewise.
49293         * doc/posix-functions/optarg.texi (optind): Likewise.
49294         * doc/posix-functions/optarg.texi (optopt): Likewise.
49295         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
49296         worked in 1.5.x, and was withdrawn in 1.7.
49297         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
49298         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
49299         cygwin versions.
49300         * doc/posix-functions/perror.texi (perror): Likewise.
49301         * doc/posix-functions/printf.texi (printf): Likewise.
49302         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
49303         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
49304         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
49305         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
49306         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
49307         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
49308         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49309         Likewise.
49310         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49311         Likewise.
49312         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
49313         this function.
49314         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
49315         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
49316         Likewise.
49317         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
49318         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
49319         * doc/posix-functions/confstr.texi (confstr): Likewise.
49320         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
49321         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
49322         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
49323         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
49324         * doc/posix-functions/fputws.texi (fputws): Likewise.
49325         * doc/posix-functions/fwide.texi (fwide): Likewise.
49326         * doc/posix-functions/getwc.texi (getwc): Likewise.
49327         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
49328         * doc/posix-functions/putwc.texi (putwc): Likewise.
49329         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
49330         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
49331         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
49332         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
49333         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
49334         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
49335         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
49336         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
49337         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
49338         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
49339         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
49340
49341 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
49342
49343         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
49344         * lib/ioctl.c: Include <sys/ioctl.h>.
49345
49346 2009-01-19  Simon Josefsson  <simon@josefsson.org>
49347
49348         * modules/getdate-tests (Depends-on): Add progname.
49349         * tests/test-getdate.c: Use progname module, to avoid link errors
49350         on non-glibc systems.
49351
49352 2009-01-18  Simon Josefsson  <simon@josefsson.org>
49353
49354         * modules/filenamecat-tests (Depends-on): Add progname.
49355         * modules/fstrcmp-tests (Depends-on): Likewise.
49356
49357         * tests/test-filenamecat.c: Use progname module, to avoid link
49358         errors on non-glibc systems.
49359         * tests/test-fstrcmp.c: Likewise.
49360
49361 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
49362
49363         gettimeofday: avoid warning: nested extern declaration of 'localtime'
49364         * lib/gettimeofday.c: Move extern declaration out of function.
49365
49366 2009-01-18  Bruno Haible  <bruno@clisp.org>
49367
49368         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
49369         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
49370         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
49371
49372 2009-01-18  Bruno Haible  <bruno@clisp.org>
49373
49374         * lib/strftime.c (MEMPCPY): Remove unused macro.
49375         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
49376
49377 2009-01-18  Martin Lambers  <marlam@marlam.de>
49378
49379         New module 'link'.
49380         * lib/unistd.in.h (link): New declaration.
49381         * lib/link.c: New file.
49382         * m4/link.m4: New file.
49383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
49384         HAVE_LINK.
49385         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
49386         * modules/link: New file.
49387         * doc/posix-functions/link.texi: Mention the new module.
49388
49389 2009-01-18  Bruno Haible  <bruno@clisp.org>
49390
49391         * tests/test-avltree_list.c (main): Call set_program_name.
49392         * tests/test-avltree_oset.c (main): Likewise.
49393         * tests/test-obstack-printf.c: Include progname.h.
49394         (main): Call set_program_name.
49395         * tests/test-quotearg.c: Include progname.h.
49396         (main): Call set_program_name.
49397         * tests/test-xmemdup0.c: Include progname.h.
49398         (main): Call set_program_name.
49399
49400 2009-01-18  Bruno Haible  <bruno@clisp.org>
49401
49402         New module 'alphasort'.
49403         * lib/dirent.in.h (alphasort): New declaration.
49404         * lib/alphasort.c: New file, from glibc with modifications.
49405         * m4/alphasort.m4: New file.
49406         * modules/alphasort: New file.
49407         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
49408         HAVE_ALPHASORT.
49409         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
49410         HAVE_ALPHASORT.
49411         * doc/posix-functions/alphasort.texi: Mention the new module and the
49412         portability problems.
49413
49414 2009-01-18  Bruno Haible  <bruno@clisp.org>
49415
49416         New module 'scandir'.
49417         * lib/dirent.in.h (scandir): New declaration.
49418         * lib/scandir.c: New file, from glibc with modifications.
49419         * m4/scandir.m4: New file.
49420         * modules/scandir: New file.
49421         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
49422         HAVE_SCANDIR.
49423         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
49424         HAVE_SCANDIR.
49425         * doc/posix-functions/scandir.texi: Mention the new module and the
49426         portability problems.
49427
49428 2009-01-17  Bruno Haible  <bruno@clisp.org>
49429
49430         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
49431         Update documentation.
49432         (func_remove_suffix): Escape all dots in the suffix. Update
49433         documentation.
49434         (func_filter_filelist): Update documentation.
49435         Reported by Ralf Wildenhues.
49436
49437 2009-01-17  Bruno Haible  <bruno@clisp.org>
49438
49439         * modules/dprintf-posix-tests: New file.
49440         * tests/test-dprintf-posix.sh: New file.
49441         * tests/test-dprintf-posix.c: New file.
49442
49443         New modules 'dprintf', 'dprintf-posix'.
49444         * lib/stdio.in.h (dprintf): New declaration.
49445         * lib/dprintf.c: New file.
49446         * m4/dprintf.m4: New file.
49447         * m4/dprintf-posix.m4: New file.
49448         * modules/dprintf: New file.
49449         * modules/dprintf-posix: New file.
49450         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
49451         HAVE_DPRINTF, REPLACE_DPRINTF.
49452         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
49453         HAVE_DPRINTF, REPLACE_DPRINTF.
49454         * doc/posix-functions/dprintf.texi: Mention the new modules.
49455
49456 2009-01-17  Bruno Haible  <bruno@clisp.org>
49457
49458         * modules/vdprintf-posix-tests: New file.
49459         * tests/test-vdprintf-posix.sh: New file.
49460         * tests/test-vdprintf-posix.c: New file.
49461
49462         New modules 'vdprintf', 'vdprintf-posix'.
49463         * lib/stdio.in.h (vdprintf): New declaration.
49464         * lib/vdprintf.c: New file.
49465         * m4/vdprintf.m4: New file.
49466         * m4/vdprintf-posix.m4: New file.
49467         * modules/vdprintf: New file.
49468         * modules/vdprintf-posix: New file.
49469         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
49470         HAVE_VDPRINTF, REPLACE_VDPRINTF.
49471         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
49472         HAVE_VDPRINTF, REPLACE_VDPRINTF.
49473         * doc/posix-functions/vdprintf.texi: Mention the new modules.
49474
49475 2009-01-17  Bruno Haible  <bruno@clisp.org>
49476
49477         Fix replacement of fopen on mingw.
49478         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
49479         mingw.
49480
49481 2009-01-17  Bruno Haible  <bruno@clisp.org>
49482
49483         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
49484         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
49485
49486 2009-01-17  Bruno Haible  <bruno@clisp.org>
49487
49488         Avoid test-fflush2.sh failure on mingw.
49489         * tests/test-fflush2.c: Include binary-io.h.
49490         (main): Put standard input into binary mode.
49491         * modules/fflush-tests (Depends-on): Add binary-io.
49492
49493 2009-01-17  Bruno Haible  <bruno@clisp.org>
49494
49495         * lib/wchar.in.h: In another particular situation, include only the
49496         system's <wchar.h> file.
49497         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
49498         Reported by Albert Chin-A-Young <china@thewrittenword.com>
49499         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
49500
49501 2009-01-17  Bruno Haible  <bruno@clisp.org>
49502
49503         Support for stripping executables in --enable-relocatable.
49504         * build-aux/install-reloc: Expect one more argument, or an environment
49505         variable RELOC_STRIP_PROG. If set, strip the destination program and
49506         its wrapper.
49507         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
49508         RELOC_STRIP_PROG.
49509         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
49510         to set RELOCATABLE_STRIP.
49511         * NEWS: Mention the new Makefile requirement.
49512
49513 2009-01-17  Bruno Haible  <bruno@clisp.org>
49514
49515         * build-aux/install-reloc: Remove debugging information left over by
49516         C compiler on MacOS X.
49517
49518 2009-01-17  Bruno Haible  <bruno@clisp.org>
49519
49520         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
49521         * lib/progreloc.c (find_executable): Fix type of pointer passed to
49522         _NSGetExecutablePath.
49523
49524 2009-01-16  Jim Meyering  <meyering@redhat.com>
49525
49526         strerror: avoid warnings about discarding "const"
49527         * lib/strerror.c (rpl_strerror): Instead of returning a const
49528         string from each and every "case", use a variable, and add a single
49529         cast after the switch.
49530
49531 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
49532
49533         * lib/arpa_inet.in.h: Add extern "C" block for C++.
49534
49535 2009-01-16  Bruno Haible  <bruno@clisp.org>
49536
49537         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
49538         array initializer syntax that also works in C++ mode.
49539         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49540
49541 2009-01-16  Jim Meyering  <meyering@redhat.com>
49542
49543         poll: suppress a warning
49544         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
49545         to ignore "...unsigned expression < 0 is always false" warnings.
49546
49547 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
49548
49549         poll: remove declarations of unused variables
49550         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
49551         sockbuf and optlen.
49552
49553 2009-01-15  Bruno Haible  <bruno@clisp.org>
49554
49555         Make fflush-after-ungetc POSIX compliant on BSD systems.
49556         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
49557         (clear_ungetc_buffer): Implement also for other systems.
49558         (rpl_fflush): On glibc systems, invoke
49559         clear_ungetc_buffer_preserving_position. Otherwise, invoke
49560         clear_ungetc_buffer after fetching the stream's position, not before.
49561
49562 2009-01-15  Bruno Haible  <bruno@clisp.org>
49563
49564         Make fflush-after-ungetc POSIX compliant on glibc systems.
49565         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
49566         after ungetc.
49567         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
49568         (rpl_fflush): On glibc systems, simply call the system's fflush
49569         function after clearing the ungetc buffer.
49570         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
49571         Instead, lseek only to the end of file, then use the system's fseeko
49572         for the rest. On glibc systems, reset the EOF indicator bit.
49573
49574 2009-01-15  Jim Meyering  <meyering@redhat.com>
49575
49576         openmp.m4: revert quote-adding change, for portability to older autoconf
49577         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
49578         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
49579         Simon Josefsson noticed the problem when using autoconf-2.61.
49580
49581 2009-01-15  Bruno Haible  <bruno@clisp.org>
49582
49583         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
49584         * tests/test-fflush2.c (ASSERT): Always fail.
49585         (main): Add two tests for fflush() after ungetc(), taking into account
49586         the Austin Group's clarification.
49587         Suggested by Eric Blake.
49588
49589 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
49590
49591         mktime.m4: remove K&R-style function prototypes
49592         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
49593         for the Sun C++ compiler.
49594
49595 2009-01-14  Bruno Haible  <bruno@clisp.org>
49596
49597         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
49598         while including <wchar.h>.
49599         * lib/wchar.in.h: In two particular situations on HP-UX, include only
49600         the system's <wchar.h> file.
49601         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49602
49603 2009-01-14  Bruno Haible  <bruno@clisp.org>
49604
49605         * m4/csharp.m4: Don't mention gettext on the serial number line.
49606         * m4/csharpexec.m4: Likewise.
49607         * m4/eaccess.m4: Likewise.
49608         * m4/javaexec.m4: Likewise.
49609         * m4/sig_atomic_t.m4: Likewise.
49610         * m4/tmpdir.m4: Likewise.
49611         * m4/intldir.m4: Bump gettext version.
49612         * m4/lib-ld.m4: Likewise.
49613
49614 2009-01-14  Bruno Haible  <bruno@clisp.org>
49615
49616         * lib/progname.c (set_program_name): Add more comments.
49617         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
49618
49619 2009-01-14  Simon Josefsson  <simon@josefsson.org>
49620
49621         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
49622         were sys/stat.h does not define it.
49623
49624 2009-01-14  Jim Meyering  <meyering@redhat.com>
49625
49626         many *.m4 files: improve m4 quoting
49627         99% of this change was performed by running the following commands:
49628         git ls-files | grep '\.m4$' | xargs perl -pi \
49629           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
49630           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
49631           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
49632           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
49633         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
49634         The remainder were to add Copyright dates, increment serial numbers,
49635         undo some changes in comments, exclude m4/intl.m4, and add quotes
49636         around the "1" in ",1" where the unusual spacing prohibited the
49637         above regexps from doing the job.  For more details, see
49638         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
49639         * m4/acl.m4: Modified.
49640         * m4/afs.m4: Likewise.
49641         * m4/alloca.m4: Likewise.
49642         * m4/argp.m4: Likewise.
49643         * m4/argz.m4: Likewise.
49644         * m4/atexit.m4: Likewise.
49645         * m4/bison-i18n.m4: Likewise.
49646         * m4/bison.m4: Likewise.
49647         * m4/byteswap.m4: Likewise.
49648         * m4/c-stack.m4: Likewise.
49649         * m4/c-strtod.m4: Likewise.
49650         * m4/calloc.m4: Likewise.
49651         * m4/canonicalize-lgpl.m4: Likewise.
49652         * m4/chown.m4: Likewise.
49653         * m4/clock_time.m4: Likewise.
49654         * m4/codeset.m4: Likewise.
49655         * m4/copy-file.m4: Likewise.
49656         * m4/csharp.m4: Likewise.
49657         * m4/csharpcomp.m4: Likewise.
49658         * m4/csharpexec.m4: Likewise.
49659         * m4/d-ino.m4: Likewise.
49660         * m4/d-type.m4: Likewise.
49661         * m4/dirfd.m4: Likewise.
49662         * m4/double-slash-root.m4: Likewise.
49663         * m4/eaccess.m4: Likewise.
49664         * m4/eealloc.m4: Likewise.
49665         * m4/environ.m4: Likewise.
49666         * m4/errno_h.m4: Likewise.
49667         * m4/euidaccess.m4: Likewise.
49668         * m4/execute.m4: Likewise.
49669         * m4/fatal-signal.m4: Likewise.
49670         * m4/fchdir.m4: Likewise.
49671         * m4/fcntl_h.m4: Likewise.
49672         * m4/fileblocks.m4: Likewise.
49673         * m4/filenamecat.m4: Likewise.
49674         * m4/findprog.m4: Likewise.
49675         * m4/flexmember.m4: Likewise.
49676         * m4/fnmatch.m4: Likewise.
49677         * m4/fopen.m4: Likewise.
49678         * m4/fpending.m4: Likewise.
49679         * m4/fprintf-posix.m4: Likewise.
49680         * m4/free.m4: Likewise.
49681         * m4/frexp.m4: Likewise.
49682         * m4/frexpl.m4: Likewise.
49683         * m4/fsusage.m4: Likewise.
49684         * m4/ftruncate.m4: Likewise.
49685         * m4/gc-camellia.m4: Likewise.
49686         * m4/gc-random.m4: Likewise.
49687         * m4/gc.m4: Likewise.
49688         * m4/getaddrinfo.m4: Likewise.
49689         * m4/getcwd-abort-bug.m4: Likewise.
49690         * m4/getcwd-path-max.m4: Likewise.
49691         * m4/getdate.m4: Likewise.
49692         * m4/getdomainname.m4: Likewise.
49693         * m4/getgroups.m4: Likewise.
49694         * m4/gethostname.m4: Likewise.
49695         * m4/gethrxtime.m4: Likewise.
49696         * m4/getline.m4: Likewise.
49697         * m4/getloadavg.m4: Likewise.
49698         * m4/getndelim2.m4: Likewise.
49699         * m4/getpass.m4: Likewise.
49700         * m4/gettext.m4: Likewise.
49701         * m4/gettime.m4: Likewise.
49702         * m4/gettimeofday.m4: Likewise.
49703         * m4/gnulib-common.m4: Likewise.
49704         * m4/group-member.m4: Likewise.
49705         * m4/host-os.m4: Likewise.
49706         * m4/iconv.m4: Likewise.
49707         * m4/iconv_open.m4: Likewise.
49708         * m4/inet_ntop.m4: Likewise.
49709         * m4/inet_pton.m4: Likewise.
49710         * m4/inline.m4: Likewise.
49711         * m4/intldir.m4: Likewise.
49712         * m4/intlmacosx.m4: Likewise.
49713         * m4/intmax.m4: Likewise.
49714         * m4/intmax_t.m4: Likewise.
49715         * m4/inttypes.m4: Likewise.
49716         * m4/inttypes_h.m4: Likewise.
49717         * m4/inttypes-pri.m4: Likewise.
49718         * m4/isapipe.m4: Likewise.
49719         * m4/isnand.m4: Likewise.
49720         * m4/isnanf.m4: Likewise.
49721         * m4/isnanl.m4: Likewise.
49722         * m4/javacomp.m4: Likewise.
49723         * m4/javaexec.m4: Likewise.
49724         * m4/jm-winsz1.m4: Likewise.
49725         * m4/jm-winsz2.m4: Likewise.
49726         * m4/lchown.m4: Likewise.
49727         * m4/lcmessage.m4: Likewise.
49728         * m4/ldexpl.m4: Likewise.
49729         * m4/lib-ld.m4: Likewise.
49730         * m4/lib-link.m4: Likewise.
49731         * m4/libsigsegv.m4: Likewise.
49732         * m4/link-follow.m4: Likewise.
49733         * m4/localcharset.m4: Likewise.
49734         * m4/locale-fr.m4: Likewise.
49735         * m4/locale-ja.m4: Likewise.
49736         * m4/locale-tr.m4: Likewise.
49737         * m4/locale-zh.m4: Likewise.
49738         * m4/lock.m4: Likewise.
49739         * m4/longlong.m4: Likewise.
49740         * m4/ls-mntd-fs.m4: Likewise.
49741         * m4/lstat.m4: Likewise.
49742         * m4/malloc.m4: Likewise.
49743         * m4/mathl.m4: Likewise.
49744         * m4/mbrtowc.m4: Likewise.
49745         * m4/mbstate_t.m4: Likewise.
49746         * m4/mbswidth.m4: Likewise.
49747         * m4/memchr.m4: Likewise.
49748         * m4/memcmp.m4: Likewise.
49749         * m4/memcpy.m4: Likewise.
49750         * m4/memmem.m4: Likewise.
49751         * m4/memmove.m4: Likewise.
49752         * m4/mempcpy.m4: Likewise.
49753         * m4/memrchr.m4: Likewise.
49754         * m4/memset.m4: Likewise.
49755         * m4/minmax.m4: Likewise.
49756         * m4/mkdir-slash.m4: Likewise.
49757         * m4/mkdtemp.m4: Likewise.
49758         * m4/mktime.m4: Likewise.
49759         * m4/mmap-anon.m4: Likewise.
49760         * m4/mountlist.m4: Likewise.
49761         * m4/nanosleep.m4: Likewise.
49762         * m4/nls.m4: Likewise.
49763         * m4/nocrash.m4: Likewise.
49764         * m4/open.m4: Likewise.
49765         * m4/openat.m4: Likewise.
49766         * m4/openmp.m4: Likewise.
49767         * m4/pathmax.m4: Likewise.
49768         * m4/perl.m4: Likewise.
49769         * m4/physmem.m4: Likewise.
49770         * m4/pipe.m4: Likewise.
49771         * m4/po.m4: Likewise.
49772         * m4/poll.m4: Likewise.
49773         * m4/posixtm.m4: Likewise.
49774         * m4/posixver.m4: Likewise.
49775         * m4/printf-frexp.m4: Likewise.
49776         * m4/printf-frexpl.m4: Likewise.
49777         * m4/printf-posix.m4: Likewise.
49778         * m4/printf-posix-rpl.m4: Likewise.
49779         * m4/printf.m4: Likewise.
49780         * m4/progtest.m4: Likewise.
49781         * m4/putenv.m4: Likewise.
49782         * m4/readline.m4: Likewise.
49783         * m4/readlink.m4: Likewise.
49784         * m4/readutmp.m4: Likewise.
49785         * m4/realloc.m4: Likewise.
49786         * m4/regex.m4: Likewise.
49787         * m4/relocatable.m4: Likewise.
49788         * m4/relocatable-lib.m4: Likewise.
49789         * m4/rename-dest-slash.m4: Likewise.
49790         * m4/rename.m4: Likewise.
49791         * m4/rmdir-errno.m4: Likewise.
49792         * m4/rmdir.m4: Likewise.
49793         * m4/roundf.m4: Likewise.
49794         * m4/roundl.m4: Likewise.
49795         * m4/rpmatch.m4: Likewise.
49796         * m4/save-cwd.m4: Likewise.
49797         * m4/selinux-selinux-h.m4: Likewise.
49798         * m4/setenv.m4: Likewise.
49799         * m4/settime.m4: Likewise.
49800         * m4/sig2str.m4: Likewise.
49801         * m4/sig_atomic_t.m4: Likewise.
49802         * m4/signalblocking.m4: Likewise.
49803         * m4/signbit.m4: Likewise.
49804         * m4/sigpipe.m4: Likewise.
49805         * m4/sockets.m4: Likewise.
49806         * m4/sockpfaf.m4: Likewise.
49807         * m4/st_dm_mode.m4: Likewise.
49808         * m4/stat-time.m4: Likewise.
49809         * m4/stdbool.m4: Likewise.
49810         * m4/stdint.m4: Likewise.
49811         * m4/stdint_h.m4: Likewise.
49812         * m4/stpcpy.m4: Likewise.
49813         * m4/stpncpy.m4: Likewise.
49814         * m4/strcase.m4: Likewise.
49815         * m4/strchrnul.m4: Likewise.
49816         * m4/strcspn.m4: Likewise.
49817         * m4/strdup.m4: Likewise.
49818         * m4/strftime.m4: Likewise.
49819         * m4/strndup.m4: Likewise.
49820         * m4/strnlen.m4: Likewise.
49821         * m4/strpbrk.m4: Likewise.
49822         * m4/strptime.m4: Likewise.
49823         * m4/strsep.m4: Likewise.
49824         * m4/strtod.m4: Likewise.
49825         * m4/strtoimax.m4: Likewise.
49826         * m4/strtok_r.m4: Likewise.
49827         * m4/strtol.m4: Likewise.
49828         * m4/strtoll.m4: Likewise.
49829         * m4/strtoul.m4: Likewise.
49830         * m4/strtoull.m4: Likewise.
49831         * m4/strtoumax.m4: Likewise.
49832         * m4/strverscmp.m4: Likewise.
49833         * m4/threadlib.m4: Likewise.
49834         * m4/timegm.m4: Likewise.
49835         * m4/tm_gmtoff.m4: Likewise.
49836         * m4/tmpdir.m4: Likewise.
49837         * m4/tmpfile.m4: Likewise.
49838         * m4/tzset.m4: Likewise.
49839         * m4/uintmax_t.m4: Likewise.
49840         * m4/unlinkdir.m4: Likewise.
49841         * m4/unlocked-io.m4: Likewise.
49842         * m4/uptime.m4: Likewise.
49843         * m4/userspec.m4: Likewise.
49844         * m4/utimbuf.m4: Likewise.
49845         * m4/utime.m4: Likewise.
49846         * m4/utimes-null.m4: Likewise.
49847         * m4/utimes.m4: Likewise.
49848         * m4/vararrays.m4: Likewise.
49849         * m4/vasnprintf.m4: Likewise.
49850         * m4/vfprintf-posix.m4: Likewise.
49851         * m4/vprintf-posix.m4: Likewise.
49852         * m4/wait-process.m4: Likewise.
49853         * m4/wchar_t.m4: Likewise.
49854         * m4/wint_t.m4: Likewise.
49855         * m4/write-any-file.m4: Likewise.
49856         * m4/yield.m4: Likewise.
49857
49858 2009-01-13  Bruno Haible  <bruno@clisp.org>
49859
49860         Avoid test-copy-file.sh failures when ACL support insufficient.
49861         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
49862         TESTS_ENVIRONMENT.
49863         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
49864         Reported by Jim Meyering.
49865
49866 2009-01-13  Bruno Haible  <bruno@clisp.org>
49867
49868         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
49869         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
49870         * modules/unistdio/u8-printf-parse (Files): Likewise.
49871         * modules/unistdio/u32-printf-parse (Files): Likewise.
49872         * modules/unistdio/ulc-printf-parse (Files): Likewise.
49873
49874 2009-01-13  Simon Josefsson  <simon@josefsson.org>
49875
49876         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
49877         and m4/inttypes_h.m4 too.
49878
49879 2009-01-12  Eric Blake  <ebb9@byu.net>
49880
49881         tests: IRIX 6.2 cc can't compile -0.0 into .data
49882         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
49883         rather than at compile-time.
49884         * tests/test-floorl.c (minus_zero): Likewise.
49885         * tests/test-frexpl.c (minus_zero): Likewise.
49886         * tests/test-isnan.c (minus_zerol): Likewise.
49887         * tests/test-isnanl.h (minus_zero): Likewise.
49888         * tests/test-ldexpl.c (minus_zero): Likewise.
49889         * tests/test-roundl.c (minus_zero): Likewise.
49890         * tests/test-signbit.c (minus_zerol): Likewise.
49891         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
49892         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
49893         * tests/test-truncl.c (minus_zero): Likewise.
49894         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
49895         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
49896         Reported by Tom G. Christensen and Nelson H. F. Beebe.
49897
49898 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49899
49900         regex: fix glibc bug 9697
49901         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
49902         handling.
49903
49904 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49905
49906         regex: fix glibc bug 697
49907         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
49908         being NULL also if there are no backreferences.
49909
49910 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49911
49912         regex: merge glibc changes
49913         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
49914         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
49915         re_string_skip_chars, re_string_reconstruct): Likewise.
49916         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
49917
49918 2009-01-07  Jim Meyering  <meyering@redhat.com>
49919
49920         poll: filter through cppi
49921         * lib/poll.c: Indent cpp directives to reflect nesting.
49922
49923 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
49924
49925         poll: don't return uninitialized
49926         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
49927
49928 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
49929
49930         avoid compile failure on AIX 6.1
49931         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
49932         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
49933
49934 2009-01-04  Jim Meyering  <meyering@redhat.com>
49935
49936         remove duplicate inclusion of <stdio.h>
49937         * tests/test-fprintf-posix.c: Likewise.
49938         * tests/test-printf-posix.c: Likewise.
49939         * tests/test-snprintf-posix.c: Likewise.
49940         * tests/test-sprintf-posix.c: Likewise.
49941         * tests/test-vasprintf-posix.c: Likewise.
49942         * tests/test-vfprintf-posix.c: Likewise.
49943         * tests/test-vprintf-posix.c: Likewise.
49944         * tests/test-vsnprintf-posix.c: Likewise.
49945         * tests/test-vsprintf-posix.c: Likewise.
49946
49947 2009-01-03  Jim Meyering  <meyering@redhat.com>
49948
49949         gnulib-tool: fix sed-based filtering
49950         * gnulib-tool (func_filter_filelist): Remove extra backslash
49951         in sed_fff_filter definition.
49952
49953 2009-01-02  Jim Meyering  <meyering@redhat.com>
49954
49955         strftime: avoid compilation failure on Solaris 2.6
49956         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
49957         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
49958         Don't #define mbrlen or mbsinit, since now they're guaranteed to
49959         be available.  Reported by Tom G. Christensen.  Details in
49960         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
49961
49962 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49963             Bruno Haible  <bruno@clisp.org>
49964
49965         Speed up gnulib-tool by doing more string processing through shell
49966         built-ins.
49967         * gnulib-tool (fast_func_append): New variable.
49968         (func_remove_prefix, func_remove_suffix): New functions.
49969         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
49970         (func_filter_filelist): New function.
49971         (func_get_dependencies): Use func_remove_suffix instead of sed.
49972         (func_get_automake_snippet): Use func_filter_filelist instead of a
49973         subshell and sed invocation.
49974
49975 2009-01-01  Bruno Haible  <bruno@clisp.org>
49976
49977         Fix a security bug.
49978         * gnulib-tool (func_import, import, update): Don't allow the characters
49979         '"', '$', '`', '\' in macro arguments that become part of commands that
49980         are evaluated.
49981
49982 2009-01-01  Bruno Haible  <bruno@clisp.org>
49983
49984         * gnulib-tool (func_reset_sigpipe): Add more comments.
49985
49986 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49987
49988         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
49989         func_emit_tests_Makefile_am, func_import): Abort loops early if we
49990         already know the answer.
49991
49992 2009-01-01  Jim Meyering  <meyering@redhat.com>
49993
49994         * lib/version-etc.c (version_etc_va): Update copyright year.
49995
49996 2008-12-30  Bruno Haible  <bruno@clisp.org>
49997
49998         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
49999         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
50000         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
50001
50002 2008-12-29  Eric Blake  <ebb9@byu.net>
50003
50004         multiarch: avoid autoconf AC_REQUIRE bug
50005         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
50006         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
50007         2.63 and older.
50008         Reported by Bruno Haible, and analyzed in
50009         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
50010
50011 2008-12-29  Bruno Haible  <bruno@clisp.org>
50012
50013         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
50014         files in subdirectories correctly.
50015         Reported by Ralf Wildenhues.
50016
50017 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50018
50019         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
50020         rather than 'join FILE -', for Solaris join.
50021
50022 2008-12-29  Bruno Haible  <bruno@clisp.org>
50023
50024         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
50025         quoting.
50026         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
50027         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
50028         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
50029         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
50030         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
50031         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
50032         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
50033         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
50034         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
50035         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
50036         * m4/nls.m4 (AM_NLS): Likewise.
50037         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
50038         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
50039         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
50040         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
50041         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
50042         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
50043         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
50044         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
50045         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
50046         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
50047         * m4/xsize.m4 (gl_XSIZE): Likewise.
50048         Suggested by Jim Meyering.
50049
50050 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50051
50052         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
50053         * lib/parse-duration.c: use a switch instead of cascading if's.
50054
50055 2008-12-29  Eric Blake  <ebb9@byu.net>
50056
50057         wchar.h: supply WEOF on Irix 5.3
50058         * lib/wchar.in.h (wint_t): Also supply WEOF.
50059         * lib/wctype.in.h (wint_t): Likewise.
50060         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
50061         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
50062         Reported by Tom G. Christensen.
50063
50064 2008-12-26  Bruno Haible  <bruno@clisp.org>
50065
50066         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
50067         i486, i586, i686.
50068
50069 2008-12-26  Bruno Haible  <bruno@clisp.org>
50070
50071         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
50072
50073 2008-12-26  Bruno Haible  <bruno@clisp.org>
50074
50075         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
50076         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
50077         not __STDC_CONSTANT_MACROS.
50078         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50079
50080 2008-12-25  Bruno Haible  <bruno@clisp.org>
50081
50082         Add support for universal builds to vasnprintf.
50083         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
50084         universal builds, guess no.
50085         * modules/vasnprintf-posix (Depends-on): Add multiarch.
50086         * modules/vasprintf-posix (Depends-on): Likewise.
50087         * modules/fprintf-posix (Depends-on): Likewise.
50088         * modules/vfprintf-posix (Depends-on): Likewise.
50089         * modules/snprintf-posix (Depends-on): Likewise.
50090         * modules/vsnprintf-posix (Depends-on): Likewise.
50091         * modules/sprintf-posix (Depends-on): Likewise.
50092         * modules/vsprintf-posix (Depends-on): Likewise.
50093         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50094         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50095         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50096         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50097         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50098         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50099         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50100
50101         Add support for universal builds to <inttypes.h>.
50102         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
50103         _SCNu64_PREFIX): In Apple
50104         universal builds, define directly, using _LP64.
50105         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
50106         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
50107         * modules/inttypes (Depends-on): Add multiarch.
50108         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
50109
50110         Add support for universal builds to <stdint.h>.
50111         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
50112         universal builds, define directly, using _LP64.
50113         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
50114         Apple universal builds, don't test for the size and suffix of ptrdiff_t
50115         and size_t.
50116         * modules/stdint (Depends-on): Add multiarch.
50117         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
50118
50119         New module 'multiarch'.
50120         * modules/multiarch: New file.
50121         * m4/multiarch.m4: New file.
50122
50123 2008-12-25  Bruno Haible  <bruno@clisp.org>
50124
50125         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
50126
50127 2008-12-25  Bruno Haible  <bruno@clisp.org>
50128
50129         * modules/btowc (License): Relicense under LGPLv2+.
50130         * modules/mbsinit (License): Likewise.
50131         * modules/mbrtowc (License): Likewise.
50132         * modules/wcrtomb (License): Likewise.
50133         * modules/streq (License): Likewise.
50134         Reported by David Lutterkort <lutter@redhat.com>.
50135
50136 2008-12-23  Bruno Haible  <bruno@clisp.org>
50137
50138         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
50139
50140 2008-12-23  Bruno Haible  <bruno@clisp.org>
50141
50142         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
50143         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
50144         GETADDRINFO_LIB, not in LIBS.
50145         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
50146         * modules/canon-host (Link): Likewise.
50147         * NEWS: Mention the change.
50148         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
50149         GETADDRINFO_LIB.
50150
50151 2008-12-22  Bruno Haible  <bruno@clisp.org>
50152
50153         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
50154         * doc/posix-functions/iswalpha_l.texi: Likewise.
50155         * doc/posix-functions/iswblank_l.texi: Likewise.
50156         * doc/posix-functions/iswcntrl_l.texi: Likewise.
50157         * doc/posix-functions/iswctype_l.texi: Likewise.
50158         * doc/posix-functions/iswdigit_l.texi: Likewise.
50159         * doc/posix-functions/iswgraph_l.texi: Likewise.
50160         * doc/posix-functions/iswlower_l.texi: Likewise.
50161         * doc/posix-functions/iswprint_l.texi: Likewise.
50162         * doc/posix-functions/iswpunct_l.texi: Likewise.
50163         * doc/posix-functions/iswspace_l.texi: Likewise.
50164         * doc/posix-functions/iswupper_l.texi: Likewise.
50165         * doc/posix-functions/iswxdigit_l.texi: Likewise.
50166         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
50167         * doc/posix-functions/open_wmemstream.texi: Likewise.
50168         * doc/posix-functions/swscanf.texi: Likewise.
50169         * doc/posix-functions/towctrans_l.texi: Likewise.
50170         * doc/posix-functions/towlower.texi: Likewise.
50171         * doc/posix-functions/towlower_l.texi: Likewise.
50172         * doc/posix-functions/towupper.texi: Likewise.
50173         * doc/posix-functions/towupper_l.texi: Likewise.
50174         * doc/posix-functions/vfwprintf.texi: Likewise.
50175         * doc/posix-functions/vfwscanf.texi: Likewise.
50176         * doc/posix-functions/vswscanf.texi: Likewise.
50177         * doc/posix-functions/vwprintf.texi: Likewise.
50178         * doc/posix-functions/vwscanf.texi: Likewise.
50179         * doc/posix-functions/wcpcpy.texi: Likewise.
50180         * doc/posix-functions/wcpncpy.texi: Likewise.
50181         * doc/posix-functions/wcscasecmp.texi: Likewise.
50182         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
50183         * doc/posix-functions/wcscoll_l.texi: Likewise.
50184         * doc/posix-functions/wcsdup.texi: Likewise.
50185         * doc/posix-functions/wcsncasecmp.texi: Likewise.
50186         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
50187         * doc/posix-functions/wcsnlen.texi: Likewise.
50188         * doc/posix-functions/wcsnrtombs.texi: Likewise.
50189         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
50190         * doc/posix-functions/wctrans_l.texi: Likewise.
50191         * doc/posix-functions/wctype_l.texi: Likewise.
50192         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
50193         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
50194         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
50195         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
50196         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
50197         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
50198         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
50199         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
50200         * doc/glibc-functions/wcschrnul.texi: Likewise.
50201         * doc/glibc-functions/wcsftime_l.texi: Likewise.
50202         * doc/glibc-functions/wcstod_l.texi: Likewise.
50203         * doc/glibc-functions/wcstof_l.texi: Likewise.
50204         * doc/glibc-functions/wcstol_l.texi: Likewise.
50205         * doc/glibc-functions/wcstold_l.texi: Likewise.
50206         * doc/glibc-functions/wcstoll_l.texi: Likewise.
50207         * doc/glibc-functions/wcstoq.texi: Likewise.
50208         * doc/glibc-functions/wcstoul_l.texi: Likewise.
50209         * doc/glibc-functions/wcstoull_l.texi: Likewise.
50210         * doc/glibc-functions/wcstouq.texi: Likewise.
50211         * doc/glibc-functions/wmempcpy.texi: Likewise.
50212
50213 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
50214             Eric Blake  <ebb9@byu.net>
50215             Paolo Bonzini  <bonzini@gnu.org>
50216             Bruno Haible  <bruno@clisp.org>
50217
50218         Make c-stack work on Haiku.
50219         * lib/c-stack.c (SA_ONSTACK): Define fallback.
50220         (c_stack_action): Use SA_ONSTACK flag.
50221
50222 2008-12-22  Bruno Haible  <bruno@clisp.org>
50223
50224         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
50225
50226 2008-12-22  Bruno Haible  <bruno@clisp.org>
50227
50228         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
50229         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
50230         being overridden.
50231         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
50232         New macros.
50233         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
50234         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
50235         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
50236         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
50237
50238 2008-12-22  Bruno Haible  <bruno@clisp.org>
50239
50240         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
50241         from test code.
50242
50243 2008-12-22  Eric Blake  <ebb9@byu.net>
50244
50245         Avoid gcc warnings on cygwin.
50246         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
50247         Avoid unused variable.
50248         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
50249         Likewise.
50250
50251 2008-12-22  Bruno Haible  <bruno@clisp.org>
50252
50253         Remove HAVE_MBRTOWC conditionals.
50254         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
50255         (mbscasecmp): Assume mbrtowc function.
50256         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
50257         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
50258         * lib/mbschr.c: Include mbuiter.h unconditionally.
50259         (mbschr): Assume mbrtowc function.
50260         * lib/mbscspn.c: Include mbuiter.h unconditionally.
50261         (mbscspn): Assume mbrtowc function.
50262         * lib/mbslen.c: Include mbuiter.h unconditionally.
50263         (mbslen): Assume mbrtowc function.
50264         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
50265         (mbsncasecmp): Assume mbrtowc function.
50266         * lib/mbsnlen.c: Include mbiter.h unconditionally.
50267         (mbsnlen): Assume mbrtowc function.
50268         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
50269         (mbspbrk): Assume mbrtowc function.
50270         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
50271         (mbspcasecmp): Assume mbrtowc function.
50272         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
50273         (mbsrchr): Assume mbrtowc function.
50274         * lib/mbssep.c: Include mbuiter.h unconditionally.
50275         (mbssep): Assume mbrtowc function.
50276         * lib/mbsspn.c: Include mbuiter.h unconditionally.
50277         (mbsspn): Assume mbrtowc function.
50278         * lib/mbsstr.c: Include mbuiter.h unconditionally.
50279         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
50280         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
50281         (mbstok_r): Assume mbrtowc function.
50282         * lib/propername.c: Include mbuiter.h unconditionally.
50283         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
50284         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
50285         (trim2): Assume mbrtowc function.
50286         * lib/mbswidth.c (mbsinit): Remove fallback definition.
50287         (mbsnwidth): Assume mbrtowc function.
50288         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
50289         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
50290         fallback definitions.
50291         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
50292
50293 2008-12-22  Bruno Haible  <bruno@clisp.org>
50294
50295         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
50296
50297 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
50298
50299         * modules/regex: Request emulations for the mb*/wc* functions we need.
50300         * m4/regex.m4: Don't look for those functions here.
50301         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
50302
50303 2008-12-22  Bruno Haible  <bruno@clisp.org>
50304
50305         * modules/fnmatch (Depends-on): Remove duplicated dependency.
50306
50307 2008-12-21  Bruno Haible  <bruno@clisp.org>
50308
50309         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
50310         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
50311         (Include): Remove conditionalization.
50312         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
50313         (Include): Remove conditionalization.
50314         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
50315         (Include): Remove conditionalization.
50316         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
50317         * m4/mbfile.m4 (gl_MBFILE): Likewise.
50318         * NEWS: Mention the change.
50319         Reported by Alan Hourihane <alanh@fairlite.co.uk>
50320         via Sergey Poznyakoff <gray@gnu.org.ua>.
50321
50322 2008-12-21  Bruno Haible  <bruno@clisp.org>
50323
50324         * MODULES.html.sh (Extended multibyte and wide character utilities
50325         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
50326         wcrtomb, wcsrtombs.
50327         (Support for systems lacking POSIX:2008): Add accept, bind, close,
50328         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
50329         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
50330         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
50331
50332 2008-12-21  Bruno Haible  <bruno@clisp.org>
50333
50334         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
50335
50336 2008-12-21  Bruno Haible  <bruno@clisp.org>
50337
50338         * modules/wcsnrtombs-tests: New file.
50339         * tests/test-wcsnrtombs1.sh: New file.
50340         * tests/test-wcsnrtombs2.sh: New file.
50341         * tests/test-wcsnrtombs3.sh: New file.
50342         * tests/test-wcsnrtombs4.sh: New file.
50343         * tests/test-wcsnrtombs.c: New file.
50344
50345         New module 'wcsnrtombs'.
50346         * lib/wchar.in.h (wcsnrtombs): New declaration.
50347         * lib/wcsnrtombs.c: New file.
50348         * lib/wcsrtombs-state.c: New file.
50349         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
50350         (internal_state): Remove variable.
50351         * m4/wcsnrtombs.m4: New file.
50352         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
50353         compilation units.
50354         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
50355         HAVE_WCSNRTOMBS.
50356         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
50357         HAVE_WCSNRTOMBS.
50358         * modules/wcsnrtombs: New file.
50359         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
50360         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
50361
50362 2008-12-21  Bruno Haible  <bruno@clisp.org>
50363
50364         * modules/wcsrtombs-tests: New file.
50365         * tests/test-wcsrtombs1.sh: New file.
50366         * tests/test-wcsrtombs2.sh: New file.
50367         * tests/test-wcsrtombs3.sh: New file.
50368         * tests/test-wcsrtombs4.sh: New file.
50369         * tests/test-wcsrtombs.c: New file.
50370
50371         New module 'wcsrtombs'.
50372         * lib/wchar.in.h (wcsrtombs): New declaration.
50373         * lib/wcsrtombs.c: New file.
50374         * m4/wcsrtombs.m4: New file.
50375         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
50376         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
50377         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
50378         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
50379         * modules/wcsrtombs: New file.
50380         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
50381         bugs.
50382
50383 2008-12-21  Bruno Haible  <bruno@clisp.org>
50384
50385         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
50386         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
50387         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
50388         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
50389         if not correct.
50390         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
50391         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
50392         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50393         m4/locale-zh.m4, m4/codeset.m4.
50394         * doc/posix-functions/wcrtomb.texi: Document the bug.
50395
50396 2008-12-21  Bruno Haible  <bruno@clisp.org>
50397
50398         Work around a btowc() bug on IRIX 6.5.
50399         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
50400         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
50401         REPLACE_WTOBC if not.
50402         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
50403         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
50404         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
50405
50406 2008-12-21  Bruno Haible  <bruno@clisp.org>
50407
50408         * modules/wcrtomb-tests: New file.
50409         * tests/test-wcrtomb.sh: New file.
50410         * tests/test-wcrtomb.c: New file.
50411
50412         New module 'wcrtomb'.
50413         * lib/wchar.in.h (wcrtomb): New declaration.
50414         * lib/wcrtomb.c: New file.
50415         * m4/wcrtomb.m4: New file.
50416         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
50417         HAVE_WCRTOMB.
50418         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
50419         HAVE_WCRTOMB.
50420         * modules/wcrtomb: New file.
50421         * doc/posix-functions/wcrtomb.texi: Mention the new module.
50422
50423 2008-12-21  Bruno Haible  <bruno@clisp.org>
50424
50425         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
50426         * modules/mbsrtowcs (Files): Likewise.
50427         * modules/wctob (Files): Likewise.
50428         * modules/c-strcase-tests (Files): Likewise.
50429         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
50430         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
50431         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
50432         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
50433         * modules/vasnprintf-posix-tests (Files): Likewise.
50434
50435 2008-12-21  William Pursell  <bill.pursell@gmail.com>
50436
50437         gitlog-to-changelog: pass all command-line arguments to git-log
50438         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
50439         it is sometimes convenient to filter the commits in various ways.
50440         gitlog-to-changelog only allows --since to specify a start date,
50441         but git-log itself supports many other filtering mechanisms.
50442         At the moment, I want to filter by branch name.  Rather than
50443         adding a --branch option to gitlog-to-changelog, it seems more
50444         flexible to simply pass all options directly to git-log and let
50445         git do the work.  Notice that this effectively makes --since a
50446         redundant option for gitlog-to-changelog, but removing it would
50447         require current usage to change since calls would then require
50448         an additional '--'.
50449
50450 2008-12-21  Bruno Haible  <bruno@clisp.org>
50451
50452         * modules/mbsnrtowcs-tests: New file.
50453         * tests/test-mbsnrtowcs1.sh: New file.
50454         * tests/test-mbsnrtowcs2.sh: New file.
50455         * tests/test-mbsnrtowcs3.sh: New file.
50456         * tests/test-mbsnrtowcs4.sh: New file.
50457         * tests/test-mbsnrtowcs.c: New file.
50458
50459         New module 'mbsnrtowcs'.
50460         * lib/wchar.in.h (mbsnrtowcs): New declaration.
50461         * lib/mbsnrtowcs.c: New file.
50462         * lib/mbsrtowcs-state.c: New file.
50463         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
50464         (internal_state): Remove variable.
50465         * m4/mbsnrtowcs.m4: New file.
50466         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
50467         compilation units.
50468         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
50469         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
50470         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
50471         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
50472         * modules/mbsnrtowcs: New file.
50473         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
50474         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
50475         portability problem.
50476
50477 2008-12-21  Bruno Haible  <bruno@clisp.org>
50478
50479         Work around mbsrtowcs bug.
50480         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
50481         (gl_FUNC_MBSRTOWCS): Invoke it.
50482         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50483         m4/locale-zh.m4.
50484         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
50485
50486 2008-12-21  Bruno Haible  <bruno@clisp.org>
50487
50488         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
50489
50490 2008-12-21  Bruno Haible  <bruno@clisp.org>
50491
50492         Update doc for AIX.
50493         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
50494         16-bit wchar_t type.
50495         * doc/posix-functions/btowc.texi: Likewise.
50496         * doc/posix-functions/fgetwc.texi: Likewise.
50497         * doc/posix-functions/fgetws.texi: Likewise.
50498         * doc/posix-functions/fputwc.texi: Likewise.
50499         * doc/posix-functions/fputws.texi: Likewise.
50500         * doc/posix-functions/fwide.texi: Likewise.
50501         * doc/posix-functions/fwprintf.texi: Likewise.
50502         * doc/posix-functions/fwscanf.texi: Likewise.
50503         * doc/posix-functions/getwchar.texi: Likewise.
50504         * doc/posix-functions/getwc.texi: Likewise.
50505         * doc/posix-functions/iswalnum.texi: Likewise.
50506         * doc/posix-functions/iswalpha.texi: Likewise.
50507         * doc/posix-functions/iswblank.texi: Likewise.
50508         * doc/posix-functions/iswcntrl.texi: Likewise.
50509         * doc/posix-functions/iswctype.texi: Likewise.
50510         * doc/posix-functions/iswdigit.texi: Likewise.
50511         * doc/posix-functions/iswgraph.texi: Likewise.
50512         * doc/posix-functions/iswlower.texi: Likewise.
50513         * doc/posix-functions/iswprint.texi: Likewise.
50514         * doc/posix-functions/iswpunct.texi: Likewise.
50515         * doc/posix-functions/iswspace.texi: Likewise.
50516         * doc/posix-functions/iswupper.texi: Likewise.
50517         * doc/posix-functions/iswxdigit.texi: Likewise.
50518         * doc/posix-functions/mbrtowc.texi: Likewise.
50519         * doc/posix-functions/mbsrtowcs.texi: Likewise.
50520         * doc/posix-functions/mbstowcs.texi: Likewise.
50521         * doc/posix-functions/mbtowc.texi: Likewise.
50522         * doc/posix-functions/putwchar.texi: Likewise.
50523         * doc/posix-functions/putwc.texi: Likewise.
50524         * doc/posix-functions/swprintf.texi: Likewise.
50525         * doc/posix-functions/tolower.texi: Likewise.
50526         * doc/posix-functions/toupper.texi: Likewise.
50527         * doc/posix-functions/towctrans.texi: Likewise.
50528         * doc/posix-functions/ungetwc.texi: Likewise.
50529         * doc/posix-functions/vswprintf.texi: Likewise.
50530         * doc/posix-functions/wcrtomb.texi: Likewise.
50531         * doc/posix-functions/wcscat.texi: Likewise.
50532         * doc/posix-functions/wcschr.texi: Likewise.
50533         * doc/posix-functions/wcscmp.texi: Likewise.
50534         * doc/posix-functions/wcscoll.texi: Likewise.
50535         * doc/posix-functions/wcscpy.texi: Likewise.
50536         * doc/posix-functions/wcscspn.texi: Likewise.
50537         * doc/posix-functions/wcsftime.texi: Likewise.
50538         * doc/posix-functions/wcslen.texi: Likewise.
50539         * doc/posix-functions/wcsncat.texi: Likewise.
50540         * doc/posix-functions/wcsncmp.texi: Likewise.
50541         * doc/posix-functions/wcsncpy.texi: Likewise.
50542         * doc/posix-functions/wcspbrk.texi: Likewise.
50543         * doc/posix-functions/wcsrchr.texi: Likewise.
50544         * doc/posix-functions/wcsrtombs.texi: Likewise.
50545         * doc/posix-functions/wcsspn.texi: Likewise.
50546         * doc/posix-functions/wcsstr.texi: Likewise.
50547         * doc/posix-functions/wcstod.texi: Likewise.
50548         * doc/posix-functions/wcstof.texi: Likewise.
50549         * doc/posix-functions/wcstoimax.texi: Likewise.
50550         * doc/posix-functions/wcstok.texi: Likewise.
50551         * doc/posix-functions/wcstold.texi: Likewise.
50552         * doc/posix-functions/wcstoll.texi: Likewise.
50553         * doc/posix-functions/wcstol.texi: Likewise.
50554         * doc/posix-functions/wcstombs.texi: Likewise.
50555         * doc/posix-functions/wcstoull.texi: Likewise.
50556         * doc/posix-functions/wcstoul.texi: Likewise.
50557         * doc/posix-functions/wcstoumax.texi: Likewise.
50558         * doc/posix-functions/wcswidth.texi: Likewise.
50559         * doc/posix-functions/wcsxfrm.texi: Likewise.
50560         * doc/posix-functions/wctob.texi: Likewise.
50561         * doc/posix-functions/wctomb.texi: Likewise.
50562         * doc/posix-functions/wctrans.texi: Likewise.
50563         * doc/posix-functions/wctype.texi: Likewise.
50564         * doc/posix-functions/wcwidth.texi: Likewise.
50565         * doc/posix-functions/wmemchr.texi: Likewise.
50566         * doc/posix-functions/wmemcmp.texi: Likewise.
50567         * doc/posix-functions/wmemcpy.texi: Likewise.
50568         * doc/posix-functions/wmemmove.texi: Likewise.
50569         * doc/posix-functions/wmemset.texi: Likewise.
50570         * doc/posix-functions/wprintf.texi: Likewise.
50571         * doc/posix-functions/wscanf.texi: Likewise.
50572
50573 2008-12-21  Bruno Haible  <bruno@clisp.org>
50574
50575         Update doc for HP-UX 11.11.
50576         * doc/posix-functions/btowc.texi: Clarify that the function is missing
50577         in HP-UX version 11.00, not in all versions of HP-UX 11.
50578         * doc/posix-functions/fwide.texi: Likewise.
50579         * doc/posix-functions/fwprintf.texi: Likewise.
50580         * doc/posix-functions/fwscanf.texi: Likewise.
50581         * doc/posix-functions/inet_ntop.texi: Likewise.
50582         * doc/posix-functions/inet_pton.texi: Likewise.
50583         * doc/posix-functions/mbrlen.texi: Likewise.
50584         * doc/posix-functions/mbrtowc.texi: Likewise.
50585         * doc/posix-functions/mbsinit.texi: Likewise.
50586         * doc/posix-functions/mbsrtowcs.texi: Likewise.
50587         * doc/posix-functions/swprintf.texi: Likewise.
50588         * doc/posix-functions/swscanf.texi: Likewise.
50589         * doc/posix-functions/towctrans.texi: Likewise.
50590         * doc/posix-functions/vfwprintf.texi: Likewise.
50591         * doc/posix-functions/vswprintf.texi: Likewise.
50592         * doc/posix-functions/vwprintf.texi: Likewise.
50593         * doc/posix-functions/wcrtomb.texi: Likewise.
50594         * doc/posix-functions/wcsrtombs.texi: Likewise.
50595         * doc/posix-functions/wcsstr.texi: Likewise.
50596         * doc/posix-functions/wctob.texi: Likewise.
50597         * doc/posix-functions/wctrans.texi: Likewise.
50598         * doc/posix-functions/wmemchr.texi: Likewise.
50599         * doc/posix-functions/wmemcmp.texi: Likewise.
50600         * doc/posix-functions/wmemcpy.texi: Likewise.
50601         * doc/posix-functions/wmemmove.texi: Likewise.
50602         * doc/posix-functions/wmemset.texi: Likewise.
50603         * doc/posix-functions/wprintf.texi: Likewise.
50604         * doc/posix-functions/wscanf.texi: Likewise.
50605
50606 2008-12-21  Bruno Haible  <bruno@clisp.org>
50607
50608         Work around a portability problem.
50609         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
50610         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
50611
50612 2008-12-20  Bruno Haible  <bruno@clisp.org>
50613
50614         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
50615         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
50616         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
50617         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
50618         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
50619
50620         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
50621         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
50622         set.
50623         (GNULIB_defined_mbstate_t): New macro.
50624         (mbsinit): Redefine if REPLACE_MBSINIT is set.
50625         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
50626         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
50627         reuses the system's mbrtowc function but works around the bugs.
50628         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
50629         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
50630         macros.
50631         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
50632         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
50633         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
50634         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
50635         REPLACE_MBSINIT if mbsinit needs to be overridden.
50636         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
50637         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50638         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
50639         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50640         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50641         m4/locale-zh.m4.
50642         (Depends): Add mbsinit.
50643         * modules/mbsinit (Depends): Add mbrtowc.
50644         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
50645
50646 2008-12-20  Bruno Haible  <bruno@clisp.org>
50647
50648         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
50649         so that there are no conversion errors on AIX.
50650         * tests/test-mbsrtowcs.c (main): LIkewise.
50651
50652 2008-12-20  Bruno Haible  <bruno@clisp.org>
50653
50654         Work around wctob bug on Solaris <= 9.
50655         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
50656         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
50657         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
50658         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
50659         * modules/wctob (Files): Add m4/locale-fr.m4.
50660         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
50661
50662 2008-12-20  Bruno Haible  <bruno@clisp.org>
50663
50664         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
50665         /dev/null.
50666         * tests/test-select-in.sh: Likewise.
50667         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50668
50669 2008-12-20  Bruno Haible  <bruno@clisp.org>
50670
50671         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
50672         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
50673         Cygwin 1.5.x.
50674
50675 2008-12-20  Bruno Haible  <bruno@clisp.org>
50676
50677         Ensure mbstate_t is defined on HP-UX 11.11.
50678         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
50679         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
50680         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
50681         AC_USE_SYSTEM_EXTENSIONS.
50682         * modules/fnmatch (Depends-on): Add extensions.
50683         * modules/mbrlen (Depends-on): Likewise.
50684         * modules/mbrtowc (Depends-on): Likewise.
50685         * modules/mbsinit (Depends-on): Likewise.
50686         * modules/mbsrtowcs (Depends-on): Likewise.
50687         * modules/mbswidth (Depends-on): Likewise.
50688         * modules/quotearg (Depends-on): Likewise.
50689         * modules/strftime (Depends-on): Likewise.
50690
50691 2008-12-20  Bruno Haible  <bruno@clisp.org>
50692
50693         Ensure wctob is declared on IRIX 6.5.
50694         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
50695         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
50696         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
50697         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
50698         of HAVE_WCTOB.
50699         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
50700         HAVE_WCTOB.
50701         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
50702
50703 2008-12-19  Bruno Haible  <bruno@clisp.org>
50704
50705         * modules/mbsrtowcs-tests: New file.
50706         * tests/test-mbsrtowcs1.sh: New file.
50707         * tests/test-mbsrtowcs2.sh: New file.
50708         * tests/test-mbsrtowcs3.sh: New file.
50709         * tests/test-mbsrtowcs4.sh: New file.
50710         * tests/test-mbsrtowcs.c: New file.
50711
50712         New module 'mbsrtowcs'.
50713         * lib/wchar.in.h (mbsrtowcs): New declaration.
50714         * lib/mbsrtowcs.c: New file.
50715         * m4/mbsrtowcs.m4: New file.
50716         * modules/mbsrtowcs: New file.
50717         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
50718         HAVE_MBSRTOWCS.
50719         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
50720         HAVE_MBSRTOWCS.
50721         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
50722
50723 2008-12-19  Bruno Haible  <bruno@clisp.org>
50724
50725         New module 'mbrlen'.
50726         * lib/wchar.in.h (mbrlen): New declaration.
50727         * lib/mbrlen.c: New file.
50728         * m4/mbrlen.m4: New file.
50729         * modules/mbrlen: New file.
50730         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
50731         HAVE_MBRLEN.
50732         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
50733         HAVE_MBRLEN.
50734         * doc/posix-functions/mbrlen.texi: Document the new module.
50735
50736 2008-12-19  Bruno Haible  <bruno@clisp.org>
50737
50738         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
50739         * modules/mbrtowc (Depends-on): Add verify.
50740         Suggested by Paul Eggert.
50741
50742 2008-12-18  Bruno Haible  <bruno@clisp.org>
50743
50744         * modules/mbsinit-tests: New file.
50745         * tests/test-mbsinit.sh: New file.
50746         * tests/test-mbsinit.c: New file.
50747
50748 2008-12-18  Bruno Haible  <bruno@clisp.org>
50749
50750         * modules/mbrtowc-tests: New file.
50751         * tests/test-mbrtowc1.sh: New file.
50752         * tests/test-mbrtowc2.sh: New file.
50753         * tests/test-mbrtowc3.sh: New file.
50754         * tests/test-mbrtowc4.sh: New file.
50755         * tests/test-mbrtowc.c: New file.
50756
50757         New module 'mbrtowc'.
50758         * lib/wchar.in.h (mbstate_t): Override when the system does not have
50759         mbsinit and mbrtowc.
50760         (mbrtowc): New declaration.
50761         * lib/mbrtowc.c: New file.
50762         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
50763         * modules/mbrtowc: New file.
50764         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
50765         HAVE_MBRTOWC.
50766         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
50767         HAVE_MBRTOWC.
50768         * doc/posix-functions/mbrtowc.texi: Document the new module.
50769
50770 2008-12-18  Bruno Haible  <bruno@clisp.org>
50771
50772         New module 'wctob'.
50773         * lib/wchar.in.h (wctob): New declaration.
50774         * lib/wctob.c: New file.
50775         * m4/wctob.m4: New file.
50776         * modules/wctob: New file.
50777         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
50778         HAVE_WCTOB.
50779         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
50780         * doc/posix-functions/wctob.texi: Document the new module.
50781
50782 2008-12-18  Bruno Haible  <bruno@clisp.org>
50783
50784         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
50785         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
50786
50787 2008-12-18  Simon Josefsson  <simon@josefsson.org>
50788
50789         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
50790         G. Christensen" <tgc@jupiterrise.com>.
50791
50792         * lib/flock.c: Need to include errno.h.  Reported by "Tom
50793         G. Christensen" <tgc@jupiterrise.com>.
50794
50795         * lib/flock.c: Need to include string.h.  Reported by "Tom
50796         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
50797         <ebb9@byu.net>.
50798
50799 2008-12-18  Bruno Haible  <bruno@clisp.org>
50800
50801         * m4/locale-ja.m4: New file, from GNU gettext.
50802
50803 2008-12-17  Bruno Haible  <bruno@clisp.org>
50804
50805         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
50806         Suggested by Eric Blake.
50807
50808 2008-12-17  Bruno Haible  <bruno@clisp.org>
50809
50810         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
50811
50812 2008-12-17  Bruno Haible  <bruno@clisp.org>
50813
50814         * lib/mbsinit.c: Include verify.h. Verify an assumption.
50815         * modules/mbsinit (Depends-on): Add verify.
50816         Suggested by Paul Eggert.
50817
50818 2008-12-17  Bruno Haible  <bruno@clisp.org>
50819
50820         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
50821         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
50822         gl_FUNC_MBRTOWC.
50823         * m4/mbiter.m4 (gl_MBITER): LIkewise.
50824         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
50825         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
50826         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
50827         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
50828         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
50829         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
50830         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
50831         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
50832         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
50833         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
50834         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
50835         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
50836         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
50837         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
50838         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50839         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
50840         * modules/trim (configure.ac): Likewise.
50841
50842 2008-12-17  Bruno Haible  <bruno@clisp.org>
50843
50844         * modules/btowc-tests: New file.
50845         * tests/test-btowc1.sh: New file.
50846         * tests/test-btowc2.sh: New file.
50847         * tests/test-btowc.c: New file.
50848
50849         New module 'btowc'.
50850         * lib/wchar.in.h (btowc): New declaration.
50851         * lib/btowc.c: New file.
50852         * m4/btowc.m4: New file.
50853         * modules/btowc: New file.
50854         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
50855         HAVE_BTOWC.
50856         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
50857         * doc/posix-functions/btowc.texi: Document the new module.
50858
50859 2008-12-17  Bruno Haible  <bruno@clisp.org>
50860
50861         New module 'mbsinit'.
50862         * lib/wchar.in.h (mbsinit): New declaration.
50863         * lib/mbsinit.c: New file.
50864         * m4/mbsinit.m4: New file.
50865         * modules/mbsinit: New file.
50866         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
50867         HAVE_MBSINIT.
50868         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
50869         HAVE_MBSINIT.
50870         * doc/posix-functions/mbsinit.texi: Document the new module.
50871
50872 2008-12-16  Bruno Haible  <bruno@clisp.org>
50873
50874         * lib/unistd.in.h: Add comment.
50875         * tests/test-environ.c: Don't include <stdlib.h>.
50876
50877 2008-12-16  Bruno Haible  <bruno@clisp.org>
50878
50879         * lib/parse-duration.h (parse_duration): Document return value
50880         convention.
50881         * lib/parse-duration.c: Include specification header first. Add
50882         comments.
50883         (_): Remove macro.
50884         (parse_year_month_day, parse_hour_minute_second): Move side effects
50885         outside of strchr call.
50886         (parse_non_iso8601): Move side effects outside of isspace call.
50887         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
50888         call.
50889
50890 2008-12-16  Bruno Haible  <bruno@clisp.org>
50891
50892         * tests/test-parse-duration.sh: Produce no output when the test
50893         succeeds.
50894
50895 2008-12-16  Bruno Haible  <bruno@clisp.org>
50896
50897         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
50898         expressions.
50899
50900 2008-12-15  Bruno Haible  <bruno@clisp.org>
50901
50902         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
50903         * doc/glibc-functions/flistxattr.texi: Likewise.
50904         * doc/glibc-functions/fopencookie.texi: Likewise.
50905         * doc/glibc-functions/fremovexattr.texi: Likewise.
50906         * doc/glibc-functions/fsetxattr.texi: Likewise.
50907         * doc/glibc-functions/getxattr.texi: Likewise.
50908         * doc/glibc-functions/lgetxattr.texi: Likewise.
50909         * doc/glibc-functions/listxattr.texi: Likewise.
50910         * doc/glibc-functions/llistxattr.texi: Likewise.
50911         * doc/glibc-functions/lremovexattr.texi: Likewise.
50912         * doc/glibc-functions/lsetxattr.texi: Likewise.
50913         * doc/glibc-functions/removexattr.texi: Likewise.
50914         * doc/glibc-functions/setxattr.texi: Likewise.
50915         * doc/posix-functions/open_memstream.texi: Likewise.
50916
50917 2008-12-15  Eric Blake  <ebb9@byu.net>
50918
50919         Update doc for cygwin 1.7.
50920         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
50921         functions.
50922         * doc/posix-functions/fchmodat.texi: Likewise.
50923         * doc/posix-functions/fchownat.texi: Likewise.
50924         * doc/posix-functions/fdopendir.texi: Likewise.
50925         * doc/posix-functions/fmemopen.texi: Likewise.
50926         * doc/posix-functions/freeaddrinfo.texi: Likewise.
50927         * doc/posix-functions/fstatat.texi: Likewise.
50928         * doc/posix-functions/futimens.texi: Likewise.
50929         * doc/posix-functions/gai_strerror.texi: Likewise.
50930         * doc/posix-functions/getaddrinfo.texi: Likewise.
50931         * doc/posix-functions/getnameinfo.texi: Likewise.
50932         * doc/posix-functions/if_freenameindex.texi: Likewise.
50933         * doc/posix-functions/if_indextoname.texi: Likewise.
50934         * doc/posix-functions/if_nameindex.texi: Likewise.
50935         * doc/posix-functions/if_nametoindex.texi: Likewise.
50936         * doc/posix-functions/insque.texi: Likewise.
50937         * doc/posix-functions/linkat.texi: Likewise.
50938         * doc/posix-functions/llrint.texi: Likewise.
50939         * doc/posix-functions/llrintf.texi: Likewise.
50940         * doc/posix-functions/llrintl.texi: Likewise.
50941         * doc/posix-functions/lockf.texi: Likewise.
50942         * doc/posix-functions/lrintl.texi: Likewise.
50943         * doc/posix-functions/mkdirat.texi: Likewise.
50944         * doc/posix-functions/mkfifoat.texi: Likewise.
50945         * doc/posix-functions/mknodat.texi: Likewise.
50946         * doc/posix-functions/mq_close.texi: Likewise.
50947         * doc/posix-functions/mq_getattr.texi: Likewise.
50948         * doc/posix-functions/mq_notify.texi: Likewise.
50949         * doc/posix-functions/mq_open.texi: Likewise.
50950         * doc/posix-functions/mq_receive.texi: Likewise.
50951         * doc/posix-functions/mq_send.texi: Likewise.
50952         * doc/posix-functions/mq_setattr.texi: Likewise.
50953         * doc/posix-functions/mq_timedreceive.texi: Likewise.
50954         * doc/posix-functions/mq_timedsend.texi: Likewise.
50955         * doc/posix-functions/mq_unlink.texi: Likewise.
50956         * doc/posix-functions/open_memstream.texi: Likewise.
50957         * doc/posix-functions/openat.texi: Likewise.
50958         * doc/posix-functions/posix_fadvise.texi: Likewise.
50959         * doc/posix-functions/posix_fallocate.texi: Likewise.
50960         * doc/posix-functions/posix_madvise.texi: Likewise.
50961         * doc/posix-functions/posix_memalign.texi: Likewise.
50962         * doc/posix-functions/posix_openpt.texi: Likewise.
50963         * doc/posix-functions/readlinkat.texi: Likewise.
50964         * doc/posix-functions/remque.texi: Likewise.
50965         * doc/posix-functions/renameat.texi: Likewise.
50966         * doc/posix-functions/rintl.texi: Likewise.
50967         * doc/posix-functions/sem_unlink.texi: Likewise.
50968         * doc/posix-functions/shm_open.texi: Likewise.
50969         * doc/posix-functions/shm_unlink.texi: Likewise.
50970         * doc/posix-functions/signgam.texi: Likewise.
50971         * doc/posix-functions/sigset.texi: Likewise.
50972         * doc/posix-functions/stpcpy.texi: Likewise.
50973         * doc/posix-functions/stpncpy.texi: Likewise.
50974         * doc/posix-functions/strerror.texi: Likewise.
50975         * doc/posix-functions/strtod.texi: Likewise.
50976         * doc/posix-functions/symlinkat.texi: Likewise.
50977         * doc/posix-functions/unlinkat.texi: Likewise.
50978         * doc/posix-functions/utimensat.texi: Likewise.
50979         * doc/glibc-functions/bindresvport.texi: Likewise.
50980         * doc/glibc-functions/dn_expand.texi: Likewise.
50981         * doc/glibc-functions/exp10.texi: Likewise.
50982         * doc/glibc-functions/exp10f.texi: Likewise.
50983         * doc/glibc-functions/fgetxattr.texi: Likewise.
50984         * doc/glibc-functions/flistxattr.texi: Likewise.
50985         * doc/glibc-functions/fopencookie.texi: Likewise.
50986         * doc/glibc-functions/freeifaddrs.texi: Likewise.
50987         * doc/glibc-functions/fremovexattr.texi: Likewise.
50988         * doc/glibc-functions/fsetxattr.texi: Likewise.
50989         * doc/glibc-functions/getifaddrs.texi: Likewise.
50990         * doc/glibc-functions/getxattr.texi: Likewise.
50991         * doc/glibc-functions/lgetxattr.texi: Likewise.
50992         * doc/glibc-functions/listxattr.texi: Likewise.
50993         * doc/glibc-functions/llistxattr.texi: Likewise.
50994         * doc/glibc-functions/lremovexattr.texi: Likewise.
50995         * doc/glibc-functions/lsetxattr.texi: Likewise.
50996         * doc/glibc-functions/pow10.texi: Likewise.
50997         * doc/glibc-functions/pow10f.texi: Likewise.
50998         * doc/glibc-functions/rcmd_af.texi: Likewise.
50999         * doc/glibc-functions/removexattr.texi: Likewise.
51000         * doc/glibc-functions/res_init.texi: Likewise.
51001         * doc/glibc-functions/res_mkquery.texi: Likewise.
51002         * doc/glibc-functions/res_query.texi: Likewise.
51003         * doc/glibc-functions/res_querydomain.texi: Likewise.
51004         * doc/glibc-functions/res_send.texi: Likewise.
51005         * doc/glibc-functions/rresvport_af.texi: Likewise.
51006         * doc/glibc-functions/setxattr.texi: Likewise.
51007         * doc/glibc-functions/strcasestr.texi: Likewise.
51008
51009 2008-12-15  Bruno Haible  <bruno@clisp.org>
51010
51011         Fix compilation error on OSF/1 4.0.
51012         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
51013         <sys/time.h>, simply delegate to the system header.
51014         Reported by Daniel Richard G. <oss@teragram.com>.
51015
51016 2008-12-15  Bruno Haible  <bruno@clisp.org>
51017
51018         * doc/posix-functions/openat.texi: Mention the 'openat' module.
51019         * doc/posix-functions/fchmodat.texi: Likewise.
51020         * doc/posix-functions/fchownat.texi: Likewise.
51021         * doc/posix-functions/fdopendir.texi: Likewise.
51022         * doc/posix-functions/fstatat.texi: Likewise.
51023         * doc/posix-functions/mkdirat.texi: Likewise.
51024         * doc/posix-functions/unlinkat.texi: Likewise.
51025
51026 2008-12-14  Bruno Haible  <bruno@clisp.org>
51027
51028         Update doc for POSIX:2008.
51029         * doc/posix-functions/faccessat.texi: New file.
51030         * doc/posix-functions/fchmodat.texi: New file.
51031         * doc/posix-functions/fchownat.texi: New file.
51032         * doc/posix-functions/fdopendir.texi: New file.
51033         * doc/posix-functions/fstatat.texi: New file.
51034         * doc/posix-functions/futimens.texi: New file.
51035         * doc/posix-functions/linkat.texi: New file.
51036         * doc/posix-functions/mkdirat.texi: New file.
51037         * doc/posix-functions/mkfifoat.texi: New file.
51038         * doc/posix-functions/mknodat.texi: New file.
51039         * doc/posix-functions/open_wmemstream.texi: New file.
51040         * doc/posix-functions/openat.texi: New file.
51041         * doc/posix-functions/psiginfo.texi: New file.
51042         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
51043         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
51044         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
51045         * doc/posix-functions/readlinkat.texi: New file.
51046         * doc/posix-functions/renameat.texi: New file.
51047         * doc/posix-functions/strerror_l.texi: New file.
51048         * doc/posix-functions/symlinkat.texi: New file.
51049         * doc/posix-functions/unlinkat.texi: New file.
51050         * doc/posix-functions/utimensat.texi: New file.
51051         * doc/gnulib.texi (Function Substitutes): Add these subsections.
51052
51053 2008-12-14  Bruno Haible  <bruno@clisp.org>
51054
51055         Update doc for POSIX:2008.
51056         * doc/posix-functions/alphasort.texi: Renamed from
51057         doc/glibc-functions/alphasort.texi.
51058         * doc/posix-functions/dirfd.texi: Renamed from
51059         doc/glibc-functions/dirfd.texi.
51060         * doc/posix-functions/dprintf.texi: Renamed from
51061         doc/glibc-functions/dprintf.texi.
51062         * doc/posix-functions/duplocale.texi: Renamed from
51063         doc/glibc-functions/duplocale.texi.
51064         * doc/posix-functions/fexecve.texi: Renamed from
51065         doc/glibc-functions/fexecve.texi.
51066         * doc/posix-functions/fmemopen.texi: Renamed from
51067         doc/glibc-functions/fmemopen.texi.
51068         * doc/posix-functions/freelocale.texi: Renamed from
51069         doc/glibc-functions/freelocale.texi.
51070         * doc/posix-functions/getdate_err.texi: Renamed from
51071         doc/glibc-functions/getdate_err.texi.
51072         * doc/posix-functions/isalnum_l.texi: Renamed from
51073         doc/glibc-functions/isalnum_l.texi.
51074         * doc/posix-functions/isalpha_l.texi: Renamed from
51075         doc/glibc-functions/isalpha_l.texi.
51076         * doc/posix-functions/isblank_l.texi: Renamed from
51077         doc/glibc-functions/isblank_l.texi.
51078         * doc/posix-functions/iscntrl_l.texi: Renamed from
51079         doc/glibc-functions/iscntrl_l.texi.
51080         * doc/posix-functions/isdigit_l.texi: Renamed from
51081         doc/glibc-functions/isdigit_l.texi.
51082         * doc/posix-functions/isgraph_l.texi: Renamed from
51083         doc/glibc-functions/isgraph_l.texi.
51084         * doc/posix-functions/islower_l.texi: Renamed from
51085         doc/glibc-functions/islower_l.texi.
51086         * doc/posix-functions/isprint_l.texi: Renamed from
51087         doc/glibc-functions/isprint_l.texi.
51088         * doc/posix-functions/ispunct_l.texi: Renamed from
51089         doc/glibc-functions/ispunct_l.texi.
51090         * doc/posix-functions/isspace_l.texi: Renamed from
51091         doc/glibc-functions/isspace_l.texi.
51092         * doc/posix-functions/isupper_l.texi: Renamed from
51093         doc/glibc-functions/isupper_l.texi.
51094         * doc/posix-functions/iswalnum_l.texi: Renamed from
51095         doc/glibc-functions/iswalnum_l.texi.
51096         * doc/posix-functions/iswalpha_l.texi: Renamed from
51097         doc/glibc-functions/iswalpha_l.texi.
51098         * doc/posix-functions/iswblank_l.texi: Renamed from
51099         doc/glibc-functions/iswblank_l.texi.
51100         * doc/posix-functions/iswcntrl_l.texi: Renamed from
51101         doc/glibc-functions/iswcntrl_l.texi.
51102         * doc/posix-functions/iswctype_l.texi: Renamed from
51103         doc/glibc-functions/iswctype_l.texi.
51104         * doc/posix-functions/iswdigit_l.texi: Renamed from
51105         doc/glibc-functions/iswdigit_l.texi.
51106         * doc/posix-functions/iswgraph_l.texi: Renamed from
51107         doc/glibc-functions/iswgraph_l.texi.
51108         * doc/posix-functions/iswlower_l.texi: Renamed from
51109         doc/glibc-functions/iswlower_l.texi.
51110         * doc/posix-functions/iswprint_l.texi: Renamed from
51111         doc/glibc-functions/iswprint_l.texi.
51112         * doc/posix-functions/iswpunct_l.texi: Renamed from
51113         doc/glibc-functions/iswpunct_l.texi.
51114         * doc/posix-functions/iswspace_l.texi: Renamed from
51115         doc/glibc-functions/iswspace_l.texi.
51116         * doc/posix-functions/iswupper_l.texi: Renamed from
51117         doc/glibc-functions/iswupper_l.texi.
51118         * doc/posix-functions/iswxdigit_l.texi: Renamed from
51119         doc/glibc-functions/iswxdigit_l.texi.
51120         * doc/posix-functions/isxdigit_l.texi: Renamed from
51121         doc/glibc-functions/isxdigit_l.texi.
51122         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
51123         doc/glibc-functions/mbsnrtowcs.texi.
51124         * doc/posix-functions/mkdtemp.texi: Renamed from
51125         doc/glibc-functions/mkdtemp.texi.
51126         * doc/posix-functions/newlocale.texi: Renamed from
51127         doc/glibc-functions/newlocale.texi.
51128         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
51129         doc/glibc-functions/nl_langinfo_l.texi.
51130         * doc/posix-functions/open_memstream.texi: Renamed from
51131         doc/glibc-functions/open_memstream.texi.
51132         * doc/posix-functions/opterr.texi: Renamed from
51133         doc/glibc-functions/opterr.texi.
51134         * doc/posix-functions/optind.texi: Renamed from
51135         doc/glibc-functions/optind.texi.
51136         * doc/posix-functions/optopt.texi: Renamed from
51137         doc/glibc-functions/optopt.texi.
51138         * doc/posix-functions/psignal.texi: Renamed from
51139         doc/glibc-functions/psignal.texi.
51140         * doc/posix-functions/scandir.texi: Renamed from
51141         doc/glibc-functions/scandir.texi.
51142         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
51143         doc/glibc-functions/sched_get_priority_min.texi.
51144         * doc/posix-functions/signgam.texi: Renamed from
51145         doc/glibc-functions/signgam.texi.
51146         * doc/posix-functions/stpcpy.texi: Renamed from
51147         doc/glibc-functions/stpcpy.texi.
51148         * doc/posix-functions/stpncpy.texi: Renamed from
51149         doc/glibc-functions/stpncpy.texi.
51150         * doc/posix-functions/strcasecmp_l.texi: Renamed from
51151         doc/glibc-functions/strcasecmp_l.texi.
51152         * doc/posix-functions/strcoll_l.texi: Renamed from
51153         doc/glibc-functions/strcoll_l.texi.
51154         * doc/posix-functions/strfmon_l.texi: Renamed from
51155         doc/glibc-functions/strfmon_l.texi.
51156         * doc/posix-functions/strftime_l.texi: Renamed from
51157         doc/glibc-functions/strftime_l.texi.
51158         * doc/posix-functions/strncasecmp_l.texi: Renamed from
51159         doc/glibc-functions/strncasecmp_l.texi.
51160         * doc/posix-functions/strndup.texi: Renamed from
51161         doc/glibc-functions/strndup.texi.
51162         * doc/posix-functions/strnlen.texi: Renamed from
51163         doc/glibc-functions/strnlen.texi.
51164         * doc/posix-functions/strsignal.texi: Renamed from
51165         doc/glibc-functions/strsignal.texi.
51166         * doc/posix-functions/strxfrm_l.texi: Renamed from
51167         doc/glibc-functions/strxfrm_l.texi.
51168         * doc/posix-functions/timer_gettime.texi: Renamed from
51169         doc/glibc-functions/timer_gettime.texi.
51170         * doc/posix-functions/tolower_l.texi: Renamed from
51171         doc/glibc-functions/tolower_l.texi.
51172         * doc/posix-functions/toupper_l.texi: Renamed from
51173         doc/glibc-functions/toupper_l.texi.
51174         * doc/posix-functions/towctrans_l.texi: Renamed from
51175         doc/glibc-functions/towctrans_l.texi.
51176         * doc/posix-functions/towlower_l.texi: Renamed from
51177         doc/glibc-functions/towlower_l.texi.
51178         * doc/posix-functions/towupper_l.texi: Renamed from
51179         doc/glibc-functions/towupper_l.texi.
51180         * doc/posix-functions/uselocale.texi: Renamed from
51181         doc/glibc-functions/uselocale.texi.
51182         * doc/posix-functions/vdprintf.texi: Renamed from
51183         doc/glibc-functions/vdprintf.texi.
51184         * doc/posix-functions/wcpcpy.texi:
51185         Renamed from doc/glibc-functions/wcpcpy.texi.
51186         * doc/posix-functions/wcpncpy.texi: Renamed from
51187         doc/glibc-functions/wcpncpy.texi.
51188         * doc/posix-functions/wcscasecmp.texi: Renamed from
51189         doc/glibc-functions/wcscasecmp.texi.
51190         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
51191         doc/glibc-functions/wcscasecmp_l.texi.
51192         * doc/posix-functions/wcscoll_l.texi: Renamed from
51193         doc/glibc-functions/wcscoll_l.texi.
51194         * doc/posix-functions/wcsdup.texi: Renamed from
51195         doc/glibc-functions/wcsdup.texi.
51196         * doc/posix-functions/wcsncasecmp.texi: Renamed from
51197         doc/glibc-functions/wcsncasecmp.texi.
51198         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
51199         doc/glibc-functions/wcsncasecmp_l.texi.
51200         * doc/posix-functions/wcsnlen.texi: Renamed from
51201         doc/glibc-functions/wcsnlen.texi.
51202         * doc/posix-functions/wcsnrtombs.texi: Renamed from
51203         doc/glibc-functions/wcsnrtombs.texi.
51204         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
51205         doc/glibc-functions/wcsxfrm_l.texi.
51206         * doc/posix-functions/wctrans_l.texi: Renamed from
51207         doc/glibc-functions/wctrans_l.texi.
51208         * doc/posix-functions/wctype_l.texi: Renamed from
51209         doc/glibc-functions/wctype_l.texi.
51210         * doc/gnulib.texi (Function Substitutes): Add these subsections.
51211         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
51212         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
51213         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
51214         these subsections.
51215         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
51216         Remove sections.
51217
51218 2008-12-14  Bruno Haible  <bruno@clisp.org>
51219
51220         Update doc for POSIX:2008.
51221         * doc/posix-functions/*.texi: Update URL of POSIX specification.
51222
51223 2008-12-14  Bruno Haible  <bruno@clisp.org>
51224
51225         Update doc for POSIX:2008.
51226         * doc/pastposix-functions/bcmp.texi: Renamed from
51227         doc/posix-functions/bcmp.texi.
51228         * doc/pastposix-functions/bcopy.texi: Renamed from
51229         doc/posix-functions/bcopy.texi.
51230         * doc/pastposix-functions/bsd_signal.texi: Renamed from
51231         doc/posix-functions/bsd_signal.texi.
51232         * doc/pastposix-functions/bzero.texi: Renamed from
51233         doc/posix-functions/bzero.texi.
51234         * doc/pastposix-functions/ecvt.texi: Renamed from
51235         doc/posix-functions/ecvt.texi.
51236         * doc/pastposix-functions/fcvt.texi: Renamed from
51237         doc/posix-functions/fcvt.texi.
51238         * doc/pastposix-functions/ftime.texi: Renamed from
51239         doc/posix-functions/ftime.texi.
51240         * doc/pastposix-functions/gcvt.texi: Renamed from
51241         doc/posix-functions/gcvt.texi.
51242         * doc/pastposix-functions/getcontext.texi: Renamed from
51243         doc/posix-functions/getcontext.texi.
51244         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
51245         doc/posix-functions/gethostbyaddr.texi.
51246         * doc/pastposix-functions/gethostbyname.texi: Renamed from
51247         doc/posix-functions/gethostbyname.texi.
51248         * doc/pastposix-functions/getwd.texi: Renamed from
51249         doc/posix-functions/getwd.texi.
51250         * doc/pastposix-functions/h_errno.texi: Renamed from
51251         doc/posix-functions/h_errno.texi.
51252         * doc/pastposix-functions/index.texi: Renamed from
51253         doc/posix-functions/index.texi.
51254         * doc/pastposix-functions/makecontext.texi: Renamed from
51255         doc/posix-functions/makecontext.texi.
51256         * doc/pastposix-functions/mktemp.texi: Renamed from
51257         doc/posix-functions/mktemp.texi.
51258         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
51259         doc/posix-functions/pthread_attr_getstackaddr.texi.
51260         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
51261         doc/posix-functions/pthread_attr_setstackaddr.texi.
51262         * doc/pastposix-functions/rindex.texi: Renamed from
51263         doc/posix-functions/rindex.texi.
51264         * doc/pastposix-functions/scalb.texi: Renamed from
51265         doc/posix-functions/scalb.texi.
51266         * doc/pastposix-functions/setcontext.texi: Renamed from
51267         doc/posix-functions/setcontext.texi.
51268         * doc/pastposix-functions/swapcontext.texi: Renamed from
51269         doc/posix-functions/swapcontext.texi.
51270         * doc/pastposix-functions/ualarm.texi: Renamed from
51271         doc/posix-functions/ualarm.texi.
51272         * doc/pastposix-functions/usleep.texi: Renamed from
51273         doc/posix-functions/usleep.texi.
51274         * doc/pastposix-functions/vfork.texi: Renamed from
51275         doc/posix-functions/vfork.texi.
51276         * doc/pastposix-functions/wcswcs.texi: Renamed from
51277         doc/posix-functions/wcswcs.texi.
51278         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
51279         (Function Substitutes): Update.
51280
51281 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51282
51283         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
51284         m4/strerror.m4.
51285
51286 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51287             Bruno Haible  <bruno@clisp.org>
51288
51289         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
51290
51291 2008-12-13  Bruno Haible  <bruno@clisp.org>
51292
51293         * modules/strtoull (Depends-on): Remove unistd.
51294
51295 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51296
51297         * modules/strtoull (Depends-on): Add stdlib.
51298
51299 2008-12-11  Simon Josefsson  <simon@josefsson.org>
51300
51301         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
51302
51303 2008-12-10  Jim Meyering  <meyering@redhat.com>
51304
51305         gl_ASSERT: don't say assertions are disabled when they're not
51306         * m4/assert.m4 (gl_ASSERT): Do not make configure report
51307         "checking whether to enable assertions... no", when they are in
51308         fact enabled.  This is solely a bug in the output of configure.
51309         In spite of saying "no", NDEBUG was not defined in that case.
51310         Also, as noted by Eric Blake, leave assertions enabled upon
51311         --enable-assert=INVALID.
51312
51313 2008-12-10  Bruno Haible  <bruno@clisp.org>
51314
51315         Change MODULES.html to refer to POSIX:2008 where possible.
51316         * MODULES.html.sh (POSIX2008_URL): New variable.
51317         (posix_headers): Remove sys/timeb, ucontext.
51318         (posix2001_headers): New variable.
51319         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
51320         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
51321         index, makecontext, mktemp, pthread_attr_getstackaddr,
51322         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
51323         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
51324         (posix2001_functions): New variable.
51325         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
51326         otherwise.
51327
51328 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51329
51330         add missing include to parse-duration.c
51331         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
51332         * modules/parse-duration (Depends-on): Add xalloc.
51333
51334         fix sed script reading maint.mk
51335         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
51336         (syntax-check-rules): Use it.
51337
51338 2008-12-09  Bruno Haible  <bruno@clisp.org>
51339
51340         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
51341         MacOS X 10.4/PowerPC.
51342         Reported by Simon Josefsson.
51343
51344 2008-12-08  Jim Meyering  <meyering@redhat.com>
51345
51346         work around mingw's lack of some S_IF definitions
51347         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
51348         Reported by Simon Josefsson.
51349
51350 2008-12-08  Bruno Haible  <bruno@clisp.org>
51351
51352         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
51353         applied to variables. Needed on MacOS X 10.4/PowerPC.
51354         Reported by Simon Josefsson.
51355
51356 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
51357         and Eric Blake  <ebb9@byu.net>
51358
51359         assert: honor --enable-assert
51360         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
51361         order to honor --enable-assert, rather than treating it as a
51362         synonym for --disable-assert.
51363
51364 2008-12-08  Jim Meyering  <meyering@redhat.com>
51365
51366         * lib/posixtm.c: Remove now-useless declaration of mktime.
51367
51368         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
51369
51370 2008-12-07  Bruno Haible  <bruno@clisp.org>
51371
51372         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
51373         test_once): Mark functions as static.
51374         * tests/test-tls.c (test_tls): Likewise.
51375
51376 2008-12-07  Bruno Haible  <bruno@clisp.org>
51377
51378         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
51379         iconv_register_autodetect.
51380
51381 2008-12-07  Jim Meyering  <meyering@redhat.com>
51382
51383         posixtm.c: avoid a warning
51384         * lib/posixtm.c (posixtime): Don't initialize tm0.
51385         It's no longer needed to placate gcc4's -Wuninitialized,
51386         and the attempt to placate would elicit a new warning.
51387
51388         unicodeio.c: mark unused parameters
51389         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
51390         (fallback_failure_callback): Likewise.
51391
51392 2008-12-07  Bruno Haible  <bruno@clisp.org>
51393
51394         * gnulib-tool (func_create_testdir): When building the tests
51395         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
51396         Reported by Simon Josefsson.
51397
51398 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51399
51400         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
51401
51402 2008-12-06  Bruno Haible  <bruno@clisp.org>
51403
51404         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
51405         Suggested by Eric Blake.
51406
51407 2008-12-06  Bruno Haible  <bruno@clisp.org>
51408
51409         Fix a c-stack test failure on MacOS X.
51410         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
51411         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
51412         handler for SIGBUS as well.
51413         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
51414         install a signal handler for SIGBUS as well.
51415         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
51416
51417 2008-12-06  Bruno Haible  <bruno@clisp.org>
51418
51419         Advocacy documentation.
51420         * doc/gnulib-intro.texi (Benefits): New section.
51421         * doc/gnulib.texi: Update.
51422
51423 2008-12-06  Bruno Haible  <bruno@clisp.org>
51424
51425         Document the 'manywarnings' module.
51426         * doc/manywarnings.texi: New file.
51427         * doc/gnulib.texi: Include it.
51428
51429 2008-12-05  Eric Blake  <ebb9@byu.net>
51430
51431         tests: silence some gcc warnings
51432         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
51433         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
51434         type mismatches.
51435
51436 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51437             Bruno Haible  <bruno@clisp.org>
51438
51439         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
51440
51441 2008-11-29  Jim Meyering  <meyering@redhat.com>
51442
51443         unicodeio.c: mark unused parameters
51444         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
51445         (fallback_failure_callback): Likewise.
51446
51447         fts: fix a thinko
51448         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
51449         (set_stat_type): Return S_IF*-valued "type" directly.
51450         Prompted by James Youngman's spotting a related bug.
51451         Confirmed by further testing through find.
51452
51453         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
51454         * lib/fts.c (D_TYPE): Define.
51455         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
51456         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
51457         (s_ifmt_shift_bits): New function.
51458         (set_stat_type): New function.
51459         (fts_build): When not calling fts_stat, call set_stat_type
51460         to propagate dirent.d_type info to fts_read caller.
51461         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
51462         fts_statp->st_mode type information may be valid.
51463
51464 2008-11-28  Simon Josefsson  <simon@josefsson.org>
51465
51466         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
51467         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
51468         <sds@gnu.org>.
51469
51470 2008-11-20  Bruno Haible  <bruno@clisp.org>
51471
51472         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
51473         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
51474         INCLUDE_NEXT.
51475         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
51476         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
51477         * modules/math (Makefile.am): Substitute
51478         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
51479         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51480
51481 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
51482             Bruno Haible  <bruno@clisp.org>
51483
51484         * lib/stdint.in.h: Define all type macros so that their expansion is
51485         a single typedef'ed token. Fixes a compilation failure in Boost which
51486         does "using ::int8_t;".
51487
51488 2008-11-18  Simon Josefsson  <simon@josefsson.org>
51489
51490         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
51491         gl_MANYWARN_ALL_GCC.
51492         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
51493         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
51494         * modules/manywarnings: New file.
51495         * MODULES.html.sh: Mention manywarnings module.
51496
51497 2008-11-18  Bruno Haible  <bruno@clisp.org>
51498
51499         * doc/gnulib-tool.texi (Unit tests): New section.
51500
51501 2008-11-18  Simon Josefsson  <simon@josefsson.org>
51502
51503         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
51504         paths like 'lib/po/foo.po'.
51505
51506 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51507
51508         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
51509         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
51510
51511 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51512
51513         * m4/warnings.m4: Use CPPFLAGS to really check whether the
51514         parameter works.
51515
51516 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51517
51518         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
51519
51520 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51521
51522         * modules/parse-duration-tests: New file.
51523         * tests/test-parse-duration.sh: New file.
51524         * tests/test-parse-duration.c: New file.
51525
51526         New module 'parse-duration'.
51527         * lib/parse-duration.h: New file.
51528         * lib/parse-duration.c: New file.
51529         * modules/parse-duration: New file.
51530
51531 2008-11-17  Bruno Haible  <bruno@clisp.org>
51532
51533         * tests/test-select-out.sh: Comment out the first pipe test.
51534         Reported by Simon Josefsson.
51535
51536 2008-11-17  Bruno Haible  <bruno@clisp.org>
51537
51538         * modules/getaddrinfo (Depends-on): Add servent, hostent.
51539         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
51540         gl_HOSTENT.
51541
51542 2008-11-17  Bruno Haible  <bruno@clisp.org>
51543
51544         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
51545         -lnetwork and -lnet. Needed for Haiku and BeOS.
51546
51547 2008-11-16  Bruno Haible  <bruno@clisp.org>
51548
51549         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
51550
51551 2008-11-16  Bruno Haible  <bruno@clisp.org>
51552
51553         Avoid test failure on Haiku.
51554         * tests/test-fsync.c: Include <errno.h>.
51555         (main): Don't require that fsync (0) fails.
51556
51557 2008-11-15  Bruno Haible  <bruno@clisp.org>
51558
51559         New module 'hostent'.
51560         * modules/hostent: New file.
51561         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
51562
51563 2008-11-15  Bruno Haible  <bruno@clisp.org>
51564
51565         New module 'servent'.
51566         * modules/servent: New file.
51567         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
51568
51569 2008-11-15  Bruno Haible  <bruno@clisp.org>
51570
51571         Avoid generating same test program with two different rules.
51572         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
51573         test-frexp to test-frexp-nolibm.
51574         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
51575         test-frexpl to test-frexpl-nolibm.
51576
51577 2008-11-15  Bruno Haible  <bruno@clisp.org>
51578
51579         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
51580         $(FREXPL_LIBM).
51581
51582 2008-11-15  Bruno Haible  <bruno@clisp.org>
51583
51584         * lib/netdb.in.h: Activate the definitions also when the system's
51585         <netdb.h> has 'struct addrinfo'.
51586         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
51587         EAI_OVERFLOW or AI_NUMERICSERV.
51588         * doc/posix-headers/netdb.texi: Document the problem.
51589
51590 2008-11-15  Bruno Haible  <bruno@clisp.org>
51591
51592         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
51593
51594         Make the 'sched' module work on platforms where <sched.h> exists but
51595         is incomplete (such as Haiku).
51596         * lib/sched.in.h; Include the system's <sched.h> if it exists.
51597         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
51598         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
51599         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
51600         HAVE_STRUCT_SCHED_PARAM.
51601         * modules/sched (Depends-on): Add include_next.
51602         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
51603         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
51604         * doc/posix-headers/sched.texi: Document the issue.
51605
51606 2008-11-13  Jim Meyering  <meyering@redhat.com>
51607
51608         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
51609         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
51610         test would fail due to the difference in the Report bugs to ...
51611         line.  The expected address is empty, "<>", while the actual
51612         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
51613
51614 2008-11-12  Bruno Haible  <bruno@clisp.org>
51615
51616         lstat: don't compile lstat.c on systems lacking lstat
51617         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
51618         which don't have lstat; this is handled by lib/sys_stat.in.h already.
51619         Reported by Daniel P. Berrange via Jim Meyering.
51620
51621 2008-11-12  Jim Meyering  <meyering@redhat.com>
51622
51623         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
51624
51625 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51626
51627         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
51628         instead.
51629
51630 2008-11-12  Bruno Haible  <bruno@clisp.org>
51631
51632         * lib/unicodeio.c: Include unistr.h.
51633         (utf8_wctomb): Remove function.
51634         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
51635
51636 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51637
51638         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
51639         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
51640         <bruno@clisp.org>.
51641         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
51642
51643 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51644
51645         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
51646         * doc/gnulib.texi: Add section for warnings.
51647
51648 2008-11-11  Bruno Haible  <bruno@clisp.org>
51649
51650         * lib/sockets.h: Add a comment.
51651
51652 2008-11-11  Karl Berry  <karl@gnu.org>
51653
51654         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
51655
51656 2008-11-11  Eric Blake  <ebb9@byu.net>
51657
51658         fdl.texi: avoid git symlinks
51659         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
51660
51661 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51662
51663         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
51664
51665 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51666
51667         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
51668         (gl_WARN_ADD): Substitute $2 if literal.
51669
51670 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51671
51672         * m4/warning.m4: Remove.
51673
51674 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51675
51676         * m4/warnings.m4: Almost complete rewrite. :-)
51677
51678 2008-11-10  Simon Josefsson  <simon@josefsson.org>
51679
51680         * modules/warnings: New module.
51681         * m4/warnings.m4: New file.
51682         * MODULES.html.sh: Mention warnings module.
51683         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
51684         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51685
51686 2008-11-10  Eric Blake  <ebb9@byu.net>
51687
51688         fdl.texi: make a symlink to the latest version
51689         * doc/standards.texi: Revert today's earlier change.
51690         * doc/fdl-1.2.texi: Rename from old fdl.texi...
51691         * doc/fdl.texi: ...and replace this with a symlink to the newer
51692         fdl-1.3.texi.
51693
51694 2008-11-10  Bruno Haible  <bruno@clisp.org>
51695
51696         * tests/test-select-fd.c (main): Accept the result file name as fourth
51697         argument.
51698         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
51699         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
51700
51701 2008-11-10  Bruno Haible  <bruno@clisp.org>
51702
51703         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
51704         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
51705         as autoconf-substituted macros.
51706         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
51707         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
51708         gl_NETDB_H_DEFAULTS. Set these variables.
51709         * modules/netdb (Makefile.am): Substitute these variables.
51710
51711 2008-11-10  Eric Blake  <ebb9@byu.net>
51712
51713         standards.texi: include correct file for FDL 1.3
51714         * doc/standards.texi (GNU Free Documentation License): Change
51715         include file to pull in FDL 1.3, not 1.2.
51716
51717         fdl.texi: revert accidental change to license
51718         * doc/fdl.texi: This is FDL 1.2, not 1.3.
51719
51720 2008-11-10  Bruno Haible  <bruno@clisp.org>
51721
51722         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
51723         cross-compiling guesses also when the native compile gives no result.
51724
51725 2008-11-10  Bruno Haible  <bruno@clisp.org>
51726
51727         * lib/spawni.c (__spawni): Force variable into the stack.
51728
51729 2008-11-10  Bruno Haible  <bruno@clisp.org>
51730
51731         Add support for Haiku.
51732         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
51733         glibc and BeOS, but also on Haiku.
51734         * lib/fpurge.c (fpurge): Likewise.
51735         * lib/freadable.c (freadable): Likewise.
51736         * lib/freadahead.c (freadahead): Likewise.
51737         * lib/freading.c (freading): Likewise.
51738         * lib/freadptr.c (freadptr): Likewise.
51739         * lib/freadseek.c (freadptrinc): Likewise.
51740         * lib/fseeko.c (rpl_fseeko): Likewise.
51741         * lib/fseterr.c (fseterr): Likewise.
51742         * lib/fwritable.c (fwritable): Likewise.
51743         * lib/fwriting.c (fwriting): Likewise.
51744         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
51745
51746 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51747
51748         * lib/config.charset: Treat Haiku like BeOS.
51749
51750 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51751
51752         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
51753         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
51754
51755 2008-11-08  Bruno Haible  <bruno@clisp.org>
51756
51757         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
51758         AC_CACHE_CHECK.
51759
51760 2008-11-08  Bruno Haible  <bruno@clisp.org>
51761
51762         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
51763
51764 2008-11-08  Bruno Haible  <bruno@clisp.org>
51765
51766         * tests/test-select-fd.c: New file.
51767         * tests/test-select-in.sh: New file.
51768         * tests/test-select-out.sh: New file.
51769         * tests/test-select-stdin.c: New file.
51770         * modules/select-tests (Files): Add the new files.
51771         (Depends-on): Add gettimeofday.
51772         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
51773         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
51774         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
51775
51776 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
51777             Bruno Haible  <bruno@clisp.org>
51778
51779         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
51780
51781 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
51782
51783         * build-aux/pmccabe2html: Added support for C++ source files.
51784
51785 2008-11-05  Ben Pfaff  <blp@gnu.org>
51786
51787         Fix lib/close.c build on Windows.
51788         * modules/close (Files): Add lib/w32sock.h.
51789
51790 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
51791
51792         Accept Bison's NEWS format.
51793         * build-aux/announce-gen (print_news_deltas): Tweak
51794         $re_prefix.
51795
51796 2008-11-04  Bruno Haible  <bruno@clisp.org>
51797
51798         * modules/random_r (Maintainer): Add glibc.
51799
51800 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51801
51802         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
51803         by karl@freefriends.org (Karl Berry).
51804         * doc/alloca.texi: Likewise.
51805         * doc/c-ctype.texi: Likewise.
51806         * doc/c-strcase.texi: Likewise.
51807         * doc/c-strcaseeq.texi: Likewise.
51808         * doc/c-strcasestr.texi: Likewise.
51809         * doc/c-strstr.texi: Likewise.
51810         * doc/c-strtod.texi: Likewise.
51811         * doc/c-strtold.texi: Likewise.
51812         * doc/ctime.texi: Likewise.
51813         * doc/error.texi: Likewise.
51814         * doc/fdl.texi: Likewise.
51815         * doc/gcd.texi: Likewise.
51816         * doc/getdate.texi: Likewise.
51817         * doc/gnulib-intro.texi: Likewise.
51818         * doc/gnulib-tool.texi: Likewise.
51819         * doc/gnulib.texi: Likewise.
51820         * doc/inet_ntoa.texi: Likewise.
51821         * doc/maintain.texi: Likewise.
51822         * doc/make-stds.texi: Likewise.
51823         * doc/quote.texi: Likewise.
51824         * doc/regexprops-generic.texi: Likewise.
51825         * doc/standards.texi: Likewise.
51826         * doc/verify.texi: Likewise.
51827         * doc/visibility.texi: Likewise.
51828         * doc/gnulib.texi (GNU Free Documentation License): Include
51829         fdl-1.3.texi instead of fdl.texi.
51830
51831 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51832
51833         * doc/fdl-1.3.texi: New file, from
51834         <http://www.gnu.org/licenses/fdl-1.3.texi>.
51835         * modules/fdl-1.3: Add.
51836         * MODULES.html.sh: Add fdl-1.3.
51837
51838 2008-11-03  Bruno Haible  <bruno@clisp.org>
51839
51840         Make determination of absolute name of header file work with AIX xlc.
51841         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
51842         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
51843         preprocessing.
51844         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51845         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
51846
51847 2008-11-03  Simon Josefsson  <simon@josefsson.org>
51848
51849         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
51850         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
51851         <ludo@gnu.org>.
51852
51853 2008-11-02  Bruno Haible  <bruno@clisp.org>
51854
51855         Mark 'strpbrk' obsolete.
51856         * modules/strpbrk (Status, Notice): New sections.
51857         * modules/strtok_r (Depends-on): Add strpbrk.
51858
51859 2008-11-02  Bruno Haible  <bruno@clisp.org>
51860
51861         Mark 'strdup' obsolete.
51862         * modules/strdup (Status, Notice): New sections.
51863         * modules/findprog (Depends-on): Add strdup.
51864         * modules/getaddrinfo (Depends-on): Likewise.
51865         * modules/localename (Depends-on): Likewise.
51866         * modules/relocatable-lib (Depends-on): Likewise.
51867         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
51868         * modules/relocatable-prog (Depends-on): Likewise.
51869         * modules/trim (Depends-on): Likewise.
51870         * modules/unictype/gen-ctype (Depends-on): Likewise.
51871         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51872
51873 2008-11-02  Bruno Haible  <bruno@clisp.org>
51874
51875         Mark 'strcspn' obsolete.
51876         * modules/strcspn (Status, Notice): New sections.
51877
51878 2008-11-02  Bruno Haible  <bruno@clisp.org>
51879
51880         Mark 'rmdir' obsolete.
51881         * modules/rmdir (Status, Notice): New sections.
51882         * modules/clean-temp (Depends-on): Add rmdir.
51883         * modules/openat (Depends-on): Likewise.
51884
51885 2008-11-02  Bruno Haible  <bruno@clisp.org>
51886
51887         Mark 'raise' obsolete.
51888         * modules/raise (Status, Notice): New sections.
51889         (Include): Specify <signal.h>.
51890         * modules/stdio (Depends-on): Add raise.
51891         * modules/write (Depends-on): Likewise.
51892
51893 2008-11-02  Bruno Haible  <bruno@clisp.org>
51894
51895         Mark 'memset' obsolete.
51896         * modules/memset (Status, Notice): New sections.
51897
51898 2008-11-02  Bruno Haible  <bruno@clisp.org>
51899
51900         Mark 'memmove' obsolete.
51901         * modules/memmove (Status, Notice): New sections.
51902         * modules/argp (Depends-on): Add memmove.
51903         * modules/argz (Depends-on): Likewise.
51904         * modules/canonicalize (Depends-on): Likewise.
51905         * modules/canonicalize-lgpl (Depends-on): Likewise.
51906         * modules/fts (Depends-on): Likewise.
51907         * modules/getcwd (Depends-on): Likewise.
51908         * modules/human (Depends-on): Likewise.
51909         * modules/regex (Depends-on): Likewise.
51910         * modules/striconveh (Depends-on): Likewise.
51911         * modules/trim (Depends-on): Likewise.
51912         * modules/unistr/u8-move (Depends-on): Likewise.
51913         * modules/unistr/u16-move (Depends-on): Likewise.
51914         * modules/unistr/u32-move (Depends-on): Likewise.
51915
51916 2008-11-02  Bruno Haible  <bruno@clisp.org>
51917
51918         Mark 'memcpy' obsolete.
51919         * modules/memcpy (Status, Notice): New sections.
51920
51921 2008-11-02  Bruno Haible  <bruno@clisp.org>
51922
51923         Mark 'memcmp' obsolete.
51924         * modules/memcmp (Status, Notice): New sections.
51925         * modules/argmatch (Depends-on): Add memchr.
51926         * modules/backupfile (Depends-on): Likewise.
51927         * modules/c-strcasestr (Depends-on): Likewise.
51928         * modules/crypto/des (Depends-on): Likewise.
51929         * modules/csharpcomp (Depends-on): Likewise.
51930         * modules/fnmatch (Depends-on): Likewise.
51931         * modules/git-merge-changelog (Depends-on): Likewise.
51932         * modules/isnand (Depends-on): Likewise.
51933         * modules/isnand-nolibm (Depends-on): Likewise.
51934         * modules/isnanf (Depends-on): Likewise.
51935         * modules/isnanf-nolibm (Depends-on): Likewise.
51936         * modules/isnanl (Depends-on): Likewise.
51937         * modules/isnanl-nolibm (Depends-on): Likewise.
51938         * modules/mbchar (Depends-on): Likewise.
51939         * modules/memcoll (Depends-on): Likewise.
51940         * modules/quotearg (Depends-on): Likewise.
51941         * modules/regex (Depends-on): Likewise.
51942         * modules/relocatable-prog (Depends-on): Likewise.
51943         * modules/same (Depends-on): Likewise.
51944         * modules/signbit (Depends-on): Likewise.
51945         * modules/strcasestr-simple (Depends-on): Likewise.
51946         * modules/unictype/gen-ctype (Depends-on): Likewise.
51947         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51948         * modules/uniname/uniname (Depends-on): Likewise.
51949         * modules/unistr/u8-cmp (Depends-on): Likewise.
51950
51951 2008-11-02  Bruno Haible  <bruno@clisp.org>
51952
51953         Mark 'memchr' obsolete.
51954         * modules/memchr (Status, Notice): New sections.
51955         * modules/argp (Depends-on): Add memchr.
51956         * modules/base64 (Depends-on): Likewise.
51957         * modules/c-strcasestr (Depends-on): Likewise.
51958         * modules/chdir-long (Depends-on): Likewise.
51959         * modules/fnmatch (Depends-on): Likewise.
51960         * modules/getsubopt (Depends-on): Likewise.
51961         * modules/git-merge-changelog (Depends-on): Likewise.
51962         * modules/glob (Depends-on): Likewise.
51963         * modules/strcasestr-simple (Depends-on): Likewise.
51964         * modules/strnlen (Depends-on): Likewise.
51965
51966 2008-11-02  Bruno Haible  <bruno@clisp.org>
51967
51968         Mark 'atexit' obsolete.
51969         * modules/atexit (Status, Notice): New sections.
51970         * modules/chdir-long (Depends-on): Add atexit.
51971         * modules/wait-process (Depends-on): Likewise.
51972
51973 2008-11-02  Bruno Haible  <bruno@clisp.org>
51974
51975         * gnulib-tool: New option --with-obsolete.
51976         (func_usage): Document it.
51977         (func_modules_transitive_closure): Drop obsolete dependencies if
51978         incobsolete is not true.
51979         (func_import): Read and save the incobsolete variable to the cache.
51980
51981 2008-11-02  Bruno Haible  <bruno@clisp.org>
51982
51983         * modules/TEMPLATE-EXTENDED: New field 'Status'.
51984         * gnulib-tool: New option --extract-status.
51985         (func_usage): Document it.
51986         (sed_extract_prog): Recognize it.
51987         (func_get_status): New function.
51988
51989 2008-10-30  Simon Josefsson  <simon@josefsson.org>
51990
51991         * modules/sockets (License): Change from LGPL to LGPLv2+.
51992
51993 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51994
51995         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
51996
51997 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51998
51999         * MODULES.html.sh (Support for systems lacking POSIX:2001):
52000         Mention times and sys_times.
52001         * modules/sys_times, modules/sys_times-tests: New modules.
52002         * modules/times, modules/times-tests: Likewise
52003         * m4/sys_times_h.m4: New file.
52004         * lib/sys_times.in.h: Likewise
52005         * lib/times.c: Likewise.
52006         * tests/test-sys_times.c: Likewise.
52007         * tests/test-times.c: Likewise.
52008         * doc/posix-headers/sys_times.texi: Update.
52009         * doc/posix-functions/times.texi: Update.
52010
52011 2008-10-28  Jim Meyering  <meyering@redhat.com>
52012
52013         * modules/tempname (Depends-on): Add lstat.
52014
52015         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
52016
52017 2008-10-28  Simon Josefsson  <simon@josefsson.org>
52018
52019         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
52020         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
52021         using idiom used elsewhere in gnulib.
52022
52023 2008-10-27  Jim Meyering  <meyering@redhat.com>
52024
52025         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
52026
52027 2008-10-27  Simon Josefsson  <simon@josefsson.org>
52028
52029         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
52030         TESTS_ENVIRONMENT, for shell scripts that needs to call built
52031         programs.
52032         * tests/test-argp-2.sh: Use $EXEEXT when needed.
52033
52034 2008-10-27  Simon Josefsson  <simon@josefsson.org>
52035
52036         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
52037
52038 2008-10-27  Bruno Haible  <bruno@clisp.org>
52039
52040         * tests/test-lstat.c: Include <stdio.h>.
52041
52042 2008-10-27  Simon Josefsson  <simon@josefsson.org>
52043
52044         * modules/lstat-tests: New module.
52045         * tests/test-lstat.c: New file.
52046
52047 2008-10-26  Jim Meyering  <meyering@redhat.com>
52048
52049         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
52050
52051 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52052             Bruno Haible  <bruno@clisp.org>
52053
52054         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
52055         * modules/configmake (Include): Add a note that the include must come
52056         after all system headers.
52057         * lib/javaversion.c: Include configmake.h after all other includes.
52058
52059 2008-10-26  Bruno Haible  <bruno@clisp.org>
52060
52061         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
52062         HAVE_STRUCT_RANDOM_DATA to 1.
52063         (gl_STDLIB_H): Simplify.
52064
52065 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52066
52067         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
52068         substitute HAVE_STRUCT_RANDOM_DATA.
52069         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
52070         random_data.
52071         * modules/stdlib (Makefile.am): Substitute
52072         HAVE_STRUCT_RANDOM_DATA.
52073
52074 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52075
52076         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
52077         * doc/gnulib-intro.texi (Copyright): Likewise.
52078
52079 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52080
52081         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
52082         findings.
52083
52084 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
52085             Bruno Haible  <bruno@clisp.org>
52086
52087         * lib/unistd.in.h: Include <winsock2.h>.
52088         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
52089         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
52090         Provide dummy declarations.
52091         (gethostname): Override.
52092         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
52093         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
52094         gl_PREREQ_SYS_H_WINSOCK2.
52095         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
52096         * doc/posix-functions/gethostname.texi: More details.
52097
52098 2008-10-25  Bruno Haible  <bruno@clisp.org>
52099
52100         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
52101         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
52102         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
52103
52104         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
52105         here ...
52106         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
52107         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
52108         gl_UNISTD_H_DEFAULTS.
52109
52110 2008-10-25  Eric Blake  <ebb9@byu.net>
52111
52112         signbit: avoid spurious compiler failure
52113         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
52114         declarations inside function.
52115
52116 2008-10-24  Simon Josefsson  <simon@josefsson.org>
52117             Bruno Haible  <bruno@clisp.org>
52118
52119         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
52120         * modules/random_r (Depends-on): Add stdint.
52121
52122 2008-10-24  Bruno Haible  <bruno@clisp.org>
52123
52124         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
52125         Eggert.
52126         * modules/strerror (License): Likewise.
52127
52128 2008-10-24  Jim Meyering  <meyering@redhat.com>
52129
52130         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
52131         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
52132
52133 2008-10-24  Eric Blake  <ebb9@byu.net>
52134
52135         getgroups: fix compilation when getgroups is available
52136         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
52137         but with <config.h> override of getgroups disabled.
52138
52139 2008-10-24  Simon Josefsson  <simon@josefsson.org>
52140
52141         * doc/gnulib.texi (Header files): Add note about C++ problems.
52142         Explained by Bruno Haible <bruno@clisp.org>.
52143
52144 2008-10-23  Bruno Haible  <bruno@clisp.org>
52145
52146         Define a dummy SA_NODEFER macro on Interix.
52147         * lib/signal.in.h (SA_NODEFER): Define fallback.
52148         Reported by Aleksey Cheusov <cheusov@tut.by> via
52149         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
52150
52151 2008-10-23  Bruno Haible  <bruno@clisp.org>
52152
52153         * modules/freadahead (License): Change to LGPLv2+.
52154         Suggested by Simon Josefsson.
52155
52156 2008-10-23  Jim Meyering  <meyering@redhat.com>
52157
52158         random_r: new module
52159         * modules/random_r: New file.
52160         * m4/random_r.m4: New file.
52161         * lib/random_r.c: New file, from glibc.
52162         * modules/random_r-tests: New file.
52163         * tests/test-random_r.c: New file.
52164         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
52165          Declare.
52166         (RAND_MAX): Define.
52167         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
52168         * modules/stdlib: Substitute them, too.
52169         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
52170         * doc/glibc-functions/initstate_r.texi: Mention the new module.
52171         * doc/glibc-functions/random_r.texi: Likewise.
52172         * doc/glibc-functions/setstate_r.texi: Likewise.
52173         * doc/glibc-functions/srandom_r.texi: Likewise.
52174         * config/srclist.txt: Mention it.
52175
52176 2008-10-23  David Lutterkort  <lutter@redhat.com>
52177
52178         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
52179         link requirement
52180
52181 2008-10-23  Jim Meyering  <meyering@redhat.com>
52182
52183         selinux-h: mark parameters of stub functions as intentionally unused
52184         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
52185         * lib/se-context.in.h: Likewise.
52186
52187 2008-10-22  Simon Josefsson  <simon@josefsson.org>
52188
52189         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
52190
52191 2008-10-22  Simon Josefsson  <simon@josefsson.org>
52192
52193         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
52194
52195 2008-10-22  Eric Blake  <ebb9@byu.net>
52196
52197         glthread/thread: avoid compiler warning
52198         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
52199         Add unreachable abort to silence compiler.
52200
52201 2008-10-22  Eric Blake  <ebb9@byu.net>
52202
52203         netdb: also supply struct addrinfo for cygwin 1.5.x
52204         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
52205         older cygwin.
52206         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
52207         cygwin.
52208         * doc/posix-headers/netdb.texi (netdb.h): Document this.
52209
52210 2008-10-22  Bruno Haible  <bruno@clisp.org>
52211
52212         * users.txt: Update entry about pspp.
52213
52214 2008-10-21  Bruno Haible  <bruno@clisp.org>
52215
52216         Simplification.
52217         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
52218         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
52219
52220         Simplification.
52221         * lib/ioctl.c (ioctl): Don't undefine.
52222         * lib/socket.c (socket): Don't undefine.
52223
52224         Remove unused module indicator macros.
52225         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
52226         GNULIB_$1 as a C macro.
52227
52228         * doc/posix-functions/close.texi: Undo last change.
52229         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
52230         Windows platforms.
52231
52232 2008-10-21  Bruno Haible  <bruno@clisp.org>
52233
52234         Add gethostname() declaration to <unistd.h>.
52235         * lib/unistd.in.h (gethostname): New declaration.
52236         * lib/gethostname.c: Include <unistd.h>.
52237         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
52238         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
52239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
52240         and HAVE_GETHOSTNAME.
52241         * modules/gethostname (Depends-on): Add unistd.
52242         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52243         (Include): Specify <unistd.h>.
52244         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
52245         HAVE_GETHOSTNAME.
52246         * tests/test-gethostname.c: Include <unistd.h> first.
52247
52248 2008-10-21  Bruno Haible  <bruno@clisp.org>
52249
52250         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
52251         * modules/select-tests (Depends-on): Likewise.
52252         Reported by Simon Josefsson.
52253
52254 2008-10-21  Simon Josefsson  <simon@josefsson.org>
52255
52256         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
52257         * lib/accept.c: New file, based on winsock.c.
52258         * lib/bind.c: New file, based on winsock.c.
52259         * lib/connect.c: New file, based on winsock.c.
52260         * lib/getpeername.c: New file, based on winsock.c.
52261         * lib/getsockname.c: New file, based on winsock.c.
52262         * lib/getsockopt.c: New file, based on winsock.c.
52263         * lib/ioctl.c: New file, based on winsock.c.
52264         * lib/listen.c: New file, based on winsock.c.
52265         * lib/recv.c: New file, based on winsock.c.
52266         * lib/recvfrom.c: New file, based on winsock.c.
52267         * lib/send.c: New file, based on winsock.c.
52268         * lib/sendto.c: New file, based on winsock.c.
52269         * lib/setsockopt.c: New file, based on winsock.c.
52270         * lib/shutdown.c: New file, based on winsock.c.
52271         * lib/socket.c: New file, based on winsock.c.
52272         * lib/w32sock.h: New file, based on winsock.c.
52273         * lib/winsock.c: Remove file.
52274         * modules/accept: Likewise.
52275         * modules/bind: Likewise.
52276         * modules/connect: Likewise.
52277         * modules/getpeername: Likewise.
52278         * modules/getsockname: Likewise.
52279         * modules/getsockopt: Likewise.
52280         * modules/ioctl: Likewise.
52281         * modules/listen: Likewise.
52282         * modules/recv: Likewise.
52283         * modules/recvfrom: Likewise.
52284         * modules/send: Likewise.
52285         * modules/sendto: Likewise.
52286         * modules/setsockopt: Likewise.
52287         * modules/shutdown: Likewise.
52288         * modules/socket: Use socket.c instead of winsock.c.
52289         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
52290         * doc/posix-functions/accept.texi: Doc fix.
52291         * doc/posix-functions/bind.texi: Doc fix.
52292         * doc/posix-functions/close.texi: Doc fix.
52293         * doc/posix-functions/connect.texi: Doc fix.
52294         * doc/posix-functions/getpeername.texi: Doc fix.
52295         * doc/posix-functions/getsockname.texi: Doc fix.
52296         * doc/posix-functions/getsockopt.texi: Doc fix.
52297         * doc/posix-functions/ioctl.texi: Doc fix.
52298         * doc/posix-functions/listen.texi: Doc fix.
52299         * doc/posix-functions/recv.texi: Doc fix.
52300         * doc/posix-functions/recvfrom.texi: Doc fix.
52301         * doc/posix-functions/send.texi: Doc fix.
52302         * doc/posix-functions/sendto.texi: Doc fix.
52303         * doc/posix-functions/setsockopt.texi: Doc fix.
52304         * doc/posix-functions/shutdown.texi: Doc fix.
52305         * doc/posix-functions/socket.texi: Doc fix.
52306
52307 2008-10-20  Bruno Haible  <bruno@clisp.org>
52308
52309         Take into account the role of SIGABRT_COMPAT on Windows 2008.
52310         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
52311         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
52312         as an alias for SIGABRT.
52313         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
52314         (sigaction): Map it to SIGABRT.
52315         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
52316
52317 2008-10-20  Bruno Haible  <bruno@clisp.org>
52318
52319         * lib/fts.c: Don't include lstat.h.
52320         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
52321
52322         Move the lstat() declaration to <sys/stat.h>.
52323         * lib/lstat.h: Remove file.
52324         * lib/sys_stat.in.h: Add special invocation convention.
52325         (lstat): New declaration.
52326         * lib/lstat.c (orig_lstat): New function.
52327         (rpl_lstat): Use orig_lstat instead of lstat.
52328         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
52329         AC_C_INLINE. Set REPLACE_LSTAT.
52330         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
52331         and REPLACE_LSTAT.
52332         * modules/lstat (Files): Remove lib/lstat.h.
52333         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
52334         (Include): Specify <sys/stat.h> instead of lstat.h.
52335         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
52336         REPLACE_LSTAT.
52337         * NEWS: Mention the change.
52338
52339 2008-10-20  Bruno Haible  <bruno@clisp.org>
52340
52341         * modules/posix_spawn-tests: New file.
52342         * tests/test-posix_spawn3.c: New file.
52343
52344 2008-10-20  Bruno Haible  <bruno@clisp.org>
52345
52346         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
52347         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
52348         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
52349         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
52350         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
52351
52352 2008-10-20  Bruno Haible  <bruno@clisp.org>
52353
52354         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
52355         of posix_spawn on AIX 5.3.
52356
52357 2008-10-20  Bruno Haible  <bruno@clisp.org>
52358
52359         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
52360
52361 2008-10-20  Bruno Haible  <bruno@clisp.org>
52362
52363         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
52364         of AC_LANG_PROGRAM.
52365
52366 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52367
52368         * lib/netdb.in.h: Don't define GNU specific constants until they
52369         are supported or needed.  Reported by Bruno Haible
52370         <bruno@clisp.org>.
52371
52372 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52373
52374         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
52375
52376 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52377
52378         * lib/getaddrinfo.h: Remove file.
52379         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
52380         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
52381         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
52382         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
52383         * modules/netdb: Substitute GNULIB_GETADDRINFO.
52384         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
52385         * tests/test-getaddrinfo.c: Likewise.
52386         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
52387         * NEWS: Mention change.
52388
52389 2008-10-19  Bruno Haible  <bruno@clisp.org>
52390
52391         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
52392
52393 2008-10-19  Bruno Haible  <bruno@clisp.org>
52394
52395         * lib/wait-process.c: Include simply <sys/wait.h>.
52396         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
52397         WIFSTOPPED): Remove fallback definitions.
52398         * modules/wait-process (Depends-on): Add sys_wait.
52399
52400         New module 'sys_wait'.
52401         * modules/sys_wait: New file.
52402         * lib/sys_wait.in.h: New file, partially copied from
52403         lib/wait-process.c.
52404         * m4/sys_wait_h.m4: New file.
52405         * doc/posix-headers/sys_wait.texi: Mention the new module.
52406
52407 2008-10-19  Bruno Haible  <bruno@clisp.org>
52408
52409         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
52410
52411 2008-10-19  Bruno Haible  <bruno@clisp.org>
52412
52413         Assume that waitpid() fills an 'int' status, not a 'union wait'.
52414         * lib/wait-process.c (WAIT_T): Remove type.
52415         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
52416         (wait_subprocess): Update.
52417
52418 2008-10-19  Bruno Haible  <bruno@clisp.org>
52419
52420         New module 'atoll'.
52421         * modules/atoll: New file.
52422         * lib/stdlib.in.h (atoll): New declaration.
52423         * lib/atoll.c: New file, from glibc with modifications.
52424         * m4/atoll.m4: New file.
52425         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
52426         HAVE_ATOLL.
52427         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
52428         * doc/posix-functions/atoll.texi: Mention the new module.
52429
52430 2008-10-19  Bruno Haible  <bruno@clisp.org>
52431
52432         Add strtoull() declaration to <stdlib.h>.
52433         * lib/stdlib.in.h (strtoull): New declaration.
52434         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
52435         Set HAVE_STRTOULL.
52436         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
52437         HAVE_STRTOULL.
52438         * modules/strtoull (Depends-on): Add stdlib.
52439         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52440         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
52441         HAVE_STRTOULL.
52442
52443 2008-10-19  Bruno Haible  <bruno@clisp.org>
52444
52445         Add strtoll() declaration to <stdlib.h>.
52446         * lib/stdlib.in.h (strtoll): New declaration.
52447         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
52448         Set HAVE_STRTOLL.
52449         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
52450         HAVE_STRTOLL.
52451         * modules/strtoll (Depends-on): Add stdlib.
52452         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52453         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
52454
52455 2008-10-19  Bruno Haible  <bruno@clisp.org>
52456
52457         * modules/bcopy (Depends-on): Add strings.
52458         (Include): Specify <strings.h>.
52459
52460 2008-10-19  Bruno Haible  <bruno@clisp.org>
52461
52462         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
52463
52464 2008-10-19  Bruno Haible  <bruno@clisp.org>
52465
52466         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
52467         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
52468         mingw.
52469
52470 2008-10-19  Bruno Haible  <bruno@clisp.org>
52471
52472         * lib/atanl.c: Don't include isnanl.h.
52473         * lib/cosl.c: Likewise.
52474         * lib/ldexpl.c: Likewise.
52475         * lib/logl.c: Likewise.
52476         * lib/sinl.c: Likewise.
52477         * lib/sqrtl.c: Likewise.
52478         * lib/tanl.c: Likewise.
52479
52480         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
52481         * lib/isnanf.h: Remove file.
52482         * lib/isnand.h: Remove file.
52483         * lib/isnanl.h: Remove file.
52484         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
52485         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
52486         macros.
52487         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
52488         HAVE_ISNANF, don't define it as a C macro.
52489         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
52490         HAVE_ISNAND, don't define it as a C macro.
52491         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
52492         HAVE_ISNANL, don't define it as a C macro.
52493         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
52494         HAVE_ISNAN[FDL].
52495         * modules/isnanf (Files): Remove lib/isnanf.h.
52496         (Depends-on): Add math.
52497         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52498         (Include): Specify <math.h> instead of isnanf.h.
52499         * modules/isnand (Files): Remove lib/isnand.h.
52500         (Depends-on): Add math.
52501         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52502         (Include): Specify <math.h> instead of isnand.h.
52503         * modules/isnanl (Files): Remove lib/isnanl.h.
52504         (Depends-on): Add math.
52505         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52506         (Include): Specify <math.h> instead of isnanl.h.
52507         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
52508         HAVE_ISNAN[FDL].
52509         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
52510         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
52511         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
52512         * NEWS: Mention the change.
52513
52514 2008-10-18  Bruno Haible  <bruno@clisp.org>
52515
52516         Add getusershell(), setusershell(), endusershell() declarations to
52517         <unistd.h>.
52518         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
52519         declarations.
52520         * lib/getusershell.c: Include unistd.h.
52521         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
52522         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
52523         HAVE_GETUSERSHELL.
52524         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
52525         and HAVE_GETUSERSHELL.
52526         * modules/getusershell (Depends-on): Add unistd, extensions.
52527         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52528         (Include): Specify <unistd.h>.
52529         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
52530         HAVE_GETUSERSHELL.
52531
52532 2008-10-18  Bruno Haible  <bruno@clisp.org>
52533
52534         Add a getloadavg() declaration to <stdlib.h>.
52535         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
52536         getloadavg declaration.
52537         (getloadavg): New declaration.
52538         * lib/getloadavg.c: Include <stdlib.h> first.
52539         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
52540         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
52541         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
52542         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
52543         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
52544         * modules/getloadavg (Depends-on): Add stdlib, extensions.
52545         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52546         (Include): Specify <stdlib.h>.
52547         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
52548         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
52549
52550 2008-10-18  Bruno Haible  <bruno@clisp.org>
52551
52552         * lib/dirchownmod.c: Don't include lchmod.h.
52553
52554         Move the lchmod() declaration to <sys/stat.h>.
52555         * lib/lchmod.h: Remove file.
52556         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
52557         (lchmod): New declaration, moved here from lib/lchown.h.
52558         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
52559         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
52560         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
52561         and HAVE_LCHMOD.
52562         * modules/lchmod (Files): Remove lib/lchmod.h.
52563         (Depends-on): Add sys_stat, extensions.
52564         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
52565         (Include): Specify <sys/stat.h> instead of lchmod.h.
52566         * modules/sys_stat (Depends-on): Add link-warning.
52567         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
52568         definition of GL_LINK_WARNING.
52569         * NEWS: Mention the change.
52570
52571 2008-10-18  Bruno Haible  <bruno@clisp.org>
52572
52573         * lib/fchdir.c: Don't include dirfd.h.
52574         * lib/fts.c: Likewise.
52575         * lib/getcwd.c: Likewise.
52576         * lib/glob.c: Likewise.
52577
52578         Move the dirfd() declaration to <dirent.h>.
52579         * lib/dirfd.h: Remove file.
52580         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
52581         (dirfd): New declaration.
52582         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
52583         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
52584         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
52585         HAVE_DECL_DIRFD.
52586         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
52587         HAVE_DECL_DIRFD.
52588         * modules/dirfd (Files): Remove lib/dirfd.h.
52589         (Depends-on): Add dirent, extensions.
52590         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
52591         (Include): Specify <dirent.h> instead of dirfd.h.
52592         * modules/dirent (Depends-on): Add link-warning.
52593         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
52594         definition of GL_LINK_WARNING.
52595         * NEWS: Mention the change.
52596
52597 2008-10-18  Bruno Haible  <bruno@clisp.org>
52598
52599         Move the euidaccess() declaration to <unistd.h>.
52600         * lib/euidaccess.h: Remove file.
52601         * lib/unistd.in.h (euidaccess): New declaration.
52602         * lib/euidaccess.c: Don't include euidaccess.h.
52603         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
52604         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
52605         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
52606         and HAVE_EUIDACCESS.
52607         * modules/euidaccess (Files): Remove lib/euidaccess.h.
52608         (Depends-on): Add unistd.
52609         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52610         (Include): Specify <unistd.h> instead of euidaccess.h.
52611         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
52612         HAVE_EUIDACCESS.
52613         * NEWS: Mention the change.
52614
52615 2008-10-18  Bruno Haible  <bruno@clisp.org>
52616
52617         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
52618
52619         Move the getdomainname() declaration to <unistd.h>.
52620         * lib/getdomainname.h: Remove file.
52621         * lib/unistd.in.h (getdomainname): New declaration.
52622         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
52623         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
52624         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
52625         HAVE_GETDOMAINNAME.
52626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52627         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
52628         * modules/getdomainname (Files): Remove lib/getdomainname.h.
52629         (Depends-on): Add unistd, extensions.
52630         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52631         (Includes): Specify <unistd.h> instead of getdomainname.h.
52632         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
52633         HAVE_GETDOMAINNAME.
52634         * NEWS: Mention the change.
52635
52636 2008-10-18  Bruno Haible  <bruno@clisp.org>
52637
52638         * modules/dirent: New file.
52639         * m4/dirent_h.m4: New file.
52640         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
52641         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
52642         * modules/fchdir (Files): Remove lib/dirent.in.h.
52643         (Depends-on): Add dirent.
52644         (Makefile.am): Move rules to modules/dirent.
52645         * doc/posix-headers/dirent.texi: Mention the new module.
52646
52647 2008-10-18  Bruno Haible  <bruno@clisp.org>
52648
52649         Avoid -Wunused-parameter warnings in public gnulib header files.
52650         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
52651         macro.
52652         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
52653
52654 2008-10-18  Bruno Haible  <bruno@clisp.org>
52655
52656         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
52657         * doc/glibc-functions/error.texi: Mention the module 'error'.
52658         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
52659         * doc/glibc-functions/getdomainname.texi: Mention the module
52660         'getdomainname'.
52661         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
52662         * doc/glibc-functions/getpagesize.texi: Mention the module
52663         'getpagesize'.
52664         * doc/glibc-functions/getusershell.texi: Mention the module
52665         'getusershell'.
52666         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
52667         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
52668         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
52669         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
52670         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
52671         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
52672         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
52673         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
52674         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
52675         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
52676         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
52677         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
52678         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
52679         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
52680
52681 2008-10-17  Bruno Haible  <bruno@clisp.org>
52682
52683         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
52684         HP-UX and IRIX, use -0.0L.
52685         * tests/test-ceill.c (minus_zero): Likewise.
52686         * tests/test-floorl.c (minus_zero): Likewise.
52687         * tests/test-frexpl.c (minus_zero): Likewise.
52688         * tests/test-isnan.c (minus_zerol): Likewise.
52689         * tests/test-isnanl.h (minus_zero): Likewise.
52690         * tests/test-ldexpl.c (minus_zero): Likewise.
52691         * tests/test-roundl.c (minus_zero): Likewise.
52692         * tests/test-signbit.c (minus_zerol): Likewise.
52693         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52694         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52695         * tests/test-truncl.c (minus_zero): Likewise.
52696         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52697         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52698         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
52699         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
52700
52701 2008-10-17  Bruno Haible  <bruno@clisp.org>
52702
52703         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
52704         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
52705         that it gets activated only for gcc >= 3.0.
52706         * lib/dirent.in.h: Likewise.
52707         * lib/errno.in.h: Likewise.
52708         * lib/fcntl.in.h: Likewise.
52709         * lib/float.in.h: Likewise.
52710         * lib/iconv.in.h: Likewise.
52711         * lib/inttypes.in.h: Likewise.
52712         * lib/locale.in.h: Likewise.
52713         * lib/math.in.h: Likewise.
52714         * lib/netdb.in.h: Likewise.
52715         * lib/netinet_in.in.h: Likewise.
52716         * lib/search.in.h: Likewise.
52717         * lib/signal.in.h: Likewise.
52718         * lib/spawn.in.h: Likewise.
52719         * lib/stdarg.in.h: Likewise.
52720         * lib/stdint.in.h: Likewise.
52721         * lib/stdio.in.h: Likewise.
52722         * lib/stdlib.in.h: Likewise.
52723         * lib/string.in.h: Likewise.
52724         * lib/strings.in.h: Likewise.
52725         * lib/sys_file.in.h: Likewise.
52726         * lib/sys_ioctl.in.h: Likewise.
52727         * lib/sys_select.in.h: Likewise.
52728         * lib/sys_socket.in.h: Likewise.
52729         * lib/sys_stat.in.h: Likewise.
52730         * lib/sys_time.in.h: Likewise.
52731         * lib/sysexits.in.h: Likewise.
52732         * lib/time.in.h: Likewise.
52733         * lib/unistd.in.h: Likewise.
52734         * lib/wchar.in.h: Likewise.
52735         * lib/wctype.in.h: Likewise.
52736         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52737
52738 2008-10-17  Jim Meyering  <meyering@redhat.com>
52739
52740         ignore-value: don't depend on inline module
52741         * modules/ignore-value (Depends-on): Remove 'inline'.
52742         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
52743         Suggestion from Bruno Haible.
52744
52745 2008-10-17  Bruno Haible  <bruno@clisp.org>
52746
52747         New implementation of condition variables for Win32.
52748         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
52749         (gl_linked_waitqueue_t): New type.
52750         (gl_cond_t): Use it.
52751         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
52752         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
52753         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
52754         (glthread_cond_init_func, glthread_cond_wait_func,
52755         glthread_cond_timedwait_func, glthread_cond_signal_func,
52756         glthread_cond_broadcast_func, glthread_cond_destroy_func):
52757         Reimplemented on the basis of gl_linked_waitqueue_t.
52758         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
52759         gl_waitqueue_t.
52760         (gl_rwlock_t): Update.
52761         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
52762
52763 2008-10-17  Simon Josefsson  <simon@josefsson.org>
52764
52765         * modules/recvfrom (Depends-on): Add dependency on getpeername.
52766         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52767
52768 2008-10-17  Jim Meyering  <meyering@redhat.com>
52769
52770         ignore-value: new module
52771         * modules/ignore-value: New file.
52772         * lib/ignore-value.h: New file.
52773         * MODULES.html.sh (Compiler warning management): New section,
52774         just for this module.  More to come.
52775
52776 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52777
52778         open-safer.c: avoid 'signed and unsigned in conditional...' warning
52779         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
52780         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
52781
52782 2008-10-16  Jim Meyering  <meyering@redhat.com>
52783
52784         openat-die.c: avoid 'no previous prototype' warning
52785         * lib/openat-die.c: Include "openat.h".
52786         Reported by Reuben Thomas <rrt@sc3d.org>.
52787
52788 2008-10-16  Simon Josefsson  <simon@josefsson.org>
52789
52790         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
52791         * lib/netdb.in.h: Fix typo.
52792         Reported by Bruno Haible  <bruno@clisp.org>
52793
52794         * lib/netdb.in.h: Include sys/socket.h for platforms without
52795         netdb.h, to get structures like hostent on MinGW.
52796         * modules/netdb (Depends-on): Add sys_socket.
52797
52798 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52799
52800         * modules/netdb, modules/netdb-tests: New file.
52801         * m4/netdb_h.m4: New file.
52802         * lib/netdb.in.h: Add, currently just an empty file pending
52803         definitions.
52804         * tests/test-netdb.c: New file.
52805         * doc/posix-headers/netdb.texi: Mention that we replace it if
52806         needed.
52807         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52808         netdb.
52809
52810 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52811
52812         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
52813         with code.
52814
52815 2008-10-13  Bruno Haible  <bruno@clisp.org>
52816
52817         * lib/glthread/cond.c (glthread_cond_wait_func,
52818         glthread_cond_timedwait_func): Add a comment.
52819
52820 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52821
52822         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
52823         * tests/test-select.c: Likewise,
52824
52825 2008-10-13  Bruno Haible  <bruno@clisp.org>
52826
52827         * lib/glthread/cond.c (glthread_cond_wait_func,
52828         glthread_cond_timedwait_func): Fix variable name.
52829         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52830
52831 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
52832
52833         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
52834         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
52835         struct sockaddr.sa_len.
52836         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
52837
52838 2008-10-13  Simon Josefsson  <simon@josefsson.org>
52839
52840         * build-aux/pmccabe2html: Add css and css_url parameters.
52841
52842 2008-10-12  Bruno Haible  <bruno@clisp.org>
52843
52844         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
52845         calling aclx_get.
52846         Reported by Rainer Tammer <tammer@tammer.net>.
52847
52848 2008-10-12  Bruno Haible  <bruno@clisp.org>
52849
52850         Use msvcrt aware primitives for creation/termination of Win32 threads.
52851         * lib/glthread/thread.c: Include <process.h>.
52852         (glthread_create_func): Use _beginthreadex instead of CreateThread.
52853         (wrapper_func): Update signature.
52854         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
52855
52856 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52857             Bruno Haible  <bruno@clisp.org>
52858
52859         Provide a Win32 implementation of the 'cond' module.
52860         * lib/glthread/cond.h [USE_WIN32]: New implementation.
52861         * lib/glthread/cond.c (glthread_cond_init_func,
52862         glthread_cond_wait_func, glthread_cond_timedwait_func,
52863         glthread_cond_signal_func, glthread_cond_broadcast_func,
52864         glthread_cond_destroy_func) [USE_WIN32]: New functions.
52865         * modules/cond (Dependencies): Add gettimeofday.
52866
52867 2008-10-11  Bruno Haible  <bruno@clisp.org>
52868
52869         Make sleep work on older versions of mingw.
52870         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
52871         only whether it exists.
52872         * doc/posix-functions/sleep.texi: Mention the problem with older
52873         versions of mingw.
52874
52875 2008-10-11  Bruno Haible  <bruno@clisp.org>
52876
52877         New module 'shutdown'.
52878         * modules/shutdown: New file.
52879         * lib/sys_socket.in.h (shutdown): New declaration.
52880         * lib/winsock.c (shutdown): New function.
52881         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
52882         GNULIB_SHUTDOWN.
52883         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
52884         * doc/posix-functions/shutdown.texi: Document the new module.
52885
52886 2008-10-11  Jim Meyering  <meyering@redhat.com>
52887
52888         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
52889
52890 2008-10-11  Bruno Haible  <bruno@clisp.org>
52891
52892         New module 'fclose'.
52893         * modules/fclose: New file.
52894         * lib/stdio.in.h (fclose): New declaration.
52895         * lib/fclose.c: New file.
52896         * m4/fclose.m4: New file.
52897         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
52898         REPLACE_FCLOSE.
52899         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
52900         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
52901         REPLACE_FCLOSE.
52902         * modules/close (Depends-on): fclose.
52903         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
52904
52905 2008-10-11  Bruno Haible  <bruno@clisp.org>
52906
52907         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
52908         set errno and don't call _close.
52909
52910 2008-10-10  Bruno Haible  <bruno@clisp.org>
52911
52912         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
52913         ACL, not afterwards. Fixes test failure on Cygwin.
52914
52915 2008-10-09  Ben Pfaff  <blp@gnu.org>
52916
52917         * build-aux/announce-gen: Fix gnulib version related part of usage
52918         message.  Die with a useful error message if no tarballs are
52919         found.
52920
52921 2008-10-10  Jim Meyering  <meyering@redhat.com>
52922
52923         bootstrap: use git's --depth=N option only if it's supported
52924         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
52925         recognize the --depth option.  Reported by Pádraig Brady.
52926
52927 2008-10-09  Bruno Haible  <bruno@clisp.org>
52928
52929         New module 'ioctl'.
52930         * modules/ioctl: New file.
52931         * lib/sys_socket.in.h (ioctl): Remove declaration.
52932         * lib/winsock.c: Include <sys/ioctl.h>.
52933         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
52934         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
52935         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
52936         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
52937         * doc/posix-functions/ioctl.texi: Mention the new module.
52938
52939 2008-10-09  Bruno Haible  <bruno@clisp.org>
52940
52941         New module 'sys_ioctl'.
52942         * lib/sys_ioctl.in.h: New file.
52943         * m4/sys_ioctl_h.m4: New file.
52944         * modules/sys_ioctl: New file.
52945         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
52946
52947 2008-10-09  Bruno Haible  <bruno@clisp.org>
52948
52949         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
52950         * lib/winsock.c: Include <stdarg.h>.
52951         (rpl_ioctl): Change to second argument 'int' and then varargs.
52952
52953 2008-10-09  Bruno Haible  <bruno@clisp.org>
52954
52955         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
52956         when the sys_socket module is present and the system has <winsock2.h>.
52957
52958 2008-10-09  Bruno Haible  <bruno@clisp.org>
52959
52960         * doc/posix-functions/close.texi: Mention module 'close' instead of
52961         module 'sys_socket'.
52962
52963 2008-10-09  Bruno Haible  <bruno@clisp.org>
52964
52965         * doc/glibc-headers/sys_ioctl.texi: New file.
52966         * doc/gnulib.texi: Include it.
52967
52968 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52969             Bruno Haible  <bruno@clisp.org>
52970
52971         Combine the two replacements of 'close'.
52972         * lib/sys_socket.in.h (close): Define to a reminder to include
52973         <unistd.h>.
52974         (_gl_close_fd_maybe_socket): New declaration.
52975         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
52976         * lib/winsock.c (close): Remove undefinition.
52977         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
52978         needed for the gnulib module 'close'.
52979         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
52980         define to an error symbol or to a warning, if suitable.
52981         * lib/close.c: Include <sys/socket.h>.
52982         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
52983         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
52984         UNISTD_H_HAVE_WINSOCK2_H.
52985         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
52986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52987         UNISTD_H_HAVE_WINSOCK2_H.
52988         * modules/sys_socket (Files): Add m4/unistd_h.m4.
52989         (configure.ac): Set a module indicator.
52990         (Makefile.am): Substitute GNULIB_CLOSE.
52991         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
52992         * modules/poll-tests (Depends-on): Add close.
52993         * modules/select-tests (Depends-on): Likewise.
52994
52995 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52996             Bruno Haible  <bruno@clisp.org>
52997
52998         New module 'close'.
52999         * modules/close: New file.
53000         * lib/unistd.in.h (close): Move declaration out of the
53001         FCHDIR_REPLACEMENT scope.
53002         (_gl_unregister_fd): New declaration.
53003         * lib/close.c: New file.
53004         * lib/fchdir.c (rpl_close): Remove function.
53005         * m4/close.m4: New file.
53006         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
53007         close.
53008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
53009         REPLACE_CLOSE.
53010         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
53011         REPLACE_CLOSE.
53012         * modules/fchdir (Depends-on): Add close.
53013
53014 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53015             Bruno Haible  <bruno@clisp.org>
53016
53017         * lib/fcntl.in.h (open): Simplify conditionals.
53018         (_gl_register_fd): New declaration.
53019         * lib/fchdir.c (rpl_open): Remove function.
53020         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
53021         also.
53022         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
53023         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
53024         open.
53025
53026 2008-10-09  Jim Meyering  <meyering@redhat.com>
53027
53028         GNUmakefile: use the more name-space-friendly "_version"
53029         * top/GNUmakefile (_dummy): Update.
53030         (_version): Rename from "version".
53031
53032 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53033             Bruno Haible  <bruno@clisp.org>
53034
53035         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
53036         rpl_close.
53037         (_gl_register_fd): New function, extracted from rpl_open.
53038         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
53039         (rpl_open, rpl_opendir): Use _gl_register_fd.
53040
53041 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53042
53043         Fix organization of 'open' replacement.
53044         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
53045         (gl_FUNC_OPEN): Use it.
53046         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
53047
53048 2008-10-08  Bruno Haible  <bruno@clisp.org>
53049
53050         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
53051
53052 2008-10-08  Simon Josefsson  <simon@josefsson.org>
53053
53054         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
53055         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
53056         listen).
53057
53058 2008-10-08  Eric Blake  <ebb9@byu.net>
53059
53060         GNUmakefile: add 'make version' target
53061         * top/GNUmakefile (_curr-ver): Split version update rules...
53062         (version): ...into a target.
53063
53064 2008-10-07  Bruno Haible  <bruno@clisp.org>
53065
53066         Use a more portable replacement expression for -0.0L.
53067         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
53068         instead of -0.0L. Fix m4 quotation.
53069
53070         * tests/test-signbit.c: Include <float.h>.
53071         (minus_zero): New variable.
53072         (test_signbitl): Use minus_zero instead of -zero.
53073         * modules/signbit-tests (Depends-on): Add float.
53074
53075         * tests/test-ceill.c: Include <float.h>.
53076         (zero): Remove variable.
53077         (minus_zero): New variable.
53078         (main): Use minus_zero instead of -zero.
53079         * modules/ceill-tests (Depends-on): Add float.
53080
53081         * tests/test-floorl.c: Include <float.h>.
53082         (zero): Remove variable.
53083         (minus_zero): New variable.
53084         (main): Use minus_zero instead of -zero.
53085         * modules/floorl-tests (Depends-on): Add float.
53086
53087         * tests/test-roundl.c: Include <float.h>.
53088         (zero): Remove variable.
53089         (minus_zero): New variable.
53090         (main): Use minus_zero instead of -zero.
53091         * modules/roundl-tests (Depends-on): Add float.
53092
53093         * tests/test-truncl.c: Include <float.h>.
53094         (zero): Remove variable.
53095         (minus_zero): New variable.
53096         (main): Use minus_zero instead of -zero.
53097         * modules/truncl-tests (Depends-on): Add float.
53098
53099         * tests/test-frexpl.c (zero): Remove variable.
53100         (minus_zero): New variable.
53101         (main): Use minus_zero instead of -zero.
53102         * modules/frexpl-tests (Depends-on): Add float.
53103
53104         * tests/test-isnan.c (zerol): Remove variable.
53105         (minus_zerol): New variable.
53106         (test_long_double): Use minus_zerol instead of -zerol.
53107         * modules/isnan-tests (Depends-on): Add float.
53108
53109         * tests/test-isnanl.h (zero): Remove variable.
53110         (minus_zero): New variable.
53111         (main): Use minus_zero instead of -zero.
53112         * modules/isnanl-nolibm-tests (Depends-on): Add float.
53113         * modules/isnanl-tests (Depends-on): Add float.
53114
53115         * tests/test-ldexpl.c (zero): Remove variable.
53116         (minus_zero): New variable.
53117         (main): Use minus_zero instead of -zero.
53118         * modules/ldexpl-tests (Depends-on): Add float.
53119
53120         * tests/test-snprintf-posix.h (zerol): Remove variable.
53121         (minus_zerol): New variable.
53122         (test_function): Use minus_zerol instead of -zerol.
53123         * modules/snprintf-posix-tests (Depends-on): Add float.
53124         * modules/vsnprintf-posix-tests (Depends-on): Add float.
53125
53126         * tests/test-sprintf-posix.h (zerol): Remove variable.
53127         (minus_zerol): New variable.
53128         (test_function): Use minus_zerol instead of -zerol.
53129         * modules/sprintf-posix-tests (Depends-on): Add float.
53130         * modules/vsprintf-posix-tests (Depends-on): Add float.
53131
53132         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
53133         (minus_zerol): New variable.
53134         (test_function): Use minus_zerol instead of -zerol.
53135         * modules/vasnprintf-posix-tests (Depends-on): Add float.
53136
53137         * tests/test-vasprintf-posix.c (zerol): Remove variable.
53138         (minus_zerol): New variable.
53139         (test_function): Use minus_zerol instead of -zerol.
53140         * modules/vasprintf-posix-tests (Depends-on): Add float.
53141
53142 2008-10-07  Simon Josefsson  <simon@josefsson.org>
53143
53144         * MODULES.html.sh (Support for building documentation): Mention
53145         pmccabe2html.  Sort entries.
53146
53147         Add pmccabe2html module, from gnupdf.
53148         * build-aux/pmccabe.css: New file.
53149         * build-aux/pmccabe2html: New file.
53150         * m4/pmccabe2html.m4: New file.
53151         * modules/pmccabe2html: New file.
53152
53153 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
53154
53155         flock: new module
53156         * MODULES.html.sh: Add to list of modules.
53157         * lib/flock.c: flock implementation for Windows and Unix systems
53158         which have fcntl.
53159         * doc/glibc-functions/flock.texi: Update documentation.
53160         * lib/sys_file.in.h: <sys/file.h> header file.
53161         * m4/flock.m4: M4 macros.
53162         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
53163         * modules/flock: flock module.
53164         * modules/flock-tests: flock tests module.
53165         * modules/sys_file: sys/file.h module.
53166         * tests/test-flock.c: test suite for flock.
53167
53168 2008-10-06  Jim Meyering  <meyering@redhat.com>
53169
53170         bootstrap: check for LT_INIT more portably still ;-)
53171         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
53172         Spotted by Bruno Haible.
53173
53174 2008-10-06  Eric Blake  <ebb9@byu.net>
53175
53176         test-signbit: avoid tripping Irix cc bug on -0.0L
53177         * tests/test-signbit.c (minus_zerol): Delete, and replace with
53178         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
53179         entire testsuite consistent and avoids an Irix 6.2 bug.
53180
53181 2008-10-05  Bruno Haible  <bruno@clisp.org>
53182             Jim Meyering  <jim@meyering.net>
53183
53184         Add an option for ignoring EPIPE during close_stdout.
53185         * lib/closeout.h: Include <stdbool.h>.
53186         (close_stdout_set_ignore_EPIPE): New declaration.
53187         * lib/closeout.c: Include <stdbool.h>.
53188         (ignore_EPIPE): New variable.
53189         (close_stdout_set_ignore_EPIPE): New function.
53190         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
53191         * lib/close-stream.c (close_stream): Mention the possible EPIPE
53192         failure.
53193         * modules/closeout (Depends-on): Add stdbool.
53194
53195 2008-10-05  Bruno Haible  <bruno@clisp.org>
53196
53197         * modules/accept: New file.
53198         * modules/bind: New file.
53199         * modules/connect: New file.
53200         * modules/getpeername: New file.
53201         * modules/getsockname: New file.
53202         * modules/getsockopt: New file.
53203         * modules/listen: New file.
53204         * modules/recv: New file.
53205         * modules/recvfrom: New file.
53206         * modules/send: New file.
53207         * modules/sendto: New file.
53208         * modules/setsockopt: New file.
53209         * modules/socket: New file.
53210         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
53211         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
53212         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
53213         the particular module is requested. Add a link warning when the
53214         particular module is not requested.
53215         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
53216         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
53217         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
53218         the particular module is requested.
53219         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
53220         gl_SYS_SOCKET_H_DEFAULTS): New macros.
53221         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
53222         * modules/sys_socket (Depends-on): Add link-warning.
53223         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
53224         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
53225         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
53226         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
53227         GL_LINK_WARNING.
53228         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
53229         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
53230         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
53231         * doc/posix-functions/getpeername.texi: Mention the new module
53232         'getpeername'.
53233         * doc/posix-functions/getsockname.texi: Mention the new module
53234         'getsockname'.
53235         * doc/posix-functions/getsockopt.texi: Mention the new module
53236         'getsockopt'.
53237         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
53238         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
53239         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
53240         * doc/posix-functions/send.texi: Mention the new module 'send'.
53241         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
53242         * doc/posix-functions/setsockopt.texi: Mention the new module
53243         'setsockopt'.
53244         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
53245         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
53246         listen, connect, accept.
53247         * modules/select-tests (Depends-on): Likewise.
53248
53249 2008-10-05  Bruno Haible  <bruno@clisp.org>
53250
53251         * lib/winsock.c (strerror): Remove unused #undef.
53252         (rpl_close): Remove unused local variable.
53253
53254         * modules/sys_socket (Depends-on); Add errno.
53255
53256 2008-10-05  Bruno Haible  <bruno@clisp.org>
53257
53258         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
53259         (select): Add a link warning when the 'select' module is not used.
53260         * modules/sys_select (Depends-on): Add link-warning.
53261         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
53262         Suggested by Paolo Bonzini.
53263
53264 2008-10-05  Jim Meyering  <meyering@redhat.com>
53265
53266         bootstrap: check for LT_INIT more portably
53267         * build-aux/bootstrap: Avoid using grep -E, since it's not
53268         portable enough.  Suggestion from Bruno Haible.
53269
53270 2008-10-05  Bruno Haible  <bruno@clisp.org>
53271
53272         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
53273         as being fixed by gnulib.
53274
53275 2008-10-05  Bruno Haible  <bruno@clisp.org>
53276
53277         * modules/select-tests: New file, mostly copied from
53278         modules/sys_select-tests.
53279         * tests/test-select.c: New file, mostly copied from
53280         tests/test-sys_select.c.
53281         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
53282         * modules/sys_select-tests (Depends-on): Remove all dependencies.
53283         (Makefile.am): Remove test_sys_select_LDADD.
53284
53285         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
53286         to an undefined symbol, for an error message.
53287         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
53288         (gl_SYS_SELECT_H_DEFAULTS): New macro.
53289         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
53290         winsock-select.c here.
53291         * modules/sys_select (Files): Remove lib/winsock-select.c.
53292         (Depends-on): Remove alloca.
53293         (Makefile.am): Substitute GNULIB_SELECT.
53294         * modules/select: New file.
53295         * doc/posix-functions/select.texi: Update.
53296
53297 2008-10-05  Bruno Haible  <bruno@clisp.org>
53298
53299         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
53300         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
53301         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
53302         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
53303         getdtablesize.
53304         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
53305         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
53306
53307 2008-10-05  Bruno Haible  <bruno@clisp.org>
53308
53309         * modules/getdtablesize-tests: New file.
53310         * tests/test-getdtablesize.c: New file.
53311
53312         New module 'getdtablesize'.
53313         * lib/unistd.in.h (getdtablesize): New declaration.
53314         * lib/getdtablesize.c: New file.
53315         * m4/getdtablesize.m4: New file.
53316         * modules/getdtablesize: New file.
53317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53318         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
53319         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
53320         HAVE_GETDTABLESIZE.
53321         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
53322
53323 2008-10-05  Bruno Haible  <bruno@clisp.org>
53324
53325         * modules/sched (Makefile.am): Fix typo.
53326         Reported by Simon Josefsson.
53327
53328 2008-10-05  Jim Meyering  <meyering@redhat.com>
53329
53330         bootstrap: check for LT_INIT, too
53331         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
53332         are deprecated.  Suggestion from Ralf Wildenhues.
53333
53334 2008-10-05  Bruno Haible  <bruno@clisp.org>
53335
53336         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
53337         overriding them by ours.
53338         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
53339
53340 2008-10-05  Jim Meyering  <meyering@redhat.com>
53341
53342         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
53343         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
53344         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
53345
53346 2008-10-04  Bruno Haible  <bruno@clisp.org>
53347
53348         * modules/dup2 (License): Change to LGPLv2+.
53349         * modules/sleep (License): Likewise.
53350         * modules/perror (License): Likewise.
53351         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
53352         Blake.
53353         * modules/signal (License): Likewise.
53354         * modules/sigprocmask (License): Likewise.
53355         * modules/raise (License): Change to LGPLv2+, with approval by Jim
53356         Meyering.
53357
53358 2008-10-04  Bruno Haible  <bruno@clisp.org>
53359
53360         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
53361         Reported by Rainer Tammer <tammer@tammer.net>.
53362
53363 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
53364             Bruno Haible  <bruno@clisp.org>
53365
53366         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
53367         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
53368         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
53369
53370 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
53371
53372         filevercmp: new module
53373         * lib/filevercmp.h: New function filevercmp comparing version strings.
53374         * lib/filevercmp.c: Implementation of filevercmp function.
53375         * modules/filevercmp: Module metadata.
53376         * tests/test-filevercmp.c: Unit test for new module.
53377         * modules/filevercmp-tests: Unit test metadata.
53378         * MODULES.html.sh: Add filevercmp module.
53379
53380 2008-10-03  Bruno Haible  <bruno@clisp.org>
53381
53382         * lib/c-ctype.h: Add comment.
53383         Reported by Jim Meyering.
53384
53385 2008-10-02  Bruno Haible  <bruno@clisp.org>
53386
53387         * modules/posix_spawn-internal (Depends-on): Add 'open'.
53388
53389 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53390
53391         * build-aux/bootstrap: Allow renaming bootstrap, and change the
53392         name of bootstrap.conf accordingly.
53393
53394 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53395
53396         * build-aux/bootstrap: Install git-merge-changelog configuration
53397         items into .gitconfig if needed.
53398
53399 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53400
53401         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
53402         git repository, and initialize/update it accordingly.
53403
53404 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
53405
53406         * modules/fsync-tests: New file.
53407         * tests/test-fsync.c: New file.
53408
53409         New module 'fsync'.
53410         * lib/fsync.c: New file.
53411         * m4/fsync.m4: New file.
53412         * modules/fsync: New file.
53413         * lib/unistd.in.h (fsync): New declaration.
53414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
53415         GNULIB_FSYNC and HAVE_FSYNC.
53416         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
53417         * MODULES.html.sh (posix_functions): Add fsync.
53418         * doc/posix-functions/fsync.texi: Mention the new module.
53419
53420 2008-10-02  Jim Meyering  <meyering@redhat.com>
53421
53422         fts.c: sync with similar code from coreutils' remove.c
53423         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
53424         Guard also with "#if defined __linux__", since for now at least,
53425         this code is Linux-kernel-specific.
53426
53427 2008-10-02  Jim Meyering  <meyering@redhat.com>
53428
53429         fts: bug fixes
53430         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
53431         Include <sys/vfs.h>, not <sys/statfs.h>.
53432
53433         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
53434         Include <sys/vfs.h>, not <sys/statfs.h>.
53435
53436 2008-10-01  Bruno Haible  <bruno@clisp.org>
53437
53438         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
53439         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
53440         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
53441         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
53442         * doc/posix-functions/posix_spawnp.texi: Likewise.
53443         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
53444         whether posix_spawn actually works.
53445         * m4/pipe.m4 (gl_PIPE): Likewise.
53446         * modules/execute (Files): Add m4/posix_spawn.m4.
53447         * modules/pipe (Files): Add m4/posix_spawn.m4.
53448         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
53449
53450 2008-10-01  Jim Meyering  <meyering@redhat.com>
53451
53452         remove trailing spaces
53453         * NEWS: Likewise.
53454         * lib/poll.c (poll): Likewise.
53455         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
53456         * lib/winsock.c (rpl_close): Likewise.
53457         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
53458         * modules/yield: Likewise.
53459         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
53460         * tests/test-sys_select.c (connect_to_socket): Likewise.
53461
53462         fts.c: adjust a new interface to be more generally useful
53463         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
53464         (fts_build): Adjust caller.
53465
53466 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53467
53468         * modules/cond-tests: New file.
53469         * tests/test-cond.c: New file.
53470
53471 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53472             Bruno Haible  <bruno@clisp.org>
53473
53474         * modules/cond (Dependencies): Add errno, time.
53475         * lib/glthread/cond.h: Include <time.h>.
53476         (gl_cond_define, gl_cond_define_initialized): Use the same definition
53477         across platforms.
53478
53479 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53480             Bruno Haible  <bruno@clisp.org>
53481
53482         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
53483
53484 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53485             Bruno Haible  <bruno@clisp.org>
53486
53487         * modules/tls-tests (Depends-on): Add thread, yield.
53488         (configure.ac): Remove all checks.
53489         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
53490         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
53491         gl_thread_self): Remove definitions. Include glthread/thread.h and
53492         glthread/yield.h instead.
53493         (test_tls): Pass an additional NULL argument to gl_thread_join.
53494
53495 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53496             Bruno Haible  <bruno@clisp.org>
53497
53498         * modules/lock-tests (Depends-on): Add thread, yield.
53499         (configure.ac): Remove all checks.
53500         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
53501         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
53502         gl_thread_self): Remove definitions. Include glthread/thread.h and
53503         glthread/yield.h instead.
53504         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
53505         additional NULL argument to gl_thread_join.
53506
53507 2008-09-30  Bruno Haible  <bruno@clisp.org>
53508
53509         Fix the Win32 implementation of the 'thread' module.
53510         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
53511         pointer type.
53512         (gl_thread_self): Invoke gl_thread_self_func.
53513         (gl_thread_self_func): New declaration.
53514         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
53515         (do_init_self_key, init_self_key): New functions.
53516         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
53517         Remove some fields.
53518         (running_threads, running_lock): Remove variables.
53519         (get_current_thread_handle): New function.
53520         (gl_thread_self_func, wrapper_func, glthread_create_func,
53521         glthread_join_func, gl_thread_exit_func): Largely rewritten and
53522         simplified.
53523
53524 2008-09-30  Bruno Haible  <bruno@clisp.org>
53525
53526         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
53527         files.
53528
53529 2008-09-30  Jim Meyering  <meyering@redhat.com>
53530
53531         fts.m4: correct the test for statfs.f_type
53532         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
53533         when checking for statfs.f_type.
53534
53535 2008-09-15  Simon Josefsson  <simon@josefsson.org>
53536
53537         tests: avoid some compiler warnings
53538         * tests/test-memchr.c (main): Pass NULL indirectly.
53539         * tests/test-getdate.c (main): Remove unused variable 'ret'.
53540
53541 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
53542
53543         getdate.y: disallow countable dayshifts like "4 yesterday ago"
53544         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
53545         exactly specified dayshifts.
53546         (dayshift): New rule.
53547         (rel): Add dayshift.
53548         (relative_time_table) [tomorrow, yesterday, today, now]:
53549         Use tDAY_SHIFT in place of tDAY_UNIT.
53550         * tests/test-getdate.c: Add tests for now-disallowed countable
53551         dayshifts, e.g., "4 yesterday ago".
53552
53553 2008-09-29  Bruno Haible  <bruno@clisp.org>
53554
53555         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
53556         * tests/test-posix_spawn1.in.sh: Renamed from
53557         tests/test-posix_spawn.in.sh.
53558         * tests/test-posix_spawn2.c: New file.
53559         * tests/test-posix_spawn2.in.sh: New file.
53560         * modules/posix_spawnp-tests (Files): Update.
53561         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
53562
53563 2008-09-29  Bruno Haible  <bruno@clisp.org>
53564
53565         Propagate effects of putenv/setenv/unsetenv to child processes.
53566         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
53567         * lib/pipe.c (create_pipe): Likewise.
53568
53569 2008-09-29  Bruno Haible  <bruno@clisp.org>
53570
53571         Enable use of shell scripts as executables in mingw.
53572         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
53573         run the program as a shell script.
53574         * lib/pipe.c (create_pipe): Likewise.
53575         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
53576         resulting array.
53577
53578 2008-09-29  Eric Blake  <ebb9@byu.net>
53579
53580         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
53581
53582 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
53583
53584         * doc/posix-functions/accept.texi: Update mingw problems.
53585         * doc/posix-functions/bind.texi: Update mingw problems.
53586         * doc/posix-functions/close.texi: Update mingw problems.
53587         * doc/posix-functions/connect.texi: Update mingw problems.
53588         * doc/posix-functions/getpeername.texi: Update mingw problems.
53589         * doc/posix-functions/getsockname.texi: Update mingw problems.
53590         * doc/posix-functions/getsockopt.texi: Update mingw problems.
53591         * doc/posix-functions/ioctl.texi: Update mingw problems.
53592         * doc/posix-functions/listen.texi: Update mingw problems.
53593         * doc/posix-functions/recv.texi: Update mingw problems.
53594         * doc/posix-functions/recvfrom.texi: Update mingw problems.
53595         * doc/posix-functions/select.texi: Update mingw problems.
53596         * doc/posix-functions/send.texi: Update mingw problems.
53597         * doc/posix-functions/sendto.texi: Update mingw problems.
53598         * doc/posix-functions/setsockopt.texi: Update mingw problems.
53599         * doc/posix-functions/socket.texi: Update mingw problems.
53600
53601 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
53602             Bruno Haible  <bruno@clisp.org>
53603
53604         * lib/sys_select.in.h: Include sys/time.h.
53605         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
53606         * modules/sys_select: Depend on sys_time.
53607         * tests/test-sys_select.c: Test that sys/select.h defines struct
53608         timeval fully.
53609
53610 2008-09-29  Bruno Haible  <bruno@clisp.org>
53611
53612         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
53613         * lib/sys_select.in.h: Likewise.
53614
53615 2008-09-29  Bruno Haible  <bruno@clisp.org>
53616
53617         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
53618
53619 2008-09-29  Bruno Haible  <bruno@clisp.org>
53620
53621         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
53622         Set LIBSOCKET instead of augmenting LIBS.
53623         * modules/sockets (Link): New section.
53624         * modules/sockets-tests (test_sockets_LDADD): New variable.
53625         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
53626         * modules/poll-tests (test_poll_LDADD): New variable.
53627         * NEWS: Document the change.
53628
53629 2008-09-29  Bruno Haible  <bruno@clisp.org>
53630
53631         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
53632         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
53633         ARPA_INET_H directly.
53634         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
53635
53636 2008-09-28  Bruno Haible  <bruno@clisp.org>
53637
53638         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
53639         from gl_HEADER_SYS_SOCKET.
53640         (gl_HEADER_SYS_SOCKET): Invoke it.
53641         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53642
53643 2008-09-28  Bruno Haible  <bruno@clisp.org>
53644
53645         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
53646         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
53647         Needed on OSF/1 4.0.
53648
53649 2008-09-28  Bruno Haible  <bruno@clisp.org>
53650
53651         Override open more carefully.
53652         * lib/open.c (orig_open): New function.
53653         (rpl_open): Use orig_open instead of open.
53654         * lib/fcntl.in.h: Add special invocation convention.
53655         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
53656         (gl_FUNC_OPEN): Invoke it.
53657
53658         Override freopen more carefully.
53659         * lib/freopen.c (orig_freopen): New function.
53660         (rpl_freopen): Use orig_freopen instead of freopen.
53661         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
53662         (gl_FUNC_FREOPEN): Invoke it.
53663
53664         Override fopen more carefully.
53665         * lib/fopen.c (orig_fopen): New function.
53666         (rpl_fopen): Use orig_fopen instead of fopen.
53667         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
53668         (gl_FUNC_FOPEN): Invoke it.
53669         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
53670
53671 2008-09-28  Bruno Haible  <bruno@clisp.org>
53672
53673         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
53674         SIGPIPE.
53675
53676 2008-09-28  Bruno Haible  <bruno@clisp.org>
53677
53678         * tests/test-sigaction.c (handler, main): Disable the check whether
53679         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
53680         glibc systems with LinuxThreads.
53681
53682 2008-09-28  Bruno Haible  <bruno@clisp.org>
53683
53684         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
53685
53686         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
53687         with AIX xlc.
53688         * lib/fcntl.in.h (open): Likewise.
53689         Reported by Rainer Tammer <tammer@tammer.net>.
53690
53691 2008-09-28  Bruno Haible  <bruno@clisp.org>
53692
53693         * modules/posix_spawnp-tests: New file.
53694         * tests/test-posix_spawn.c: New file.
53695         * tests/test-posix_spawn.in.sh: New file.
53696
53697         New module 'posix_spawnp'.
53698         * modules/posix_spawnp: New file.
53699         * lib/spawnp.c: New file, from GNU libc with modifications.
53700         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
53701
53702         New module 'posix_spawn'.
53703         * modules/posix_spawn: New file.
53704         * lib/spawn.c: New file, from GNU libc with modifications.
53705         * doc/posix-functions/posix_spawn.texi: Mention the new module.
53706
53707         New module 'posix_spawnattr_destroy'.
53708         * modules/posix_spawnattr_destroy: New file.
53709         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
53710         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
53711         module.
53712
53713         New module 'posix_spawnattr_setsigmask'.
53714         * modules/posix_spawnattr_setsigmask: New file.
53715         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
53716         modifications.
53717         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
53718         new module.
53719
53720         New module 'posix_spawnattr_getsigmask'.
53721         * modules/posix_spawnattr_getsigmask: New file.
53722         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
53723         modifications.
53724         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
53725         new module.
53726
53727         New module 'posix_spawnattr_setsigdefault'.
53728         * modules/posix_spawnattr_setsigdefault: New file.
53729         * lib/spawnattr_setdefault.c: New file, from GNU libc with
53730         modifications.
53731         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
53732         new module.
53733
53734         New module 'posix_spawnattr_getsigdefault'.
53735         * modules/posix_spawnattr_getsigdefault: New file.
53736         * lib/spawnattr_getdefault.c: New file, from GNU libc with
53737         modifications.
53738         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
53739         new module.
53740
53741         New module 'posix_spawnattr_setschedpolicy'.
53742         * modules/posix_spawnattr_setschedpolicy: New file.
53743         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
53744         modifications.
53745         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
53746         new module.
53747
53748         New module 'posix_spawnattr_getschedpolicy'.
53749         * modules/posix_spawnattr_getschedpolicy: New file.
53750         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
53751         modifications.
53752         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
53753         new module.
53754
53755         New module 'posix_spawnattr_setschedparam'.
53756         * modules/posix_spawnattr_setschedparam: New file.
53757         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
53758         modifications.
53759         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
53760         new module.
53761
53762         New module 'posix_spawnattr_getschedparam'.
53763         * modules/posix_spawnattr_getschedparam: New file.
53764         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
53765         modifications.
53766         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
53767         new module.
53768
53769         New module 'posix_spawnattr_setpgroup'.
53770         * modules/posix_spawnattr_setpgroup: New file.
53771         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
53772         modifications.
53773         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
53774         module.
53775
53776         New module 'posix_spawnattr_getpgroup'.
53777         * modules/posix_spawnattr_getpgroup: New file.
53778         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
53779         modifications.
53780         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
53781         module.
53782
53783         New module 'posix_spawnattr_setflags'.
53784         * modules/posix_spawnattr_setflags: New file.
53785         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
53786         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
53787         module.
53788
53789         New module 'posix_spawnattr_getflags'.
53790         * modules/posix_spawnattr_getflags: New file.
53791         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
53792         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
53793         module.
53794
53795         New module 'posix_spawnattr_init'.
53796         * modules/posix_spawnattr_init: New file.
53797         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
53798         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
53799         module.
53800
53801         New module 'posix_spawn_file_actions_destroy'.
53802         * modules/posix_spawn_file_actions_destroy: New file.
53803         * lib/spawn_faction_destroy.c: New file, from GNU libc with
53804         modifications.
53805         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
53806         the new module.
53807
53808         New module 'posix_spawn_file_actions_addopen'.
53809         * modules/posix_spawn_file_actions_addopen: New file.
53810         * lib/spawn_faction_addopen.c: New file, from GNU libc with
53811         modifications.
53812         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
53813         the new module.
53814
53815         New module 'posix_spawn_file_actions_adddup2'.
53816         * modules/posix_spawn_file_actions_adddup2: New file.
53817         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
53818         modifications.
53819         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
53820         the new module.
53821
53822         New module 'posix_spawn_file_actions_addclose'.
53823         * modules/posix_spawn_file_actions_addclose: New file.
53824         * lib/spawn_faction_addclose.c: New file, from GNU libc with
53825         modifications.
53826         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
53827         the new module.
53828
53829         New module 'posix_spawn_file_actions_init'.
53830         * modules/posix_spawn_file_actions_init: New file.
53831         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
53832         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
53833         new module.
53834
53835         New module 'posix_spawn-internal'.
53836         * modules/posix_spawn-internal: New file.
53837         * lib/spawn_int.h: New file, from GNU libc with modifications.
53838         * lib/spawni.c: New file, from GNU libc with modifications.
53839         * m4/posix_spawn.m4: New file.
53840
53841         New module 'spawn'.
53842         * modules/spawn: New file.
53843         * lib/spawn.in.h: New file, from GNU libc with modifications.
53844         * m4/spawn_h.m4: New file.
53845         * doc/posix-headers/spawn.texi: Mention the new module.
53846
53847 2008-09-28  Bruno Haible  <bruno@clisp.org>
53848
53849         * modules/sched-tests: New file.
53850         * tests/test-sched.c: New file.
53851
53852         New module 'sched'.
53853         * modules/sched: New file.
53854         * lib/sched.in.h: New file.
53855         * m4/sched_h.m4: New file.
53856         * doc/posix-headers/sched.texi: Mention the new module.
53857
53858 2008-09-27  Eric Blake  <ebb9@byu.net>
53859
53860         Fix previous patch, and tweak references to $0.
53861         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
53862         (func_version, func_gnulib_dir): Don't call this program
53863         gnulib-tool.
53864         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
53865         with using $0 in function.
53866         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
53867         (func_fatal_error): Reuse the name the user invoked us with.
53868
53869 2008-09-27  Bruno Haible  <bruno@clisp.org>
53870
53871         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
53872         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
53873         (gl_ICONV_H): Not here.
53874         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
53875         instead of assigning ICONV_H directly.
53876
53877         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
53878         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
53879         WCHAR_H directly.
53880
53881 2008-09-27  Bruno Haible  <bruno@clisp.org>
53882
53883         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
53884         * modules/arpa_inet (Depends-on): Add link-warning.
53885         (Makefile.am): Insert the definition of GL_LINK-WARNING.
53886         * modules/unistd (Makefile.am): Likewise.
53887
53888 2008-09-26  Bruno Haible  <bruno@clisp.org>
53889
53890         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
53891         variables.
53892         (func_version): Essentially copied from gnulib-tool.
53893         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
53894         func_readlink): Copied from gnulib-tool.
53895
53896 2008-09-26  Bruno Haible  <bruno@clisp.org>
53897
53898         * gnulib-tool (func_version): Change directory to $gnulib_dir before
53899         invoking git-version-gen.
53900
53901 2008-09-26  Bruno Haible  <bruno@clisp.org>
53902
53903         * posix-modules: Update to directory names changed on 2008-01-19.
53904         Remove commas in output before splitting into words. No more need to
53905         avoid 'ftruncate' since 2007-02-19.
53906
53907 2008-09-26  Bruno Haible  <bruno@clisp.org>
53908
53909         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
53910
53911 2008-09-26  Bruno Haible  <bruno@clisp.org>
53912
53913         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
53914         * modules/fwriteerror (Depends-on): Add errno.
53915
53916 2008-09-26  Bruno Haible  <bruno@clisp.org>
53917
53918         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
53919         * tests/test-vc-list-files-cvs.sh: Likewise.
53920
53921 2008-09-26  Bruno Haible  <bruno@clisp.org>
53922
53923         * doc/posix-headers/sys_resource.texi: Reorder items.
53924
53925 2008-09-26  Jim Meyering  <meyering@redhat.com>
53926
53927         fts: tweak inode comparison function
53928         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
53929         inode numbers, as documented.
53930
53931         fts: sort dirent entries on inode number before traversing
53932         This avoids a quadratic, seek-related performance penalty when
53933         operating on a directory containing many entries (measurable at 10k;
53934         3.5 hours at 2 million entries with a cold cache) on certain types
53935         of file systems, including ext3 and ext4, but not tmpfs.
53936         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
53937         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
53938         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
53939         (fs_handles_readdir_ordered_dirents_efficiently): New function.
53940         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
53941         (fts_build): Set the stat.st_ino member from D_INO.
53942         If it is likely to be useful, sort dirent entries on inode number.
53943
53944         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
53945         and the struct statfs.f_type member.
53946         * modules/fts (Depends-on): Add d-ino.
53947
53948 2008-09-26  Bruno Haible  <bruno@clisp.org>
53949
53950         * modules/sigpipe-die (Depends-on): Add sigpipe.
53951
53952         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
53953         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
53954         and GNULIB_STDIO_H_SIGPIPE are set.
53955         * lib/stdio-write.c: New file.
53956         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
53957         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53958         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53959         REPLACE_STDIO_WRITE_FUNCS.
53960         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
53961         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53962         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53963         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53964         * modules/stdio (Files): Add lib/stdio-write.c.
53965         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
53966         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53967         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53968         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53969         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
53970         REPLACE_FPRINTF_POSIX.
53971         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
53972         REPLACE_PRINTF_POSIX.
53973         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
53974         REPLACE_VFPRINTF_POSIX.
53975         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
53976         REPLACE_VPRINTF_POSIX.
53977         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
53978         SIGPIPE issue.
53979         * doc/posix-functions/fputc.texi: Likewise.
53980         * doc/posix-functions/fputs.texi: Likewise.
53981         * doc/posix-functions/fwrite.texi: Likewise.
53982         * doc/posix-functions/printf.texi: Likewise.
53983         * doc/posix-functions/putc.texi: Likewise.
53984         * doc/posix-functions/putchar.texi: Likewise.
53985         * doc/posix-functions/puts.texi: Likewise.
53986         * doc/posix-functions/vfprintf.texi: Likewise.
53987         * doc/posix-functions/vprintf.texi: Likewise.
53988
53989         * modules/safe-write (Depends-on): Add write.
53990
53991         * modules/sigpipe-tests: New file.
53992         * tests/test-sigpipe.c: New file.
53993         * tests/test-sigpipe.sh: New file.
53994
53995         * modules/write: New file.
53996         * lib/unistd.in.h: Include <sys/types.h>.
53997         (write): New declaration.
53998         * lib/write.c: New file.
53999         * m4/write.m4: New file.
54000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54001         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
54002         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
54003         GNULIB_WRITE, REPLACE_WRITE.
54004         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
54005         and the SIGPIPE issue.
54006
54007         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
54008         (raise): New declaration.
54009         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
54010         (ext_signal): New function.
54011         (rpl_raise): New function.
54012         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
54013         GNULIB_SIGNAL_H_SIGPIPE.
54014         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
54015         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
54016
54017         * modules/sigpipe: New file.
54018         * m4/sigpipe.m4: New file.
54019
54020 2008-09-25  Derek Price  <derek@ximbiot.com>
54021             Bruno Haible  <bruno@clisp.org>
54022
54023         * gnulib-tool (func_import): Report all license incompatibilities, not
54024         just the first one.
54025
54026 2008-09-25  Bruno Haible  <bruno@clisp.org>
54027
54028         * gnulib-tool (func_import): When computing the edits, consider not
54029         only the Makefile.ams that exist but also those that will be generated.
54030
54031 2008-09-25  Simon Josefsson  <simon@josefsson.org>
54032
54033         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
54034         fixes gnulib-tool --test warning about duplicate dependency.
54035
54036 2008-09-25  Bruno Haible  <bruno@clisp.org>
54037
54038         * gnulib-tool: Don't ask the user to perform edits in the generated
54039         Makefile.ams.
54040         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
54041         apply to the Makefile.am being generated.
54042         (func_emit_tests_Makefile_am): Execute edits that apply to the
54043         Makefile.am being generated.
54044         (func_import): Setup list of Makefile.am edits before emitting the
54045         Makefile.ams, not at the end.
54046         (func_create_testdir): Update.
54047         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54048
54049 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54050
54051         * gnulib-tool (func_import): Store the --tests-base option in the
54052         comment in gnulib-cache.m4.
54053
54054 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
54055
54056         * NEWS: Document increased portability that sys_select now provides.
54057
54058         * lib/sys_select.in.h: Install select wrapper.
54059         * lib/sys_socket.in.h: Use more descriptive name when there is no
54060         select wrapper.
54061         * lib/winsock-select.c: New.
54062         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
54063         Require gl_HEADER_SYS_SOCKET.
54064         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
54065         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
54066         * tests/test-sys_select.c: Add functional tests.
54067
54068 2008-09-24  Eric Blake  <ebb9@byu.net>
54069
54070         open, fopen: close fd leak in last patch
54071         * lib/open.c (rpl_open): Close fd before returning error.
54072         * lib/fopen.c (rpl_fopen): Close fd before returning error.
54073         * doc/posix-functions/open.texi (open): Document that Irix also
54074         has the bug.
54075         * doc/posix-functions/fopen.texi (fopen): Likewise.
54076         Reported by Paolo Bonzini.
54077
54078 2008-09-24  Bruno Haible  <bruno@clisp.org>
54079
54080         Ensure that a filename ending in a slash cannot be used to access a
54081         non-directory.
54082         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
54083         to check whether it's really a directory.
54084         * lib/fopen.c: Include fcntl.h, unistd.h.
54085         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
54086         and fdopen().
54087         * modules/fopen (Depends-on): Add unistd.
54088         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
54089         * tests/test-fopen.c (main): Likewise.
54090         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
54091         * doc/posix-functions/fopen.texi: Likewise.
54092         Reported by Eric Blake.
54093
54094 2008-09-23  Eric Blake  <ebb9@byu.net>
54095
54096         c-stack: avoid compiler optimizations when provoking overflow
54097         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
54098         recursion harder to optimize, to ensure a stack overflow occurs.
54099         * tests/test-c-stack.c (recurse): Likewise.
54100         Borrowed from libsigsegv.
54101
54102         c-stack: work around Irix sigaltstack bug
54103         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
54104         whether sigaltstack uses wrong end of stack_t (copied in part from
54105         libsigsegv).
54106         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
54107         Irix bug, without requiring an over-allocation.
54108         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
54109         bug.
54110
54111         fopen: document mingw bug on directories
54112         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
54113         not allowing a stream visiting a directory, even though reading
54114         from such a stream is not portable.
54115
54116 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54117
54118         * lib/poll.c: Rewrite.
54119         * modules/poll: Depend on alloca.
54120
54121 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54122
54123         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
54124         instead define prototypes for a full set of wrappers.  Ensure
54125         that Cygwin does not use the compatibility code, which is only
54126         for MinGW.
54127         * lib/winsock.c: New.
54128         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
54129         * modules/sys_socket: Add lib/winsock.c.
54130
54131         * modules/poll-tests: Add errno and perror.
54132         * tests/test-poll.c: Use ioctl, not ioctlsocket.
54133
54134 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54135
54136         * tests/test-poll.c: Downgrade minimum needed Winsock version.
54137
54138 2008-09-23  Bruno Haible  <bruno@clisp.org>
54139
54140         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
54141         * doc/glibc-functions/*: Likewise.
54142
54143 2008-09-23  Simon Josefsson  <simon@josefsson.org>
54144
54145         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
54146         success.
54147
54148 2008-09-22  Eric Blake  <ebb9@byu.net>
54149             Bruno Haible  <bruno@clisp.org>
54150
54151         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
54152         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
54153         supply %A but mishandle pseudo-NaN.
54154         Reported by Simon Josefsson.
54155
54156 2008-09-21  Bruno Haible  <bruno@clisp.org>
54157
54158         * tests/test-lock.c (main): Tweak skip message.
54159         * tests/test-tls.c (main): Likewise.
54160
54161 2008-09-21  Bruno Haible  <bruno@clisp.org>
54162
54163         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
54164         whether 'struct sigaction' has sa_sigaction here...
54165         (gl_PREREQ_SIG_HANDLER_H): ... not here.
54166         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
54167
54168 2008-09-21  Bruno Haible  <bruno@clisp.org>
54169
54170         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
54171         section.
54172         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
54173         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
54174         the new section.
54175         (Support for obsolete systems lacking POSIX:2001): New section.
54176         (String handling <string.h>): Move strdup to the new section.
54177         Suggested by Simon Josefsson and Paolo Bonzini.
54178
54179 2008-09-21  Bruno Haible  <bruno@clisp.org>
54180
54181         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
54182         exponents in %e and %g results on 'long double'. Needed for mingw's
54183         improved *printf functions.
54184         * tests/test-vasprintf-posix.c (test_function): Likewise.
54185         * tests/test-snprintf-posix.h (test_function): Likewise.
54186         * tests/test-sprintf-posix.h (test_function): Likewise.
54187         Reported by Eric Blake.
54188
54189 2008-09-21  Bruno Haible  <bruno@clisp.org>
54190
54191         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
54192         * tests/test-sprintf-posix.h (test_function): Likewise.
54193
54194 2008-09-21  Bruno Haible  <bruno@clisp.org>
54195
54196         * modules/getpass (Depends-on): Add strdup-posix.
54197
54198         New module 'strdup-posix'.
54199         * modules/strdup-posix: New file.
54200         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
54201         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
54202         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54203         REPLACE_STRDUP.
54204         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
54205         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
54206         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54207         strdup-posix.
54208
54209         * modules/strdup (Depends-on): Remove malloc-posix.
54210
54211 2008-09-20  Bruno Haible  <bruno@clisp.org>
54212
54213         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
54214         Wildenhues.
54215
54216 2008-09-20  Bruno Haible  <bruno@clisp.org>
54217
54218         Ensure that wint_t gets defined on IRIX 5.3.
54219         * lib/wchar.in.h (wint_t): Define if not defined by the system.
54220         * lib/wctype.in.h (wint_t): Likewise.
54221         (__wctype_wint_t): Remove type.
54222         (isw*): Use wint_t instead of __wctype_wint_t.
54223         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
54224         * modules/wchar (Files): Add m4/wint_t.m4.
54225         (Makefile.am): Substitute HAVE_WINT_T.
54226         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
54227         * tests/test-wctype.c: Check that wint_t is defined.
54228         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
54229         * doc/posix-headers/wctype.texi: Likewise.
54230         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54231
54232 2008-09-18  Bruno Haible  <bruno@clisp.org>
54233
54234         * gnulib-tool (func_exit): Update comment.
54235
54236 2008-09-18  Simon Josefsson  <simon@josefsson.org>
54237
54238         * modules/getaddrinfo (Depends-on): Remove strdup, this module
54239         assumes strdup exists and does not depend on strdup to return
54240         ENOMEM on out of memory conditions.
54241
54242 2008-09-18  Bruno Haible  <bruno@clisp.org>
54243
54244         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
54245         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
54246         digits for the exponent.
54247
54248 2008-09-18  Jim Meyering  <meyering@redhat.com>
54249             Bruno Haible  <bruno@clisp.org>
54250
54251         * lib/vasnprintf.c (decimal_point_char): Define also if
54252         NEED_PRINTF_INFINITE_LONG_DOUBLE.
54253
54254 2008-09-16  Bruno Haible  <bruno@clisp.org>
54255         and Eric Blake  <ebb9@byu.net>
54256
54257         vasnprintf: support Irix 5.3
54258         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
54259         that mishandle long double infinity.
54260         Reported by Tom G. Christensen.
54261
54262 2008-09-16  Bruno Haible  <bruno@clisp.org>
54263
54264         * doc/glibc-functions/scandir.texi: Mention the function is missing on
54265         Solaris 9.
54266         * doc/glibc-functions/alphasort.texi: Likewise.
54267         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
54268
54269 2008-09-16  Jim Meyering  <meyering@redhat.com>
54270
54271         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
54272         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
54273         a umask modification leak out of a subshell.  Otherwise, the
54274         opensolaris /bin/sh would be accepted and thus cause unwarranted
54275         failures in the coreutils test suite.
54276
54277 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
54278
54279         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
54280         to succeed.
54281
54282 2008-09-16  Jim Meyering  <meyering@redhat.com>
54283
54284         avoid spurious test failure when library is built without ACL support
54285         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
54286         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
54287         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
54288         * tests/test-copy-acl.sh: Likewise.
54289
54290 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54291
54292         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
54293         based on character occurrence counts.
54294
54295 2008-09-15  Eric Blake  <ebb9@byu.net>
54296
54297         tests: avoid some compiler warnings
54298         * tests/test-memchr.c (main): Pass NULL indirectly.
54299         * tests/test-closein.c (main): Avoid unused variable.
54300
54301 2008-09-15  Bruno Haible  <bruno@clisp.org>
54302
54303         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
54304         are missing on OpenBSD 4.0 individually.
54305         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54306
54307 2008-09-15  Bruno Haible  <bruno@clisp.org>
54308
54309         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
54310         * doc/posix-functions/strerror.texi: Mention also Cygwin.
54311         * doc/posix-functions/perror.texi: Likewise.
54312         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
54313         is missing.
54314         Reported by Eric Blake.
54315
54316         * lib/errno.in.h: Use replacement values >= 2000.
54317         Reported by Eric Blake.
54318
54319 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54320
54321         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
54322         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
54323         limit.
54324         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
54325         compareseq was aborted.
54326
54327 2008-09-14  Bruno Haible  <bruno@clisp.org>
54328
54329         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
54330         yvec_edit_count.
54331         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
54332         (fstrcmp_bounded): Simplify result computation accordingly.
54333
54334 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54335
54336         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
54337         (fstrcmp): Define in terms of fstrcmp_bounded.
54338         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
54339         lower_bound argument.
54340         Return quickly if the result is certainly < lower_bound.
54341         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
54342
54343 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54344
54345         * lib/diffseq.h (EARLY_ABORT): New macro.
54346         (compareseq): Change return type to bool. Return true when EARLY_ABORT
54347         evaluates to true.
54348
54349 2008-09-14  Bruno Haible  <bruno@clisp.org>
54350
54351         * modules/perror-tests: New file.
54352         * tests/test-perror.sh: New file.
54353         * tests/test-perror.c: New file.
54354
54355         New module 'perror'.
54356         * lib/stdio.in.h (perror): New declaration.
54357         * lib/perror.c: New file.
54358         * m4/perror.m4: New file.
54359         * modules/perror: New file.
54360         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
54361         * doc/posix-functions/perror.texi: Mention the perror module.
54362         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
54363         REPLACE_PERROR.
54364         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
54365         REPLACE_PERROR.
54366
54367 2008-09-14  Bruno Haible  <bruno@clisp.org>
54368
54369         * modules/stdio (Makefile.am): Reorder to match the order in
54370         lib/stdio.in.h.
54371         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54372
54373 2008-09-13  Bruno Haible  <bruno@clisp.org>
54374
54375         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
54376
54377 2008-09-13  Bruno Haible  <bruno@clisp.org>
54378
54379         Extend strerror to cover the added errno values.
54380         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
54381         (rpl_strerror): Provide error messages for the added errno values and
54382         for the WSA* values.
54383         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
54384         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
54385         strerror.
54386         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
54387         * modules/strerror (Depends-on): Add errno.
54388         * doc/posix-functions/strerror.texi: Document the change.
54389         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
54390         and EOVERFLOW.
54391
54392 2008-09-13  Bruno Haible  <bruno@clisp.org>
54393
54394         * modules/EOVERFLOW: Remove file.
54395         * m4/eoverflow.m4: Remove file.
54396         * modules/EOVERFLOW-tests: Remove file.
54397         * tests/test-EOVERFLOW.c: Remove file.
54398         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
54399         * modules/ftell (Depends-on): Likewise.
54400         * modules/getdelim (Depends-on): Likewise.
54401         * modules/getugroups (Depends-on): Likewise.
54402         * modules/poll (Depends-on): Likewise.
54403         * modules/snprintf (Depends-on): Likewise.
54404         * modules/sprintf-posix (Depends-on): Likewise.
54405         * modules/vasnprintf (Depends-on): Likewise.
54406         * modules/vasprintf (Depends-on): Likewise.
54407         * modules/vfprintf-posix (Depends-on): Likewise.
54408         * modules/vsnprintf (Depends-on): Likewise.
54409         * modules/vsprintf-posix (Depends-on): Likewise.
54410         * modules/xvasprintf (Depends-on): Likewise.
54411         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54412         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
54413         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
54414         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
54415         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54416         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
54417         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
54418         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
54419         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54420         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
54421         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
54422         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
54423         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54424         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
54425         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
54426         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
54427         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54428         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
54429         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
54430         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
54431         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54432         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
54433         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
54434         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
54435         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
54436         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54437         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
54438         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
54439         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
54440         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
54441         * MODULES.html.sh: Remove EOVERFLOW.
54442         * NEWS: Mention the change.
54443
54444 2008-09-13  Bruno Haible  <bruno@clisp.org>
54445
54446         * modules/errno-tests: New file.
54447         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
54448
54449         * lib/errno.in.h: New file.
54450         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
54451         * modules/errno: New file.
54452         * doc/posix-headers/errno.texi: Update documentation.
54453         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
54454
54455 2008-09-13  Bruno Haible  <bruno@clisp.org>
54456
54457         * tests/test-poll.c: Use #if for native Windows, rather than testing
54458         __MSVCRT__.
54459
54460 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54461             Bruno Haible  <bruno@clisp.org>
54462
54463         * lib/glob.c: Don't include <pwd.h> on native Windows.
54464         (WINDOWS32): New macro.
54465         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
54466
54467 2008-09-13  Bruno Haible  <bruno@clisp.org>
54468
54469         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
54470         (ETIMEDOUT): Remove macro.
54471         (glthread_cond_timedwait_multithreaded): New declaration.
54472         (glthread_cond_timedwait): Use it.
54473         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
54474         (glthread_cond_timedwait_multithreaded): New function.
54475
54476 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54477
54478         * modules/poll-tests: Do not check for io.h.
54479         * tests/test-poll.c: Check for __MSVCRT__ instead.
54480
54481 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54482
54483         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
54484         * modules/poll-tests: Add inet_pton, stdbool, sockets.
54485         * tests/test-poll.c: Use them.  Use _pipe on Windows.
54486
54487 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54488
54489         * modules/poll-tests: New.
54490         * tests/test-poll.c: New.
54491
54492 2008-09-12  Eric Blake  <ebb9@byu.net>
54493
54494         frexp: test for NetBSD failure on -0.0
54495         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
54496         not all, bugs from NetBSD 3.0 have been fixed.
54497         * doc/posix-functions/frexp.texi (frexp): Document bug.
54498         Reported by Thomas Klausner.
54499
54500         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
54501         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
54502         literal -0.0.
54503         Reported by Jonathan C. Patschke <jp@centtech.com>.
54504
54505 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54506
54507         * lib/glthread/cond.h: Use dummy implementation also if
54508         USE_WIN32_THREADS.
54509
54510 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54511
54512         * modules/fnmatch-posix (License): Change to LGPLv2+.
54513         * modules/fnmatch-gnu (License): Likewise.
54514
54515 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54516
54517         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
54518
54519 2008-09-11  Jim Meyering  <meyering@redhat.com>
54520
54521         * users.txt: Add gtk-vnc.
54522
54523 2008-09-08  Simon Josefsson  <simon@josefsson.org>
54524
54525         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
54526         rotate amounts.
54527
54528         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
54529         required for 16-bit and 8-bit rotates.
54530         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
54531         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
54532         UINT8_MAX instead of hard-coded constants.
54533         Suggested by Paul Eggert.
54534
54535 2008-09-07  Bruno Haible  <bruno@clisp.org>
54536
54537         * tests/test-striconveh.c (main): Check behaviour when converting from
54538         UTF-7.
54539
54540         Make striconveh work better with stateful encodings.
54541         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
54542         that iconv does not increment the inptr when returning -1/EINVAL.
54543
54544 2008-09-07  Bruno Haible  <bruno@clisp.org>
54545
54546         * build-aux/config.rpath: Update according to libtool-2.2.6.
54547         * build-aux/config.libpath: Likewise.
54548
54549 2008-09-06  Bruno Haible  <bruno@clisp.org>
54550
54551         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
54552         * lib/freadptr.c (freadptr): Likewise.
54553         * lib/freadseek.c (freadptrinc): Likewise.
54554         Reported by Simon Josefsson.
54555
54556 2008-09-06  Bruno Haible  <bruno@clisp.org>
54557
54558         * modules/freadptr (License): Change to LGPLv2+.
54559         * modules/freadseek (License): Likewise.
54560         Suggested by Eric Blake.
54561
54562         * modules/memchr2 (License): Change to LGPLv2+.
54563         Approved by Eric Blake.
54564
54565 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54566             Bruno Haible  <bruno@clisp.org>
54567
54568         Make gnulib-tool work with native 'sed' on AIX.
54569         * gnulib-tool (sed_noop): New variable.
54570         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
54571         func_add_or_update, func_create_testdir): Use it to initialize sed
54572         script variables.
54573         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54574
54575 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
54576             Bruno Haible  <bruno@clisp.org>
54577
54578         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
54579         also works after #include directives.
54580
54581 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
54582
54583         getdate.y: reject an out-of-range timezone value
54584         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
54585         the range [-24...+24].  When specified with only one or two digits,
54586         * tests/test-getdate.c: Tests for the fix.
54587         * doc/getdate.texi: Document this change.
54588
54589 2008-09-03  Bruno Haible  <bruno@clisp.org>
54590
54591         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
54592
54593 2008-09-02  Simon Josefsson  <simon@josefsson.org>
54594
54595         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
54596         <bruce.korb@gmail.com> with ideas from Ben Pfaff
54597         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
54598         Blake <ebb9@byu.net>.
54599
54600         * tests/test-bitrotate.c: Add more test vectors.
54601
54602 2008-09-02  Eric Blake  <ebb9@byu.net>
54603
54604         vasnprintf-posix: handle large precision via %.*d
54605         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
54606         when handling it ourselves.
54607         * tests/test-vasnprintf-posix.c (test_function): Add test.
54608         * tests/test-snprintf-posix.h (test_function): Likewise.
54609         * tests/test-sprintf-posix.h (test_function): Likewise.
54610         * tests/test-vasprintf-posix.c (test_function): Likewise.
54611         Reported by Alain Guibert.
54612
54613 2008-09-01  Eric Blake  <ebb9@byu.net>
54614
54615         c-stack: make configure-time check more robust
54616         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
54617         successful sigaction call.
54618         Reported by Tom G. Christensen.
54619
54620 2008-09-01  Bruno Haible  <bruno@clisp.org>
54621
54622         New module 'findprog-lgpl'.
54623         * modules/findprog-lgpl: New file.
54624         * lib/findprog-lgpl.c: New file.
54625         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
54626         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
54627         to decide whether to use strdup or xstrdup, concatenated_filename or
54628         xconcatenated_filename.
54629
54630 2008-09-01  Bruno Haible  <bruno@clisp.org>
54631
54632         Split module 'concat-filename' into 'concat-filename' (LGPL) and
54633         'xconcat-filename' (GPL).
54634         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
54635         (License): Change to LGPLv2+.
54636         * modules/xconcat-filename: New file.
54637         * lib/concat-filename.h (concatenated_filename): Change specification.
54638         (xconcatenated_filename): New declaration.
54639         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
54640         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
54641         memory situations.
54642         * lib/xconcat-filename.c: New file.
54643         * NEWS: Mention the change.
54644         * lib/findprog.c: Include concat-filename.h, not filename.h.
54645         (find_in_path): Use xconcatenated_filename instead of
54646         concatenated_filename.
54647         * lib/javacomp.c: Include concat-filename.h, not filename.h.
54648         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
54649         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
54650         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
54651         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
54652         instead of concatenated_filename.
54653         * lib/javaexec.c: Include concat-filename.h, not filename.h.
54654         (execute_java_class): Use xconcatenated_filename instead of
54655         concatenated_filename.
54656         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
54657         * modules/javacomp (Depends-on): Likewise.
54658         * modules/javaexec (Depends-on): Likewise.
54659
54660 2008-09-01  Bruno Haible  <bruno@clisp.org>
54661
54662         Split module 'filename' into 'filename' and 'concat-filename'.
54663         * modules/filename: Keep only lib/filename.h.
54664         (License): Change to LGPLv2+.
54665         * modules/concat-filename: New file, extracted from modules/filename.
54666         * lib/filename.h (concatenated_filename): Remove declaration.
54667         * lib/concat-filename.h: New file, extracted from lib/filename.h.
54668         * lib/concat-filename.c: Include concat-filename.h.
54669         * NEWS: Mention the change.
54670
54671 2008-09-01  Simon Josefsson  <simon@josefsson.org>
54672
54673         * lib/bitrotate.h (rotl8, rotr8): Add.
54674
54675         * modules/bitrotate (configure.ac): Need
54676         AC_REQUIRE([AC_C_INLINE]).
54677         (Description): Mention stdint.h.  Reported by Bruno Haible
54678         <bruno@clisp.org>.
54679
54680         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
54681         Paolo Bonzini <bonzini@gnu.org>.
54682
54683 2008-08-31  Bruno Haible  <bruno@clisp.org>
54684
54685         Assume Solaris specific bi-arch conventions on Solaris systems.
54686         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
54687         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
54688         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
54689         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
54690         like acl_libdirstem.
54691         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
54692         acl_libdirstem.
54693         * NEWS: Mention the change.
54694         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
54695
54696 2008-08-31  Jim Meyering  <meyering@redhat.com>
54697
54698         * lib/strftime.h: Add comments describing the two added arguments.
54699
54700         remove duplicate #include directives
54701         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
54702         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
54703
54704 2008-08-31  Bruno Haible  <bruno@clisp.org>
54705
54706         New module 'sigpipe-die'.
54707         * modules/sigpipe-die: New file.
54708         * lib/sigpipe-die.h: New file.
54709         * lib/sigpipe-die.c: New file.
54710         * MODULES.html.sh (Signal handling): Add sigpipe-die.
54711
54712 2008-08-31  Bruno Haible  <bruno@clisp.org>
54713
54714         Don't override previously installed signal handlers.
54715         * lib/fatal-signal.c (saved_sigactions): New variable.
54716         (uninstall_handlers): Reset the signal to the saved handler, not
54717         to SIG_DFL (except when ignored).
54718         (install_handlers): Save the previous handlers.
54719
54720 2008-08-30  Bruno Haible  <bruno@clisp.org>
54721
54722         * gnulib-tool (func_reset_sigpipe): New function.
54723         (func_get_automake_snippet, func_modules_transitive_closure,
54724         func_import): Invoke it before a join command that reads from stdin,
54725         to avoid "echo: write error: Broken pipe" error messages on stderr.
54726         Reported by Sam Steingold <sds@gnu.org>.
54727
54728 2008-08-30  Bruno Haible  <bruno@clisp.org>
54729
54730         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
54731         Code copied from m4/open.m4.
54732         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
54733         access and the filename ends in a slash. Code copied from lib/open.c.
54734         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
54735         * tests/test-fopen.c (main): Check against bug with trailing slash.
54736
54737 2008-08-29  Bruno Haible  <bruno@clisp.org>
54738
54739         Avoid some "gcc -pedantic" warnings.
54740         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
54741         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
54742         * lib/dirent.in.h: Likewise.
54743         * lib/fcntl.in.h: Likewise.
54744         * lib/float.in.h: Likewise.
54745         * lib/iconv.in.h: Likewise.
54746         * lib/inttypes.in.h: Likewise.
54747         * lib/locale.in.h: Likewise.
54748         * lib/math.in.h: Likewise.
54749         * lib/netinet_in.in.h: Likewise.
54750         * lib/search.in.h: Likewise.
54751         * lib/signal.in.h: Likewise.
54752         * lib/stdarg.in.h: Likewise.
54753         * lib/stdint.in.h: Likewise.
54754         * lib/stdio.in.h: Likewise.
54755         * lib/stdlib.in.h: Likewise.
54756         * lib/string.in.h: Likewise.
54757         * lib/strings.in.h: Likewise.
54758         * lib/sys_select.in.h: Likewise.
54759         * lib/sys_socket.in.h: Likewise.
54760         * lib/sys_stat.in.h: Likewise.
54761         * lib/sys_time.in.h: Likewise.
54762         * lib/sysexits.in.h: Likewise.
54763         * lib/time.in.h: Likewise.
54764         * lib/unistd.in.h: Likewise.
54765         * lib/wchar.in.h: Likewise.
54766         * lib/wctype.in.h: Likewise.
54767         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
54768         * modules/fchdir (Makefile.am): Likewise.
54769         * modules/fcntl (Makefile.am): Likewise.
54770         * modules/float (Makefile.am): Likewise.
54771         * modules/iconv_open (Makefile.am): Likewise.
54772         * modules/inttypes (Makefile.am): Likewise.
54773         * modules/locale (Makefile.am): Likewise.
54774         * modules/math (Makefile.am): Likewise.
54775         * modules/netinet_in (Makefile.am): Likewise.
54776         * modules/search (Makefile.am): Likewise.
54777         * modules/signal (Makefile.am): Likewise.
54778         * modules/stdarg (Makefile.am): Likewise.
54779         * modules/stdint (Makefile.am): Likewise.
54780         * modules/stdio (Makefile.am): Likewise.
54781         * modules/stdlib (Makefile.am): Likewise.
54782         * modules/string (Makefile.am): Likewise.
54783         * modules/strings (Makefile.am): Likewise.
54784         * modules/sys_select (Makefile.am): Likewise.
54785         * modules/sys_socket (Makefile.am): Likewise.
54786         * modules/sys_stat (Makefile.am): Likewise.
54787         * modules/sys_time (Makefile.am): Likewise.
54788         * modules/sysexits (Makefile.am): Likewise.
54789         * modules/time (Makefile.am): Likewise.
54790         * modules/unistd (Makefile.am): Likewise.
54791         * modules/wchar (Makefile.am): Likewise.
54792         * modules/wctype (Makefile.am): Likewise.
54793         Reported by Reuben Thomas <rrt@sc3d.org>.
54794
54795 2008-08-29  Bruno Haible  <bruno@clisp.org>
54796
54797         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
54798         any more.
54799
54800 2008-08-29  Simon Josefsson  <simon@josefsson.org>
54801
54802         * MODULES.html.sh (Misc): Add bitrotate.
54803
54804         * modules/bitrotate: New file.
54805
54806         * lib/bitrotate.h: New file.
54807
54808         * modules/bitrotate-tests: New file.
54809
54810         * tests/test-bitrotate.c: New file.
54811
54812         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
54813         on the bitrotate module.
54814
54815         * lib/arctwo.c: Use new bitrotate module.
54816
54817 2008-08-29  Jim Meyering  <meyering@redhat.com>
54818
54819         bootstrap: merge changes from coreutils
54820         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
54821         of copied files.  Remove a kludge, now that this is fixed.
54822         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
54823         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
54824         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
54825
54826 2008-08-29  Bruno Haible  <bruno@clisp.org>
54827
54828         * MODULES.html.sh: Remove --cvs-urls option.
54829
54830 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
54831
54832         maint.mk: adjust to file name change
54833         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
54834
54835 2008-08-28  Jim Meyering  <meyering@redhat.com>
54836
54837         * modules/getndelim2 (License): Relicense to LGPLv2+.
54838         Approved by Richard Stallman for the version of 1995, and by
54839         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
54840
54841 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
54842
54843         * lib/getdelim.c (flockfile, funlockfile): Make all of them
54844         dummy if one is not available.  Do not touch them if
54845         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
54846         (getc_maybe_unlocked): New.
54847         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
54848
54849 2008-08-26  Eric Blake  <ebb9@byu.net>
54850
54851         doc/INSTALL: resync from autoconf
54852         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
54853         (INSTALL_PRELUDE): Delete; this is done more efficiently by
54854         moving...
54855         * install.texi [!autoconf]: ...here.  Resync from autoconf.
54856         * INSTALL: Regenerate.
54857         * INSTALL.ISO: New file.
54858         * INSTALL.UTF-8: Likewise.
54859
54860 2008-08-26  Jim Meyering  <meyering@redhat.com>
54861
54862         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
54863         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
54864         these definitions conditional, so that they may be overridden, too.
54865
54866 2008-08-26  Bruno Haible  <bruno@clisp.org>
54867
54868         Generate INSTALL file variants with prettier quotes.
54869         * doc/Makefile (INSTALL_PRELUDE): New macro.
54870         (INSTALL): Use it.
54871         (INSTALL.ISO, INSTALL.UTF-8): New rules.
54872
54873 2008-08-26  Bruno Haible  <bruno@clisp.org>
54874
54875         Run makeinfo in an English locale.
54876         * doc/Makefile (MAKEINFO): New variable.
54877
54878 2008-08-26  Bruno Haible  <bruno@clisp.org>
54879
54880         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
54881         Suggested by Eric Blake.
54882
54883 2008-08-25  Bruno Haible  <bruno@clisp.org>
54884
54885         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
54886
54887 2008-08-25  Eric Blake  <ebb9@byu.net>
54888
54889         c-stack: test that stack overflow can be caught
54890         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
54891         that platform allows handling stack overflow; at least OS/2 EMX
54892         has sigaltstack, but crashes before transferring control to
54893         handler on stack overflow.
54894         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
54895         check for HAVE_STACK_OVERFLOW_HANDLING.
54896         Reported by Elbert Pol.
54897
54898 2008-08-25  Bruno Haible  <bruno@clisp.org>
54899
54900         * doc/posix-functions/strftime.texi: Fix description of strftime
54901         module.
54902
54903 2008-08-24  Bruno Haible  <bruno@clisp.org>
54904
54905         * tests/uniwidth/test-uc_width2.c: New file.
54906         * tests/uniwidth/test-uc_width2.sh: New file.
54907         * modules/uniwidth/width-tests (Files): Add the new files.
54908         (TESTS): Add uniwidth/test-uc_width2.sh.
54909         (TESTS_ENVIRONMENT): New variable.
54910         (check_PROGRAMS): Add test-uc_width2.
54911         (test_uc_width2_SOURCES): New variable.
54912
54913         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
54914         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
54915         not 0x00AB.
54916         Reported by Alexander V. Lukyanov <lav@netis.ru>.
54917
54918 2008-08-22  Eric Blake  <ebb9@byu.net>
54919
54920         test-lock, test-tls: mention why a test is skipped
54921         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
54922         skipped.
54923         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
54924
54925         count-one-bits: relax license
54926         * modules/count-one-bits (License): Relicense to LGPLv2+.
54927         Suggested by Ludovic Courtès, approved by Ben Pfaff.
54928
54929 2008-08-22  Andreas Schwab  <schwab@suse.de>
54930
54931         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
54932         Remove spurious space in assignment.
54933
54934 2008-08-21  Simon Josefsson  <simon@josefsson.org>
54935
54936         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
54937         Paul Eggert <eggert@CS.UCLA.EDU>.
54938
54939 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
54940
54941         * modules/gettext: Add m4/threadlib.m4.
54942
54943 2008-08-19  Eric Blake  <ebb9@byu.net>
54944
54945         test-c-stack: fix compilation failure on FreeBSD 5.0
54946         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
54947         headers before <sys/resource.h>.
54948         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
54949         the bug.
54950         Reported by Nelson H. F. Beebe.
54951
54952         strverscmp: migrate from "strverscmp.h" to <string.h>
54953         * modules/string (Makefile.am): Add new hooks.
54954         * modules/strverscmp (Files): Remove strverscmp.h.
54955         (Depends-on): Add string.
54956         (configure.ac): Add indicator.
54957         (Include): Mention new header.
54958         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
54959         defaults.
54960         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
54961         results.
54962         * lib/strverscmp.h: Delete.
54963         * lib/string.in.h (strverscmp): Provide declaration, when needed.
54964         * tests/test-strverscmp.c (includes): Adjust client.
54965         * lib/check-version.c (includes): Likewise.
54966         * NEWS: Document the change.
54967
54968         strverscmp: add unit test
54969         * modules/strverscmp-tests: New file.
54970         * tests/test-strverscmp.c: Likewise.
54971
54972 2008-08-19  Simon Josefsson  <simon@josefsson.org>
54973
54974         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
54975         regarding Windows crypto stuff, from Mono.
54976
54977 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
54978
54979         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
54980         if present, for intel RND.  Return error on failures.
54981
54982 2008-08-18  Ben Pfaff  <blp@gnu.org>
54983
54984         gitlog-to-changelog: give better diagnostic for failed pipe-open
54985         * build-aux/gitlog-to-changelog: Improve error message: suggest
54986         that the version of Git may be too old.
54987
54988 2008-08-18  Simon Josefsson  <simon@josefsson.org>
54989
54990         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
54991         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
54992
54993 2008-08-18  Bruno Haible  <bruno@clisp.org>
54994
54995         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
54996         pthread_in_use().
54997
54998 2008-08-18  Bruno Haible  <bruno@clisp.org>
54999
55000         * lib/glthread/threadlib.c: Include <pthread.h>.
55001
55002 2008-08-18  Bruno Haible  <bruno@clisp.org>
55003
55004         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
55005         glthread_recursive_lock_* macros.
55006         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
55007         Fix syntax error.
55008
55009 2008-08-18  Bruno Haible  <bruno@clisp.org>
55010
55011         * lib/glthread/thread.c: Avoid forcing a context switch right after
55012         thread creation.
55013
55014 2008-08-17  Bruno Haible  <bruno@clisp.org>
55015
55016         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
55017         * lib/glthread/thread.h: Provide Win32 specific implementation.
55018         * modules/thread (Files): Add lib/glthread/thread.c.
55019         (Depends-on): Add lock.
55020         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
55021
55022 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55023
55024         New module 'yield'.
55025         * modules/yield: New file.
55026         * lib/glthread/yield.h: New file.
55027         * m4/yield.m4: New file.
55028         * MODULES.html.sh (Multithreading): Add yield.
55029
55030 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55031
55032         New module 'thread'.
55033         * modules/thread: New file.
55034         * lib/glthread/thread.h: New file.
55035         * m4/thread.m4: New file.
55036         * MODULES.html.sh (Multithreading): Add thread.
55037
55038 2008-08-17  Bruno Haible  <bruno@clisp.org>
55039
55040         * lib/glthread/lock.h: Include <stdlib.h> always.
55041         * lib/glthread/tls.h: Likewise.
55042         * lib/glthread/cond.h: Likewise.
55043
55044 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55045
55046         New module 'cond'.
55047         * modules/cond: New file.
55048         * lib/glthread/cond.h: New file.
55049         * lib/glthread/cond.c: New file.
55050         * m4/cond.m4: New file.
55051         * MODULES.html.sh (Multithreading): Add cond.
55052
55053 2008-08-16  Eric Blake  <ebb9@byu.net>
55054
55055         c-stack: fix regression on Irix 5.3 from 2008-06-21
55056         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
55057         sa_sigaction...
55058         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
55059         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
55060         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
55061         * modules/signal (Makefile.am): Use the value.
55062         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
55063         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
55064         * doc/posix-headers/signal.texi (signal.h): Document this
55065         portability issue.
55066         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
55067         Reported by Tom G. Christensen.
55068
55069 2008-08-17  Bruno Haible  <bruno@clisp.org>
55070
55071         New module 'threadlib'.
55072         * modules/threadlib: New file.
55073         * lib/glthread/threadlib.c: New file, extracted from
55074         lib/glthread/lock.c.
55075         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
55076         functions.
55077         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
55078         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
55079         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
55080         macros.
55081         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
55082         (gl_DISABLE_THREADS): Remove macro.
55083         * modules/lock (Files): Remove build-aux/config.rpath.
55084         (Depends-on): Remove havelib. Add threadlib.
55085         (configure.ac-early): Remove section.
55086         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
55087         * modules/tls (Depends-on): Remove lock. Add threadlib.
55088         (Link): New section, copied from threadlib.
55089         * MODULES.html.sh (Multithreading): Add threadlib.
55090
55091 2008-08-14  Bruno Haible  <bruno@clisp.org>
55092
55093         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
55094         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
55095         glthread_rwlock_unlock, glthread_rwlock_destroy,
55096         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
55097         glthread_recursive_lock_destroy): Define as macros always.
55098         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
55099         glthread_lock_lock.
55100         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
55101         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
55102         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
55103         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
55104         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
55105         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
55106         (glthread_recursive_lock_lock_func): Renamed from
55107         glthread_recursive_lock_lock.
55108         (glthread_recursive_lock_unlock_func): Renamed from
55109         glthread_recursive_lock_unlock.
55110         (glthread_recursive_lock_destroy_func): Renamed from
55111         glthread_recursive_lock_destroy.
55112
55113 2008-08-14  Bruno Haible  <bruno@clisp.org>
55114
55115         * lib/glthread/lock.h: Renamed from lib/lock.h.
55116         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
55117         * lib/glthread/tls.h: Renamed from lib/tls.h.
55118         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
55119         * lib/fstrcmp.c: Update includes.
55120         * lib/strsignal.c: Update includes.
55121         * modules/lock (Files, Makefile.am): Update.
55122         (Include): Change to "glthread/lock.h".
55123         * modules/tls (Files, Makefile.am): Update.
55124         (Include): Change to "glthread/tls.h".
55125         * tests/test-lock.c: Update includes.
55126         * tests/test-tls.c: Update includes.
55127         * NEWS: Mention the renamed header files.
55128
55129 2008-08-11  Jim Meyering  <meyering@redhat.com>
55130
55131         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
55132
55133 2008-08-11  Eric Blake  <ebb9@byu.net>
55134
55135         test-c-stack: avoid C99-ism
55136         * tests/test-c-stack.c (main): Fix whitespace, move declaration
55137         before statement.
55138         Reported by Alain Guibert.
55139
55140 2008-08-10  Jim Meyering  <meyering@redhat.com>
55141
55142         ensure that return value of uinttostr et al are not ignored
55143         * lib/inttostr.h (__GNUC_PREREQ): Define.
55144         (__attribute_warn_unused_result__): Define.
55145         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
55146
55147 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
55148
55149         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
55150         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
55151
55152 2008-08-07  Jim Meyering  <meyering@redhat.com>
55153
55154         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
55155
55156         * modules/mkstemp (License): Relicense under LGPLv2+.
55157         * modules/tempname (License): Likewise.
55158
55159 2008-08-06  Bruno Haible  <bruno@clisp.org>
55160
55161         * lib/poll.c (poll): Further micro-optimization.
55162
55163 2008-08-06  Jim Meyering  <meyering@redhat.com>
55164
55165         inet_pton.c: use locale-independent tolower
55166         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
55167         (inet_pton6): Use c_tolower rather than tolower.
55168         * modules/inet_pton (Depends-on): Add c-ctype.
55169
55170 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
55171
55172         * lib/poll.c (poll): Avoid division when timeout is 0, cache
55173         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
55174
55175 2008-08-06  Jim Meyering  <meyering@redhat.com>
55176
55177         * modules/inet_pton (License): Relicense under LGPLv2+.
55178
55179 2008-08-03  Bruno Haible  <bruno@clisp.org>
55180
55181         Additional non-aborting API for lock and tls.
55182         * lib/lock.h: Include <errno.h>.
55183         (glthread_lock_init): New macro/function.
55184         (gl_lock_init): Define as wrapper around glthread_lock_init.
55185         (glthread_lock_lock): New macro/function.
55186         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
55187         (glthread_lock_unlock): New macro/function.
55188         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
55189         (glthread_lock_destroy): New macro/function.
55190         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
55191         (glthread_rwlock_init): New macro/function.
55192         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
55193         (glthread_rwlock_rdlock): New macro/function.
55194         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
55195         (glthread_rwlock_wrlock): New macro/function.
55196         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
55197         (glthread_rwlock_unlock): New macro/function.
55198         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
55199         (glthread_rwlock_destroy): New macro/function.
55200         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
55201         (glthread_recursive_lock_init): New macro/function.
55202         (gl_recursive_lock_init): Define as wrapper around
55203         glthread_recursive_lock_init.
55204         (glthread_recursive_lock_lock): New macro/function.
55205         (gl_recursive_lock_lock): Define as wrapper around
55206         glthread_recursive_lock_lock.
55207         (glthread_recursive_lock_unlock): New macro/function.
55208         (gl_recursive_lock_unlock): Define as wrapper around
55209         glthread_recursive_lock_unlock.
55210         (glthread_recursive_lock_destroy): New macro/function.
55211         (gl_recursive_lock_destroy): Define as wrapper around
55212         glthread_recursive_lock_destroy.
55213         (glthread_once): New macro/function.
55214         (gl_once): Define as wrapper around glthread_once.
55215         Update function declarations.
55216         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
55217         glthread_rwlock_init. Return error code.
55218         (glthread_rwlock_rdlock_multithreaded): Renamed from
55219         glthread_rwlock_rdlock. Return error code.
55220         (glthread_rwlock_wrlock_multithreaded): Renamed from
55221         glthread_rwlock_wrlock. Return error code.
55222         (glthread_rwlock_unlock_multithreaded): Renamed from
55223         glthread_rwlock_unlock. Return error code.
55224         (glthread_rwlock_destroy_multithreaded): Renamed from
55225         glthread_rwlock_destroy. Return error code.
55226         (glthread_recursive_lock_init_multithreaded): Renamed from
55227         glthread_recursive_lock_init. Return error code.
55228         (glthread_recursive_lock_lock_multithreaded): Renamed from
55229         glthread_recursive_lock_lock. Return error code.
55230         (glthread_recursive_lock_unlock_multithreaded): Renamed from
55231         glthread_recursive_lock_unlock. Return error code.
55232         (glthread_recursive_lock_destroy_multithreaded): Renamed from
55233         glthread_recursive_lock_destroy. Return error code.
55234         (glthread_once_call): Make static.
55235         (glthread_once_multithreaded): Renamed from glthread_once.
55236         * lib/tls.h: Include <errno.h>.
55237         (glthread_tls_key_init): New macro/function.
55238         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
55239         (glthread_tls_set): New macro/function.
55240         (gl_tls_set): Define as wrapper around glthread_tls_set.
55241         (glthread_tls_key_destroy): New macro/function.
55242         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
55243         Update function declarations.
55244         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
55245         glthread_tls_get.
55246         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55247
55248 2008-08-04  Eric Blake  <ebb9@byu.net>
55249
55250         gnumakefile: use space, not TAB, outside of targets
55251         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
55252
55253 2008-08-02  Jim Meyering  <meyering@redhat.com>
55254
55255         getdate.y: avoid locale-dependent date parsing failure
55256         In Turkish locales, getdate would fail to recognize keywords
55257         containing a lowercase "i".  The solution is not to rely on
55258         locale-sensitive case-conversion.
55259         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
55260         (lookup_word): Use c_toupper in place of toupper.
55261         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
55262         Reported by Vefa Bicakci <bicave@superonline.com> in
55263         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
55264         * modules/getdate (Depends-on): Add c-ctype.
55265
55266 2008-08-02  Bruno Haible  <bruno@clisp.org>
55267
55268         * gnulib-tool (func_import): When updating or creating a .gitignore
55269         file, prepend each added line with a slash, and ignore leading slashes
55270         from the existing lines.
55271         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55272
55273 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55274
55275         Portability fix for GNU make 3.79.1.
55276         * top/GNUmakefile: Avoid 'else COND', which older GNU make
55277         versions do not understand.
55278
55279 2008-08-01  Bruno Haible  <bruno@clisp.org>
55280
55281         Work around bug of HP-UX 10.20 cc with -0.0 literal.
55282         * tests/test-isnanf.h (zero): New variable.
55283         (main): Avoid literal -0.0f.
55284         * tests/test-isnand.h (zero): New variable.
55285         (main): Avoid literal -0.0.
55286         * tests/test-isnanl.h (zero): New variable.
55287         (main): Avoid literal -0.0L.
55288         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
55289         (test_float, test_double, test_long_double): Avoid literals -0.0f,
55290         -0.0, -0.0L.
55291         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
55292         (test_signbitd): Avoid literal -0.0.
55293         (test_signbitl): Avoid literal -0.0L.
55294         * tests/test-ceilf1.c (zero): New variable.
55295         (main): Avoid literal -0.0f.
55296         * tests/test-ceill.c (zero): New variable.
55297         (main): Avoid literal -0.0L.
55298         * tests/test-floorf1.c (zero): New variable.
55299         (main): Avoid literal -0.0f.
55300         * tests/test-floorl.c (zero): New variable.
55301         (main): Avoid literal -0.0L.
55302         * tests/test-roundf1.c (zero): New variable.
55303         (main): Avoid literal -0.0f.
55304         * tests/test-round1.c (zero): New variable.
55305         (main): Avoid literal -0.0.
55306         * tests/test-roundl.c (zero): New variable.
55307         (main): Avoid literal -0.0L.
55308         * tests/test-truncf1.c (zero): New variable.
55309         (main): Avoid literal -0.0f.
55310         * tests/test-trunc1.c (zero): New variable.
55311         (main): Avoid literal -0.0.
55312         * tests/test-truncl.c (zero): New variable.
55313         (main): Avoid literal -0.0L.
55314         * tests/test-frexp.c (zero): New variable.
55315         (main): Avoid literal -0.0.
55316         * tests/test-frexpl.c (zero): New variable.
55317         (main): Avoid literal -0.0L.
55318         * tests/test-ldexpl.c (zero): New variable.
55319         (main): Avoid literal -0.0L.
55320         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
55321         (zerod, zerol): New variables.
55322         (test_function): Avoid literals -0.0, -0.0L.
55323         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
55324         (zerod, zerol): New variables.
55325         (test_function): Avoid literals -0.0, -0.0L.
55326         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
55327         (zerod, zerol): New variables.
55328         (test_function): Avoid literals -0.0, -0.0L.
55329         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
55330         (zerod, zerol): New variables.
55331         (test_function): Avoid literals -0.0, -0.0L.
55332         * tests/test-strtod.c (zero): New variable.
55333         (main): Avoid literal -0.0.
55334         Reported by Jonathan C. Patschke <jp@centtech.com>.
55335
55336 2008-07-31  Jim Meyering  <meyering@redhat.com>
55337
55338         sha256.h: correct definition of SHA224_DIGEST_SIZE
55339         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
55340         Reported by Paulie Pena IV <paulie4@gmail.com>.
55341         Define as 224 / 8, rather than as a literal.
55342         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
55343         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
55344         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
55345
55346 2008-07-31  Bruno Haible  <bruno@clisp.org>
55347
55348         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
55349         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
55350         Reported by Jonathan Patschke <jp@centtech.com>.
55351
55352 2008-07-31  Bruno Haible  <bruno@clisp.org>
55353
55354         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
55355         Reported by Paolo Bonzini <bonzini@gnu.org>.
55356
55357 2008-07-30  Eric Blake  <ebb9@byu.net>
55358
55359         test-strtod: allow compilation without -lm
55360         * tests/test-strtod.c (main): Avoid link dependence on fabs.
55361         Reported by Dennis Clarke <blastwave@gmail.com>.
55362
55363 2008-07-28  Jim Meyering  <meyering@redhat.com>
55364
55365         bootstrap: work also when there are no .po files in po/
55366         * build-aux/bootstrap (update_po_files): Complete the change
55367         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
55368
55369 2008-07-27  Jim Meyering  <meyering@redhat.com>
55370
55371         * users.txt: Add zile.
55372
55373 2008-07-26  Ben Pfaff  <blp@gnu.org>
55374
55375         Add missing dependencies on new m4/exponent[fdl].m4 files.
55376         * modules/isnanf-nolibm: Add m4/exponentf.m4.
55377         * modules/isnand-nolibm: Add m4/exponentd.m4.
55378         * modules/isnanl-nolibm: Add m4/exponentl.m4.
55379         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
55380         m4/isnan[fdl].m4, because the macros actually used moved.
55381         Reported by Jim Meyering.
55382
55383 2008-07-14  Ben Pfaff  <blp@gnu.org>
55384
55385         Add isinf module.
55386         * lib/isinf.c: New file.
55387         * lib/math.in.h: Define isinf macro if we have decided to replace
55388         it.
55389         * m4/isinf.m4: New file.
55390         * m4/math_h.m4: Initialize and substitute variables for isinf
55391         module.
55392         * modules/isinf: New file.
55393         * modules/isinf-tests: New file.
55394         * modules/math: Add substitutions for new module.
55395         * tests/test-isinf.c: New file.
55396         * doc/posix-functions/isinf.texi: Mention new module.
55397         * MODULES.html.sh: Mention new module.
55398
55399 2008-07-14  Ben Pfaff  <blp@gnu.org>
55400
55401         Factor out some macros for use by additional modules.
55402         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
55403         exponentf.m4.
55404         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
55405         exponentd.m4.
55406         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
55407         file exponentl.m4.
55408         * m4/exponentf.m4: New file.
55409         * m4/exponentd.m4: New file.
55410         * m4/exponentl.m4: New file.
55411         * modules/isnanf: Use new file m4/exponentf.m4.
55412         * modules/isnand: Use new file m4/exponentd.m4.
55413         * modules/isnanl: Use new file m4/exponentl.m4.
55414
55415 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
55416
55417         mktime.c: normalize tp->tm_isdst value to -1/0/1.
55418         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
55419         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
55420         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
55421
55422         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
55423         readlink on platforms without PATH_MAX.
55424
55425 2008-07-21  Eric Blake  <ebb9@byu.net>
55426
55427         Warn, not fail, on stale version.
55428         * top/GNUmakefile (_curr-ver): Tone down previous patch.
55429
55430         Don't allow installation with stale devel version number.
55431         * top/GNUmakefile (_is-install-target): New macro.
55432         (_curr-ver): Forbid installation with stale version number.
55433
55434 2008-07-20  Bruno Haible  <bruno@clisp.org>
55435
55436         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
55437         TESTS_ENVIRONMENT.
55438         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
55439
55440 2008-07-20  Bruno Haible  <bruno@clisp.org>
55441
55442         * lib/c-stack.h (c_stack_action): Add documentation.
55443         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
55444
55445 2008-07-20  Bruno Haible  <bruno@clisp.org>
55446
55447         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
55448         * modules/readlink (License): Likewise.
55449
55450 2008-07-17  Eric Blake  <ebb9@byu.net>
55451
55452         * modules/c-stack (Link): Fix typo.
55453
55454         Make c-stack use libsigsegv, when available.
55455         * modules/c-stack (Depends-on): Add libsigsegv.
55456         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
55457         needed.
55458         * lib/c-stack.c (SIGSTKSZ): Define fallback.
55459         (segv_handler, overflow_handler, c_stack_action)
55460         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
55461         implementation when libsigsegv is available, but only when using
55462         the library is necessary.
55463         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
55464         comment, explaining why XSI check fails on Linux.
55465         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
55466         * tests/test-c-stack2.sh: Tweak skip message.
55467         * NEWS: Document new link-time requirements.
55468
55469 2008-07-16  Eric Blake  <ebb9@byu.net>
55470
55471         c-stack: Expose false positives when not using libsigsegv.
55472         * modules/c-stack-tests (Files): Expand test.
55473         * tests/test-c-stack.c (main): Add means to conditionally trigger
55474         non-overflow SIGSEGV.
55475         * tests/test-c-stack2.sh: New file.
55476
55477 2008-07-14  Bruno Haible  <bruno@clisp.org>
55478
55479         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
55480         Reported by Eric Blake.
55481
55482 2008-07-14  Sam Steingold  <sds@gnu.org>
55483             Bruno Haible  <bruno@clisp.org>
55484
55485         New module libsigsegv.
55486         * modules/libsigsegv: New file.
55487         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
55488         modifications.
55489         * MODULES.html.sh (Signal handling): New section.
55490
55491 2008-07-14  Bruno Haible  <bruno@clisp.org>
55492
55493         * modules/unictype/ctype-* (Description): Add the word "function".
55494         Improves the resulting doc in MODULES.html.
55495
55496 2008-07-12  Ben Pfaff  <blp@gnu.org>
55497
55498         Add longlong module.
55499         * modules/longlong: New file.
55500
55501 2008-07-12  Bruno Haible  <bruno@clisp.org>
55502
55503         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
55504         to empty.
55505
55506 2008-07-10  Ben Pfaff  <blp@gnu.org>
55507
55508         Add isnan module.
55509         * doc/posix-functions/isnan.texi: Mention new module.
55510         * lib/math.in.h: Define isnan macro if we have decided to replace
55511         it.
55512         * m4/isnan.m4: New file.
55513         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
55514         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
55515         also.
55516         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
55517         redundancy.
55518         * m4/math_h.m4: Initialize and substitute variables for isnan
55519         module.
55520         * modules/isnan: New file.
55521         * modules/isnan-tests: New file.
55522         * modules/math: Add substitutions for new module.
55523         * tests/test-isnan.c: New file.
55524         * MODULES.html.sh: Mention new module.
55525
55526 2008-07-10  Ben Pfaff  <blp@gnu.org>
55527
55528         Add isnanf module.
55529         * lib/isnanf.m4: New file.
55530         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
55531         (gl_HAVE_ISNANF_IN_LIBM): New macro.
55532         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
55533         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
55534         * modules/isnanf: New file.
55535         * modules/isnanf-tests: New file.
55536         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
55537         files.
55538         * tests/test-isnanf-nolibm.c: factored most of its contents into
55539         new file tests/test-isnanf.h.
55540         * tests/test-isnanf.h: New file.
55541         * tests/test-isnanf.c: New file.
55542         * MODULES.html.sh: Mention new module.
55543         * doc/glibc-functions/isnanf.texi: Mention new module.
55544
55545 2008-07-10  Ben Pfaff  <blp@gnu.org>
55546
55547         Add isnand module.
55548         * lib/isnand.h: New file.
55549         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
55550         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
55551         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
55552         functionality also.
55553         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
55554         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
55555         (gl_HAVE_ISNAND_IN_LIBM): New macro.
55556         * modules/isnand: New file.
55557         * modules/isnand-tests: New file.
55558         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
55559         files.
55560         * tests/test-isnand-nolibm.c: factored most of its contents into
55561         new file tests/test-isnand.h.
55562         * tests/test-isnand.h: New file.
55563         * tests/test-isnand.c: New file.
55564         * MODULES.html.sh: Mention new module.
55565
55566 2008-07-10  Ben Pfaff  <blp@gnu.org>
55567
55568         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
55569         * lib/isnand.h: Rename lib/isnand-nolibm.h.
55570         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
55571         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
55572         * modules/isnanf-nolibm: Update references to renamed files.
55573         * modules/isnand-nolibm: Likewise.
55574         * modules/isnanf-nolibm-tests: Likewise.
55575         * modules/isnand-nolibm-tests: Likewise.
55576         * lib/frexp.c: Likewise.
55577         * lib/isfinite.c: Likewise.
55578         * lib/signbitd.c: Likewise.
55579         * lib/signbitf.c: Likewise.
55580         * lib/vasnprintf.c: Likewise.
55581         * tests/test-ceilf1.c: Likewise.
55582         * tests/test-ceilf2.c: Likewise.
55583         * tests/test-floorf1.c: Likewise.
55584         * tests/test-floorf2.c: Likewise.
55585         * tests/test-frexp.c: Likewise.
55586         * tests/test-round1.c: Likewise.
55587         * tests/test-round2.c: Likewise.
55588         * tests/test-roundf1.c: Likewise.
55589         * tests/test-strtod.c: Likewise.
55590         * tests/test-trunc1.c: Likewise.
55591         * tests/test-trunc2.c: Likewise.
55592         * tests/test-truncf1.c: Likewise.
55593         * tests/test-truncf2.c: Likewise.
55594         * NEWS: Mention the renamed header files.
55595
55596 2008-07-11  Jim Meyering  <meyering@redhat.com>
55597
55598         vc-list-files: make the last-resort awk code more portable
55599         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
55600         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
55601         does not support it.
55602
55603 2008-07-10  Eric Blake  <ebb9@byu.net>
55604
55605         Work with tar's bootstrap.
55606         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
55607         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
55608         an m4 comment.
55609
55610 2008-07-09  Jim Meyering  <meyering@redhat.com>
55611
55612         posix-shell.m4: fix typo that made this test malfunction
55613         * m4/posix-shell.m4: Remove capitalization in variable name.
55614
55615 2008-07-08  Bruno Haible  <bruno@clisp.org>
55616
55617         * m4/onceonly.m4: Update comments.
55618         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55619
55620 2008-07-04  Jim Meyering  <meyering@redhat.com>
55621
55622         * users.txt: Add vc-dwim.
55623         (bison, coreutils): Use the gitweb URL.
55624
55625 2008-07-03  Jim Meyering  <meyering@redhat.com>
55626
55627         * users.txt: Add libffcall.  From Sam Steingold.
55628
55629 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
55630
55631         getdate.y: do not ignore TZ with relative day, month or year offset
55632         * lib/getdate.y (get_date): Move the tz-handling block to follow the
55633         relative-date-handling, since otherwise, the latter would clobber the
55634         sole output (an updated Start value) of the tz-handling block.
55635         * tests/test-getdate.c: Tests for the fix
55636
55637 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55638
55639         Recognize 'foo_LIBRARIES += libgnu.a'.
55640         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
55641         makefile snippet has already specified an installation location,
55642         also using '+='.
55643
55644 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
55645
55646         getdate.y: factor out common actions
55647         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
55648         Use them in place of open-coded actions.
55649
55650 2008-07-01  Simon Josefsson  <simon@josefsson.org>
55651
55652         Add self-test for getdate module.
55653         * modules/getdate-tests: New file.
55654         * tests/test-getdate.c: New file.
55655
55656 2008-06-29  Bruno Haible  <bruno@clisp.org>
55657
55658         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
55659         .gitignore.
55660         Reported by Sylvain Beucler <beuc@beuc.net>.
55661
55662 2008-06-29  Bruno Haible  <bruno@clisp.org>
55663
55664         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
55665         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
55666
55667 2008-06-29  Bruno Haible  <bruno@clisp.org>
55668
55669         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
55670         EXTRA_DIST.
55671         Reported by Sylvain Beucler <beuc@beuc.net>.
55672
55673 2008-06-26  Jim Meyering  <meyering@redhat.com>
55674
55675         make several modules depend on the "open" module
55676         This provides slightly increased consistency when opening-for-write
55677         the name of a non-directory spelled with a trailing slash.
55678         * modules/chdir-safer: Likewise.
55679         * modules/chown: Likewise.
55680         * modules/clean-temp: Likewise.
55681         * modules/copy-file: Likewise.
55682         * modules/fchdir: Likewise.
55683         * modules/fcntl-safer: Likewise.
55684         * modules/pipe: Likewise.
55685         * modules/utime: Likewise.
55686         Prompted by Eric Blake and Bruno Haible.
55687
55688 2008-06-24  Andreas Schwab  <schwab@suse.de>
55689
55690         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
55691         literals can be used as initializers for global variables.
55692
55693 2008-06-23  Eric Blake  <ebb9@byu.net>
55694
55695         Make gnulib-cache.m4 easier to diff.
55696         * gnulib-tool (func_import): Allow newlines when reading cached
55697         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
55698
55699 2008-06-23  Bruno Haible  <bruno@clisp.org>
55700
55701         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
55702         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
55703         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
55704         m4/signalblocking.m4.
55705         (gl_PREREQ_SIGACTION): Don't invoke it.
55706         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
55707         gl_PREREQ_SIG_HANDLER_H.
55708         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55709         Don't check for sigaction here.
55710
55711 2008-06-23  Bruno Haible  <bruno@clisp.org>
55712
55713         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
55714         (install_handlers): Don't set the SA_RESETHAND flag.
55715
55716 2008-06-23  Bruno Haible  <bruno@clisp.org>
55717
55718         * m4/sigaction.m4: Comment fixes.
55719         * lib/signal.in.h: Likewise.
55720
55721 2008-06-23  Eric Blake  <ebb9@byu.net>
55722
55723         Fix typo.
55724         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
55725
55726         Avoid SA_ namespace.
55727         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
55728         Reported by Ralf Wildenhues.
55729
55730         Avoid test failure due to SA_RESTORER.
55731         * tests/test-sigaction.c (SA_MASK): New macro.
55732         (main): Avoid failing due to extension flags being set.
55733         Reported by Jim Meyering.
55734
55735         Revert use of sig-handler.h in sigprocmask.c.
55736         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
55737         it requires the existence of struct sigaction.
55738         * lib/sigprocmask.c (handler_t): Restore typedef.
55739         (rpl_signal, old_handlers): Use local type.
55740
55741 2008-06-22  Bruno Haible  <bruno@clisp.org>
55742
55743         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
55744         conditionally.
55745         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55746
55747 2008-06-22  Bruno Haible  <bruno@clisp.org>
55748
55749         * doc/posix-functions/siginterrupt.texi: Move note.
55750
55751         * lib/signal.in.h (SA_RESTART): New macro.
55752         * lib/sigaction.c: Update comment.
55753
55754         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
55755
55756         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
55757         (gl_PREREQ_SIGPROCMASK): Invoke it.
55758         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
55759
55760         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
55761
55762         * lib/sigprocmask.c: Update a comment.
55763
55764 2008-06-21  Eric Blake  <ebb9@byu.net>
55765
55766         Use sigaction module rather than signal().
55767         * modules/c-stack (Depends-on): Add sigaction.
55768         * modules/fatal-signal (Depends-on): Likewise.
55769         * modules/nanosleep (Depends-on): Likewise.
55770         * modules/sigprocmask (Files): Add sig-handler.h.
55771         * modules/sigaction (Files): Likewise.
55772         * lib/sig-handler.h (get_handler): New file, suggested by Paul
55773         Eggert.
55774         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
55775         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
55776         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
55777         (init_fatal_signals): Likewise.
55778         * lib/nanosleep.c (rpl_nanosleep): Likewise.
55779         (siginterrupt): Delete fallback.
55780         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
55781         instead.
55782         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
55783         siginterrupt.
55784
55785         New module sigaction, for mingw.
55786         * modules/sigaction: New module...
55787         * modules/sigaction-tests: ...and its test.
55788         * m4/sigaction.m4: New file.
55789         * lib/sigaction.c: Likewise.
55790         * tests/test-sigaction.c: Likewise.
55791         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
55792         * modules/signal (Makefile.am): Likewise.
55793         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
55794         needed.
55795         * doc/posix-headers/signal.texi (signal.h): Mention provided
55796         types.
55797         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
55798         that sigaction is preferable.
55799         * doc/posix-functions/sigaction.texi (sigaction): Mention new
55800         module.
55801         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55802         sigaction.
55803
55804         Improve robustness of sigprocmask by overriding signal.
55805         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
55806         is in use.
55807         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
55808         (SIGKILL, SIGSTOP): Provide fallbacks.
55809         (rpl_signal): Implement.
55810         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
55811         signal can be called inside handlers.
55812
55813         Fix nanosleep module on mingw.
55814         * modules/nanosleep (Depends-on): Add sys_select.
55815         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
55816
55817         Fix licensing of sigprocmask.
55818         * modules/raise (License): Relicense as LGPL.
55819
55820 2008-06-21  Bruno Haible  <bruno@clisp.org>
55821
55822         * lib/propername.c (proper_name_utf8): Don't use the transliterated
55823         result if it contains question marks.
55824         Reported by Michael Geng <linux@michaelgeng.de>.
55825
55826 2008-06-19  Bruno Haible  <bruno@clisp.org>
55827
55828         Fix CVS-ism.
55829         * doc/gnulib.texi: Include updated-stamp.texi.
55830         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
55831         (updated-stamp.texi): New rule.
55832         (gnulib.info): Depend on it.
55833         * doc/.gitignore: Add updated-stamp.texi.
55834         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
55835
55836 2008-06-19  Bruno Haible  <bruno@clisp.org>
55837
55838         * doc/Makefile (gnulib.info): Update and simplify dependencies.
55839         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55840
55841 2008-06-19  Eric Blake  <ebb9@byu.net>
55842
55843         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
55844         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
55845         Reported by Stepan Kasal.
55846
55847 2008-06-18  Bruno Haible  <bruno@clisp.org>
55848
55849         * lib/fatal-signal.c (init_fatal_signals): Add comment.
55850         Reported by Eric Blake.
55851
55852 2008-06-18  Eric Blake  <ebb9@byu.net>
55853
55854         Work around cygwin 1.5.25 strsignal bug.
55855         * tests/test-strsignal.c: Allow for const char *.
55856         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
55857
55858 2008-06-18  Simon Josefsson  <simon@josefsson.org>
55859
55860         * users.txt: Update URL to article and add author/date
55861         information.
55862
55863 2008-06-17  Bruno Haible  <bruno@clisp.org>
55864
55865         New macro gl_DISABLE_THREADS.
55866         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
55867         if the user did not pass --enable-threads or --disable-threads option.
55868         (gl_DISABLE_THREADS): New macro.
55869         Reported by Eric Blake <ebb9@byu.net>.
55870
55871 2008-06-17  Bruno Haible  <bruno@clisp.org>
55872
55873         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
55874         when the macro ignores it.
55875         Based on a patch by Eric Blake <ebb9@byu.net>.
55876
55877 2008-06-17  Bruno Haible  <bruno@clisp.org>
55878
55879         * modules/tls (License): Change to LGPLv2+.
55880         Reported by Eric Blake.
55881
55882 2008-06-17  Eric Blake  <ebb9@byu.net>
55883
55884         Simplify c-stack prerequisites.
55885         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
55886         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
55887         no longer requires <ucontext.h> to exist.  Optimize setrlimit
55888         check.
55889         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
55890         <sys/resource.h>.
55891
55892         Move c-stack test into testsuite.
55893         * modules/c-stack-tests: New file.
55894         * lib/c-stack.c [DEBUG]: Move test program...
55895         * tests/test-c-stack.c: ...into this new file.  Skip rather than
55896         fail test if sigaltstack is lacking.
55897         * tests/test-c-stack.sh: New driver file.
55898
55899 2008-06-16  Eric Blake  <ebb9@byu.net>
55900
55901         Use raise module consistently.
55902         * modules/fatal-signal (Depends-on): Add raise.
55903         * modules/sigprocmask (Depends-on): Likewise.
55904         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
55905         * lib/sigprocmask.c (sigprocmask): Likewise.
55906         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55907         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
55908
55909         Fix compliance bug in sigpending.
55910         * lib/sigprocmask.c (sigpending): Return pending array via
55911         parameter, not return value.
55912
55913 2008-06-14  Eric Blake  <ebb9@byu.net>
55914
55915         Improve obstack-printf test code.
55916         * tests/test-obstack-printf.c (test_function): Fix comment, and
55917         simplify usage of obstack_* in macros.  Add a test for coverage.
55918         Reported by Bruno Haible.
55919
55920 2008-06-14  Bruno Haible  <bruno@clisp.org>
55921
55922         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
55923         array size as a constant, not as a const variable.
55924         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
55925         AC_USE_SYSTEM_EXTENSIONS.
55926         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
55927         Test whether the obstack_printf function actually exists.
55928         * modules/obstack-printf (Depends-on): Add extensions.
55929         (Include): Remove obstack.h.
55930         * modules/obstack-printf-posix (Depends-on): Add extensions.
55931         (Include): Remove obstack.h.
55932
55933 2008-06-13  Eric Blake  <ebb9@byu.net>
55934
55935         Add obstack-printf and obstack-printf-posix modules.
55936         * modules/obstack-printf: New file.
55937         * modules/obstack-printf-posix: Likewise.
55938         * MODULES.html.sh (Misc): Mention them.
55939         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
55940         Likewise.
55941         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
55942         Likewise.
55943         * modules/stdio (Makefile.am): Accomodate new modules.
55944         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55945         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
55946         Declare.
55947         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
55948         functions.
55949         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
55950         (gl_REPLACE_OBSTACK_PRINTF): New macros
55951         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
55952         * tests/test-obstack-printf.c: New file.
55953         * modules/obstack-printf-tests: Likewise.
55954         * modules/obstack-printf-posix-tests: Likewise.
55955
55956 2008-06-11  Bruno Haible  <bruno@clisp.org>
55957
55958         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
55959         * lib/open.c: Include errno.h.
55960         (open): Fail when attempting to write to a file that has a trailing
55961         slash.
55962         * tests/test-open.c (main): Test against trailing slash bug.
55963         * doc/posix-functions/open.texi: Mention the trailing slash bug.
55964
55965 2008-06-10  Bruno Haible  <bruno@clisp.org>
55966
55967         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
55968         for $? to work inside the trap command, with various /bin/sh-s.
55969         * tests/test-vc-list-files-cvs.sh: Likewise.
55970
55971 2008-06-10  Bruno Haible  <bruno@clisp.org>
55972
55973         * lib/acl-internal.h: Don't include gettext.h here.
55974         * lib/set-mode-acl.c: Include gettext.h here.
55975         * lib/copy-acl.c: Likewise.
55976
55977 2008-06-10  Bruno Haible  <bruno@clisp.org>
55978
55979         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
55980         * lib/wait-process.c (wait_subprocess): Likewise.
55981         * lib/execute.h (execute): Add termsigp argument.
55982         * lib/execute.c (execute): Likewise.
55983         * lib/csharpcomp.c (compile_csharp_using_pnet,
55984         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
55985         * lib/csharpexec.c (execute_csharp_using_pnet,
55986         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
55987         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
55988         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
55989         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
55990         is_jikes_present): Update.
55991         * lib/javaexec.c (execute_java_class): Update.
55992         * lib/javaversion.c (execute_and_read_line): Update.
55993         * NEWS: Document the changes.
55994         Reported by Eric Blake.
55995
55996 2008-06-10  Eric Blake  <ebb9@byu.net>
55997
55998         Add missing include.
55999         * tests/test-strstr.c (includes): Add <signal.h>.
56000         * tests/test-strcasestr.c (includes): Likewise.
56001         * tests/test-memmem.c (includes): Likewise.
56002
56003 2008-06-10  Bruno Haible  <bruno@clisp.org>
56004
56005         * lib/wait-process.c (wait_subprocess): Add an assertion.
56006
56007 2008-06-10  Bruno Haible  <bruno@clisp.org>
56008
56009         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
56010
56011 2008-06-10  Bruno Haible  <bruno@clisp.org>
56012
56013         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
56014         using alarm().
56015         * tests/test-strcasestr.c (main): Likewise.
56016         * tests/test-strstr.c (main): Likewise.
56017
56018 2008-06-09  Bruno Haible  <bruno@clisp.org>
56019
56020         Work around the Solaris 10 ACE ACLs ABI change.
56021         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
56022         declare if ACL_NO_TRIVIAL is present.
56023         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
56024         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
56025         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
56026         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
56027         define if ACL_NO_TRIVIAL is present.
56028         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
56029         and use the current ABI.
56030         (file_has_acl): Use same #if condition as elsewhere.
56031         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
56032         in use, and use the current ABI.
56033         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
56034         Reported by Jim Meyering.
56035
56036 2008-06-09  Eric Blake  <ebb9@byu.net>
56037
56038         Work around environments that (stupidly) ignore SIGALRM.
56039         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
56040         before using alarm().
56041         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56042         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56043         Reported by Ian Beckwith <ianb@erislabs.net>.
56044
56045         Produce autobuild blurb earlier in log.
56046         * modules/autobuild (configure.ac-early): Move AB_INIT here.
56047
56048 2008-06-09  Jim Meyering  <meyering@redhat.com>
56049         and OndÅ™ej Vašík  <ovasik@redhat.com>
56050
56051         utimens.c: correct kernel bug work-around
56052         OndÅ™ej Vašík found that the invalid return value of 280 indicates
56053         failure, not success, and the kernel bug we're trying to work
56054         around affects not just the utimensat call, but also the fallback
56055         futimens call.
56056         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
56057         not success.
56058         [HAVE_FUTIMENS]: Use the same work-around, here.
56059
56060 2008-06-09  Jim Meyering  <meyering@redhat.com>
56061
56062         add more guards around definition of ACE_-related code
56063         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
56064         ALLOW and ACE_OWNER are also defined.
56065
56066 2008-06-08  Bruno Haible  <bruno@clisp.org>
56067
56068         * lib/acl-internal.h: Add me as co-author.
56069         * lib/file-has-acl.c: Likewise.
56070         * lib/set-mode-acl.c: Likewise.
56071         * lib/copy-acl.c: Likewise.
56072
56073 2008-06-08  Bruno Haible  <bruno@clisp.org>
56074
56075         Add support for AIX ACLs.
56076         * lib/acl-internal.h (acl_nontrivial): New declaration.
56077         * lib/file-has-acl.c (acl_nontrivial): New function.
56078         (file_has_acl): Add implementation using AIX 4 ACL API.
56079         * lib/set-mode-acl.c (qset_acl): Likewise.
56080         * lib/copy-acl.c (qcopy_acl): Likewise.
56081
56082 2008-06-08  Bruno Haible  <bruno@clisp.org>
56083
56084         Add support for HP-UX ACLs.
56085         * lib/acl-internal.h (acl_nontrivial): New declaration.
56086         * lib/file-has-acl.c (acl_nontrivial): New function.
56087         (file_has_acl): Add implementation using HP-UX 11 ACL API.
56088         * lib/set-mode-acl.c (qset_acl): Likewise.
56089         * lib/copy-acl.c (qcopy_acl): Likewise.
56090
56091 2008-06-08  Bruno Haible  <bruno@clisp.org>
56092
56093         Add support for Cygwin ACLs.
56094         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
56095         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
56096         the chmod_or_fchmod call.
56097         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
56098
56099 2008-06-08  Bruno Haible  <bruno@clisp.org>
56100
56101         Fix bug with setuid modes in Solaris 10+ code.
56102         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
56103         succeeded, when the mode contains some special bits.
56104
56105 2008-06-08  Bruno Haible  <bruno@clisp.org>
56106
56107         Add support for Solaris 7..10 ACLs.
56108         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
56109         declarations.
56110         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
56111         functions.
56112         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
56113         * lib/set-mode-acl.c (qset_acl): Likewise.
56114         * lib/copy-acl.c (qcopy_acl): Likewise.
56115
56116 2008-06-08  Bruno Haible  <bruno@clisp.org>
56117
56118         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
56119         declaration.
56120         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
56121         (acl_access_nontrivial): Remove MacOS X case.
56122         (file_has_acl): Use acl_extended_nontrivial.
56123         * lib/copy-acl.c (qcopy_acl): Likewise.
56124
56125 2008-06-08  Bruno Haible  <bruno@clisp.org>
56126
56127         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
56128
56129 2008-06-08  Jim Meyering  <meyering@redhat.com>
56130
56131         * modules/acl (Maintainer): Add Bruno Haible.
56132
56133 2008-06-07  Bruno Haible  <bruno@clisp.org>
56134
56135         Improve support for Tru64 ACLs.
56136         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
56137         ACL on OSF/1.
56138
56139 2008-06-07  Bruno Haible  <bruno@clisp.org>
56140
56141         Add support for MacOS X ACLs.
56142         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
56143         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
56144         * lib/set-mode-acl.c (qset_acl): Likewise.
56145         * lib/copy-acl.c (qcopy_acl): Likewise.
56146
56147 2008-06-07  Bruno Haible  <bruno@clisp.org>
56148
56149         Fix memory leak introduced on 2008-05-22.
56150         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
56151         use.
56152
56153 2008-06-07  Bruno Haible  <bruno@clisp.org>
56154
56155         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
56156         to construct an empty ACL.
56157
56158 2008-06-07  Bruno Haible  <bruno@clisp.org>
56159
56160         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
56161         precisely.
56162         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
56163
56164 2008-06-07  Bruno Haible  <bruno@clisp.org>
56165
56166         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
56167         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
56168
56169 2008-06-07  Bruno Haible  <bruno@clisp.org>
56170
56171         * doc/posix-functions/_setjmp.texi: Explain the use of this function
56172         regardless of POSIX.
56173         * doc/posix-functions/_longjmp.texi: Likewise.
56174         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
56175         SystemV platform in this case.
56176
56177 2008-06-06  Eric Blake  <ebb9@byu.net>
56178
56179         Document abort() bugs.
56180         * doc/posix-functions/abort.texi (abort): Mention anomalies.
56181
56182         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
56183         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
56184         sigsetjmp.
56185         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
56186         siglongjmp, but only as a macro.
56187         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
56188         is obsolete.
56189         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
56190
56191         Tweak documentation to cover cygwin argz bugs.
56192         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
56193         argz bug fix; no code change needed since no cygwin releases
56194         occurred between the last fix and the bug being tested.
56195         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
56196         module and recently fixed cygwin bugs.
56197         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
56198         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
56199         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
56200         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
56201         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
56202         Likewise.
56203         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
56204         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
56205         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
56206         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
56207         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
56208         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
56209         Likewise.
56210
56211         Avoid gcc warning on cygwin.
56212         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
56213         !ACL_NO_TRIVIAL]: Avoid unused variable.
56214
56215 2008-06-05  Eric Blake  <ebb9@byu.net>
56216
56217         Be tolerant of UNKNOWN version in gnulib-tool test dir.
56218         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
56219         git-version-gen fails to come up with a version.
56220         Reported by Simon Josefsson.
56221
56222 2008-06-05  Jim Meyering  <meyering@redhat.com>
56223             Paul Eggert  <eggert@cs.ucla.edu>
56224
56225         utimens.c: work around a probable Linux kernel bug
56226         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
56227         appears to be a kernel bug that causes utimensat to return 280
56228         instead of 0, indicating success.
56229
56230 2008-06-04  Bruno Haible  <bruno@clisp.org>
56231
56232         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
56233         2008-06-01 commit.
56234
56235 2008-06-04  Bruno Haible  <bruno@clisp.org>
56236
56237         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
56238         * lib/file-has-acl.c (acl_access_nontrivial): New function.
56239         (file_has_acl): Use it. Save errno afterwards.
56240         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
56241
56242 2008-06-03  Bruno Haible  <bruno@clisp.org>
56243
56244         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
56245         draft code. Simplify #ifs.
56246         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
56247         Put Solaris code after POSIX-draft code. Fix comments regarding
56248         Solaris 10, HP-UX. Mention Cygwin.
56249         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
56250
56251 2008-06-03  Eric Blake  <ebb9@byu.net>
56252
56253         Provide fallback for older kernels.
56254         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
56255         Provide runtime fallback if kernel lacks support.
56256         Reported by Mike Frysinger.
56257
56258 2008-06-02  Bruno Haible  <bruno@clisp.org>
56259
56260         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
56261         it exists.
56262
56263 2008-06-02  Bruno Haible  <bruno@clisp.org>
56264
56265         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
56266         * lib/copy-acl.c (qcopy_acl): Update comment.
56267
56268 2008-06-02  Bruno Haible  <bruno@clisp.org>
56269
56270         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
56271         like ACL APIs.
56272
56273 2008-06-02  Bruno Haible  <bruno@clisp.org>
56274
56275         * tests/test-file-has-acl.sh: Use different code for Cygwin.
56276         * tests/test-set-mode-acl.sh: Likewise.
56277         * tests/test-copy-acl.sh: Likewise.
56278         * tests/test-copy-file.sh: Likewise.
56279
56280 2008-06-02  Bruno Haible  <bruno@clisp.org>
56281
56282         * tests/test-file-has-acl.sh: Remove unused code.
56283
56284 2008-06-01  Bruno Haible  <bruno@clisp.org>
56285
56286         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
56287         (copy_acl): Just a wrapper around qcopy_acl that emits the error
56288         messages.
56289         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
56290
56291 2008-06-01  Bruno Haible  <bruno@clisp.org>
56292
56293         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
56294         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
56295         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
56296         APIs.
56297         * modules/acl-tests (configure.ac): Remove tests now contained in
56298         m4/acl.m4.
56299
56300 2008-06-02  Jim Meyering  <meyering@redhat.com>
56301
56302         announce-gen: use a better key-server host name
56303         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
56304         it may be more consistently reliable.  Suggested by Werner Koch
56305         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
56306
56307 2008-06-01  Bruno Haible  <bruno@clisp.org>
56308
56309         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
56310         Reported by Voroskoi Andras <voroskoi@gmail.com>.
56311
56312 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
56313
56314         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
56315
56316 2008-06-01  Bruno Haible  <bruno@clisp.org>
56317
56318         New ACL tests.
56319         * tests/test-file-has-acl.sh: New file.
56320         * tests/test-file-has-acl.c: New file.
56321         * tests/test-set-mode-acl.sh: New file.
56322         * tests/test-set-mode-acl.c: New file.
56323         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
56324         * tests/test-copy-acl.c: New file.
56325         * modules/acl-tests: New file, based on modules/copy-file-tests.
56326         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
56327         (Depends-on): Add acl-tests.
56328         (configure.ac): Remove checks.
56329         (Makefile.am): Don't create test-sameacls program here any more.
56330
56331 2008-06-01  Bruno Haible  <bruno@clisp.org>
56332
56333         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
56334         * tests/test-sameacls.c: Include progname.h.
56335         (main): Invoke set_program_name. Portability fixes for MacOS X,
56336         Solaris, HP-UX.
56337
56338 2008-06-01  Bruno Haible  <bruno@clisp.org>
56339
56340         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
56341         function.
56342         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
56343
56344 2008-06-01  Bruno Haible  <bruno@clisp.org>
56345
56346         * modules/rpmatch (Depends-on): Add strdup.
56347
56348 2008-06-01  Bruno Haible  <bruno@clisp.org>
56349
56350         * lib/pipe.c: Include unistd-safer.h.
56351         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
56352         * modules/pipe (Depends-on): Add unistd-safer.
56353
56354 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56355
56356         * modules/autobuild (configure.ac): Call AB_INIT.
56357
56358 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56359
56360         * tests/test-getaddrinfo.c: Don't print debug messages by default.
56361         Suggested by Bruno Haible <bruno@clisp.org>.
56362
56363 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56364
56365         * tests/test-base64.c: Cast size_t to unsigned long when invoking
56366         printf.  Use %lu instead of %d.  Reported by Bruno Haible
56367         <bruno@clisp.org>.
56368
56369 2008-05-29  Eric Blake  <ebb9@byu.net>
56370
56371         Prefer new POSIX 200x interfaces over futimesat.
56372         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
56373         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
56374         when available.
56375         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
56376
56377 2008-05-28  Bruno Haible  <bruno@clisp.org>
56378
56379         * modules/stpcpy (License): Change to LGPLv2+.
56380         Requested by David Lutterkort <dlutter@redhat.com>.
56381
56382 2008-05-27  Bruno Haible  <bruno@clisp.org>
56383
56384         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
56385         current mingw.
56386         Reported by Jose E. Marchesi <jemarch@gnu.org>.
56387
56388 2008-05-27  Bruno Haible  <bruno@clisp.org>
56389
56390         * modules/iconv_open (Link): New section, from module 'iconv'.
56391         * modules/striconv (Link): Likewise.
56392         * modules/striconveh (Link): Likewise.
56393         * modules/xstriconv (Link): Likewise.
56394         * modules/unicodeio (Link): Likewise.
56395         * modules/propername (Link): Likewise.
56396         Reported by Jim Meyering.
56397
56398 2008-05-26  Jim Meyering  <meyering@redhat.com>
56399
56400         sha256: do not artificially restrict buffer length to be < 2^32
56401         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
56402         uint32_t to size_t.
56403         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
56404         to match.
56405
56406         avoid unaligned access errors, e.g., on sparc
56407         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
56408         direct access through a possibly-unaligned uint64* pointer.
56409         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
56410         direct access through a possibly-unaligned uint32* pointer.
56411         Prompted by this patch from Tom "spot" Callaway:
56412         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
56413
56414         sha512.c: fix typo in comment
56415         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
56416
56417 2008-05-25  Bruno Haible  <bruno@clisp.org>
56418
56419         * lib/set-mode-acl.c: Renamed from lib/acl.c.
56420         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
56421         (Makefile.am): Update lib_SOURCES.
56422
56423 2008-05-25  Bruno Haible  <bruno@clisp.org>
56424
56425         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
56426
56427 2008-05-25  Jim Meyering  <meyering@redhat.com>
56428
56429         useless-if-before-free: freed expr may have white-space differences
56430         * build-aux/useless-if-before-free: Recognize cases in which the
56431         freed expression differs from the tested one in embedded white
56432         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
56433         $1 was used, so we can't make any regexp shy.  Improved tests now
56434         detect this.
56435
56436         useless-if-before-free: accept white space in the expression.
56437         * build-aux/useless-if-before-free: For now, any white space
56438         in the expression must be identical in the free argument.
56439
56440         useless-if-before-free: efficiency tweak
56441         * build-aux/useless-if-before-free: Make the expression-matching
56442         regexp "shy".
56443         Make the *outer* regexp shy, not the expr-matching one.
56444
56445         update code-in-comment to accept cast of free arg
56446         * build-aux/useless-if-before-free: Update regexp.
56447
56448 2008-05-25  Bruno Haible  <bruno@clisp.org>
56449
56450         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
56451         * modules/copy-file-tests (Files, Makefile.am): Update.
56452         * tests/test-copy-file.c (func_test_copy): Update.
56453
56454 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
56455
56456         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
56457
56458 2008-05-23  Bruno Haible  <bruno@clisp.org>
56459
56460         Improve support for ACLs on OSF/1.
56461         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
56462         Remove fallback for unknown flavors of ACLs.
56463
56464 2008-05-22  Bruno Haible  <bruno@clisp.org>
56465
56466         Add support for ACLs on OSF/1.
56467         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
56468         replacements.
56469         (acl_free_text): New macro fallback.
56470         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
56471         acl_free.
56472         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
56473         acl_free_text function. Require AC_C_INLINE.
56474
56475 2008-05-22  Bruno Haible  <bruno@clisp.org>
56476
56477         Make copy_acl work on MacOS X 10.5.
56478         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
56479         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
56480         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
56481         If MODE_INSIDE_ACL, don't assume that every system has the same text
56482         representation for ACLs as FreeBSD.
56483         * lib/copy-acl.c (copy_acl): Add support for platforms with
56484         !MODE_INSIDE_ACL.
56485         * lib/file-has-acl.c (file_has_acl): Likewise.
56486         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
56487         FreeBSD, MacOS X, or IRIX, respectively.
56488
56489 2008-05-22  Bruno Haible  <bruno@clisp.org>
56490
56491         * lib/acl.h: Don't include <sys/acl.h>.
56492         (GETACLCNT): Move fallback to lib/acl-internal.h.
56493         * lib/acl-internal.h: Include <sys/acl.h> here.
56494         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
56495
56496 2008-05-22  Bruno Haible  <bruno@clisp.org>
56497
56498         Split off copy_acl function to separate file.
56499         * lib/copy-acl.c: New file, extracted from lib/acl.c.
56500         * lib/acl.c (copy_acl): Moved function to separate file.
56501         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
56502         * modules/acl (Files): Add lib/copy-acl.c.
56503         (Makefiles.am): Augment lib_SOURCES.
56504
56505 2008-05-22  Bruno Haible  <bruno@clisp.org>
56506
56507         * modules/copy-file-tests: New file.
56508         * tests/test-copy-file.sh: New file.
56509         * tests/test-copy-file.c: New file.
56510         * tests/test-copy-file-sameacls.c: New file.
56511
56512 2008-05-22  Eric Blake  <ebb9@byu.net>
56513
56514         Avoid gcc warning.
56515         * tests/test-memcmp.c (main): Pass NULL indirectly.
56516
56517 2008-05-21  Bruno Haible  <bruno@clisp.org>
56518
56519         Add reference doc about ACLs.
56520         * doc/acl-resources.txt: New file.
56521         * doc/acl-cygwin.txt: New file.
56522
56523 2008-05-21  Bruno Haible  <bruno@clisp.org>
56524
56525         Avoid one more warning from gcc.
56526         * lib/vasnprintf.c (IF_LINT): Update comments.
56527         (VASNPRINTF): Use it also for the 'prefix' array initializer.
56528
56529 2008-05-21  Jim Meyering  <meyering@redhat.com>
56530
56531         avoid a warning from gcc
56532         * lib/vasnprintf.c (IF_LINT): Define.
56533         (scale10_round_decimal_long_double):
56534         Use it to avoid a "may be used uninitialized" warning.
56535         (scale10_round_decimal_double): Likewise.
56536
56537 2008-05-21  Simon Josefsson  <simon@josefsson.org>
56538
56539         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
56540         declared.
56541
56542 2008-05-20  Bruno Haible  <bruno@clisp.org>
56543
56544         * tests/test-memcmp.c (main): Test also the sign of the result. Test
56545         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
56546
56547 2008-05-20  Simon Josefsson  <simon@josefsson.org>
56548
56549         * modules/memcmp-tests: New file.
56550         * tests/test-memcmp.c: New file.
56551
56552 2008-05-19  Bruno Haible  <bruno@clisp.org>
56553
56554         * modules/propername (Notice, configure.ac): Put quoted "..." into
56555         --keyword option.
56556         * lib/propername.h: Update comments accordingly.
56557         Reported by Eric Blake.
56558
56559 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
56560
56561         * modules/getpass-gnu (Depends-on): Add fseeko.
56562
56563 2008-05-19  Simon Josefsson  <simon@josefsson.org>
56564
56565         * modules/base64-tests: New file.
56566
56567 2008-05-19  Bo Borgerson <gigabo@gmail.com>
56568
56569         * lib/base64.c (base64_decode_ctx): If a decode context structure
56570         was passed in use it to ignore newlines.  If a context structure
56571         was _not_ passed in, continue to treat newlines as garbage (this
56572         is the historical behavior).  Formerly base64_decode.
56573         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
56574         takes a decode context structure.
56575         * lib/base64.h (base64_decode): Macro for four-argument calls.
56576         (base64_decode_alloc): Likewise.
56577         * lib/base64.c (base64_decode_ctx): If a decode context structure
56578         was passed in use it to ignore newlines.  If a context structure
56579         was _not_ passed in, continue to treat newlines as garbage (this
56580         is the historical behavior).  Formerly base64_decode.
56581         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
56582         takes a decode context structure.
56583         * lib/base64.h (base64_decode): Macro for four-argument calls.
56584         (base64_decode_alloc): Likewise.
56585
56586 2008-05-19  Jim Meyering  <meyering@redhat.com>
56587
56588         avoid a warning from gcc
56589         * lib/trim.c (IF_LINT): Define.
56590         (trim2): Use it to avoid a "may be used uninitialized" warning.
56591
56592         Fix doc typo.
56593         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
56594
56595 2008-05-19  Bruno Haible  <bruno@clisp.org>
56596
56597         * doc/glibc-functions/getpass.texi: Document limits of other
56598         implementations.
56599
56600 2008-05-19  Simon Josefsson  <simon@josefsson.org>
56601             Bruno Haible <bruno@clisp.org>
56602
56603         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
56604
56605 2008-05-18  Bruno Haible  <bruno@clisp.org>
56606
56607         * modules/propername: New file, from GNU gettext.
56608         * lib/propername.h: New file, from GNU gettext.
56609         * lib/propername.c: New file, from GNU gettext.
56610         * MODULES.html.sh (Internationalization functions): Add propername.
56611
56612 2008-05-16  Jim Meyering  <meyering@redhat.com>
56613             Bruno Haible  <bruno@clisp.org>
56614
56615         Avoid some warnings from "gcc -Wshadow".
56616         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
56617
56618 2008-05-15  Eric Blake  <ebb9@byu.net>
56619
56620         Extend previous patch to cygwin 1.7.0.
56621         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
56622         fast implementation in cygwin >= 1.7.0.
56623         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56624         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56625
56626 2008-05-15  Bruno Haible  <bruno@clisp.org>
56627
56628         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
56629         implementation in glibc >= 2.9.
56630         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56631         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56632
56633 2008-05-15  Bruno Haible  <bruno@clisp.org>
56634
56635         * MODULES.html.sh (Internationalization functions): Remove linebreak.
56636         (Unicode string functions): Add unilbrk/*.
56637         Reported by Karl Berry.
56638
56639 2008-05-15  Eric Blake  <ebb9@byu.net>
56640
56641         Fix violation of <stdbool.h> replacement in regex.
56642         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
56643         * lib/regexec.c (re_search_internal): Likewise.
56644         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
56645
56646 2008-05-15  Jim Meyering  <meyering@redhat.com>
56647
56648         avoid distracting test output when git or cvs is not found
56649         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
56650         * tests/test-vc-list-files-git.sh: Likewise.
56651
56652 2008-05-15  Eric Blake  <ebb9@byu.net>
56653
56654         Glibc finally accepted the memmem speedup code, bugzilla #5514.
56655         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
56656         glibc version.
56657         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
56658         * doc/posix-functions/strstr.texi (strstr): Likewise.
56659         * lib/str-two-way.h (MAX): Sychronize with glibc.
56660
56661 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
56662
56663         * lib/regcomp.c (optimize_utf8): Add a note on why we test
56664         opr.ctx_type.
56665         (calc_first): Initialize constraint field.
56666         (duplicate_node_closure): Use it instead of special casing ANCHORS.
56667         Fix grammar.
56668         (duplicate_node): Merge constraint field for all node types.
56669         (calc_eclosure_iter): Look at constraint field for all node types.
56670         * lib/regex_internal.c (create_cd_newstate): Don't look at
56671         opr.ctx_type.
56672
56673 2008-05-14  Bruno Haible  <bruno@clisp.org>
56674
56675         Help GCC to do better code generation.
56676         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
56677         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
56678         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
56679         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
56680         Declare with attribute 'malloc' if supported.
56681
56682 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
56683
56684         use "echo STR|wc -c" rather than unportable "expr length STR"
56685         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
56686         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
56687
56688 2008-05-14  Jim Meyering  <meyering@redhat.com>
56689
56690         use dd ibs=$n count=1 ... rather than less-portable head -c$n
56691         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
56692         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
56693         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
56694         via Collin Lasse.
56695
56696 2008-05-14  Eric Blake  <ebb9@byu.net>
56697
56698         Avoid quadratic growth in gl_LIBSOURCES.
56699         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
56700         Suggested by Bruno Haible.
56701
56702         Test xmemdup0.
56703         * modules/xmemdup0-tests: New file.
56704         * tests/test-xmemdup0.c: Likewise.
56705
56706 2008-05-13  Eric Blake  <ebb9@byu.net>
56707
56708         Split xmemdup0 into its own module.
56709         * modules/xmemdup0: New file.
56710         * lib/xmemdup0.h: Likewise.
56711         * lib/xmemdup0.c: Likewise.
56712         * MODULES.html.sh (Memory management functions): Add xmemdup0.
56713         * lib/xalloc.h (xmemdup0): Remove.
56714         * lib/xmalloc.c (xmemdup0): Likewise.
56715
56716 2008-05-13  Eric Blake  <ebb9@byu.net>
56717             Bruno Haible  <bruno@clisp.org>
56718
56719         Reduce number of forks required during autoconf.
56720         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
56721         and gl_LIBSOURCES_DIR.
56722         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
56723         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
56724         m4_syscmd per file.
56725         <m4_foreach_w>: Move...
56726         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
56727
56728 2008-05-13  Eric Blake  <ebb9@byu.net>
56729
56730         * gnulib-tool: Fix various comment typos.
56731
56732 2008-05-12  Bruno Haible  <bruno@clisp.org>
56733
56734         Tailor the linebreaking algorithm.
56735         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
56736
56737 2008-05-12  Bruno Haible  <bruno@clisp.org>
56738
56739         Update to Unicode 5.0.0.
56740         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56741         LBP_JV, LBP_JT. Redistribute values.
56742         (unilbrk_table): Change size.
56743         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
56744         Unicode TR#14 rev. 22.
56745         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56746         LBP_JV, LBP_JT. Redistribute values.
56747         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
56748         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
56749         Update.
56750         * lib/unilbrk/lbrkprop1.h: Regenerated.
56751         * lib/unilbrk/lbrkprop2.h: Regenerated.
56752         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
56753         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
56754         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
56755         Likewise.
56756         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
56757         Likewise.
56758         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
56759         result.
56760         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
56761         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
56762         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
56763         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
56764         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
56765         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
56766
56767 2008-05-11  Bruno Haible  <bruno@clisp.org>
56768
56769         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
56770
56771 2008-05-11  Bruno Haible  <bruno@clisp.org>
56772
56773         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
56774         * modules/unilbrk/gen-lbrk: New file.
56775
56776 2008-05-11  Bruno Haible  <bruno@clisp.org>
56777
56778         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
56779         * m4/sha512.m4 (gl_SHA512): Likewise.
56780
56781 2008-05-11  Jim Meyering  <meyering@redhat.com>
56782
56783         New modules: crypto/sha256, crypto/sha512 (from coreutils)
56784         * modules/crypto/sha256: New file.
56785         * modules/crypto/sha512: Likewise.
56786         * lib/sha256.c: Likewise.
56787         * lib/sha256.h: Likewise.
56788         * lib/sha512.c: Likewise.
56789         * lib/sha512.h: Likewise.
56790         * lib/u64.h: Likewise.
56791         * m4/sha256.m4: Likewise.
56792         * m4/sha512.m4: Likewise.
56793         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
56794
56795 2008-05-10  Bruno Haible  <bruno@clisp.org>
56796
56797         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
56798         (Input/Output <stdio.h>): Add xprintf.
56799         (Signal handling <signal.h>): Add strsignal.
56800         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
56801         (Core language properties): Add func.
56802         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
56803         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
56804         strings.
56805         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
56806         (Input/output): New section.
56807         (File system functions): Add openat-die, stat-macros.
56808         (Networking functions): Add sockets.
56809         (Unicode string functions): Add unictype/*.
56810         (Support for building libraries and executables): Add gperf.
56811         (Support for building documentation): Add agpl-3.0.
56812         (Misc): Add nocrash.
56813
56814 2008-05-10  Bruno Haible  <bruno@clisp.org>
56815
56816         * modules/unictype/gen-ctype: New file.
56817
56818 2008-05-10  Jim Meyering  <meyering@redhat.com>
56819
56820         Make chdir-safer.c more efficient on a system with no symlinks.
56821         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
56822         also if ELOOP is zero.  Suggested by Bruno Haible.
56823
56824         Make chdir-safer.c slightly safer.
56825         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
56826         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
56827
56828         Avoid compile failure on systems without ELOOP (like mingw).
56829         * lib/chdir-safer.c (ELOOP): Define if not already defined.
56830         Reported by Bruno Haible.
56831
56832 2008-05-10  Bruno Haible  <bruno@clisp.org>
56833
56834         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
56835         (is_utf8_encoding): Use a case-insensitive comparison.
56836         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
56837         streq.
56838
56839 2008-05-10  Bruno Haible  <bruno@clisp.org>
56840
56841         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
56842         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
56843         * lib/unilbrk/ulc-common.h (iconv_string_length,
56844         iconv_string_keeping_offsets): Remove declarations.
56845         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
56846         Don't include <iconv.h>, streq.h, xsize.h.
56847         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
56848         conversion.
56849         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
56850         <iconv.h>, streq.h, xsize.h.
56851         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
56852         conversion.
56853         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
56854         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
56855         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
56856         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
56857
56858 2008-05-10  Bruno Haible  <bruno@clisp.org>
56859
56860         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
56861         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
56862
56863         * modules/unilbrk/u32-width-linebreaks-tests: New file.
56864         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
56865
56866         * modules/unilbrk/u16-width-linebreaks-tests: New file.
56867         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
56868
56869         * modules/unilbrk/u8-width-linebreaks-tests: New file.
56870         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
56871
56872         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
56873         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
56874
56875         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
56876         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
56877
56878         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
56879         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
56880
56881         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
56882         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
56883
56884 2008-05-10  Bruno Haible  <bruno@clisp.org>
56885
56886         Split up 'linebreak' module.
56887         * lib/unilbrk.h: New file, based on lib/linebreak.h.
56888         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
56889         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
56890         modifications.
56891         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
56892         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
56893         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
56894         lib/linebreak.c.
56895         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
56896         lib/linebreak.c.
56897         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
56898         lib/linebreak.c.
56899         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
56900         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
56901         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
56902         lib/linebreak.c.
56903         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
56904         lib/linebreak.c.
56905         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
56906         lib/linebreak.c.
56907         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
56908         lib/linebreak.c.
56909         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
56910         lib/linebreak.c.
56911         * modules/unilbrk/base: New file.
56912         * modules/unilbrk/tables: New file.
56913         * modules/unilbrk/u8-possible-linebreaks: New file.
56914         * modules/unilbrk/u16-possible-linebreaks: New file.
56915         * modules/unilbrk/u32-possible-linebreaks: New file.
56916         * modules/unilbrk/ulc-common: New file.
56917         * modules/unilbrk/ulc-possible-linebreaks: New file.
56918         * modules/unilbrk/u8-width-linebreaks: New file.
56919         * modules/unilbrk/u16-width-linebreaks: New file.
56920         * modules/unilbrk/u32-width-linebreaks: New file.
56921         * modules/unilbrk/ulc-width-linebreaks: New file.
56922         * lib/linebreak.h: Remove file.
56923         * lib/linebreak.c: Remove file.
56924         * m4/linebreak.m4: Remove file.
56925         * modules/linebreak: Remove file.
56926         * NEWS: Mention the changes.
56927
56928 2008-05-09  Eric Blake  <ebb9@byu.net>
56929
56930         Add xmemdup0.
56931         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
56932         implementation.
56933         * lib/xmalloc.c (xmemdup0): New C implementation.
56934
56935 2008-05-08  Bruno Haible  <bruno@clisp.org>
56936
56937         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
56938
56939 2008-05-07  Eric Blake  <ebb9@byu.net>
56940
56941         Support cross-compilation of <wctype.h>.
56942         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
56943         AC_CACHE_CHECK.
56944
56945 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
56946
56947         * build-aux/vc-list-files: Add support for bzr.
56948
56949 2008-05-03  Jim Meyering  <meyering@redhat.com>
56950
56951         avoid failed assertion with tight malloc
56952         * tests/test-getndelim2.c: Correct an off-by-one assertion.
56953
56954 2008-05-03  Simon Josefsson  <simon@josefsson.org>
56955
56956         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
56957         are needed from arpa/inet.h.
56958         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
56959         Reported by Bruno Haible.
56960
56961 2008-05-02  Jim Meyering  <meyering@redhat.com>
56962
56963         avoid compilation error on FreeBSD 6
56964         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
56965
56966 2008-05-01  Jim Meyering  <meyering@redhat.com>
56967
56968         useless-if-before-free: correct --help's exit status description
56969         * build-aux/useless-if-before-free (usage): Like grep, exit 0
56970         for one or more matches, etc.  Reported by Bruno Haible.
56971
56972         vc-list-files: make the stand-alone gnulib test work
56973         * modules/vc-list-files-tests (configure.ac):
56974         Define and AC_SUBST abs_aux_dir.
56975         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
56976         $(abs_top_srcdir) to each script and having each of them
56977         duplicate the work of setting PATH, set PATH here, using
56978         the new variable, abs_aux_dir instead.
56979         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
56980         * tests/test-vc-list-files-git.sh: Likewise.
56981         Reported by Bruno Haible.
56982
56983 2008-05-01  Bruno Haible  <bruno@clisp.org>
56984
56985         * lib/getndelim2.c (getndelim2): Fix newsize computation during
56986         reallocation. Rename 'done' to 'found_delimiter'.
56987
56988 2008-05-01  Jim Meyering  <meyering@redhat.com>
56989
56990         vc-list-files: accommodate /bin/sh like the one from Solaris 10
56991         * build-aux/vc-list-files: Use `...`, not $(...).
56992
56993 2008-04-30  Jim Meyering  <meyering@redhat.com>
56994
56995         add tests for vc-list-files
56996         * modules/vc-list-files-tests: New module.
56997         * tests/test-vc-list-files-cvs.sh: New file.
56998         * tests/test-vc-list-files-git.sh: New file.
56999
57000         avoid a warning from gcc
57001         * lib/getndelim2.c (IF_LINT): Define.
57002         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
57003
57004         vc-list-files: work properly with build-aux/cvsu, too
57005         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
57006         to all cvs-based clauses.
57007
57008         vc-list-files: work properly in the CVS+awk case, too
57009         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
57010
57011         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
57012         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
57013         take more than one file argument, so .  Add quotes, just in case $dir
57014         ever contains a shell meta-character.  Prompted by Soren Hansen in
57015         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
57016
57017 2008-04-29  Eric Blake  <ebb9@byu.net>
57018
57019         Optimize getndelim2 to use block operations when possible.
57020         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
57021         freadseek, and memchr2.
57022         * lib/getndelim2.c (getndelim2): Use them for block reads.
57023
57024 2008-04-29  Bruno Haible  <bruno@clisp.org>
57025
57026         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
57027         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57028         * modules/inet_ntop (Depends-on): Add extensions.
57029         * modules/inet_pton (Depends-on): Likewise.
57030         Reported by Simon Josefsson.
57031
57032 2008-04-29  Jim Meyering  <meyering@redhat.com>
57033
57034         When the is more than one match in a block, match all of them.
57035         * build-aux/useless-if-before-free: Iterate through each block
57036         until there are no more matches.
57037
57038         Fix broken useless-if-before-free script.
57039         * build-aux/useless-if-before-free: Fix typo: missing "?" after
57040         the expression to match cast of argument to free-like function.
57041
57042 2008-04-29  Eric Blake  <ebb9@byu.net>
57043
57044         Use new header.
57045         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
57046
57047 2008-04-29  Jim Meyering  <meyering@redhat.com>
57048
57049         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
57050         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
57051         by gnulib to exist and to declare e.g., inet_ntop.
57052         Don't include "inet_ntop.h", now removed.
57053
57054         * m4/arpa_inet_h.m4: Remove trailing blanks.
57055
57056 2008-04-29  Eric Blake  <ebb9@byu.net>
57057
57058         Silence valgrind on safe reads beyond potential array bounds.
57059         * lib/rawmemchr.valgrind: New file.
57060         * lib/strchrnul.valgrind: Likewise.
57061         * modules/rawmemchr (Files): Distribute new file.
57062         * modules/strchrnul (Files): Likewise.
57063         Suggested by Bruno Haible.
57064
57065 2008-04-29  Bruno Haible  <bruno@clisp.org>
57066
57067         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
57068         (inet_ntop, inet_pton): Change portability warning's wording.
57069         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
57070         Invoke gl_CHECK_NEXT_HEADERS.
57071         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
57072         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
57073         set ARPA_INET_H.
57074         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57075         * modules/arpa_inet (Description): No longer only for systems that
57076         lack it.
57077         (Depends-on): Add include_next.
57078         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
57079         HAVE_ARPA_INET_H.
57080
57081 2008-04-29  Jim Meyering  <meyering@redhat.com>
57082
57083         * modules/mkdir (License): Re-license as LGPLv2+.
57084
57085 2008-04-29  Bruno Haible  <bruno@clisp.org>
57086
57087         * modules/rawmemchr (Maintainer): Set to Eric.
57088         * modules/strchrnul (Maintainer): Likewise.
57089
57090 2008-04-29  Simon Josefsson  <simon@josefsson.org>
57091
57092         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
57093         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
57094
57095         * modules/arpa_inet (arpa/inet.h): Use them.
57096
57097 2008-04-28  Eric Blake  <ebb9@byu.net>
57098
57099         Test getndelim2.
57100         * modules/getndelim2-tests: New file.
57101         * tests/test-getndelim2.c: Likewise.
57102         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
57103         stream.
57104         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
57105
57106         * MODULES.html.sh: Document new module.
57107
57108 2008-04-20  Bruno Haible  <bruno@clisp.org>
57109
57110         * lib/c-stack.c (die): Use raise.
57111         * modules/c-stack (Depends-on): Add raise.
57112
57113 2008-04-28  Bruno Haible  <bruno@clisp.org>
57114
57115         Expect rpmatch to be declared.
57116         * lib/yesno.c (rpmatch): Remove declaration.
57117
57118         Declare rpmatch.
57119         * lib/stdlib.in.h (rpmatch): New declaration.
57120         * lib/rpmatch.c: Include <stdlib.h> first.
57121         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
57122         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
57123         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
57124         HAVE_RPMATCH.
57125         * modules/rpmatch (Depends-on): Add stdlib, extensions.
57126         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57127         (Include): Set to <stdlib.h>.
57128         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
57129         HAVE_RPMATCH.
57130         * NEWS: Document the change.
57131
57132 2008-04-28  Bruno Haible  <bruno@clisp.org>
57133
57134         Change rpmatch to use nl_langinfo when appropriate.
57135         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
57136         (N_): New macro.
57137         (localized_pattern): New function/macro.
57138         (try): Remove match, nomatch arguments. Copy the pattern into safe
57139         memory before caching it.
57140         (rpmatch): Use localized_pattern. Add translator comments.
57141         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
57142         Suggested by Eric Blake.
57143         * modules/rpmatch (Depends-on): Add stdbool.
57144
57145 2008-04-28  Eric Blake  <ebb9@byu.net>
57146
57147         Add rawmemchr module, matching glibc.
57148         * modules/string (Makefile.am): New indicator.
57149         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
57150         * lib/string.in.h (rawmemchr): Declare when appropriate.
57151         * modules/rawmemchr: New file.
57152         * m4/rawmemchr.m4: Likewise.
57153         * lib/rawmemchr.c: Likewise.
57154         * modules/rawmemchr-tests: Likewise.
57155         * tests/test-rawmemchr.c: Likewise.
57156         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
57157         module.
57158         * modules/strchrnul (Depends-on): Add rawmemchr.
57159         * lib/strchrnul.c (strchrnul): Optimize a corner case.
57160
57161         Whitespace cleanup.
57162         * tests/test-strchrnul.c: Reindent.
57163         * lib/strchrnul.c: Likewise.
57164
57165         Optimize and test strchrnul.
57166         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
57167         * modules/strchrnul-tests: New file.
57168         * tests/test-strchrnul.c: Likewise.
57169
57170         Remove intprops dependency.
57171         * modules/memchr (Depends-on): Remove intprops.
57172         * modules/memrchr (Depends-on): Likewise.
57173         * modules/memchr2 (Depends-on): Likewise.
57174         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
57175         * lib/memrchr.c (__memrchr): Likewise.
57176         * lib/memrchr2.c (memchr2): Likewise.
57177         Reported by Simon Josefsson.
57178
57179 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57180
57181         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
57182         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57183
57184 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57185
57186         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
57187
57188         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
57189
57190         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
57191
57192         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
57193         declarations.
57194         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
57195
57196         * m4/inet_pton.m4: Don't check for header files.
57197
57198         * m4/inet_ntop.m4: Don't check for header files.
57199
57200 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57201
57202         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
57203         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
57204         trigger for cygwin).
57205         Reported by Bruno Haible  <bruno@clisp.org>.
57206
57207 2008-04-28  Bruno Haible  <bruno@clisp.org>
57208
57209         * doc/posix-functions/strdup.texi: Mention mingw problem.
57210
57211 2008-04-27  Bruno Haible  <bruno@clisp.org>
57212
57213         * modules/stat-time-tests (Depends-on): Add sleep.
57214         * tests/test-stat-time.c (force_unlink): New function.
57215         (cleanup): Use it.
57216         (test_mtime): Remove the ctime related tests.
57217         (test_ctime): New function, containing the ctime related tests.
57218         (main): Call test_ctime, except on native Windows platforms.
57219
57220 2008-04-27  Bruno Haible  <bruno@clisp.org>
57221
57222         * lib/rpmatch.c (rpmatch): Add some comments.
57223         Reported by James Youngman <jay@gnu.org>.
57224
57225 2008-04-27  Bruno Haible  <bruno@clisp.org>
57226
57227         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
57228         quiet NaNs.
57229
57230 2008-04-27  Bruno Haible  <bruno@clisp.org>
57231
57232         Make test-yesno.sh work on mingw.
57233         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
57234         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
57235         (main): Set stdin to binary mode.
57236         * modules/yesno-tests (Depends-on): Add binary-io.
57237
57238 2008-04-27  Bruno Haible  <bruno@clisp.org>
57239
57240         Fix 'isfinite' on x86, x86_64, ia64 platforms.
57241         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
57242         argument that lie outside the IEEE 854 domain.
57243         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
57244         (gl_ISFINITE): Use it.
57245         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
57246
57247 2008-04-27  Bruno Haible  <bruno@clisp.org>
57248
57249         Allow local renaming in config.h.
57250         * lib/memrchr.c (memrchr): Don't undefine outside libc.
57251
57252 2008-04-27  Bruno Haible  <bruno@clisp.org>
57253
57254         * lib/memchr.c (__memchr): Change type of 'i'.
57255         * lib/memchr2.c (memchr2): Likewise.
57256
57257 2008-04-26  Eric Blake  <ebb9@byu.net>
57258         and Bruno Haible  <bruno@clisp.org>
57259
57260         Optimize and test memrchr.
57261         * modules/memrchr (Depends-on): Add intprops.
57262         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
57263         * modules/memrchr-tests: New file.
57264         * tests/test-memrchr.c: New file.
57265
57266 2008-04-26  Bruno Haible  <bruno@clisp.org>
57267
57268         Add tentative support for DragonFly BSD.
57269         * lib/stdio-impl.h: Add macros for DragonFly BSD.
57270         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
57271         fp.
57272         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
57273         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
57274         * lib/fpurge.c (fpurge): Likewise.
57275         * lib/freadable.c (freaadable): Likewise.
57276         * lib/freadahead.c (freadahead): Likewise.
57277         * lib/freading.c (freading): Likewise.
57278         * lib/freadptr.c (freadptr): Likewise.
57279         * lib/freadseek.c (freadptrinc): Likewise.
57280         * lib/fseeko.c (fseeko): Likewise.
57281         * lib/fseterr.c (fseterr): Likewise.
57282         * lib/fwritable.c (fwritable): Likewise.
57283         * lib/fwriting.c (fwriting): Likewise.
57284
57285 2008-04-26  Bruno Haible  <bruno@clisp.org>
57286
57287         * lib/stdio-impl.h: New file.
57288         * lib/fbufmode.c: Include stdio-impl.h.
57289         (fbufmode): Use fp_, remove redundant #defines.
57290         * lib/fflush.c: Include stdio-impl.h.
57291         (clear_ungetc_buffer): Remove redundant #defines.
57292         * lib/fpurge.c: Include stdio-impl.h.
57293         (fpurge): Remove redundant #defines.
57294         * lib/freadable.c: Include stdio-impl.h.
57295         (freadable): Remove redundant #defines.
57296         * lib/freadahead.c: Include stdio-impl.h.
57297         (freadahead): Remove redundant #defines.
57298         * lib/freading.c: Include stdio-impl.h.
57299         (freading): Remove redundant #defines.
57300         * lib/freadptr.c: Include stdio-impl.h.
57301         (freadptr): Remove redundant #defines.
57302         * lib/freadseek.c: Include stdio-impl.h.
57303         (freadptrinc): Remove redundant #defines.
57304         * lib/fseeko.c: Include stdio-impl.h.
57305         (rpl_fseeko): Remove redundant #defines.
57306         * lib/fseterr.c: Include stdio-impl.h.
57307         (fseterr): Remove redundant #defines.
57308         * lib/fwritable.c: Include stdio-impl.h.
57309         (fwritable: Remove redundant #defines.
57310         * lib/fwriting.c: Include stdio-impl.h.
57311         (fwriting): Remove redundant #defines.
57312         * modules/fbufmode (Files): Add lib/stdio-impl.h.
57313         * modules/fflush (Files): Likewise.
57314         * modules/fpurge (Files): Likewise.
57315         * modules/freadable (Files): Likewise.
57316         * modules/freadahead (Files): Likewise.
57317         * modules/freading (Files): Likewise.
57318         * modules/freadptr (Files): Likewise.
57319         * modules/freadseek (Files): Likewise.
57320         * modules/fseeko (Files): Likewise.
57321         * modules/fseterr (Files): Likewise.
57322         * modules/fwritable (Files): Likewise.
57323         * modules/fwriting (Files): Likewise.
57324
57325 2008-04-26  Bruno Haible  <bruno@clisp.org>
57326
57327         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
57328         restore_seek_optimization, update_fpos_cache): New functions, extracted
57329         from rpl_fflush.
57330         (rpl_fflush): Use them.
57331         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
57332         (gl_REPLACE_FFLUSH): Use it.
57333
57334 2008-04-26  Bruno Haible  <bruno@clisp.org>
57335
57336         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
57337         on Solaris.
57338         * tests/test-xstrtoimax.sh: Likewise.
57339         * tests/test-xstrtoumax.sh: Likewise.
57340         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57341
57342 2008-04-26  Bruno Haible  <bruno@clisp.org>
57343
57344         * modules/memchr-tests: New file.
57345         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
57346
57347 2008-04-26  Eric Blake  <ebb9@byu.net>
57348             Bruno Haible  <bruno@clisp.org>
57349
57350         * lib/memchr.c: Include intprops.h.
57351         (__memchr): Optimize parallel detection of matching bytes. Rename local
57352         variables. Add explanatory comments.
57353
57354 2008-04-26  Bruno Haible  <bruno@clisp.org>
57355
57356         Fix module 'memchr', broken since 2000-10-28.
57357         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
57358
57359 2008-04-26  Bruno Haible  <bruno@clisp.org>
57360
57361         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
57362         comments.
57363
57364 2008-04-25  Eric Blake  <ebb9@byu.net>
57365
57366         Use native fstatat on cygwin 1.7.0.
57367         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
57368         first.
57369
57370 2008-04-23  Eric Blake  <ebb9@byu.net>
57371
57372         Improve memchr2 performance.
57373         * lib/memchr2.c (memchr2): Further optimize parallel detection of
57374         NUL bytes.
57375         * modules/memchr2 (Depends-on): Use intprops.h.
57376
57377 2008-04-23  Simon Josefsson  <simon@josefsson.org>
57378
57379         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
57380         an inline function instead of a CPP macro.  Patch by Ben Pfaff
57381         <blp@cs.stanford.edu>.
57382
57383 2008-04-23  Simon Josefsson  <simon@josefsson.org>
57384
57385         * lib/arpa_inet.in.h: New file.
57386
57387         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
57388         (Makefile.am): Sed in substitute header file.
57389
57390         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
57391         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
57392
57393         * modules/inet_ntop (configure.ac): Use
57394         gl_ARPA_INET_MODULE_INDICATOR.
57395
57396         * modules/inet_pton (configure.ac): Use
57397         gl_ARPA_INET_MODULE_INDICATOR.
57398
57399 2008-04-22  Jim Meyering  <meyering@redhat.com>
57400
57401         * modules/verify (License): Re-license as LGPLv2+.
57402
57403 2008-04-22  Simon Josefsson  <simon@josefsson.org>
57404
57405         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
57406         parameter to void* as per POSIX standard (MinGW uses char*).
57407
57408 2008-04-21  Bruno Haible  <bruno@clisp.org>
57409
57410         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
57411         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
57412         Define to replacements if REPLACE_ISWCNTRL is 1.
57413         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
57414         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
57415         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
57416         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
57417         what it fixes.
57418         * doc/posix-functions/iswalpha.texi: Likewise.
57419         * doc/posix-functions/iswblank.texi: Likewise.
57420         * doc/posix-functions/iswcntrl.texi: Likewise.
57421         * doc/posix-functions/iswdigit.texi: Likewise.
57422         * doc/posix-functions/iswgraph.texi: Likewise.
57423         * doc/posix-functions/iswlower.texi: Likewise.
57424         * doc/posix-functions/iswprint.texi: Likewise.
57425         * doc/posix-functions/iswpunct.texi: Likewise.
57426         * doc/posix-functions/iswspace.texi: Likewise.
57427         * doc/posix-functions/iswupper.texi: Likewise.
57428         * doc/posix-functions/iswxdigit.texi: Likewise.
57429         Reported by Alain Guibert.
57430
57431 2008-04-21  Bruno Haible  <bruno@clisp.org>
57432
57433         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
57434         Patch by Alain Guibert.
57435
57436 2008-04-21  Bruno Haible  <bruno@clisp.org>
57437
57438         Fix test failures on mingw.
57439         * tests/test-xstrtol.c (print_no_progname): New function.
57440         (main): Install it in error_print_progname hook.
57441         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
57442         * tests/test-xstrtoimax.sh: Likewise.
57443         * tests/test-xstrtoumax.sh: Likewise.
57444
57445 2008-04-21  Bruno Haible  <bruno@clisp.org>
57446
57447         Fix test failure on mingw.
57448         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
57449
57450 2008-04-21  Bruno Haible  <bruno@clisp.org>
57451
57452         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
57453         Actually assign a value.
57454
57455 2008-04-20  Bruno Haible  <bruno@clisp.org>
57456
57457         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
57458         take 2.
57459         * lib/canonicalize.c (canonicalize_file_name): Elide if the
57460         'canonicalize-lgpl' module is also used.
57461         * lib/canonicalize-lgpl.c: Undo last change.
57462         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
57463
57464 2008-04-20  Bruno Haible  <bruno@clisp.org>
57465
57466         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
57467         config.h. Provide _mkdir based fallback for mingw.
57468         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
57469         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
57470         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
57471         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
57472         rather than defining mkdir in config.h.
57473         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
57474         (gl_SYS_STAT_H_DEFAULTS): New macro.
57475         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
57476         HAVE_IO_H any more.
57477         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
57478         HAVE_DECL_MKDIR and HAVE_IO_H.
57479
57480 2008-04-20  Bruno Haible  <bruno@clisp.org>
57481
57482         * lib/isapipe.c: Port to native Windows platforms.
57483
57484 2008-04-20  Bruno Haible  <bruno@clisp.org>
57485
57486         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
57487
57488 2008-04-21  Eric Blake  <ebb9@byu.net>
57489
57490         Work around preprocessors that don't handle UINTMAX_MAX.
57491         * lib/memchr2.c (memchr2): Avoid embedded #if.
57492         Reported by Alain Guibert, fix suggested by Bruno Haible.
57493
57494 2008-04-21  Simon Josefsson  <simon@josefsson.org>
57495
57496         * doc/posix-functions/strftime.texi (strftime): Explain better
57497         Windows incompatibility.  Suggested by Micah Cowan
57498         <micah@cowan.name>.
57499
57500 2008-04-20  Bruno Haible  <bruno@clisp.org>
57501
57502         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
57503         unistr/u8-mblen.
57504
57505 2008-04-20  Bruno Haible  <bruno@clisp.org>
57506
57507         Fix test failure on platforms with non-GNU iconv.
57508         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
57509         (U_TO_U8): Use it, rather than u16_to_u8.
57510         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
57511         units at the end of the input string.
57512         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
57513
57514 2008-04-20  Bruno Haible  <bruno@clisp.org>
57515
57516         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
57517         when the resulting length is 0.
57518         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
57519
57520 2008-04-20  Bruno Haible  <bruno@clisp.org>
57521
57522         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
57523         works.
57524         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
57525
57526 2008-04-20  Bruno Haible  <bruno@clisp.org>
57527
57528         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
57529         * modules/tsearch-tests (configure.ac): Test for initstate function.
57530
57531 2008-04-20  Bruno Haible  <bruno@clisp.org>
57532
57533         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
57534         for nlink_t if missing.
57535         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
57536
57537 2008-04-19  Bruno Haible  <bruno@clisp.org>
57538
57539         Work around snprintf bug on Linux libc5.
57540         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
57541         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57542         gl_SNPRINTF_SIZE1.
57543         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57544         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
57545         that test failed.
57546         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
57547         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
57548         * modules/snprintf (Files): Add m4/printf.m4.
57549         * modules/vsnprintf (Files): Likewise.
57550         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
57551         * doc/posix-functions/vsnprintf.texi: Likewise.
57552
57553 2008-04-19  Bruno Haible  <bruno@clisp.org>
57554
57555         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
57556         from 0.0058 to less than 10^-7.
57557
57558 2008-04-19  Bruno Haible  <bruno@clisp.org>
57559
57560         Fix rounding when a precision is given.
57561         * lib/vasnprintf.c (is_borderline): New function.
57562         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
57563         9...9x.
57564         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
57565         %e, %g.
57566         * tests/test-vasprintf-posix.c (test_function): Likewise.
57567         * tests/test-snprintf-posix.h (test_function): Likewise.
57568         * tests/test-sprintf-posix.h (test_function): Likewise.
57569         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
57570         * tests/test-printf-posix.h (test_function): Likewise.
57571         * tests/test-printf-posix.output: Update.
57572         Reported by John Darrington <john@darrington.wattle.id.au> via
57573         Ben Pfaff <blp@cs.stanford.edu>.
57574
57575 2008-04-18  Simon Josefsson  <simon@josefsson.org>
57576
57577         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
57578         Suggested by Bruno Haible <bruno@clisp.org>.
57579
57580 2008-04-17  Bruno Haible  <bruno@clisp.org>
57581
57582         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
57583         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
57584         implementation.
57585         Patch by Bruce Merry <bmerry@gmail.com>.
57586
57587 2008-04-17  Simon Josefsson  <simon@josefsson.org>
57588
57589         * doc/posix-functions/strftime.texi (strftime): Mention that %e
57590         doesn't work under Windows.
57591
57592 2008-04-16  Bruno Haible  <bruno@clisp.org>
57593
57594         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
57595         New macros.
57596         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
57597         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
57598         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
57599         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
57600         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
57601         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
57602         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
57603         macros.
57604         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
57605         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
57606         Northern Sotho, Uighur.
57607
57608 2008-04-16  Bruno Haible  <bruno@clisp.org>
57609
57610         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
57611         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
57612         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
57613         Reported by Daniel Bergström <daniel@octocode.com>.
57614
57615 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
57616             Bruno Haible  <bruno@clisp.org>
57617
57618         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
57619         function.
57620         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
57621         New functions, mostly extracted from gl_locale_name_default.
57622         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
57623
57624 2008-04-16  Eric Blake  <ebb9@byu.net>
57625
57626         Adjust strtod detection to catch glibc 2.7 bug.
57627         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
57628         Reported by John Gatewood Ham.
57629
57630 2008-04-16  Bruno Haible  <bruno@clisp.org>
57631
57632         Add tentative support for Linux libc5.
57633         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
57634         * lib/fpurge.c (fpurge): Likewise.
57635         * lib/freadable.c (freadable): Likewise.
57636         * lib/freadahead.c (freadahead): Likewise.
57637         * lib/freading.c (freading): Likewise.
57638         * lib/freadptr.c (freadptr): Likewise.
57639         * lib/freadseek.c (freadptrinc): Likewise.
57640         * lib/fseeko.c (rpl_fseeko): Likewise.
57641         * lib/fseterr.c (fseterr): Likewise.
57642         * lib/fwritable.c (fwritable): Likewise.
57643         * lib/fwriting.c (fwriting): Likewise.
57644         Reported by Alain Guibert <alguibert+bts@free.fr>.
57645
57646 2008-04-15  Bruno Haible  <bruno@clisp.org>
57647
57648         * modules/mathl (configure.ac): Define module indicator.
57649
57650 2008-04-15  Bruno Haible  <bruno@clisp.org>
57651
57652         * lib/logl.c (logl): Remove unused variables.
57653
57654 2008-04-15  Bruno Haible  <bruno@clisp.org>
57655
57656         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
57657         fails.
57658
57659 2008-04-15  Bruno Haible  <bruno@clisp.org>
57660
57661         * lib/trim.c (trim2): Fix argument of isspace() macro.
57662
57663 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
57664
57665         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
57666         to 0.
57667         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
57668
57669 2008-04-14  Bruno Haible  <bruno@clisp.org>
57670
57671         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
57672         AC_LANG_PROGRAM argument.
57673         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
57674         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
57675         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
57676         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57677         * m4/math_h.m4 (gl_MATH_H): Likewise.
57678         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
57679         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57680         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57681         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
57682         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
57683         * m4/regex.m4 (gl_REGEX): Likewise.
57684         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
57685         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
57686         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57687         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
57688         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57689         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57690         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57691         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57692
57693 2008-04-14  Jim Meyering  <meyering@redhat.com>
57694
57695         test-strtod: fix typos: s/abs/fabs/
57696         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
57697
57698 2008-04-13  Bruno Haible  <bruno@clisp.org>
57699
57700         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
57701         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
57702         module is also used and while not building the reloc-wrapper.
57703
57704 2008-04-13  Bruno Haible  <bruno@clisp.org>
57705
57706         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
57707
57708 2008-04-13  Bruno Haible  <bruno@clisp.org>
57709
57710         Fix AIX compilation failure introduced on 2008-04-02.
57711         * tests/test-frexp.c (exp): Undefine before redefining.
57712         * tests/test-frexpl.c (exp): Likewise.
57713
57714 2008-04-13  Bruno Haible  <bruno@clisp.org>
57715
57716         Work around a HP-UX stdio bug.
57717         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
57718         * tests/test-ftello.c (main): Likewise.
57719         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
57720         * doc/posix-functions/ftello.texi: Likewise.
57721
57722 2008-04-13  Bruno Haible  <bruno@clisp.org>
57723
57724         Make test-signbit pass on HP-UX/hppa.
57725         * tests/test-signbit.c (minus_zerol): New variable.
57726         (test_signbitl): Use it.
57727
57728 2008-04-13  Bruno Haible  <bruno@clisp.org>
57729
57730         Make truncl work on OSF/1 4.0.
57731         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
57732         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57733         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57734         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
57735         HAVE_DECL_TRUNCL.
57736         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
57737         HAVE_DECL_TRUNCL.
57738         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
57739
57740 2008-04-13  Bruno Haible  <bruno@clisp.org>
57741
57742         * lib/unictype.h: Remove trailing comma from enumeration definitions.
57743
57744 2008-04-13  Bruno Haible  <bruno@clisp.org>
57745
57746         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
57747         expression, so as to avoid HP-UX 11 cc compiler bug.
57748
57749 2008-04-13  Bruno Haible  <bruno@clisp.org>
57750
57751         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
57752
57753 2008-04-13  Bruno Haible  <bruno@clisp.org>
57754
57755         * lib/git-merge-changelog.c: Remove empty declaration outside of
57756         functions.
57757
57758 2008-04-13  Bruno Haible  <bruno@clisp.org>
57759
57760         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
57761
57762 2008-04-13  Bruno Haible  <bruno@clisp.org>
57763
57764         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
57765         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
57766         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
57767         also if it exists but lacks definitions of the SHUT_* macros.
57768         * modules/sys_socket (Description): Update.
57769         Reported by Elbert Pol <e.pol@chello.nl>.
57770
57771 2008-04-13  Bruno Haible  <bruno@clisp.org>
57772
57773         * lib/localcharset.c (OS2): Don't redefine if already defined.
57774         Reported by Elbert Pol <e.pol@chello.nl>.
57775
57776 2008-04-13  Bruno Haible  <bruno@clisp.org>
57777
57778         * lib/binary-io.h [__EMX__]: Include <io.h>.
57779         Reported by Elbert Pol <e.pol@chello.nl>.
57780
57781 2008-04-12  Bruno Haible  <bruno@clisp.org>
57782
57783         * lib/fpucw.h: Enable the definitions also for x86_64.
57784         Needed for NetBSD/x86_64.
57785         Reported by Thomas Klausner <tk@giga.or.at>.
57786
57787 2008-04-12  Bruno Haible  <bruno@clisp.org>
57788
57789         * tests/test-strtod.c: Include isnand.h.
57790         (main): Use isnand instead of isnan.
57791         Reported by Jim Meyering.
57792
57793 2008-04-12  Bruno Haible  <bruno@clisp.org>
57794
57795         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
57796         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57797
57798 2008-04-12  Jim Meyering  <meyering@redhat.com>
57799
57800         * m4/math_h.m4 (gl_MATH_H): Fix typos.
57801
57802 2008-04-12  Bruno Haible  <bruno@clisp.org>
57803
57804         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
57805         Reported by Elbert Pol <e.pol@chello.nl>.
57806
57807 2008-04-12  Eric Blake  <ebb9@byu.net>
57808
57809         Work around Solaris 10 math.h bug.
57810         * m4/math_h.m4 (gl_MATH_H): Check for bug.
57811         (gl_MATH_H_DEFAULTS): Set up default.
57812         * modules/math (Makefile.am): Replace new indicators.
57813         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
57814         * tests/test-math.c (main): Test this.
57815         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
57816         * doc/posix-headers/math.texi (math.h): Mention bug.
57817         Reported by Nelson H. F. Beebe and Jim Meyering.
57818
57819 2008-04-11  Bruno Haible  <bruno@clisp.org>
57820
57821         Adapt to future versions of Apple GCC.
57822         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
57823         Reported by Peter O'Gorman <peter@pogma.com>.
57824
57825 2008-04-11  Bruno Haible  <bruno@clisp.org>
57826
57827         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
57828
57829 2008-04-11  Bruno Haible  <bruno@clisp.org>
57830
57831         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
57832
57833         * modules/getaddrinfo-tests (Makefile.am): Define
57834         test_getaddrinfo_LDADD.
57835
57836 2008-04-11  Bruno Haible  <bruno@clisp.org>
57837
57838         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
57839         (init): Fix syntax error.
57840         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
57841         is declared.
57842
57843 2008-04-11  Bruno Haible  <bruno@clisp.org>
57844
57845         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
57846         * modules/glob (Depends-on): Add stdbool.
57847
57848 2008-04-11  Bruno Haible  <bruno@clisp.org>
57849
57850         * lib/trim.c: Include <string.h>.
57851
57852 2008-04-11  Eric Blake  <ebb9@byu.net>
57853
57854         Avoid compile failure on OS/2.
57855         * lib/regex_internal.h (internal_function): Disable optimization
57856         on OS/2 (__EMX__), where it caused compiler error.
57857         Reported by Elbert Pol.
57858
57859 2008-04-11  Bruno Haible  <bruno@clisp.org>
57860
57861         Flush the standard error stream before aborting. Needed on mingw.
57862         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
57863         * tests/test-array_list.c (ASSERT): Likewise.
57864         * tests/test-array_oset.c (ASSERT): Likewise.
57865         * tests/test-avltree_list.c (ASSERT): Likewise.
57866         * tests/test-avltree_oset.c (ASSERT): Likewise.
57867         * tests/test-avltreehash_list.c (ASSERT): Likewise.
57868         * tests/test-binary-io.c (ASSERT): Likewise.
57869         * tests/test-byteswap.c (ASSERT): Likewise.
57870         * tests/test-c-ctype.c (ASSERT): Likewise.
57871         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
57872         * tests/test-c-strcasestr.c (ASSERT): Likewise.
57873         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
57874         * tests/test-c-strstr.c (ASSERT): Likewise.
57875         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
57876         * tests/test-canonicalize.c (ASSERT): Likewise.
57877         * tests/test-carray_list.c (ASSERT): Likewise.
57878         * tests/test-ceilf1.c (ASSERT): Likewise.
57879         * tests/test-ceilf2.c (ASSERT): Likewise.
57880         * tests/test-ceill.c (ASSERT): Likewise.
57881         * tests/test-count-one-bits.c (ASSERT): Likewise.
57882         * tests/test-fbufmode.c (ASSERT): Likewise.
57883         * tests/test-fflush2.c (ASSERT): Likewise.
57884         * tests/test-floorf1.c (ASSERT): Likewise.
57885         * tests/test-floorf2.c (ASSERT): Likewise.
57886         * tests/test-floorl.c (ASSERT): Likewise.
57887         * tests/test-fopen.c (ASSERT): Likewise.
57888         * tests/test-fpending.c (ASSERT): Likewise.
57889         * tests/test-fprintf-posix.c (ASSERT): Likewise.
57890         * tests/test-fpurge.c (ASSERT): Likewise.
57891         * tests/test-freadable.c (ASSERT): Likewise.
57892         * tests/test-freadahead.c (ASSERT): Likewise.
57893         * tests/test-freading.c (ASSERT): Likewise.
57894         * tests/test-freadptr.c (ASSERT): Likewise.
57895         * tests/test-freadptr2.c (ASSERT): Likewise.
57896         * tests/test-freadseek.c (ASSERT): Likewise.
57897         * tests/test-freopen.c (ASSERT): Likewise.
57898         * tests/test-frexp.c (ASSERT): Likewise.
57899         * tests/test-frexpl.c (ASSERT): Likewise.
57900         * tests/test-fseek.c (ASSERT): Likewise.
57901         * tests/test-fseeko.c (ASSERT): Likewise.
57902         * tests/test-fstrcmp.c (ASSERT): Likewise.
57903         * tests/test-ftell.c (ASSERT): Likewise.
57904         * tests/test-ftello.c (ASSERT): Likewise.
57905         * tests/test-func.c (ASSERT): Likewise.
57906         * tests/test-fwritable.c (ASSERT): Likewise.
57907         * tests/test-fwriting.c (ASSERT): Likewise.
57908         * tests/test-getdelim.c (ASSERT): Likewise.
57909         * tests/test-getline.c (ASSERT): Likewise.
57910         * tests/test-i-ring.c (ASSERT): Likewise.
57911         * tests/test-iconv-utf.c (ASSERT): Likewise.
57912         * tests/test-iconv.c (ASSERT): Likewise.
57913         * tests/test-isfinite.c (ASSERT): Likewise.
57914         * tests/test-isnand.c (ASSERT): Likewise.
57915         * tests/test-isnanf.c (ASSERT): Likewise.
57916         * tests/test-isnanl.h (ASSERT): Likewise.
57917         * tests/test-ldexpl.c (ASSERT): Likewise.
57918         * tests/test-linked_list.c (ASSERT): Likewise.
57919         * tests/test-linkedhash_list.c (ASSERT): Likewise.
57920         * tests/test-localename.c (ASSERT): Likewise.
57921         * tests/test-lseek.c (ASSERT): Likewise.
57922         * tests/test-mbscasecmp.c (ASSERT): Likewise.
57923         * tests/test-mbscasestr1.c (ASSERT): Likewise.
57924         * tests/test-mbscasestr2.c (ASSERT): Likewise.
57925         * tests/test-mbscasestr3.c (ASSERT): Likewise.
57926         * tests/test-mbscasestr4.c (ASSERT): Likewise.
57927         * tests/test-mbschr.c (ASSERT): Likewise.
57928         * tests/test-mbscspn.c (ASSERT): Likewise.
57929         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
57930         * tests/test-mbspbrk.c (ASSERT): Likewise.
57931         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
57932         * tests/test-mbsrchr.c (ASSERT): Likewise.
57933         * tests/test-mbsspn.c (ASSERT): Likewise.
57934         * tests/test-mbsstr1.c (ASSERT): Likewise.
57935         * tests/test-mbsstr2.c (ASSERT): Likewise.
57936         * tests/test-mbsstr3.c (ASSERT): Likewise.
57937         * tests/test-memchr2.c (ASSERT): Likewise.
57938         * tests/test-memmem.c (ASSERT): Likewise.
57939         * tests/test-open.c (ASSERT): Likewise.
57940         * tests/test-printf-frexp.c (ASSERT): Likewise.
57941         * tests/test-printf-frexpl.c (ASSERT): Likewise.
57942         * tests/test-printf-posix.c (ASSERT): Likewise.
57943         * tests/test-quotearg.c (ASSERT): Likewise.
57944         * tests/test-rbtree_list.c (ASSERT): Likewise.
57945         * tests/test-rbtree_oset.c (ASSERT): Likewise.
57946         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
57947         * tests/test-round1.c (ASSERT): Likewise.
57948         * tests/test-roundf1.c (ASSERT): Likewise.
57949         * tests/test-roundl.c (ASSERT): Likewise.
57950         * tests/test-signbit.c (ASSERT): Likewise.
57951         * tests/test-sleep.c (ASSERT): Likewise.
57952         * tests/test-snprintf-posix.c (ASSERT): Likewise.
57953         * tests/test-snprintf.c (ASSERT): Likewise.
57954         * tests/test-sprintf-posix.c (ASSERT): Likewise.
57955         * tests/test-stat-time.c (ASSERT): Likewise.
57956         * tests/test-strcasestr.c (ASSERT): Likewise.
57957         * tests/test-strerror.c (ASSERT): Likewise.
57958         * tests/test-striconv.c (ASSERT): Likewise.
57959         * tests/test-striconveh.c (ASSERT): Likewise.
57960         * tests/test-striconveha.c (ASSERT): Likewise.
57961         * tests/test-strsignal.c (ASSERT): Likewise.
57962         * tests/test-strstr.c (ASSERT): Likewise.
57963         * tests/test-strtod.c (ASSERT): Likewise.
57964         * tests/test-trunc1.c (ASSERT): Likewise.
57965         * tests/test-trunc2.c (ASSERT): Likewise.
57966         * tests/test-truncf1.c (ASSERT): Likewise.
57967         * tests/test-truncf2.c (ASSERT): Likewise.
57968         * tests/test-truncl.c (ASSERT): Likewise.
57969         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
57970         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
57971         * tests/test-vasnprintf.c (ASSERT): Likewise.
57972         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
57973         * tests/test-vasprintf.c (ASSERT): Likewise.
57974         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
57975         * tests/test-vprintf-posix.c (ASSERT): Likewise.
57976         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
57977         * tests/test-vsnprintf.c (ASSERT): Likewise.
57978         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
57979         * tests/test-wcwidth.c (ASSERT): Likewise.
57980         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
57981         * tests/test-xprintf-posix.c (ASSERT): Likewise.
57982         * tests/test-xvasprintf.c (ASSERT): Likewise.
57983         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
57984         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
57985         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
57986         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
57987         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
57988         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
57989         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
57990         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
57991         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
57992         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
57993         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
57994         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
57995         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
57996         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
57997         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
57998         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
57999         * tests/unictype/test-block_list.c (ASSERT): Likewise.
58000         * tests/unictype/test-block_of.c (ASSERT): Likewise.
58001         * tests/unictype/test-block_test.c (ASSERT): Likewise.
58002         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
58003         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
58004         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
58005         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
58006         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
58007         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
58008         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
58009         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
58010         * tests/unictype/test-combining.c (ASSERT): Likewise.
58011         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
58012         * tests/unictype/test-digit.c (ASSERT): Likewise.
58013         * tests/unictype/test-mirror.c (ASSERT): Likewise.
58014         * tests/unictype/test-numeric.c (ASSERT): Likewise.
58015         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
58016         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
58017         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
58018         * tests/unictype/test-scripts.c (ASSERT): Likewise.
58019         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
58020         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
58021         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
58022         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
58023         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
58024         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
58025         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
58026         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
58027         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
58028         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
58029         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
58030         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
58031         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
58032         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
58033         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
58034         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
58035         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
58036         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
58037         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
58038         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
58039         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
58040         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
58041         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
58042         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
58043         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
58044         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
58045         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
58046         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
58047         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
58048         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
58049         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
58050         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
58051         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
58052         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
58053         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
58054         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
58055         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
58056         Reported by Eric Blake.
58057
58058 2008-04-11  Bruno Haible  <bruno@clisp.org>
58059
58060         * lib/wchar.in.h: Tweak comment.
58061
58062 2008-04-11  Bruno Haible  <bruno@clisp.org>
58063
58064         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
58065         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
58066         gl_COMMON.
58067         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
58068
58069 2008-04-11  Bruno Haible  <bruno@clisp.org>
58070
58071         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
58072
58073 2008-04-11  Simon Josefsson  <simon@josefsson.org>
58074
58075         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
58076         of attempting to use non-existing /dev/*random.  Based on patch
58077         from Adam Strzelecki <ono@java.pl> in
58078         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
58079
58080 2008-04-08  Bruno Haible  <bruno@clisp.org>
58081
58082         Add tentative support for emx+gcc.
58083         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
58084         * lib/fpurge.c (fpurge): Likewise.
58085         * lib/freadable.c (freadable): Likewise.
58086         * lib/freadahead.c (freadahead): Likewise.
58087         * lib/freading.c (freading): Likewise.
58088         * lib/freadptr.c (freadptr): Likewise.
58089         * lib/freadseek.c (freadptrinc): Likewise.
58090         * lib/fseeko.c (rpl_fseeko): Likewise.
58091         * lib/fseterr.c (fseterr): Likewise.
58092         * lib/fwritable.c (fwritable): Likewise.
58093         * lib/fwriting.c (fwriting): Likewise.
58094         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
58095
58096 2008-04-09  Eric Blake  <ebb9@byu.net>
58097
58098         Avoid some autoconf warnings.
58099         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
58100         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
58101         * m4/afs.m4 (gl_AFS): Likewise.
58102         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
58103         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
58104         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
58105         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
58106         (gl_INTEGER_TYPE_SUFFIX): Likewise.
58107         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
58108         (AC_CHECK_DECLS_ONCE): Likewise.
58109         Rename file...
58110         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
58111         gnulib-tool requires autoconf 2.59 or better.
58112         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
58113
58114 2008-04-08  Eric Blake  <ebb9@byu.net>
58115
58116         Use 'git describe --match' if present (added in git 1.5.5).
58117         * build-aux/git-version-gen: Limit result to tags that match 'v*'
58118         if possible.
58119
58120 2008-04-08  Bruno Haible  <bruno@clisp.org>
58121
58122         Add tentative support for OpenServer.
58123         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
58124         _ptr, _cnt.
58125         * lib/fpurge.c (fpurge): Likewise.
58126         * lib/freadable.c (freadable): Likewise.
58127         * lib/freadahead.c (freadahead): Likewise.
58128         * lib/freading.c (freading): Likewise.
58129         * lib/freadptr.c (freadptr): Likewise.
58130         * lib/freadseek.c (freadptrinc): Likewise.
58131         * lib/fseeko.c (rpl_fseeko): Likewise.
58132         * lib/fseterr.c (fseterr): Likewise.
58133         * lib/fwritable.c (fwritable): Likewise.
58134         * lib/fwriting.c (fwriting): Likewise.
58135         Reported by Roger Cornelius <rac@tenzing.org> and
58136         Brian K. White <brian@aljex.com>.
58137
58138 2008-04-06  Jim Meyering  <meyering@redhat.com>
58139
58140         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
58141
58142 2008-04-06  Bruno Haible  <bruno@clisp.org>
58143
58144         Avoid possible error with non-ASCII bytes in UTF-8 locales.
58145         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
58146         * tests/test-printf-posix.sh: Likewise.
58147         * tests/test-vfprintf-posix.sh: Likewise.
58148         * tests/test-vprintf-posix.sh: Likewise.
58149         * tests/test-xprintf-posix.sh: Likewise.
58150
58151 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58152
58153         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
58154         hide error from 'ls', needed on OS/2.
58155         Report by Elbert Pol <elbert.pol@gmail.com>.
58156
58157 2008-04-04  Eric Blake  <ebb9@byu.net>
58158
58159         Make test-fseeko.c failures meaningful.
58160         * tests/test-fseeko.c: Print line number on failure.
58161         * tests/test-fseek.c: Likewise.
58162         Reported by Nelson H. F. Beebe.
58163
58164         Improve strtod bug detection check.
58165         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
58166         required for Solaris 10.
58167         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
58168
58169 2008-04-04  Bruno Haible  <bruno@clisp.org>
58170
58171         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
58172         by m4/setenv.m4.
58173
58174 2008-04-03  Eric Blake  <ebb9@byu.net>
58175
58176         Ensure sane .version contents.
58177         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
58178         version string.
58179         * build-aux/git-version-gen: Improve documentation.
58180
58181         Make GNU make output nicer.
58182         * top/GNUmakefile [!_have-Makefile]: Add dependency on
58183         MAKECMDGOALS to enforce message for all command line targets.  Set
58184         srcdir for use in maint.mk.
58185
58186         Another maintainer tweak.
58187         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
58188         a target that regenerates version.
58189
58190 2008-04-03  Jim Meyering  <meyering@redhat.com>
58191
58192         vc-list-files: don't cause coreutils "make po-check" failure
58193         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
58194
58195 2008-04-03  Eric Blake  <ebb9@byu.net>
58196
58197         Allow VPATH usage of vc-list-files.
58198         * build-aux/vc-list-files (scriptversion): Add timestamp.
58199         (options): Add --help, --version, -C.
58200         (CVS): Support installed cvsu.
58201
58202 2008-04-02  Bruno Haible  <bruno@clisp.org>
58203
58204         Avoid some "statement with no effect" warnings from gcc.
58205         * tests/test-wctype.c (main): Explicitly ignore unused values.
58206         Reported by Jim Meyering.
58207
58208 2008-04-02  Jim Meyering  <meyering@redhat.com>
58209
58210         Avoid some warnings from "gcc -Wshadow".
58211         * tests/test-frexp.c (exp): Define to a different identifier.
58212         * tests/test-frexpl.c (exp): Likewise.
58213
58214 2008-04-03  Jim Meyering  <meyering@redhat.com>
58215
58216         bootstrap: remove dangling *.[ch] symlinks from lib
58217         * build-aux/bootstrap [dangling symlink removal]: Move find's
58218         -depth option to precede all others, to avoid a warning.
58219         Remove *.[ch] files too, and from "$source_base" (usually lib/).
58220
58221 2008-04-02  Bruno Haible  <bruno@clisp.org>
58222
58223         Avoid some warnings from "gcc -Wshadow".
58224         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
58225         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
58226         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
58227         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
58228         Reported by Jim Meyering.
58229
58230 2008-04-01  Bruno Haible  <bruno@clisp.org>
58231
58232         Fix test to work on IRIX 6.5 with cc.
58233         * tests/test-math.c (numeric_equal): New function.
58234         (main): Use it.
58235
58236 2008-04-01  Bruno Haible  <bruno@clisp.org>
58237
58238         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
58239
58240 2008-04-01  Bruno Haible  <bruno@clisp.org>
58241
58242         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
58243         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58244         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
58245         (Depends-on): Remove math.
58246
58247         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
58248         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58249         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
58250         (Depends-on): Remove math.
58251
58252         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
58253         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58254         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
58255         (Depends-on): Remove math.
58256         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
58257         (Depends-on): Remove math.
58258
58259         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
58260         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58261         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
58262         (Depends-on): Remove math.
58263         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
58264         (Depends-on): Remove math.
58265
58266         * tests/test-round1.c: Include nan.h.
58267         (main): Use NaNd instead of NAN.
58268         * modules/round-tests (Files): Add tests/nan.h.
58269
58270         * tests/test-trunc1.c: Include nan.h.
58271         (main): Use NaNd instead of NAN.
58272         * modules/trunc-tests (Files): Add tests/nan.h.
58273
58274         * tests/test-roundf1.c: Include nan.h.
58275         (main): Use NaNf instead of NAN.
58276         * modules/roundf-tests (Files): Add tests/nan.h.
58277
58278         * tests/test-truncf1.c: Include nan.h.
58279         (main): Use NaNf instead of NAN.
58280         * modules/truncf-tests (Files): Add tests/nan.h.
58281
58282         * tests/test-ceilf1.c: Include nan.h.
58283         (main): Use NaNf instead of NAN.
58284         * modules/ceilf-tests (Files): Add tests/nan.h.
58285
58286         * tests/test-floorf1.c: Include nan.h.
58287         (main): Use NaNf instead of NAN.
58288         * modules/floorf-tests (Files): Add tests/nan.h.
58289
58290         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
58291         (main): Use NaNf instead of NAN.
58292         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
58293
58294         * tests/test-isnand.c: Include nan.h instead of <math.h>.
58295         (main): Use NaNd instead of NAN.
58296         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
58297
58298         * tests/test-frexp.c: Include nan.h.
58299         (main): Use NaNd instead of NAN.
58300         * modules/frexp-tests (Files): Add tests/nan.h.
58301
58302         * lib/isnan.c: Don't include <math.h>.
58303         (FUNC): Don't use NAN macro.
58304         * modules/isnand-nolibm (Depends-on): Remove math.
58305         * modules/isnanf-nolibm (Depends-on): Remove math.
58306         * modules/isnanl (Depends-on): Remove math.
58307         * modules/isnanl-nolibm (Depends-on): Remove math.
58308
58309         * tests/nan.h: New file.
58310
58311 2008-04-01  Eric Blake  <ebb9@byu.net>
58312
58313         Fix typos.
58314         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
58315         values to be the right type.
58316
58317         For now, cater to gnulib strtod inaccuracies.
58318         * tests/test-strtod.c (main): Allow 1-ulp error on expected
58319         fractional results.  While not as nice from a QoI perspective, it
58320         is a quicker patch than correctly implementing decimal to binary
58321         rounding.
58322
58323 2008-03-31  Eric Blake  <ebb9@byu.net>
58324
58325         Guarantee a definition of NAN.
58326         * lib/math.in.h (NAN): Define if missing.
58327         * tests/test-math.c (main): Test it.
58328         * doc/posix-headers/math.texi (math.h): Document this.
58329         * lib/isnan.c (rpl_isnand): Use it.
58330         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
58331         * tests/test-floorf1.c (NaN): Likewise.
58332         * tests/test-frexp.c (NaN): Likewise.
58333         * tests/test-isnand.c (NaN): Likewise.
58334         * tests/test-isnanf.c (NaN): Likewise.
58335         * tests/test-round1.c (NaN): Likewise.
58336         * tests/test-roundf1.c (NaN): Likewise.
58337         * tests/test-snprintf-posix.h (NaN): Likewise.
58338         * tests/test-sprintf-posix.h (NaN): Likewise.
58339         * tests/test-trunc1.c (NaN): Likewise.
58340         * tests/test-truncf1.c (NaN): Likewise.
58341         * tests/test-vasnprintf-posix.c (NaN): Likewise.
58342         * tests/test-vasprintf-posix.c (NaN): Likewise.
58343         * modules/isnand-nolibm (Depends-on): Add math.
58344         * modules/isnanf-nolibm (Depends-on): Likewise.
58345         * modules/isnanl (Depends-on): Likewise.
58346         * modules/isnanl-nolibm (Depends-on): Likewise.
58347         * modules/snprintf-posix-tests (Depends-on): Likewise.
58348         * modules/sprintf-posix-tests (Depends-on): Likewise.
58349         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
58350         * modules/vsprintf-posix-tests (Depends-on): Likewise.
58351         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
58352         * modules/vasprintf-posix-tests (Depends-on): Likewise.
58353
58354 2008-03-31  Bruno Haible  <bruno@clisp.org>
58355
58356         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
58357         * doc/posix-functions/strtod.texi: Likewise.
58358
58359 2008-03-31  Bruno Haible  <bruno@clisp.org>
58360
58361         * tests/test-strtod.c (main): Don't use C99 syntax.
58362
58363 2008-03-31  Bruno Haible  <bruno@clisp.org>
58364
58365         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
58366         Reported by Eric Blake.
58367
58368 2008-03-31  Jim Meyering  <meyering@redhat.com>
58369
58370         Don't compare actual signbit return values.
58371         * tests/test-strtod.c (main): Rather, compare only their
58372         zero/non-zero nature.
58373
58374 2008-03-31  Eric Blake  <ebb9@byu.net>
58375
58376         More strtod documentation.
58377         * doc/posix-functions/strtod.texi (strtod): Interpret more test
58378         failures as distinct bugs.
58379
58380 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
58381
58382         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
58383         Problem reported by Erik Benada in
58384         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
58385
58386 2008-03-30  Bruno Haible  <bruno@clisp.org>
58387
58388         * tests/test-strtod.c: Add comments about which assertion fails on which
58389         platform.
58390         * doc/posix-functions/strtod.texi: Add info about many more platforms.
58391
58392 2008-03-30  Eric Blake  <ebb9@byu.net>
58393
58394         Test signbit behavior on zeros.
58395         * tests/test-signbit.c (test_signbitf): Add tests for zero.
58396         (test_signbitd, test_signbitl): Likewise.
58397
58398         More strtod touchups.
58399         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
58400         sign of negative underflow, for now.  Use .5, not .1.
58401         * doc/posix-functions/strtod.texi (strtod): Mention these
58402         limitations.
58403         Reported by Jim Meyering.
58404
58405 2008-03-30  Bruno Haible  <bruno@clisp.org>
58406
58407         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
58408         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
58409
58410 2008-03-30  Bruno Haible  <bruno@clisp.org>
58411
58412         Avoid failure when attempting to return empty iconv results on some
58413         platforms.
58414         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
58415         allocation, don't report ENOMEM when the resulting string is empty.
58416
58417 2008-03-30  Bruno Haible  <bruno@clisp.org>
58418
58419         Fix buffer overrun.
58420         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
58421         Don't consider the width for tmp_length. Check count against tmp_length
58422         before doing the padding. Ensure enough allocation during padding.
58423
58424 2008-03-30  Eric Blake  <ebb9@byu.net>
58425
58426         strtod touchups.
58427         * lib/strtod.c (strtod): Avoid compiler warnings.
58428         Reported by Jim Meyering.
58429
58430 2008-03-30  Bruno Haible  <bruno@clisp.org>
58431
58432         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
58433         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
58434         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
58435         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
58436         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
58437         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
58438         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
58439         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
58440
58441         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
58442         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
58443         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
58444         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
58445         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
58446         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
58447         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
58448         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
58449
58450         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
58451         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
58452         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
58453         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
58454         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
58455         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
58456         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
58457         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
58458
58459         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
58460         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
58461
58462         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
58463         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
58464
58465         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
58466         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
58467
58468         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
58469         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
58470         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
58471
58472         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
58473         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
58474         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
58475
58476         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
58477         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
58478         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
58479
58480         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
58481         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
58482         * modules/vasprintf (Depends-on): Add EOVERFLOW.
58483
58484         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
58485         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
58486         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
58487         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
58488         (Depends-on): Add EOVERFLOW.
58489         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
58490         (Depends-on): Add EOVERFLOW.
58491         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
58492         (Depends-on): Add EOVERFLOW.
58493         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
58494         (Depends-on): Add EOVERFLOW.
58495         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
58496         (Depends-on): Add EOVERFLOW.
58497         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
58498         (Depends-on): Add EOVERFLOW.
58499         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
58500         (Depends-on): Add EOVERFLOW.
58501         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
58502         (Depends-on): Add EOVERFLOW.
58503
58504         * lib/sprintf.c (EOVERFLOW): Remove fallback.
58505         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
58506         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
58507
58508         * lib/snprintf.c (EOVERFLOW): Remove fallback.
58509         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
58510         * modules/snprintf (Depends-on): Add EOVERFLOW.
58511
58512         * lib/poll.c (EOVERFLOW): Remove fallback.
58513         * modules/poll (Depends-on): Add EOVERFLOW.
58514
58515         * lib/getugroups.c (EOVERFLOW): Remove fallback.
58516         * modules/getugroups (Depends-on): Add EOVERFLOW.
58517
58518         * lib/getdelim.c (EOVERFLOW): Remove fallback.
58519         * modules/getdelim (Depends-on): Add EOVERFLOW.
58520
58521         * lib/ftell.c (EOVERFLOW): Remove fallback.
58522         * modules/ftell (Depends-on): Add EOVERFLOW.
58523
58524         * lib/fprintf.c (EOVERFLOW): Remove fallback.
58525         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
58526         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
58527
58528         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
58529
58530         * modules/EOVERFLOW-tests: New file.
58531         * tests/test-EOVERFLOW.c: New file.
58532
58533         * modules/EOVERFLOW: New file.
58534         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
58535
58536 2008-03-30  Bruno Haible  <bruno@clisp.org>
58537
58538         Fix bug introduced on 2007-06-10.
58539         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
58540         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
58541
58542 2008-03-30  Bruno Haible  <bruno@clisp.org>
58543
58544         Improve freadseek's efficiency after ungetc.
58545         * lib/freadseek.c: Include freadahead.h.
58546         (freadptrinc): New function, extracted from freadseek.
58547         (freadseek): Use it in a loop. Use freadahead to determine the number
58548         of loop iterations.
58549         * modules/freadseek (Depends-on): Add freadahead.
58550         (configure.ac): Require AC_C_INLINE.
58551
58552 2008-03-30  Bruno Haible  <bruno@clisp.org>
58553
58554         * lib/freadseek.c (freadseek): Don't ignore the return value of
58555         freadptr.
58556
58557 2008-03-29  Eric Blake  <ebb9@byu.net>
58558
58559         Add hex float support.
58560         * modules/strtod (Depends-on): Add c-ctype.
58561         (Link): Mention POW_LIB.
58562         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
58563         whitespace between 'e' and exponent.
58564         * tests/test-strtod.c (main): Enable hex float tests.
58565         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
58566         now provides.
58567
58568         Document various strtod bugs, with some fixes.
58569         * doc/posix-functions/strtod.texi (strtod): Document bugs with
58570         "-0x", "inf", "nan", and hex constants.
58571         * doc/posix-functions/atof.texi (atof): Likewise.
58572         * modules/stdlib (Makefile.am): Support strtod.
58573         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
58574         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
58575         detect additional strtod bugs.
58576         * lib/stdlib.in.h (rpl_strtod): Add declarations.
58577         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
58578         bool where appropriate.  Parse 'inf' and 'nan'.
58579         * tests/test-strtod.c: New file.
58580         * modules/strtod (Depends-on): Add stdbool, stdlib.
58581         (configure.ac): Turn on module indicator.
58582         * modules/strtod-tests: New module.
58583
58584 2008-03-29  Eric Blake  <ebb9@byu.net>
58585
58586         Fix ftell on mingw.
58587         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
58588         * modules/ftell-tests (Depends-on): Add binary-io.
58589         * modules/ftello-tests (Depends-on): Likewise.
58590         * tests/test-ftell.c (main): Enhance test to cover behavior after
58591         ungetc.  Enforce binary mode.
58592         * tests/test-ftello.c (main): Likewise.
58593
58594         Pass test-freadseek on cygwin.
58595         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
58596         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
58597         ungetc buffer.
58598
58599         * tests/test-fflush2.c (main): Fix typo.
58600
58601 2008-03-29  Bruno Haible  <bruno@clisp.org>
58602
58603         * tests/test-fflush2.c (main): Temporarily disable the contents of
58604         this test.
58605         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
58606         Reported by Eric Blake.
58607
58608 2008-03-28  Simon Josefsson  <simon@josefsson.org>
58609
58610         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
58611         (GC_SHA224_DIGEST_SIZE): Add.
58612
58613         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
58614         (gc_hash_digest_length): Likewise.
58615         (gc_hash_buffer): Likewise.
58616
58617 2008-03-25  Bruno Haible  <bruno@clisp.org>
58618
58619         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
58620         detail which gettext release to use.
58621         Reported by Simon Josefsson.
58622
58623 2008-03-26  Jim Meyering  <meyering@redhat.com>
58624
58625         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
58626         * modules/gnumakefile (clean-GNUmakefile): Also, use
58627         test ... && ... || : syntax rather than if-then ... fi.
58628
58629         gnumakefile: Don't double-quote-expand $(VPATH) value.
58630         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
58631
58632 2008-03-24  Eric Blake  <ebb9@byu.net>
58633
58634         Alter GNUmakefile to install into top directory.
58635         * modules/maintainer-makefile: Split, and add dependency...
58636         * modules/gnumakefile: to this new module.
58637         * build-aux/GNUmakefile: Move...
58638         * top/GNUmakefile: ...here.
58639         * build-aux/maint.mk: Move...
58640         * top/maint.mk: ...here.
58641         * MODULES.html.sh (Support for maintaining...): Document new
58642         module.
58643
58644 2008-03-23  Bruno Haible  <bruno@clisp.org>
58645
58646         * gnulib-tool: New options --vc-files, --no-vc-files.
58647         (func_usage): Document them.
58648         (vc_files): New variable.
58649         (func_import): Consider vc_files.
58650         (func_create_testdir): Set vc_files to empty.
58651         Suggested by Jim Meyering and Karl Berry.
58652
58653 2008-03-23  Bruno Haible  <bruno@clisp.org>
58654
58655         Fix regex compilation error on HP-UX 11.
58656         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
58657         * modules/regex (Files): Add m4/mbstate_t.m4.
58658         Reported by Ton Voon <ton.voon@altinity.com>.
58659
58660 2008-03-23  Bruno Haible  <bruno@clisp.org>
58661
58662         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
58663
58664 2008-03-23  Eric Blake  <ebb9@byu.net>
58665             Bruno Haible  <bruno@clisp.org>
58666
58667         Install files from top/ in the destination directory.
58668         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
58669         augmentation also for the files from top/.
58670         (func_import, func_create_testdir): Rewrite file names:
58671         top/filename -> filename.
58672
58673 2008-03-23  Bruno Haible  <bruno@clisp.org>
58674
58675         Tweak "gnulib --version" output.
58676         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
58677
58678 2008-03-23  Bruno Haible  <bruno@clisp.org>
58679
58680         Tweak "gnulib --version" output.
58681         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
58682         rather than contents of ChangeLog, when possible.
58683
58684 2008-03-21  Eric Blake  <ebb9@byu.net>
58685
58686         More --version tweaks.
58687         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
58688         date of last ChangeLog entry.
58689
58690 2008-03-21  Jim Meyering  <meyering@redhat.com>
58691
58692         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
58693
58694 2008-03-20  Eric Blake  <ebb9@byu.net>
58695
58696         VPATH fix.
58697         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
58698
58699 2008-03-20  Simon Josefsson  <simon@josefsson.org>
58700
58701         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
58702         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
58703
58704 2008-03-20  Eric Blake  <ebb9@byu.net>
58705
58706         Sync GNUmakefile with coreutils.
58707         * build-aux/GNUmakefile (have-Makefile): Rename...
58708         (_have-Makefile): ...to this, for namespace consideration.
58709         (GNUmakefile.cfg): Include, if present.
58710         (_autoreconf): Define a default.
58711         (_is-dist-target): New rule for rebuilds to pick up intra-release
58712         version.
58713         (maint-cfg.mk): Rename...
58714         (cfg.mk): ...to this.
58715
58716 2008-03-18  Jim Meyering  <meyering@redhat.com>
58717
58718         New script and module: mktempd
58719         * MODULES.html.sh (maint+release support): Add mktempd.
58720         * build-aux/mktempd: New file.
58721         * modules/mktempd: New file.
58722
58723 2008-03-15  Jim Meyering  <meyering@redhat.com>
58724
58725         Undo last change.
58726         * lib/sha1.c, lib/md5.c: 63 != ~63.
58727         Reported by Andreas Schwab.
58728
58729         sha1.c, md5.c: Hoist a redundant expression.
58730         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
58731         "ctx->buflen" only once, before calling *_process_block.
58732         * lib/md5.c (md5_process_bytes): Likewise.
58733
58734 2008-03-14  Eric Blake  <ebb9@byu.net>
58735
58736         Bump copyright year in files generated by gnulib-tool.
58737         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
58738         gnulib-tool, rather than hard-coding it.
58739
58740         Fix 'gnulib-tool --version' output to work with git.
58741         * gnulib-tool (func_gnulib_dir): New function, extracted from...
58742         (startup): ...here.
58743         (func_version): Use it to invoke git-version-gen, rather than
58744         relying on CVS keyword expansion.  Modernize wording.
58745         (cvsdatestamp, last_checkin_date, version): Kill unused
58746         variables.
58747
58748 2008-03-12  Jim Meyering  <meyering@redhat.com>
58749
58750         Recognize optional cast of the argument to free.
58751         * build-aux/useless-if-before-free: Update regexps.
58752
58753         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
58754
58755 2008-03-11  Bruno Haible  <bruno@clisp.org>
58756
58757         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
58758         by a single package.
58759         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
58760         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
58761         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
58762         Reported by Sam Steingold <sds@gnu.org>.
58763
58764 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58765
58766         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
58767         repositories.
58768
58769 2008-03-11  Bruno Haible  <bruno@clisp.org>
58770
58771         Avoid conflicts between local macro definitions.
58772         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58773         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
58774
58775 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
58776             Bruno Haible  <bruno@clisp.org>
58777
58778         Make va_copy work with some version of xlc on AIX 5.1.
58779         * lib/stdarg.in.h: New file.
58780         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
58781         On AIX, use a <stdarg.h> file substitute.
58782         * modules/stdarg (Files): Add lib/stdarg.in.h.
58783         (Depends-on): Add include_next.
58784         (Makefile.am): Build a stdarg.h substitute if requested.
58785         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
58786
58787 2008-03-10  Bruno Haible  <bruno@clisp.org>
58788
58789         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
58790         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
58791         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58792
58793 2008-03-10  Bruno Haible  <bruno@clisp.org>
58794
58795         * modules/stdlib (Depends-on): Add include_next, remove
58796         absolute-header.
58797
58798 2008-03-09  Bruno Haible  <bruno@clisp.org>
58799
58800         * lib/freadahead.h (freadahead): Document more precisely.
58801         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
58802         the sum of both buffer sizes.
58803         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
58804         * NEWS: Document the change.
58805
58806 2008-03-09  Bruno Haible  <bruno@clisp.org>
58807
58808         Extend freadptr to return also the buffer size.
58809         * lib/freadptr.h (freadptr): Add sizep argument.
58810         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
58811         (freadptr): Add sizep argument. Determine buffer size like freadahead
58812         does.
58813         * tests/test-freadptr.c: Don't include freadahead.h.
58814         (main): Adapt for new calling convention of freadptr.
58815         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
58816         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
58817         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
58818         tests/test-freadptr2.sh.
58819         (Depends): Remove freadahead.
58820         (TESTS): Add test-freadptr2.sh.
58821         (check_PROGRAMS): Add test-freadptr2.
58822
58823 2008-03-09  Bruno Haible  <bruno@clisp.org>
58824
58825         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
58826         Report and solution by Simon Josefsson.
58827
58828 2008-03-06  Bruno Haible  <bruno@clisp.org>
58829
58830         Make fflush after ungetc work on BSD platforms.
58831         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
58832         * tests/test-fflush2.c: New file.
58833         * tests/test-fflush2.sh: New file.
58834         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
58835         tests/test-fflush2.c.
58836         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
58837         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
58838
58839 2008-03-06  Eric Blake  <ebb9@byu.net>
58840
58841         Likewise for ftello.
58842         * modules/ftello (Dependencies): Add extensions.
58843         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
58844
58845 2008-03-06  Bruno Haible  <bruno@clisp.org>
58846
58847         * modules/fseeko (Dependencies): Add extensions.
58848         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
58849         Needed on glibc systems.
58850
58851 2008-03-06  Bruno Haible  <bruno@clisp.org>
58852
58853         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
58854         email address.
58855         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58856
58857 2008-03-06  Bruno Haible  <bruno@clisp.org>
58858
58859         * users.txt: Add libgnupdf.
58860
58861 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58862
58863         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
58864         (Header File Substitutes, Function Substitutes,
58865         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
58866         (Build robot for gnulib): Fix typo.
58867
58868 2008-03-06  Bruno Haible  <bruno@clisp.org>
58869
58870         * doc/gnulib-tool.texi (VCS Issues): Small updates.
58871         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58872
58873 2008-03-06  Bruno Haible  <bruno@clisp.org>
58874
58875         * doc/func.texi: New file, extracted from doc/gnulib.texi.
58876         * doc/gnulib.texi: Include it.
58877
58878 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58879
58880         * modules/func (License): Change license to unlimited; there was
58881         no LGPL parts in the module anyway.
58882
58883 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58884
58885         * modules/__func__: Renamed to modules/func.
58886         * modules/__func__-tests: Renamed to modules/func-tests.
58887         * tests/test-__func__.c: Renamed to tests/test-func.c.
58888         * m4/__func__.m4: Renamed to m4/func.m4.
58889         * doc/gnulib.texi (__func__): Section renamed to func.
58890         Suggested by Eric Blake <ebb9@byu.net>.
58891
58892 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58893
58894         * doc/gnulib.texi (__func__): Use C99 terminology when talking
58895         about __func__.  Make example self-contained.  Suggested by Eric
58896         Blake <ebb9@byu.net>.
58897
58898         * tests/test-__func__.c (main): Avoid extraneous () around __func.
58899         Suggested by Eric Blake <ebb9@byu.net>.
58900
58901 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58902
58903         * modules/__func__: New file.
58904         * modules/__func__-tests: New file.
58905         * tests/test-__func__.c: New file.
58906         * m4/__func__.m4: New file.
58907         * doc/gnulib.texi (__func__): Document __func__ module.
58908
58909 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58910
58911         * modules/byteswap (License): Re-license as LGPLv2+.
58912
58913 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58914
58915         * doc/Makefile: Add pdf target.
58916
58917 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58918
58919         * modules/inline (License): Use 'unlimited', since there are only
58920         *.m4 files in this module.
58921
58922 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58923             Bruno Haible  <bruno@clisp.org>
58924
58925         Add support for HP C 7.1 on OpenVMS 8.3.
58926         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
58927
58928 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58929
58930         Update VMS specifics.
58931         * lib/getopt.c [VMS]: Remove include of unixlib.h.
58932
58933 2008-03-02  Jim Meyering  <meyering@redhat.com>
58934
58935         Remove the last dependency on the "free" module.
58936         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
58937         Reported by Bob Proulx.
58938
58939         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
58940
58941         Remove useless "if" tests before free.  Deprecate "free" module.
58942         * doc/posix-functions/free.texi: Mention that this
58943         module is no longer useful.
58944         * modules/free (Notice): Say this module is obsolete.
58945         * modules/readutmp (Depends-on): Remove free.
58946         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
58947         * lib/putenv.c (putenv): Likewise.
58948         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
58949         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
58950         * tests/test-c-strcasestr.c (main): Likewise.
58951         * tests/test-c-strstr.c (main): Likewise.
58952         * tests/test-mbscasestr1.c (main): Likewise.
58953         * tests/test-mbscasestr2.c (main): Likewise.
58954         * tests/test-mbsstr1.c (main): Likewise.
58955         * tests/test-mbsstr2.c (main): Likewise.
58956         * tests/test-memmem.c (main): Likewise.
58957         * tests/test-strcasestr.c (main): Likewise.
58958         * tests/test-striconv.c (main): Likewise.
58959         * tests/test-striconveh.c (main): Likewise.
58960         * tests/test-striconveha.c (main): Likewise.
58961         * tests/test-strstr.c (main): Likewise.
58962
58963         * build-aux/git-version-gen: Adjust a comment and the Usage string.
58964
58965         bootstrap: sync from coreutils again
58966         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
58967
58968 2008-03-01  Jim Meyering  <meyering@redhat.com>
58969
58970         bootstrap: sync from coreutils
58971         * build-aux/bootstrap (update_po_files): Copy a .po file into place
58972         also when the target doesn't exist.
58973
58974 2008-03-01  Eric Blake  <ebb9@byu.net>
58975
58976         Fix bugs in last patch.
58977         * lib/memchr2.c (memchr2): Fix typo.
58978         * tests/test-memchr2.c: Test previous bug, and don't use GNU
58979         extension.
58980         Reported by Bruce Korb.
58981
58982         New module 'memchr2'.
58983         * modules/memchr2: New file.
58984         * modules/memchr2-tests: Likewise.
58985         * lib/memchr2.h: Likewise.
58986         * lib/memchr2.c: Likewise, based on memchr.c.
58987         * tests/test-memchr2.c: New test.
58988         * MODULES.html.sh (String handling): Add memchr2.
58989
58990 2008-02-29  Bruno Haible  <bruno@clisp.org>
58991
58992         * modules/freadseek-tests: New file.
58993         * tests/test-freadseek.sh: New file.
58994         * tests/test-freadseek.c: New file.
58995
58996         New module 'freadseek'.
58997         * modules/freadseek: New file.
58998         * lib/freadseek.h: New file.
58999         * lib/freadseek.c: New file.
59000         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
59001
59002 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59003
59004         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
59005         wydawca.
59006
59007         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
59008         program_invocation_name and program_invocation_short_name are
59009         present.
59010
59011 2008-02-28  Bruno Haible  <bruno@clisp.org>
59012
59013         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
59014         * tests/test-freadptr.sh: Also test non-seekable stdin.
59015
59016 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
59017
59018         * build-aux/bootstrap (source_base, m4_base)
59019         (doc_base, tests_base): New variables.
59020         (gnulib_tool_options): Do not hardcode base directories, use
59021         the above variables instead.
59022
59023 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
59024
59025         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
59026
59027 2008-02-28  Bruno Haible  <bruno@clisp.org>
59028
59029         * modules/freadptr-tests: New file.
59030         * tests/test-freadptr.sh: New file.
59031         * tests/test-freadptr.c: New file.
59032
59033         New module 'freadptr'.
59034         * modules/freadptr: New file.
59035         * lib/freadptr.h: New file.
59036         * lib/freadptr.c: New file.
59037         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
59038
59039 2008-02-26  Karl Berry  <karl@freefriends.org>
59040
59041         Sync from Libtool:
59042         * libltdl/argz.c (argz_add, argz_count): New functions.
59043         * libltdl/argz.in.h: Declare them.
59044         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
59045
59046 2008-02-22  Bruno Haible  <bruno@clisp.org>
59047
59048         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
59049         is a pointer type.  Needed for HP-UX 10.
59050         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
59051         * doc/posix-functions/gmtime_r.texi: Likewise.
59052         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
59053
59054 2008-02-24  Bruno Haible  <bruno@clisp.org>
59055
59056         * modules/environ-tests: New file.
59057         * tests/test-environ.c: New file.
59058
59059         New module 'environ'.
59060         * modules/environ: New file.
59061         * lib/unistd.in.h (environ): New declaration.
59062         * m4/environ.m4: New file.
59063         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
59064         after use.
59065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
59066         HAVE_DECL_ENVIRON.
59067         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
59068         HAVE_DECL_ENVIRON.
59069         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
59070         wrong claim that 'environ' is missing on some systems.
59071         * modules/execute (Depends-on): Add environ.
59072         * lib/execute.c (environ): Remove fallback declaration.
59073         * modules/pipe (Depends-on): Add environ.
59074         * lib/pipe.c (environ): Remove fallback declaration.
59075         * modules/setenv (Depends-on): Add environ.
59076         * lib/setenv.c (environ): Remove fallback declaration.
59077         * modules/unsetenv (Depends-on): Add environ.
59078         * lib/unsetenv.c (environ): Remove fallback declaration.
59079         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
59080         m4/environ.m4.
59081         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
59082         (gl_PREREQ_UNSETENV): Likewise.
59083
59084 2008-02-24  Bruno Haible  <bruno@clisp.org>
59085
59086         * doc/posix-functions/environ.texi: Document the MacOS X problem.
59087
59088 2008-02-20  Bob Proulx  <bob@proulx.com>
59089
59090         Enable use of older two part flavor 'git describe'.
59091         * build-aux/git-version-gen: If using the older two part flavor of
59092         git version then recreate the third part now present in the
59093         newer three part flavor of git describe.
59094
59095 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
59096
59097         * lib/fts.c (fts_build): Typo correction to comment.
59098
59099 2008-02-17  Bruno Haible  <bruno@clisp.org>
59100
59101         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
59102         generating no-op conflicts.
59103
59104 2008-02-17  Bruno Haible  <bruno@clisp.org>
59105
59106         Speed up by 10%.
59107         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
59108         result_entries, rather than an index-based loop.
59109
59110 2008-02-17  Bruno Haible  <bruno@clisp.org>
59111
59112         Speed up by 25%.
59113         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
59114         'hashcode_cached'.
59115         (entry_create): New function.
59116         (entry_hashcode): Use the cached hashcode if possible.
59117         (read_changelog_file, try_split_merged_entry): Use entry_create.
59118
59119 2008-02-17  Bruno Haible  <bruno@clisp.org>
59120
59121         Speed up from O(n^2) to O(n) for long ChangeLog files.
59122         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
59123         (read_changelog_file): Change implementation of entries_reversed list
59124         to rbtreehash.
59125         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
59126
59127 2008-02-17  Bruno Haible  <bruno@clisp.org>
59128
59129         New option --split-merged-entry.
59130         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
59131         (find_paragraph_end, try_split_merged_entry): New functions.
59132         (long_options): Add option --split-merged-entry.
59133         (usage): Document option --split-merged-entry.
59134         (main): Implement option --split-merged-entry.
59135         Reported by Eric Blake.
59136
59137 2008-02-17  Bruno Haible  <bruno@clisp.org>
59138
59139         * lib/git-merge-changelog.c: Include c-strstr.h.
59140         (main): Support the "git pull --rebase" situation.
59141         * modules/git-merge-changelog (Depends-on): Add c-strstr.
59142         Reported by Eric Blake.
59143
59144 2008-02-16  Eric Blake  <ebb9@byu.net>
59145
59146         Avoid doubling \ in common case of "c-maybe" quoting style.
59147         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
59148         eliding outer quotes.
59149         * lib/quotearg.h: Document this.
59150         * tests/test-quotearg.c (result_strings, inputs, results_g)
59151         (flag_results, locale_results): Test it by adding a new string to
59152         each test group.
59153         (compare_strings): Test new string.
59154
59155 2008-02-13  Eric Blake  <ebb9@byu.net>
59156
59157         Avoid trigraph quoting in default output.
59158         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
59159         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
59160         unless explicitly requested.
59161         * tests/test-quotearg.c (flag_results, main): Add additional tests.
59162
59163 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
59164
59165         Don't rely on signed integer overflowing to negative value.
59166         * lib/getugroups.c (getugroups): Include <limits.h>.
59167         Instead, compare against INT_MAX, and increment only if the test passes.
59168
59169 2008-02-13  Jim Meyering  <meyering@redhat.com>
59170         and Eric Blake  <ebb9@byu.net>
59171
59172         Avoid shadowing warning and compile errors on Linux.
59173         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
59174         forwarding macros on Linux.
59175         (dcgettext): Define a stub, for Linux.
59176         (results_g, main): Avoid warnings.
59177
59178 2008-02-12  Eric Blake  <ebb9@byu.net>
59179
59180         Silence warning in last patch.
59181         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
59182
59183         Quotearg part 4: add tests, fix c-maybe colon quoting.
59184         * lib/quotearg.h: Improve documentation.
59185         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
59186         escapes when adding outer quotes.  When quoting trigraphs, use
59187         valid C notation.  When quoting NUL, omit extra characters if next
59188         character is not digit.  Alter prototype.
59189         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
59190         callers.
59191         * modules/quotearg-tests: New module.
59192         * tests/test-quotearg.c: New test.
59193
59194 2008-02-07  Eric Blake  <ebb9@byu.net>
59195
59196         Quotearg part 3: add flag to control outer quote elision.
59197         * lib/quotearg.h (c_maybe_quoting_style): New style.
59198         (enum quoting_flags): Better documentation of flags.
59199         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
59200         c-maybe style.
59201         (quotearg_buffer_restyled): Handle new flag to elide outer
59202         quotes.
59203
59204         Quotearg part 2: add flag that can control NUL elision.
59205         * lib/quotearg.h (set_quoting_flags): New prototype.
59206         * lib/quotearg.c (struct quoting_options): Add flag field.
59207         (set_quoting_flags): New function.
59208         (quotearg_buffer_restyled): Add flags parameter.
59209         (quotearg_alloc_mem): Set the flag if length cannot be returned.
59210         (quotearg_n_options): Set the flag, since length cannot be
59211         returned.
59212         (quoting_options_from_style): Default flags correctly.
59213
59214         Quotearg part 1: more wrappers, restore quotearg_char state.
59215         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
59216         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
59217         (quotearg_colon_mem): New wrappers.
59218         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
59219         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
59220         functions.
59221         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
59222         (quotearg_colon_mem): New functions.
59223
59224 2008-02-11  Bruno Haible  <bruno@clisp.org>
59225
59226         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
59227         library in the current directory: it does not work with parallel make.
59228         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59229
59230 2008-02-11  Bruno Haible  <bruno@clisp.org>
59231
59232         * .gitattributes: New file.
59233
59234 2008-02-11  Jim Meyering  <meyering@redhat.com>
59235
59236         useless-if-before-free: Fix reversed exit values.
59237         * build-aux/useless-if-before-free: Use correct values
59238         for EXIT_MATCH and EXIT_NO_MATCH.
59239
59240         * build-aux/useless-if-before-free: Close stdout carefully.
59241
59242 2008-02-10  Bruno Haible  <bruno@clisp.org>
59243
59244         New module 'git-merge-changelog'.
59245         * modules/git-merge-changelog: New file.
59246         * lib/git-merge-changelog.c: New file.
59247
59248 2008-02-10  Jim Meyering  <meyering@redhat.com>
59249
59250         useless-if-before-free: New option: --list (-l).
59251
59252         useless-if-before-free: Don't exit immediately upon open failure.
59253         * build-aux/useless-if-before-free: Exit 2 for errors.
59254         Upon failure to open a file, don't exit immediately.
59255         Rather, just warn and continue with any remaining files.
59256
59257 2008-02-10  Bruno Haible  <bruno@clisp.org>
59258
59259         New abstract list operation 'node_set_value'.
59260         * lib/gl_list.h (gl_list_node_set_value): New function.
59261         (struct gl_list_implementation): New field node_set_value.
59262         * lib/gl_list.c (gl_list_node_set_value): New function.
59263         * lib/gl_array_list.c (gl_array_node_set_value): New function.
59264         (gl_array_list_implementation): Update.
59265         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
59266         (gl_carray_list_implementation): Update.
59267         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
59268         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59269         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59270         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
59271         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59272         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59273         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59274         Update.
59275         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
59276         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
59277         (gl_sublist_list_implementation): Update.
59278
59279 2008-02-10  Bruno Haible  <bruno@clisp.org>
59280
59281         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
59282         Needed when ELEMENT is #defined to 'some_type *'.
59283
59284 2008-02-10  Jim Meyering  <meyering@redhat.com>
59285
59286         New script and module: useless-if-before-free
59287         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
59288         * build-aux/useless-if-before-free: New file.
59289         * modules/useless-if-before-free: New file.
59290
59291         * build-aux/gitlog-to-changelog: Use committer date, not author date.
59292
59293         xstrtol_error: Fix typo.
59294         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
59295         s/exit_failure/exit_status/.
59296
59297 2008-02-09  Jim Meyering  <meyering@redhat.com>
59298
59299         New script and module: gitlog-to-changelog
59300         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
59301         * modules/gitlog-to-changelog: New file.
59302         * build-aux/gitlog-to-changelog: New file.
59303
59304 2008-02-08  Jim Meyering  <meyering@redhat.com>
59305
59306         Avoid two "parameter unused" warnings.
59307         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
59308         Mark "st" as used.
59309
59310         Use "git COMMAND", not "git-COMMAND".
59311         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
59312         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
59313         * build-aux/git-version-gen: Use "git status", not "git-status".
59314
59315 2008-02-07  Bruno Haible  <bruno@clisp.org>
59316
59317         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
59318         Avoids a crash on Windows Vista.
59319         Reported by Adam Strzelecki <ono@java.pl> via
59320         Simon Josefsson <simon@josefsson.org>.
59321
59322 2008-02-06  Bruno Haible  <bruno@clisp.org>
59323
59324         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
59325         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
59326         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
59327         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
59328         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59329         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59330         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
59331         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
59332         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59333         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59334         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59335         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59336         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59337         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59338         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59339         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
59340         left-adjust flag.
59341         * tests/test-snprintf-posix.h (test_function): Likewise.
59342         * tests/test-sprintf-posix.h (test_function): Likewise.
59343         * tests/test-vasprintf-posix.c (test_function): Likewise.
59344         * doc/posix-functions/fprintf.texi: Update.
59345         * doc/posix-functions/printf.texi: Update.
59346         * doc/posix-functions/snprintf.texi: Update.
59347         * doc/posix-functions/sprintf.texi: Update.
59348         * doc/posix-functions/vfprintf.texi: Update.
59349         * doc/posix-functions/vprintf.texi: Update.
59350         * doc/posix-functions/vsnprintf.texi: Update.
59351         * doc/posix-functions/vsprintf.texi: Update.
59352         Reported by Peter Fales <psfales@alcatel-lucent.com>.
59353
59354 2008-02-06  Bruno Haible  <bruno@clisp.org>
59355
59356         Fix bug introduced on 2008-01-26.
59357         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
59358
59359 2008-02-06  Bruno Haible  <bruno@clisp.org>
59360
59361         Fix bug introduced on 2007-06-10.
59362         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
59363         !NEED_PRINTF_FLAG_ZERO.
59364
59365 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
59366
59367         getloadavg: use libperfstat on AIX5
59368         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
59369
59370 2008-02-03  Bruno Haible  <bruno@clisp.org>
59371
59372         * lib/diffseq.h: Add comments about required #includes.
59373         Reported by Michael Biggs <gnulib@doubleplum.net>.
59374
59375 2008-02-01  Bruno Haible  <bruno@clisp.org>
59376
59377         * users.txt: Add gnuit.
59378
59379 2008-01-31  Bruno Haible  <bruno@clisp.org>
59380
59381         * lib/md4.c (set_uint32): Mark as inline.
59382         * lib/md5.c (set_uint32): Likewise.
59383         * lib/sha1.c (set_uint32): Likewise.
59384         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
59385         * m4/md5.m4 (gl_MD5): Likewise.
59386         * m4/sha1.m4 (gl_SHA1): Likewise.
59387
59388 2008-01-31  Jim Meyering  <meyering@redhat.com>
59389
59390         Use "sizeof VAR", rather than a literal "4".
59391         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
59392         * lib/md4.c (md4_read_ctx): Likewise.
59393         * lib/sha1.c (sha1_read_ctx): Likewise.
59394
59395 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59396
59397         * tests/test-sha1.c: New file, based on test-md5.c.
59398
59399         * modules/crypto/sha1-tests: New file.
59400
59401 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59402
59403         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
59404
59405 2008-01-31  Jim Meyering  <meyering@redhat.com>
59406
59407         Prefer "sizeof v" over the equivalent "4".
59408         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
59409         * lib/md5.c (set_uint32): Likewise.
59410         * lib/sha1.c (set_uint32): Likewise.
59411
59412 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59413
59414         * lib/sha1.c (set_uint32): Mark function as static.
59415
59416 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59417
59418         md2: clarify comments to say that alignment is not required.
59419         * lib/md2.h: Remove warning about alignment in comment.
59420         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
59421         never been required.
59422
59423 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59424
59425         md4: adapt alignment constraint fix from sha1.
59426         * lib/md4.c (set_uint32): New function, from sha1.c
59427         (md4_read_ctx): Use it.
59428         (md4_finish_ctx): Doc fix.
59429         * lib/md4.h: Doc fix.
59430
59431 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59432
59433         md5: adapt alignment constraint fix from sha1.
59434         * lib/md5.c (set_uint32): New function, from sha1.c
59435         (md5_read_ctx): Use it.
59436         (md5_finish_ctx): Doc fix.
59437         * lib/md5.h: Doc fix.
59438
59439 2008-01-30  Peter Palfrader  <weasel@debian.org>
59440
59441         sha1: remove the result buffer alignment constraint
59442         * lib/sha1.c (set_uint32): New function.
59443         (sha1_read_ctx): Rewrite to remove the result buffer alignment
59444         constraint.
59445         (sha1_finish_ctx): Remove comment warning about alignment constraint.
59446         * lib/sha1.h: Likewise.
59447
59448 2008-01-30  Andreas Schwab  <schwab@suse.de>
59449             Bruno Haible  <bruno@clisp.org>
59450
59451         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
59452         correct definition of LDBL_MIN_EXP.
59453
59454 2008-01-30  Karl Berry  <karl@gnu.org>
59455
59456         * config/srclist-update: try to preserve x bit on updates.
59457         * config/srclistvars.sh: update for karl.
59458
59459 2008-01-29  Jim Meyering  <meyering@redhat.com>
59460
59461         vasnprintf.c: Avoid warning about unused label
59462         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
59463         "overflow" label definition and associated code with the
59464         same cpp condition that guards the sole use of that label.
59465
59466 2008-01-26  Bruno Haible  <bruno@clisp.org>
59467
59468         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
59469         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
59470         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
59471         * lib/isnanl-nolibm.h (isnanl): Likewise.
59472         Reported by Paul Eggert <eggert@cs.ucla.edu>.
59473
59474 2008-01-26  Bruno Haible  <bruno@clisp.org>
59475
59476         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
59477         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
59478
59479 2008-01-26  Bruno Haible  <bruno@clisp.org>
59480
59481         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
59482         GCC >= 4.0 built-in.
59483         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
59484
59485 2008-01-26  Bruno Haible  <bruno@clisp.org>
59486
59487         Rename isnan, applicable to 'double' only, to isnand.
59488         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
59489         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
59490         (configure.ac): Update.
59491         (Include): Replace "isnan.h" with "isnand.h".
59492         * m4/isnand.m4: Renamed from m4/isnan.m4.
59493         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
59494         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
59495         instead of isnan.c.
59496         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
59497         instead of HAVE_ISNAN_IN_LIBC.
59498         (isnand): Renamed from isnan.
59499         * lib/isnand.c: New file.
59500         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
59501         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
59502         (Makefile.am): Update.
59503         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
59504         Include isnand.h instead of isnan.h.
59505         (main): Test isnand instead of isnan.
59506         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
59507         isnan-nolibm.
59508         * modules/frexp (Depends-on): Likewise.
59509         * modules/frexp-tests (Depends-on): Likewise.
59510         * modules/frexp-nolibm (Depends-on): Likewise.
59511         * modules/frexp-nolibm-tests (Depends-on): Likewise.
59512         * modules/isfinite (Depends-on): Likewise.
59513         * modules/round-tests (Depends-on): Likewise.
59514         * modules/signbit (Depends-on): Likewise.
59515         * modules/signbit-tests (Depends-on): Likewise.
59516         * modules/snprintf-posix (Depends-on): Likewise.
59517         * modules/sprintf-posix (Depends-on): Likewise.
59518         * modules/trunc-tests (Depends-on): Likewise.
59519         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59520         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59521         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59522         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59523         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59524         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59525         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59526         * modules/vasnprintf-posix (Depends-on): Likewise.
59527         * modules/vasprintf-posix (Depends-on): Likewise.
59528         * modules/vfprintf-posix (Depends-on): Likewise.
59529         * modules/vsnprintf-posix (Depends-on): Likewise.
59530         * modules/vsprintf-posix (Depends-on): Likewise.
59531         * lib/frexp.c: Include isnand.h instead of isnan.h.
59532         (ISNAN): Set to isnand instead of isnan.
59533         * lib/isfinite.c: Include isnand.h instead of isnan.h.
59534         (gl_isfinited): Use isnand instead of isnan.
59535         * lib/signbitd.c: Include isnand.h instead of isnan.h.
59536         (gl_signbitd): Use isnand instead of isnan.
59537         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
59538         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
59539         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
59540         (main): Use isnand instead of isnan.
59541         * tests/test-round1.c: Include isnand.h.
59542         (main): Use isnand instead of isnan.
59543         * tests/test-round2.c: Include isnand.h instead of isnan.h.
59544         (ISNAN): Set to isnand instead of isnan.
59545         * tests/test-trunc1.c: Include isnand.h.
59546         (main): Use isnand instead of isnan.
59547         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
59548         (equal): Use isnand instead of isnan.
59549         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
59550         isnand-nolibm.
59551         * NEWS: Mention the change.
59552
59553 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
59554             Bruno Haible  <bruno@clisp.org>
59555
59556         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
59557         the GCC builtins for signbits are present and set
59558         REPLACE_SIGNBIT_USING_GCC if so.
59559         * lib/math.in.h (signbit): Define using GCC builtins if
59560         REPLACE_SIGNBIT_USING_GCC is set.
59561         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
59562         REPLACE_SIGNBIT_USING_GCC.
59563         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
59564
59565 2008-01-25  Jim Meyering  <meyering@redhat.com>
59566
59567         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
59568         * lib/poll.c: Include <config.h>, not "config.h".
59569         * tests/test-getaddrinfo.c: Likewise.
59570
59571 2008-01-25  Simon Josefsson  <simon@josefsson.org>
59572
59573         * modules/sockets-tests: New file.
59574
59575 2008-01-24  Simon Josefsson  <simon@josefsson.org>
59576
59577         * modules/sockets: New module, can be used to call WSA_Startup and
59578         WSA_Cleanup when needed.
59579
59580         * lib/sockets.h, lib/sockets.c: New files.
59581
59582         * m4/sockets.m4: New file.
59583
59584         * tests/test-sockets.c: New file.
59585
59586 2008-01-19  Bruno Haible  <bruno@clisp.org>
59587
59588         * doc/posix-headers: Renamed from doc/headers.
59589         * doc/posix-functions: Renamed from doc/functions.
59590         * doc/gnulib.texi: Update.
59591
59592 2008-01-19  Bruno Haible  <bruno@clisp.org>
59593
59594         * doc/glibc-functions/strcasestr.texi: Include contents of
59595         doc/functions/strcasestr.texi, fixing the list of platforms.
59596         * doc/functions/strcasestr.texi: Remove file.
59597
59598 2008-01-19  Bruno Haible  <bruno@clisp.org>
59599
59600         * doc/glibc-functions/memmem.texi: Include contents of
59601         doc/functions/memmem.texi.
59602         * doc/functions/memmem.texi: Remove file.
59603
59604 2008-01-18  Bruno Haible  <bruno@clisp.org>
59605
59606         * doc/glibc-functions/*.texi: New files.
59607         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
59608         to use the new files.
59609
59610 2008-01-17  Bruno Haible  <bruno@clisp.org>
59611
59612         * tests/test-gethostname.c (main): Fix printf statement.
59613
59614 2008-01-17  Simon Josefsson  <simon@josefsson.org>
59615
59616         * modules/gethostname-tests: New file.
59617
59618         * tests/test-gethostname.c: New file.
59619
59620 2008-01-17  Simon Josefsson  <simon@josefsson.org>
59621
59622         * lib/gethostname.c: Include string.h unconditionally, strncpy is
59623         used by the UNAME case.  Reported by Bruno Haible
59624         <bruno@clisp.org>.
59625
59626 2008-01-17  Eric Blake  <ebb9@byu.net>
59627
59628         Convert c-strcasestr to be more efficient.
59629         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
59630         (Depends-on): Add c-strcase, remove malloca, strnlen.
59631         * tests/test-c-strcasestr.c (main): Enhance test.
59632         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
59633
59634 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
59635
59636         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
59637         Use it in creating po/Makevars.
59638
59639 2008-01-15  Simon Josefsson  <simon@josefsson.org>
59640
59641         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
59642         Applications that requires it should initialize libgcrypt
59643         manually.
59644
59645 2008-01-16  Simon Josefsson  <simon@josefsson.org>
59646
59647         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
59648
59649 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
59650
59651         Fix problem with getdate on mingw32 reported by Simon Josefsson
59652         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
59653         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
59654         tzname", when deciding whether to declare tzname.
59655         * lib/strftime.c (tzname): Likewise.
59656
59657 2008-01-15  Bruno Haible  <bruno@clisp.org>
59658
59659         Work around a MacOS X 10.5 bug in frexpl().
59660         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
59661         * doc/functions/frexpl.texi: Document the bug.
59662         Reported by Elias Pipping <pipping@gentoo.org>.
59663
59664 2008-01-14  Eric Blake  <ebb9@byu.net>
59665
59666         Touch up previous patch.
59667         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
59668         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
59669
59670         Convert strcasestr module to use Two-Way algorithm.
59671         * modules/strcasestr-simple: New module, based on the old
59672         strcasestr, but with Two-Way rather than KMP.
59673         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
59674         * lib/string.in.h (rpl_strcasestr): Declare.
59675         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
59676         performance.
59677         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
59678         * modules/string (Makefile.am): Support strcasestr.
59679         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
59680         * modules/strcasestr-tests (Depends-on): Check for alarm.
59681         * tests/test-strcasestr.c: Augment test.
59682         * lib/str-two-way.h: Clean up stray macro.
59683         * NEWS: Document new module.
59684         * MODULES.html.sh (string handling): Likewise.
59685         * doc/functions/strcasestr.texi: New file.
59686         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
59687         here, since it is not a POSIX function.
59688
59689 2008-01-14  Colin Watson  <cjwatson@debian.org>
59690             Bruno Haible  <bruno@clisp.org>
59691
59692         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
59693         works fine; if not, set REPLACE_STRSIGNAL.
59694         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
59695         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59696         REPLACE_STRSIGNAL.
59697         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
59698         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
59699         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
59700
59701 2008-01-14  Bruno Haible  <bruno@clisp.org>
59702
59703         * modules/strsignal (Include): Change to <string.h>.
59704
59705 2008-01-14  Colin Watson  <cjwatson@debian.org>
59706
59707         * modules/argp (Notice): Add a notice recommending to change
59708         XGETTEXT_OPTIONS.
59709         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
59710
59711 2008-01-13  Colin Watson  <cjwatson@debian.org>
59712
59713         * modules/strsignal-tests: New file.
59714         * tests/test-strsignal.c: New file.
59715
59716         * lib/strsignal.c: New file, from glibc with modifications.
59717         * lib/siglist.h: New file, from glibc with modifications.
59718         * lib/string.in.h (strsignal): New declaration.
59719         * m4/strsignal.m4: New file.
59720         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59721         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
59722         * modules/strsignal: New file.
59723         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
59724         HAVE_DECL_STRSIGNAL.
59725
59726 2008-01-13  Bruno Haible  <bruno@clisp.org>
59727
59728         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
59729         locale encoding is not ASCII. Needed for OpenBSD 4.0.
59730         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59731         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59732
59733 2008-01-13  Bruno Haible  <bruno@clisp.org>
59734
59735         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
59736         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
59737         * lib/argp.h (__attribute__): Likewise.
59738         * lib/c-stack.c (__attribute__): Likewise.
59739         * lib/error.h (__attribute__): Likewise.
59740         * lib/fts.c (__attribute__): Likewise.
59741         * lib/openat.h (__attribute__): Likewise.
59742         * lib/stdio.in.h (__attribute__): Likewise.
59743         * lib/string.in.h (__attribute__): Likewise.
59744         * lib/utimens.c (__attribute__): Likewise.
59745         * lib/vasnprintf.h (__attribute__): Likewise.
59746         * lib/xalloc.h (__attribute__): Likewise.
59747         * lib/xprintf.h (__attribute__): Likewise.
59748         * lib/xstrtol.h (__attribute__): Likewise.
59749         * lib/xvasprintf.h (__attribute__): Likewise.
59750
59751 2008-01-12  Bruno Haible  <bruno@clisp.org>
59752
59753         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
59754         * doc/glibc-headers/a.out.texi: New file.
59755         * doc/glibc-headers/aliases.texi: New file.
59756         * doc/glibc-headers/alloca.texi: New file.
59757         * doc/glibc-headers/ar.texi: New file.
59758         * doc/glibc-headers/argp.texi: New file.
59759         * doc/glibc-headers/argz.texi: New file.
59760         * doc/glibc-headers/byteswap.texi: New file.
59761         * doc/glibc-headers/crypt.texi: New file.
59762         * doc/glibc-headers/endian.texi: New file.
59763         * doc/glibc-headers/envz.texi: New file.
59764         * doc/glibc-headers/err.texi: New file.
59765         * doc/glibc-headers/error.texi: New file.
59766         * doc/glibc-headers/execinfo.texi: New file.
59767         * doc/glibc-headers/fpu_control.texi: New file.
59768         * doc/glibc-headers/fstab.texi: New file.
59769         * doc/glibc-headers/fts.texi: New file.
59770         * doc/glibc-headers/getopt.texi: New file.
59771         * doc/glibc-headers/ieee754.texi: New file.
59772         * doc/glibc-headers/ifaddrs.texi: New file.
59773         * doc/glibc-headers/libintl.texi: New file.
59774         * doc/glibc-headers/mcheck.texi: New file.
59775         * doc/glibc-headers/mntent.texi: New file.
59776         * doc/glibc-headers/obstack.texi: New file.
59777         * doc/glibc-headers/paths.texi: New file.
59778         * doc/glibc-headers/printf.texi: New file.
59779         * doc/glibc-headers/pty.texi: New file.
59780         * doc/glibc-headers/resolv.texi: New file.
59781         * doc/glibc-headers/shadow.texi: New file.
59782         * doc/glibc-headers/sysexits.texi: New file.
59783         * doc/glibc-headers/ttyent.texi: New file.
59784
59785 2008-01-12  Jim Meyering  <meyering@redhat.com>
59786
59787         announce-gen: emit Gnulib's git-based version string.
59788         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
59789         New option --gnulib-version=V, where V is expected to be
59790         the output of running git describe in the gnulib directory.
59791         (get_tool_versions): Request feedback on xdelta.  I suspect it's
59792         not useful, and plan to stop publishing an xdelta file with each
59793         coreutils release.
59794
59795         * build-aux/announce-gen: Also check for lzma-compressed files.
59796
59797 2008-01-11  Bruno Haible  <bruno@clisp.org>
59798
59799         * tests/test-memmem.c (main): Increase maximum allowed time.
59800         * tests/test-strstr.c (main): Likewise.
59801
59802 2008-01-11  Bruno Haible  <bruno@clisp.org>
59803
59804         * doc/functions/memmem.texi: Add more precisions about platforms.
59805         * doc/functions/strstr.texi: Likewise.
59806
59807 2008-01-10  Eric Blake  <ebb9@byu.net>
59808
59809         * m4/strstr.m4: Delete cruft from copy-n-paste.
59810         Reported by Bruno Haible.
59811
59812 2008-01-10  Bruno Haible  <bruno@clisp.org>
59813
59814         Make c-strstr rely on strstr.
59815         * lib/c-strstr.c: Don't include str-kmp.h.
59816         (c_strstr): Define in terms of strstr.
59817         * modules/c-strstr (Files): Remove lib/str-kmp.h.
59818         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
59819
59820 2008-01-10  Bruno Haible  <bruno@clisp.org>
59821
59822         * doc/gnulib.texi (String Functions in C Locale): New section.
59823         * doc/c-ctype.texi: New file.
59824         * doc/c-strcase.texi: New file.
59825         * doc/c-strcaseeq.texi: New file.
59826         * doc/c-strcasestr.texi: New file.
59827         * doc/c-strstr.texi: New file.
59828         * doc/c-strtod.texi: New file.
59829         * doc/c-strtold.texi: New file.
59830
59831 2008-01-10  Eric Blake  <ebb9@byu.net>
59832
59833         * lib/relocatable.h: Fix a comment.
59834
59835 2008-01-10  Eric Blake  <ebb9@byu.net>
59836
59837         Share two-way algorithm.
59838         * lib/str-two-way.h: New file, merged from...
59839         * lib/memmem.c: ...here...
59840         * lib/strstr.c: ...and here.
59841         * modules/memmem (Files): Use it.
59842         * modules/strstr (Files): Likewise.
59843
59844         Avoid quadratic strstr implementations.
59845         * lib/strstr.c: New file.
59846         * m4/strstr.m4: Likewise.
59847         * modules/strstr: Likewise.
59848         * modules/strstr-tests: Likewise.
59849         * tests/test-strstr.c: Likewise.
59850         * lib/string.in.h (rpl_strstr): Declare.
59851         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
59852         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
59853         * modules/string (Makefile.am): Likewise.
59854         * MODULES.html.sh (string handling): Mention new module.
59855         * doc/functions/strstr.texi (strstr): Document the bug.
59856
59857 2008-01-10  Bruno Haible  <bruno@clisp.org>
59858
59859         * lib/relocatable.h (relocate): State whether result is freshly
59860         allocated or not.
59861         * lib/relocatable.c (relocate): Return a freshly allocated string
59862         instead of a pointer to a privately held string.
59863         Reported by Sylvain Beucler <beuc@gnu.org>.
59864
59865 2008-01-10  Colin Watson  <cjwatson@debian.org>
59866
59867         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
59868         s/S_ISNLK/S_ISLNK/.
59869
59870 2008-01-09  Bruno Haible  <bruno@clisp.org>
59871
59872         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
59873         and other files.
59874         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
59875         if it's only a guess.
59876         * modules/memmem: Simplify by depending on memmem-simple.
59877
59878 2008-01-09  Bruno Haible  <bruno@clisp.org>
59879
59880         Work around OpenBSD 4.0 tdelete() bug.
59881         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
59882         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
59883         macros and don't redefine the enum values.
59884         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
59885         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
59886         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
59887
59888 2008-01-09  Bruno Haible  <bruno@clisp.org>
59889
59890         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
59891         (main): Don't perform the tests if setlocale did not install a UTF-8
59892         locale. Needed on OpenBSD 4.0.
59893         * modules/wcwidth-tests (Depends-on): Add localcharset.
59894
59895 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59896
59897         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
59898         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
59899         * NEWS: announce this.
59900         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
59901
59902 2008-01-09  Simon Josefsson  <simon@josefsson.org>
59903         and Eric Blake  <ebb9@byu.net>
59904
59905         Add memmem-simple module.
59906         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
59907         (gl_FUNC_MEMMEM): Separate performance from presence checks.
59908         * modules/memmem-simple: New file.
59909         * modules/memmem (Description): Tweak.
59910         * MODULES.html.sh (string handling): Mention new module.
59911         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
59912         addressed by memmem-simple.
59913         * NEWS: Document the difference.
59914
59915 2008-01-09  Eric Blake  <ebb9@byu.net>
59916
59917         Give gcc some memmem optimization hints.
59918         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
59919         (strcasestr): Declare as pure.
59920         * modules/memmem (Maintainer): Claim my implementation.
59921
59922 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59923
59924         Support AIX 6.1 and higher.
59925         * build-aux/config.libpath: Likewise.
59926         * build-aux/config.rpath: Likewise.
59927
59928 2008-01-08  Jim Meyering  <meyering@redhat.com>
59929             Bruno Haible  <bruno@clisp.org>
59930
59931         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
59932         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
59933         Reported by Peter Fales in
59934         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
59935
59936 2008-01-08  Bruno Haible  <bruno@clisp.org>
59937
59938         * modules/unictype/category-of (Depends-on): Add
59939         unictype/category-none.
59940         * modules/unictype/category-and-tests (Depends-on): Add
59941         unictype/category-{L,N,Lu,Nd}.
59942         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
59943         * modules/unictype/category-or-tests (Depends-on): Add
59944         unictype/category-{L,N}.
59945         * modules/unictype/category-name-tests (Depends-on): Add
59946         unictype/category-{Z,Nl}.
59947         Reported by Simon Josefsson.
59948
59949 2008-01-08  Bruno Haible  <bruno@clisp.org>
59950
59951         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
59952         convention better.
59953         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
59954         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
59955         Reported by Peter Miller <millerp@canb.auug.org.au>.
59956
59957 2008-01-08  Eric Blake  <ebb9@byu.net>
59958
59959         Rewrite memmem to guarantee linear complexity without malloc.
59960         * lib/memmem.c (memmem): Use Two-Way rather than
59961         Knuth-Morris-Pratt, to allow O(1) space usage.
59962         (critical_factorization, two_way_short_needle)
59963         (two_way_long_needle): New functions.
59964         (knuth_morris_pratt): Delete.
59965         * modules/memmem (Depends-on): No longer need malloca or stdbool.
59966         Add stdint.
59967         * tests/test-memmem.c (main): Add tests for periodic needle and
59968         sublinear performance.
59969         * doc/functions/memmem.texi (memmem): Document other deficiencies
59970         in cygwin and older glibc.
59971
59972 2008-01-08  Bruno Haible  <bruno@clisp.org>
59973
59974         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
59975         augmentation.
59976
59977 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
59978
59979         Add a configure time option: --disable-acl.
59980         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
59981         AC_ARG_ENABLE(acl).
59982
59983 2008-01-06  Simon Josefsson  <simon@josefsson.org>
59984
59985         * tests/test-localename.c: Don't include obsolete "setenv.h".
59986
59987         * modules/localename-tests (Depends-on): Need unsetenv.
59988
59989 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59990
59991         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
59992
59993 2008-01-06  Colin Watson  <cjwatson@debian.org>
59994
59995         * users.txt: Add man-db.
59996
59997 2008-01-07  Bruno Haible  <bruno@clisp.org>
59998
59999         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
60000         previous section name.
60001
60002 2008-01-07  Bruno Haible  <bruno@clisp.org>
60003
60004         * lib/progname.c (set_program_name): Don't strip off a leading
60005         "lt-" prefix outside a .libs directory.
60006         Suggested by Paul Eggert.
60007
60008 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
60009             Bruno Haible  <bruno@clisp.org>
60010
60011         Improve memory cleanup in 'relocatable' module.
60012         * lib/relocatable.h (compute_curr_prefix): Change return type to
60013         'char *'.
60014         * lib/relocatable.c (compute_curr_prefix): Change return type to
60015         'char *'. Free curr_installdir after use.
60016         (relocate): Free curr_prefix_better after use.
60017         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
60018
60019 2008-01-01  Bruno Haible  <bruno@clisp.org>
60020
60021         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
60022         failure on older glibc systems.
60023         Reported by Peter Fales <psfales@alcatel-lucent.com>.
60024
60025 2008-01-05  Eric Blake  <ebb9@byu.net>
60026
60027         Avoid quadratic system memmem.
60028         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
60029         Reported by Ralf Wildenhues.
60030
60031         Fix memmem test for mingw.
60032         * modules/memmem-tests (configure.ac): Check for alarm.
60033         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
60034         it.
60035         * doc/functions/memmem.texi: New file.
60036         * doc/gnulib.texi (Function Substitutes): Add memmem.
60037         Reported by Bruno Haible.
60038
60039 2008-01-04  Bruno Haible  <bruno@clisp.org>
60040
60041         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
60042         Require gl_HEADER_STRINGS_H_DEFAULTS, not
60043         gl_HEADER_STRING_H_DEFAULTS.
60044
60045 2008-01-04  Eric Blake  <ebb9@byu.net>
60046
60047         Shorten duration of memmem test.
60048         * tests/test-memmem.c (main): Use alarm to declare failure if test
60049         is taking too long.
60050         Reported by Ralf Wildenhues.
60051
60052 2007-12-21  Simon Josefsson  <simon@josefsson.org>
60053
60054         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
60055         string, needed by strerror.
60056
60057 2008-01-03  Colin Watson  <cjwatson@debian.org>
60058             Bruno Haible  <bruno@clisp.org>
60059
60060         * doc/gnulib-tool.texi (Localization): New section.
60061
60062 2008-01-02  Bruno Haible  <bruno@clisp.org>
60063
60064         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
60065         variables to 'unsigned char *' type.
60066         Reported by Paul Eggert.
60067
60068 2008-01-02  Jim Meyering  <jim@meyering.net>
60069
60070         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
60071
60072 2007-12-31  Jim Meyering  <jim@meyering.net>
60073
60074         Avoid use of private FTS type name.
60075         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
60076
60077 2007-12-30  Karl Berry  <karl@gnu.org>
60078
60079         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
60080         work around defect in Texinfo and/or the standalone Info browser.
60081
60082 2007-12-30  Bruno Haible  <bruno@clisp.org>
60083
60084         Unify 5 copies of the KMP code.
60085         * lib/str-kmp.h: New file.
60086         * lib/c-strcasestr.c: Include str-kmp.h.
60087         (knuth_morris_pratt): Remove function.
60088         (c_strcasestr): Update.
60089         * lib/c-strstr.c: Include str-kmp.h.
60090         (knuth_morris_pratt): Remove function.
60091         (c_strcasestr): Update.
60092         * lib/mbscasestr.c: Include str-kmp.h.
60093         (knuth_morris_pratt_unibyte): Remove function.
60094         * lib/mbsstr.c: Include str-kmp.h.
60095         (knuth_morris_pratt_unibyte): Remove function.
60096         * lib/strcasestr.c: Include str-kmp.h.
60097         (knuth_morris_pratt): Remove function.
60098         (strcasestr): Update.
60099         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
60100         * modules/c-strstr (Files): Likewise.
60101         * modules/mbscasestr (Files): Likewise.
60102         * modules/mbsstr (Files): Likewise.
60103         * modules/strcasestr (Files): Likewise.
60104         Suggested by Paul Eggert.
60105
60106 2007-12-30  Bruno Haible  <bruno@clisp.org>
60107
60108         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
60109         defined.
60110
60111 2007-12-30  Bruno Haible  <bruno@clisp.org>
60112
60113         * lib/xmalloca.h: Include xalloc.h.
60114         (xnmalloca): New macro.
60115
60116 2007-12-30  Bruno Haible  <bruno@clisp.org>
60117
60118         * lib/malloca.h (nmalloca): New macro.
60119         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
60120         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
60121         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
60122         knuth_morris_pratt_multibyte): Likewise.
60123         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
60124         knuth_morris_pratt_multibyte): Likewise.
60125         * lib/memmem.c (knuth_morris_pratt): Likewise.
60126         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
60127
60128 2007-12-25  Bruno Haible  <bruno@clisp.org>
60129
60130         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
60131         * lib/glob.c: Don't include openat.h.
60132         (link_exists2_p): Add back the code that deals with the
60133         !GLOB_ALTDIRFUNC case.
60134         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
60135         let it do the filename concatenation.
60136         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
60137         * modules/glob (Depends-on): Remove openat.
60138
60139 2007-12-31  Bruno Haible  <bruno@clisp.org>
60140
60141         * modules/dirfd (License): Change to LGPLv2+.
60142         Approved by Jim Meyering.
60143
60144 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
60145
60146         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
60147         when multiplying M by sizeof (size_t).
60148
60149 2007-12-10  Martin Lambers  <marlam@marlam.de>
60150
60151         Override getpagesize on mingw.
60152         * lib/getpagesize.c: New file.
60153         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
60154         * modules/getpagesize (Files): Add lib/getpagesize.c.
60155         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
60156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
60157         REPLACE_GETPAGESIZE.
60158         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
60159
60160 2007-12-25  Bruno Haible  <bruno@clisp.org>
60161
60162         * modules/localcharset (Notice): New field.
60163         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
60164         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
60165
60166 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
60167             Bruno Haible  <bruno@clisp.org>
60168
60169         Avoid using the syntax symbol() in formatted documentation.
60170         * MODULES.html.sh (func_module): When replacing symbol() with a
60171         hyperlink, remove the parentheses. Show an error if some remain.
60172         Recognize and render the '...' syntax.
60173         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
60174         Rework. Add paragraph about GCC's inlining.
60175         * doc/alloca.texi: Likewise.
60176         * doc/error.texi: Remove parentheses from symbol reference.
60177         * doc/gnulib-intro.texi: Likewise.
60178         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
60179         * modules/fnmatch (Description): Reword to say "the ... function".
60180         * modules/full-read (Description): Likewise.
60181         * modules/full-write (Description): Likewise.
60182         * modules/safe-read (Description): Likewise.
60183         * modules/safe-write (Description): Likewise.
60184         * modules/strchrnul (Description): Likewise.
60185         * modules/trim (Description): Likewise.
60186         * modules/error (Description): Remove parentheses from symbol
60187         references.
60188         * modules/verror (Description): Likewise.
60189         Reported by Karl Berry.
60190
60191 2007-12-25  Bruno Haible  <bruno@clisp.org>
60192
60193         Fixup after 2007-10-16 commit.
60194         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
60195
60196 2007-12-24  Bruno Haible  <bruno@clisp.org>
60197
60198         Make --enable-relocatable work with DESTDIR.
60199         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
60200         to compute installdir from destprog.
60201         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
60202         also set the RELOC_DESTDIR variable.
60203         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
60204
60205 2007-12-24  Bruno Haible  <bruno@clisp.org>
60206
60207         Fix link error due to xalloc_die().
60208         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
60209         of xreadlink.
60210         * lib/relocwrapper.c: Update comments.
60211         * build-aux/install-reloc: Remove xreadlink.c from file list.
60212         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
60213         xreadlink.c.
60214         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
60215
60216 2007-12-24  Bruno Haible  <bruno@clisp.org>
60217
60218         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
60219         * lib/setenv.h: Remove file.
60220         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
60221         lib/setenv.h.
60222         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
60223         (Depends-on): Add stdlib.
60224         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
60225         gl_FUNC_UNSETENV.
60226         (Include): Replace setenv.h with <stdlib.h>.
60227         * modules/unsetenv: New file.
60228         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
60229         * lib/unsetenv.c: Include <stdlib.h> first.
60230         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
60231         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
60232         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
60233         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
60234         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
60235         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
60236         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
60237         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
60238         * doc/functions/unsetenv.texi: Update.
60239         * modules/xsetenv (Depends-on): Add unsetenv.
60240         * modules/getdate (Depends-on): Likewise.
60241         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
60242         * lib/xsetenv.c: Don't include setenv.h.
60243         * lib/getdate.y: Likewise.
60244         * lib/relocwrapper.c: Likewise.
60245         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
60246         (Depends-on): Add stdlib.
60247         * NEWS: Mention the changes.
60248         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
60249
60250 2007-12-23  Bruno Haible  <bruno@clisp.org>
60251
60252         * lib/memmem.c (memmem): Use lowercase variable names. Tab
60253         indentation.
60254
60255 2007-12-23  Bruno Haible  <bruno@clisp.org>
60256
60257         * lib/c-strcasestr.c: Add more comments.
60258         * lib/c-strstr.c: Likewise.
60259         * lib/mbscasestr.c: Likewise.
60260         * lib/mbsstr.c: Likewise.
60261         * lib/strcasestr.c: Likewise.
60262         * lib/memmem.c: Likewise.
60263
60264 2007-12-23  Bruno Haible  <bruno@clisp.org>
60265
60266         * tests/test-memmem.c: Include <string.h> first.
60267
60268 2007-12-22  Bruno Haible  <bruno@clisp.org>
60269
60270         * gnulib-tool (func_create_testdir): Change $auxdir while generating
60271         the contents of $testsbase.
60272         Reported by Ralf Wildenhues.
60273
60274 2007-12-22  Bruno Haible  <bruno@clisp.org>
60275
60276         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
60277         two variables local_ldadd_before, local_ldadd_last.
60278
60279 2007-12-20  Eric Blake  <ebb9@byu.net>
60280
60281         Work around circular library issue when cross-compiling.
60282         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
60283         that progname.o does not need to pull in rpl_memcmp.
60284
60285 2007-12-19  Eric Blake  <ebb9@byu.net>
60286
60287         Fix memmem to avoid O(n^2) worst-case complexity.
60288         * lib/memmem.c (knuth_morris_pratt): New function.
60289         (memmem): Use it if first few naive iterations fail.
60290         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
60291         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
60292         * modules/memchr (License): Likewise.
60293         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
60294         malloca.
60295         * tests/test-memmem.c: Rewrite, borrowing ideas from
60296         test-mbsstr1.c; the old version wouldn't even compile!
60297         * modules/memmem-tests: New file.
60298         * lib/string.in.h (rpl_memmem): Add declaration.
60299         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
60300         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
60301         REPLACE_MEMMEM.
60302
60303 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60304
60305         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
60306         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
60307         before any system include files, and undef after them all.  This
60308         should fix a problem on VMS reported by John E. Malmberg in
60309         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
60310
60311 2007-12-17  Eric Blake  <ebb9@byu.net>
60312
60313         Revert addition of verify, for BSD/OS.
60314         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
60315         can't handle large files, for the sake of obsolete platforms.
60316         * modules/fseeko (Depends-on): Remove verify.
60317         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
60318         * doc/functions/ftello.texi (ftello): Likewise.
60319         * doc/functions/fgetpos.texi (fgetpos): Likewise.
60320         Reported by Larry Jones.
60321
60322 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
60323
60324         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
60325         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
60326
60327 2007-12-17  Jim Meyering  <meyering@redhat.com>
60328
60329         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
60330         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
60331         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
60332         * modules/getcwd (Depends-on): Add openat.
60333         Reported by Petr Salinger.
60334
60335 2007-12-17  Bruno Haible  <bruno@clisp.org>
60336
60337         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
60338         avoid a segmentation fault of the configure test on x86_64 systems.
60339
60340 2007-12-15  Jim Meyering  <meyering@redhat.com>
60341
60342         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
60343
60344 2007-12-13  Eric Blake  <ebb9@byu.net>
60345
60346         Another fseek test.
60347         * tests/test-fseek.c (main): Also test ungetc handling.
60348         * tests/test-fseeko.c (main): Likewise.
60349         * modules/fseeko (Depends-on): Add verify.
60350         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
60351         large.
60352         Reported by Larry Jones.
60353
60354         Fix fseeko on mingw.
60355         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
60356         seek.
60357
60358         Beef up fseek tests.
60359         * tests/test-fseek.c (main): Also test eof handling.
60360         * tests/test-fseeko.c (main): Likewise.
60361         Reported by Larry Jones.
60362
60363 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
60364
60365         Fix fseeko on BSD-based platforms.
60366         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
60367         successful seek.
60368
60369 2007-12-12  Eric Blake  <ebb9@byu.net>
60370
60371         Allow circular dependency of separate libtests.a
60372         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
60373         when use_libtests.
60374
60375 2007-12-11  Eric Blake  <ebb9@byu.net>
60376
60377         Fix bug with -0.0L in previous patch.
60378         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
60379         * tests/test-isnan.c (main): Also test on zeroes.
60380         * tests/test-isnanf.c (main): Likewise.
60381         * tests/test-isnanl.h (main): Likewise.
60382
60383         Detect pseudo-denormals on x86 even when cross-compiling.
60384         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
60385         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
60386         invalid bit patterns that happen to satisfy ==.
60387
60388         Avoid link failures with separate libtests.a.
60389         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
60390         last, to satisfy circular dependencies.
60391
60392 2007-12-11  Eric Blake  <ebb9@byu.net>
60393         and Bruno Haible  <bruno@clisp.org>
60394
60395         Fix OpenBSD 4.0 <float.h> handling of long double.
60396         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
60397         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
60398         * doc/headers/float.texi (float.h): Document OpenBSD bug.
60399
60400 2007-12-11  Jim Meyering  <meyering@redhat.com>
60401
60402         * users.txt: Add libvirt.
60403
60404         Support versions of autoconf prior to 2.59c.
60405         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
60406         if it is not already defined.
60407
60408 2007-12-09  Bruno Haible  <bruno@clisp.org>
60409
60410         Let 'gnulib-tool --import' collect sources needed for the tests in
60411         tests/ rather than in lib/.
60412         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
60413         argument. If true, add rules to generate libtests.a, and put libtests.a
60414         into $(LDADD). Consider source files in subdirectories and set
60415         uses_subdirs.
60416         (func_emit_initmacro_start, func_emit_initmacro_end,
60417         func_emit_initmacro_done): Pass all arguments explicitly.
60418         (func_import): Determine two module lists main_modules,
60419         testsrelated_modules. Determine use_libtests. Determine two variables
60420         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
60421         instead of just sed_transform_lib_file. Determine two variables
60422         main_files and testsrelated_files. Compute 'files' as the union of
60423         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
60424         func_add_or_update. In the generated gnulib-comp.m4, collect the
60425         object files for tests/ in different variables than those for lib/.
60426         Substitute LIBTESTS_LIBDEPS.
60427         (func_create_testdir): Combine the uses_subdirs results from
60428         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
60429
60430 2007-12-09  Bruno Haible  <bruno@clisp.org>
60431
60432         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
60433         the build-aux directory.
60434
60435 2007-12-09  Bruno Haible  <bruno@clisp.org>
60436
60437         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
60438         introduced on 2006-09-09.
60439
60440 2007-12-07  Jim Meyering  <meyering@redhat.com>
60441
60442         Let these macros work also with autoconf-2.59.
60443         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
60444         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
60445         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
60446
60447 2007-12-06  Jim Meyering  <meyering@redhat.com>
60448
60449         Avoid a configure-time syntax error in gl_FUNC_ACL.
60450         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
60451         function in each branch, before testing the cache variable.
60452
60453 2007-12-04  Eric Blake  <ebb9@byu.net>
60454
60455         Make scripts executable.
60456         * build-aux/config.guess: Add execute permissions.
60457         * build-aux/config.sub: Likewise.
60458         * build-aux/gendocs.sh: Likewise.
60459
60460         Fix frexp on mingw.
60461         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
60462         cross-compiling.
60463         * doc/functions/frexp.texi (frexp): Document the bug.
60464
60465         Make cygwin fseeko check more reliable.
60466         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
60467         version numbers, rather than unrelated feature check.
60468         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
60469         * doc/functions/ftello.texi (ftello): Likewise.
60470         Reported by Bruno Haible.
60471
60472         * m4/strerror.m4: Bump version number.
60473
60474 2007-12-03  Bruno Haible  <bruno@clisp.org>
60475
60476         * doc/functions/mprotect.texi: Mention the mingw problem.
60477
60478 2007-12-03  Eric Blake  <ebb9@byu.net>
60479
60480         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
60481         REPLACE_STRERROR is initialized before this macro.
60482
60483 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
60484
60485         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
60486         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
60487         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
60488         put -lsec in even for programs other than 'ls'.  This fixes a problem
60489         for gettext reported by Bruno Haible in
60490         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
60491         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
60492         Add support for Solaris 10.  This isn't efficient, but should get the
60493         job done for now.
60494
60495 2007-12-03  James Youngman  <jay@gnu.org>
60496
60497         * doc/regexprops-generic.texi: change "an close-group" to "a
60498         close-group" and "illegal" to "not allowed".
60499
60500 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60501
60502         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
60503         pr_byname.h. Needed for the rare case when the maintainer has done
60504         "make maintainer-clean" in the source directory and then attempts a
60505         build outside the source directory.
60506         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
60507         scripts_byname.h.
60508
60509 2007-12-02  Martin Lambers <marlam@marlam.de>
60510             Bruno Haible  <bruno@clisp.org>
60511
60512         * lib/getpagesize.h: Remove file.
60513         * lib/unistd.in.h: Include declaration of getpagesize here.
60514         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
60515         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
60516         HAVE_SYS_PARAM_H.
60517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
60518         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
60519         * modules/getpagesize (Files): Remove lib/getpagesize.h.
60520         (Depends-on): Add unistd.
60521         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60522         (Include): Use <unistd.h> instead of getpagesize.h.
60523         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
60524         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
60525         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
60526         gl_GETPAGESIZE invocation, already handled by module dependency.
60527         * lib/pagealign_alloc.c: Don't include getpagesize.h.
60528
60529 2007-12-02  Bruno Haible  <bruno@clisp.org>
60530
60531         * modules/strings-tests: New file.
60532         * tests/test-strings.c: New file.
60533
60534         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
60535         * lib/strings.in.h: New file.
60536         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
60537         * m4/strings_h.m4: New file.
60538         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
60539         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
60540         * modules/strings: New file.
60541         * modules/string (Makefile.am): Update.
60542         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
60543         Reported by Karl Berry.
60544
60545 2007-12-01  Eric Blake  <ebb9@byu.net>
60546
60547         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
60548         accommodate fix in cygwin 1.5.25.
60549
60550 2007-12-01  Jim Meyering  <meyering@redhat.com>
60551
60552         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
60553         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
60554         that would inhibit utf8-optimization of a regexp containing line-
60555         or buffer-anchors, e.g., `^', `$'.
60556
60557 2007-11-30  Bruno Haible  <bruno@clisp.org>
60558
60559         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
60560         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
60561         glthread_recursive_lock_init.
60562         * lib/lock.c (glthread_recursive_lock_init)
60563         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
60564         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60565
60566 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
60567
60568         New function qset_acl, like set_acl but with syscall semantics.
60569         * lib/acl.h (qset_acl): New decl.
60570         * lib/acl.c (qset_acl): New function.
60571         (set_acl): Use new function.  Use more-consistent diagnostics.
60572
60573 2007-11-28  Jim Meyering  <meyering@redhat.com>
60574
60575         * modules/physmem (License): Change from GPL to LGPLv2+.
60576
60577 2007-11-26  Bruno Haible  <bruno@clisp.org>
60578
60579         * lib/vasnprintf.c (decode_long_double): Don't abort if the
60580         'long double' type has excess precision.
60581         Reported by Jim Meyering in
60582         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
60583
60584 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60585
60586         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
60587         Sync from <http://gnu.org/licenses>.
60588         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
60589         with license text from same location.
60590         * doc/maintain.texi, doc/standards.texi:  Sync from
60591         <http://savannah.gnu.org/projects/gnustandards>.
60592
60593 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
60594         and Jim Meyering  <meyering@redhat.com>
60595
60596         Adjust getdate' grammar to accept a slightly more regular language.
60597         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
60598         Before, the former was rejected.
60599         * lib/getdate.y (digits_to_date_time): New function, factored
60600         out of ...
60601         (number): ...here.  Just call digits_to_date_time.
60602         (hybrid): New non-terminal to handle an <unsigned number,
60603         signed relative offset> sequence consistently.
60604
60605 2007-11-18  Jim Meyering  <meyering@redhat.com>
60606
60607         Pull my changes from coreutils:
60608         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
60609         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
60610         use of $gnulib_tool_option_extras, so that it's separated from the
60611         preceding argument.
60612
60613         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
60614         * build-aux/bootstrap (cp_mark_as_generated): Create any required
60615         parent destination directories before copying a file into place.
60616
60617 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
60618
60619         bootstrap: work also with 4-argument variant of AC_INIT
60620         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
60621
60622 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60623
60624         Port test-getaddrinfo to Solaris.
60625         Problem reported by Bruno Haible in
60626         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
60627         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
60628         explanation of setting 'hints'.
60629         Don't reject an implementation merely because it returns EAI_SERVICE.
60630         (EAI_SERVICE): Define to 0 if not defined.
60631
60632 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
60633
60634         The license of gnu-make and posix-shell is now "GPLed build tool".
60635         * modules/gnu-make (License): Likewise.
60636         * modules/posix-shell (License): Likewise.
60637
60638         New module posix-shell, for determining a POSIX shell
60639         or perhaps something that is close enough to a POSIX shell.
60640         * m4/posix-shell.m4: New file.
60641         * modules/posix-shell: New file.
60642
60643         * MODULES.html.sh: Mention new module.
60644
60645         New module gnu-make, for determining whether we're using GNU Make.
60646         * m4/gnu-make.m4: New file.
60647         * modules/gnu-make: New file.
60648         * MODULES.html.sh: Mention new module.
60649
60650 2007-11-14  Jim Meyering  <meyering@redhat.com>
60651
60652         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
60653         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
60654         use this macro to create a function _definition_.
60655         Remove useless "#undef ARGMATCH_DIE".
60656
60657 2007-11-14  Bruno Haible  <bruno@clisp.org>
60658
60659         * lib/config.charset: Update for OpenBSD 4.1.
60660         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
60661
60662 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
60663
60664         Document 64-bit #if problems in stdint.texi.
60665         * doc/headers/stdint.texi (stdint.h): Mention problems with
60666         64-bit-#if, and how to work around them.
60667
60668         Don't insist on 'long long int' support in the preprocessor.  It
60669         breaks too many things.  For example, PRIdMAX still uses a 'long
60670         long int' format with the latest Sun compiler, even though
60671         HAVE_LONG_LONG_INT isn't defined due to that compiler's
60672         preprocessor problem.  This causes the latest coreutils to dump
60673         core on Solaris 10 sparc with the Sun C compiler.
60674         Instead, fix the 2007-10-16 problem in a different way, by evaluating
60675         the troublesome expressions at configure-time, not at #if-time.
60676         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
60677         preprocessor.
60678         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
60679         compile-time C checks, done at 'configure'-time.
60680         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
60681         * modules/inttypes (Makefile): Substitute the new symbols that
60682         gl_INTTYPES_H now generates.
60683         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
60684
60685 2007-11-12  Bruno Haible  <bruno@clisp.org>
60686
60687         Tests for Unicode character classification functions.
60688
60689         * modules/unictype/bidicategory-byname-tests: New file.
60690         * modules/unictype/bidicategory-name-tests: New file.
60691         * modules/unictype/bidicategory-of-tests: New file.
60692         * modules/unictype/bidicategory-test-tests: New file.
60693         * modules/unictype/block-list-tests: New file.
60694         * modules/unictype/block-of-tests: New file.
60695         * modules/unictype/block-test-tests: New file.
60696         * modules/unictype/category-C-tests: New file.
60697         * modules/unictype/category-Cc-tests: New file.
60698         * modules/unictype/category-Cf-tests: New file.
60699         * modules/unictype/category-Cn-tests: New file.
60700         * modules/unictype/category-Co-tests: New file.
60701         * modules/unictype/category-Cs-tests: New file.
60702         * modules/unictype/category-L-tests: New file.
60703         * modules/unictype/category-Ll-tests: New file.
60704         * modules/unictype/category-Lm-tests: New file.
60705         * modules/unictype/category-Lo-tests: New file.
60706         * modules/unictype/category-Lt-tests: New file.
60707         * modules/unictype/category-Lu-tests: New file.
60708         * modules/unictype/category-M-tests: New file.
60709         * modules/unictype/category-Mc-tests: New file.
60710         * modules/unictype/category-Me-tests: New file.
60711         * modules/unictype/category-Mn-tests: New file.
60712         * modules/unictype/category-N-tests: New file.
60713         * modules/unictype/category-Nd-tests: New file.
60714         * modules/unictype/category-Nl-tests: New file.
60715         * modules/unictype/category-No-tests: New file.
60716         * modules/unictype/category-P-tests: New file.
60717         * modules/unictype/category-Pc-tests: New file.
60718         * modules/unictype/category-Pd-tests: New file.
60719         * modules/unictype/category-Pe-tests: New file.
60720         * modules/unictype/category-Pf-tests: New file.
60721         * modules/unictype/category-Pi-tests: New file.
60722         * modules/unictype/category-Po-tests: New file.
60723         * modules/unictype/category-Ps-tests: New file.
60724         * modules/unictype/category-S-tests: New file.
60725         * modules/unictype/category-Sc-tests: New file.
60726         * modules/unictype/category-Sk-tests: New file.
60727         * modules/unictype/category-Sm-tests: New file.
60728         * modules/unictype/category-So-tests: New file.
60729         * modules/unictype/category-Z-tests: New file.
60730         * modules/unictype/category-Zl-tests: New file.
60731         * modules/unictype/category-Zp-tests: New file.
60732         * modules/unictype/category-Zs-tests: New file.
60733         * modules/unictype/category-and-not-tests: New file.
60734         * modules/unictype/category-and-tests: New file.
60735         * modules/unictype/category-byname-tests: New file.
60736         * modules/unictype/category-name-tests: New file.
60737         * modules/unictype/category-none-tests: New file.
60738         * modules/unictype/category-of-tests: New file.
60739         * modules/unictype/category-or-tests: New file.
60740         * modules/unictype/category-test-withtable-tests: New file.
60741         * modules/unictype/combining-class-tests: New file.
60742         * modules/unictype/ctype-alnum-tests: New file.
60743         * modules/unictype/ctype-alpha-tests: New file.
60744         * modules/unictype/ctype-blank-tests: New file.
60745         * modules/unictype/ctype-cntrl-tests: New file.
60746         * modules/unictype/ctype-digit-tests: New file.
60747         * modules/unictype/ctype-graph-tests: New file.
60748         * modules/unictype/ctype-lower-tests: New file.
60749         * modules/unictype/ctype-print-tests: New file.
60750         * modules/unictype/ctype-punct-tests: New file.
60751         * modules/unictype/ctype-space-tests: New file.
60752         * modules/unictype/ctype-upper-tests: New file.
60753         * modules/unictype/ctype-xdigit-tests: New file.
60754         * modules/unictype/decimal-digit-tests: New file.
60755         * modules/unictype/digit-tests: New file.
60756         * modules/unictype/mirror-tests: New file.
60757         * modules/unictype/numeric-tests: New file.
60758         * modules/unictype/property-alphabetic-tests: New file.
60759         * modules/unictype/property-ascii-hex-digit-tests: New file.
60760         * modules/unictype/property-bidi-arabic-digit-tests: New file.
60761         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
60762         * modules/unictype/property-bidi-block-separator-tests: New file.
60763         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
60764         * modules/unictype/property-bidi-common-separator-tests: New file.
60765         * modules/unictype/property-bidi-control-tests: New file.
60766         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
60767         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
60768         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
60769         * modules/unictype/property-bidi-european-digit-tests: New file.
60770         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
60771         * modules/unictype/property-bidi-left-to-right-tests: New file.
60772         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
60773         * modules/unictype/property-bidi-other-neutral-tests: New file.
60774         * modules/unictype/property-bidi-pdf-tests: New file.
60775         * modules/unictype/property-bidi-segment-separator-tests: New file.
60776         * modules/unictype/property-bidi-whitespace-tests: New file.
60777         * modules/unictype/property-byname-tests: New file.
60778         * modules/unictype/property-combining-tests: New file.
60779         * modules/unictype/property-composite-tests: New file.
60780         * modules/unictype/property-currency-symbol-tests: New file.
60781         * modules/unictype/property-dash-tests: New file.
60782         * modules/unictype/property-decimal-digit-tests: New file.
60783         * modules/unictype/property-default-ignorable-code-point-tests: New file.
60784         * modules/unictype/property-deprecated-tests: New file.
60785         * modules/unictype/property-diacritic-tests: New file.
60786         * modules/unictype/property-extender-tests: New file.
60787         * modules/unictype/property-format-control-tests: New file.
60788         * modules/unictype/property-grapheme-base-tests: New file.
60789         * modules/unictype/property-grapheme-extend-tests: New file.
60790         * modules/unictype/property-grapheme-link-tests: New file.
60791         * modules/unictype/property-hex-digit-tests: New file.
60792         * modules/unictype/property-hyphen-tests: New file.
60793         * modules/unictype/property-id-continue-tests: New file.
60794         * modules/unictype/property-id-start-tests: New file.
60795         * modules/unictype/property-ideographic-tests: New file.
60796         * modules/unictype/property-ids-binary-operator-tests: New file.
60797         * modules/unictype/property-ids-trinary-operator-tests: New file.
60798         * modules/unictype/property-ignorable-control-tests: New file.
60799         * modules/unictype/property-iso-control-tests: New file.
60800         * modules/unictype/property-join-control-tests: New file.
60801         * modules/unictype/property-left-of-pair-tests: New file.
60802         * modules/unictype/property-line-separator-tests: New file.
60803         * modules/unictype/property-logical-order-exception-tests: New file.
60804         * modules/unictype/property-lowercase-tests: New file.
60805         * modules/unictype/property-math-tests: New file.
60806         * modules/unictype/property-non-break-tests: New file.
60807         * modules/unictype/property-not-a-character-tests: New file.
60808         * modules/unictype/property-numeric-tests: New file.
60809         * modules/unictype/property-other-alphabetic-tests: New file.
60810         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
60811         * modules/unictype/property-other-grapheme-extend-tests: New file.
60812         * modules/unictype/property-other-id-continue-tests: New file.
60813         * modules/unictype/property-other-id-start-tests: New file.
60814         * modules/unictype/property-other-lowercase-tests: New file.
60815         * modules/unictype/property-other-math-tests: New file.
60816         * modules/unictype/property-other-uppercase-tests: New file.
60817         * modules/unictype/property-paired-punctuation-tests: New file.
60818         * modules/unictype/property-paragraph-separator-tests: New file.
60819         * modules/unictype/property-pattern-syntax-tests: New file.
60820         * modules/unictype/property-pattern-white-space-tests: New file.
60821         * modules/unictype/property-private-use-tests: New file.
60822         * modules/unictype/property-punctuation-tests: New file.
60823         * modules/unictype/property-quotation-mark-tests: New file.
60824         * modules/unictype/property-radical-tests: New file.
60825         * modules/unictype/property-sentence-terminal-tests: New file.
60826         * modules/unictype/property-soft-dotted-tests: New file.
60827         * modules/unictype/property-space-tests: New file.
60828         * modules/unictype/property-terminal-punctuation-tests: New file.
60829         * modules/unictype/property-test-tests: New file.
60830         * modules/unictype/property-titlecase-tests: New file.
60831         * modules/unictype/property-unassigned-code-value-tests: New file.
60832         * modules/unictype/property-unified-ideograph-tests: New file.
60833         * modules/unictype/property-uppercase-tests: New file.
60834         * modules/unictype/property-variation-selector-tests: New file.
60835         * modules/unictype/property-white-space-tests: New file.
60836         * modules/unictype/property-xid-continue-tests: New file.
60837         * modules/unictype/property-xid-start-tests: New file.
60838         * modules/unictype/property-zero-width-tests: New file.
60839         * modules/unictype/scripts-tests: New file.
60840         * modules/unictype/syntax-c-ident-tests: New file.
60841         * modules/unictype/syntax-c-whitespace-tests: New file.
60842         * modules/unictype/syntax-java-ident-tests: New file.
60843         * modules/unictype/syntax-java-whitespace-tests: New file.
60844         * tests/unictype/test-bidi_byname.c: New file.
60845         * tests/unictype/test-bidi_name.c: New file.
60846         * tests/unictype/test-bidi_of.c: New file.
60847         * tests/unictype/test-bidi_test.c: New file.
60848         * tests/unictype/test-block_list.c: New file.
60849         * tests/unictype/test-block_of.c: New file.
60850         * tests/unictype/test-block_test.c: New file.
60851         * tests/unictype/test-categ_and.c: New file.
60852         * tests/unictype/test-categ_and_not.c: New file.
60853         * tests/unictype/test-categ_byname.c: New file.
60854         * tests/unictype/test-categ_name.c: New file.
60855         * tests/unictype/test-categ_none.c: New file.
60856         * tests/unictype/test-categ_of.c: New file.
60857         * tests/unictype/test-categ_or.c: New file.
60858         * tests/unictype/test-categ_test_withtable.c: New file.
60859         * tests/unictype/test-combining.c: New file.
60860         * tests/unictype/test-decdigit.c: New file.
60861         * tests/unictype/test-digit.c: New file.
60862         * tests/unictype/test-mirror.c: New file.
60863         * tests/unictype/test-numeric.c: New file.
60864         * tests/unictype/test-pr_byname.c: New file.
60865         * tests/unictype/test-pr_test.c: New file.
60866         * tests/unictype/test-predicate-part1.h: New file.
60867         * tests/unictype/test-predicate-part2.h: New file.
60868         * tests/unictype/test-scripts.c: New file.
60869         * tests/unictype/test-sy_c_ident.c: New file.
60870         * tests/unictype/test-sy_java_ident.c: New file.
60871
60872         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
60873         for Unicode 5.0.0.
60874         * tests/unictype/test-categ_Cc.c: Likewise.
60875         * tests/unictype/test-categ_Cf.c: Likewise.
60876         * tests/unictype/test-categ_Cn.c: Likewise.
60877         * tests/unictype/test-categ_Co.c: Likewise.
60878         * tests/unictype/test-categ_Cs.c: Likewise.
60879         * tests/unictype/test-categ_L.c: Likewise.
60880         * tests/unictype/test-categ_Ll.c: Likewise.
60881         * tests/unictype/test-categ_Lm.c: Likewise.
60882         * tests/unictype/test-categ_Lo.c: Likewise.
60883         * tests/unictype/test-categ_Lt.c: Likewise.
60884         * tests/unictype/test-categ_Lu.c: Likewise.
60885         * tests/unictype/test-categ_M.c: Likewise.
60886         * tests/unictype/test-categ_Mc.c: Likewise.
60887         * tests/unictype/test-categ_Me.c: Likewise.
60888         * tests/unictype/test-categ_Mn.c: Likewise.
60889         * tests/unictype/test-categ_N.c: Likewise.
60890         * tests/unictype/test-categ_Nd.c: Likewise.
60891         * tests/unictype/test-categ_Nl.c: Likewise.
60892         * tests/unictype/test-categ_No.c: Likewise.
60893         * tests/unictype/test-categ_P.c: Likewise.
60894         * tests/unictype/test-categ_Pc.c: Likewise.
60895         * tests/unictype/test-categ_Pd.c: Likewise.
60896         * tests/unictype/test-categ_Pe.c: Likewise.
60897         * tests/unictype/test-categ_Pf.c: Likewise.
60898         * tests/unictype/test-categ_Pi.c: Likewise.
60899         * tests/unictype/test-categ_Po.c: Likewise.
60900         * tests/unictype/test-categ_Ps.c: Likewise.
60901         * tests/unictype/test-categ_S.c: Likewise.
60902         * tests/unictype/test-categ_Sc.c: Likewise.
60903         * tests/unictype/test-categ_Sk.c: Likewise.
60904         * tests/unictype/test-categ_Sm.c: Likewise.
60905         * tests/unictype/test-categ_So.c: Likewise.
60906         * tests/unictype/test-categ_Z.c: Likewise.
60907         * tests/unictype/test-categ_Zl.c: Likewise.
60908         * tests/unictype/test-categ_Zp.c: Likewise.
60909         * tests/unictype/test-categ_Zs.c: Likewise.
60910         * tests/unictype/test-ctype_alnum.c: Likewise.
60911         * tests/unictype/test-ctype_alpha.c: Likewise.
60912         * tests/unictype/test-ctype_blank.c: Likewise.
60913         * tests/unictype/test-ctype_cntrl.c: Likewise.
60914         * tests/unictype/test-ctype_digit.c: Likewise.
60915         * tests/unictype/test-ctype_graph.c: Likewise.
60916         * tests/unictype/test-ctype_lower.c: Likewise.
60917         * tests/unictype/test-ctype_print.c: Likewise.
60918         * tests/unictype/test-ctype_punct.c: Likewise.
60919         * tests/unictype/test-ctype_space.c: Likewise.
60920         * tests/unictype/test-ctype_upper.c: Likewise.
60921         * tests/unictype/test-ctype_xdigit.c: Likewise.
60922         * tests/unictype/test-decdigit.h: Likewise.
60923         * tests/unictype/test-digit.h: Likewise.
60924         * tests/unictype/test-numeric.h: Likewise.
60925         * tests/unictype/test-pr_alphabetic.c: Likewise.
60926         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
60927         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60928         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
60929         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
60930         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
60931         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
60932         * tests/unictype/test-pr_bidi_control.c: Likewise.
60933         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
60934         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
60935         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60936         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
60937         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60938         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60939         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60940         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60941         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
60942         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
60943         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
60944         * tests/unictype/test-pr_combining.c: Likewise.
60945         * tests/unictype/test-pr_composite.c: Likewise.
60946         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60947         * tests/unictype/test-pr_dash.c: Likewise.
60948         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60949         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
60950         * tests/unictype/test-pr_deprecated.c: Likewise.
60951         * tests/unictype/test-pr_diacritic.c: Likewise.
60952         * tests/unictype/test-pr_extender.c: Likewise.
60953         * tests/unictype/test-pr_format_control.c: Likewise.
60954         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60955         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60956         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60957         * tests/unictype/test-pr_hex_digit.c: Likewise.
60958         * tests/unictype/test-pr_hyphen.c: Likewise.
60959         * tests/unictype/test-pr_id_continue.c: Likewise.
60960         * tests/unictype/test-pr_id_start.c: Likewise.
60961         * tests/unictype/test-pr_ideographic.c: Likewise.
60962         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
60963         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
60964         * tests/unictype/test-pr_ignorable_control.c: Likewise.
60965         * tests/unictype/test-pr_iso_control.c: Likewise.
60966         * tests/unictype/test-pr_join_control.c: Likewise.
60967         * tests/unictype/test-pr_left_of_pair.c: Likewise.
60968         * tests/unictype/test-pr_line_separator.c: Likewise.
60969         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
60970         * tests/unictype/test-pr_lowercase.c: Likewise.
60971         * tests/unictype/test-pr_math.c: Likewise.
60972         * tests/unictype/test-pr_non_break.c: Likewise.
60973         * tests/unictype/test-pr_not_a_character.c: Likewise.
60974         * tests/unictype/test-pr_numeric.c: Likewise.
60975         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60976         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
60977         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
60978         * tests/unictype/test-pr_other_id_continue.c: Likewise.
60979         * tests/unictype/test-pr_other_id_start.c: Likewise.
60980         * tests/unictype/test-pr_other_lowercase.c: Likewise.
60981         * tests/unictype/test-pr_other_math.c: Likewise.
60982         * tests/unictype/test-pr_other_uppercase.c: Likewise.
60983         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
60984         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
60985         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
60986         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
60987         * tests/unictype/test-pr_private_use.c: Likewise.
60988         * tests/unictype/test-pr_punctuation.c: Likewise.
60989         * tests/unictype/test-pr_quotation_mark.c: Likewise.
60990         * tests/unictype/test-pr_radical.c: Likewise.
60991         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60992         * tests/unictype/test-pr_soft_dotted.c: Likewise.
60993         * tests/unictype/test-pr_space.c: Likewise.
60994         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60995         * tests/unictype/test-pr_titlecase.c: Likewise.
60996         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60997         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60998         * tests/unictype/test-pr_uppercase.c: Likewise.
60999         * tests/unictype/test-pr_variation_selector.c: Likewise.
61000         * tests/unictype/test-pr_white_space.c: Likewise.
61001         * tests/unictype/test-pr_xid_continue.c: Likewise.
61002         * tests/unictype/test-pr_xid_start.c: Likewise.
61003         * tests/unictype/test-pr_zero_width.c: Likewise.
61004         * tests/unictype/test-sy_c_whitespace.c: Likewise.
61005         * tests/unictype/test-sy_java_whitespace.c: Likewise.
61006
61007 2007-11-12  Bruno Haible  <bruno@clisp.org>
61008
61009         Unicode character classification functions.
61010         * lib/unictype.h: New file.
61011         * modules/unictype/base: New file.
61012         * modules/unictype/category-L: New file.
61013         * modules/unictype/category-Lu: New file.
61014         * modules/unictype/category-Ll: New file.
61015         * modules/unictype/category-Lt: New file.
61016         * modules/unictype/category-Lm: New file.
61017         * modules/unictype/category-Lo: New file.
61018         * modules/unictype/category-M: New file.
61019         * modules/unictype/category-Mn: New file.
61020         * modules/unictype/category-Mc: New file.
61021         * modules/unictype/category-Me: New file.
61022         * modules/unictype/category-N: New file.
61023         * modules/unictype/category-Nd: New file.
61024         * modules/unictype/category-Nl: New file.
61025         * modules/unictype/category-No: New file.
61026         * modules/unictype/category-P: New file.
61027         * modules/unictype/category-Pc: New file.
61028         * modules/unictype/category-Pd: New file.
61029         * modules/unictype/category-Ps: New file.
61030         * modules/unictype/category-Pe: New file.
61031         * modules/unictype/category-Pi: New file.
61032         * modules/unictype/category-Pf: New file.
61033         * modules/unictype/category-Po: New file.
61034         * modules/unictype/category-S: New file.
61035         * modules/unictype/category-Sm: New file.
61036         * modules/unictype/category-Sc: New file.
61037         * modules/unictype/category-Sk: New file.
61038         * modules/unictype/category-So: New file.
61039         * modules/unictype/category-Z: New file.
61040         * modules/unictype/category-Zs: New file.
61041         * modules/unictype/category-Zl: New file.
61042         * modules/unictype/category-Zp: New file.
61043         * modules/unictype/category-C: New file.
61044         * modules/unictype/category-Cc: New file.
61045         * modules/unictype/category-Cf: New file.
61046         * modules/unictype/category-Cs: New file.
61047         * modules/unictype/category-Co: New file.
61048         * modules/unictype/category-Cn: New file.
61049         * modules/unictype/category-or: New file.
61050         * modules/unictype/category-of: New file.
61051         * modules/unictype/category-test: New file.
61052         * modules/unictype/category-test-withtable: New file.
61053         * modules/unictype/category-byname: New file.
61054         * modules/unictype/category-none: New file.
61055         * modules/unictype/category-and: New file.
61056         * modules/unictype/category-and-not: New file.
61057         * modules/unictype/category-name: New file.
61058         * modules/unictype/combining-class: New file.
61059         * modules/unictype/category-all: New file.
61060         * modules/unictype/bidicategory-all: New file.
61061         * modules/unictype/bidicategory-byname: New file.
61062         * modules/unictype/bidicategory-name: New file.
61063         * modules/unictype/bidicategory-of: New file.
61064         * modules/unictype/bidicategory-test: New file.
61065         * modules/unictype/decimal-digit: New file.
61066         * modules/unictype/digit: New file.
61067         * modules/unictype/numeric: New file.
61068         * modules/unictype/mirror: New file.
61069         * modules/unictype/property-white-space: New file.
61070         * modules/unictype/property-alphabetic: New file.
61071         * modules/unictype/property-other-alphabetic: New file.
61072         * modules/unictype/property-not-a-character: New file.
61073         * modules/unictype/property-default-ignorable-code-point: New file.
61074         * modules/unictype/property-other-default-ignorable-code-point: New
61075         file.
61076         * modules/unictype/property-deprecated: New file.
61077         * modules/unictype/property-logical-order-exception: New file.
61078         * modules/unictype/property-variation-selector: New file.
61079         * modules/unictype/property-private-use: New file.
61080         * modules/unictype/property-unassigned-code-value: New file.
61081         * modules/unictype/property-uppercase: New file.
61082         * modules/unictype/property-other-uppercase: New file.
61083         * modules/unictype/property-lowercase: New file.
61084         * modules/unictype/property-other-lowercase: New file.
61085         * modules/unictype/property-titlecase: New file.
61086         * modules/unictype/property-soft-dotted: New file.
61087         * modules/unictype/property-id-start: New file.
61088         * modules/unictype/property-other-id-start: New file.
61089         * modules/unictype/property-id-continue: New file.
61090         * modules/unictype/property-other-id-continue: New file.
61091         * modules/unictype/property-xid-start: New file.
61092         * modules/unictype/property-xid-continue: New file.
61093         * modules/unictype/property-pattern-white-space: New file.
61094         * modules/unictype/property-pattern-syntax: New file.
61095         * modules/unictype/property-join-control: New file.
61096         * modules/unictype/property-grapheme-base: New file.
61097         * modules/unictype/property-grapheme-extend: New file.
61098         * modules/unictype/property-other-grapheme-extend: New file.
61099         * modules/unictype/property-grapheme-link: New file.
61100         * modules/unictype/property-bidi-control: New file.
61101         * modules/unictype/property-bidi-left-to-right: New file.
61102         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
61103         * modules/unictype/property-bidi-arabic-right-to-left: New file.
61104         * modules/unictype/property-bidi-european-digit: New file.
61105         * modules/unictype/property-bidi-eur-num-separator: New file.
61106         * modules/unictype/property-bidi-eur-num-terminator: New file.
61107         * modules/unictype/property-bidi-arabic-digit: New file.
61108         * modules/unictype/property-bidi-common-separator: New file.
61109         * modules/unictype/property-bidi-block-separator: New file.
61110         * modules/unictype/property-bidi-segment-separator: New file.
61111         * modules/unictype/property-bidi-whitespace: New file.
61112         * modules/unictype/property-bidi-non-spacing-mark: New file.
61113         * modules/unictype/property-bidi-boundary-neutral: New file.
61114         * modules/unictype/property-bidi-pdf: New file.
61115         * modules/unictype/property-bidi-embedding-or-override: New file.
61116         * modules/unictype/property-bidi-other-neutral: New file.
61117         * modules/unictype/property-hex-digit: New file.
61118         * modules/unictype/property-ascii-hex-digit: New file.
61119         * modules/unictype/property-ideographic: New file.
61120         * modules/unictype/property-unified-ideograph: New file.
61121         * modules/unictype/property-radical: New file.
61122         * modules/unictype/property-ids-binary-operator: New file.
61123         * modules/unictype/property-ids-trinary-operator: New file.
61124         * modules/unictype/property-zero-width: New file.
61125         * modules/unictype/property-space: New file.
61126         * modules/unictype/property-non-break: New file.
61127         * modules/unictype/property-iso-control: New file.
61128         * modules/unictype/property-format-control: New file.
61129         * modules/unictype/property-dash: New file.
61130         * modules/unictype/property-hyphen: New file.
61131         * modules/unictype/property-punctuation: New file.
61132         * modules/unictype/property-line-separator: New file.
61133         * modules/unictype/property-paragraph-separator: New file.
61134         * modules/unictype/property-quotation-mark: New file.
61135         * modules/unictype/property-sentence-terminal: New file.
61136         * modules/unictype/property-terminal-punctuation: New file.
61137         * modules/unictype/property-currency-symbol: New file.
61138         * modules/unictype/property-math: New file.
61139         * modules/unictype/property-other-math: New file.
61140         * modules/unictype/property-paired-punctuation: New file.
61141         * modules/unictype/property-left-of-pair: New file.
61142         * modules/unictype/property-combining: New file.
61143         * modules/unictype/property-composite: New file.
61144         * modules/unictype/property-decimal-digit: New file.
61145         * modules/unictype/property-numeric: New file.
61146         * modules/unictype/property-diacritic: New file.
61147         * modules/unictype/property-extender: New file.
61148         * modules/unictype/property-ignorable-control: New file.
61149         * modules/unictype/property-test: New file.
61150         * modules/unictype/property-byname: New file.
61151         * modules/unictype/property-all: New file.
61152         * modules/unictype/scripts: New file.
61153         * modules/unictype/scripts-all: New file.
61154         * modules/unictype/block-of: New file.
61155         * modules/unictype/block-test: New file.
61156         * modules/unictype/block-list: New file.
61157         * modules/unictype/block-all: New file.
61158         * modules/unictype/syntax-c-whitespace: New file.
61159         * modules/unictype/syntax-java-whitespace: New file.
61160         * modules/unictype/syntax-c-ident: New file.
61161         * modules/unictype/syntax-java-ident: New file.
61162         * modules/unictype/ctype-alnum: New file.
61163         * modules/unictype/ctype-alpha: New file.
61164         * modules/unictype/ctype-cntrl: New file.
61165         * modules/unictype/ctype-digit: New file.
61166         * modules/unictype/ctype-graph: New file.
61167         * modules/unictype/ctype-lower: New file.
61168         * modules/unictype/ctype-print: New file.
61169         * modules/unictype/ctype-punct: New file.
61170         * modules/unictype/ctype-space: New file.
61171         * modules/unictype/ctype-upper: New file.
61172         * modules/unictype/ctype-xdigit: New file.
61173         * modules/unictype/ctype-blank: New file.
61174         * lib/unictype/bidi_byname.c: New file.
61175         * lib/unictype/bidi_name.c: New file.
61176         * lib/unictype/bidi_of.c: New file.
61177         * lib/unictype/bidi_test.c: New file.
61178         * lib/unictype/bitmap.h: New file.
61179         * lib/unictype/block_test.c: New file.
61180         * lib/unictype/blocks.c: New file.
61181         * lib/unictype/categ_C.c: New file.
61182         * lib/unictype/categ_Cc.c: New file.
61183         * lib/unictype/categ_Cf.c: New file.
61184         * lib/unictype/categ_Cn.c: New file.
61185         * lib/unictype/categ_Co.c: New file.
61186         * lib/unictype/categ_Cs.c: New file.
61187         * lib/unictype/categ_L.c: New file.
61188         * lib/unictype/categ_Ll.c: New file.
61189         * lib/unictype/categ_Lm.c: New file.
61190         * lib/unictype/categ_Lo.c: New file.
61191         * lib/unictype/categ_Lt.c: New file.
61192         * lib/unictype/categ_Lu.c: New file.
61193         * lib/unictype/categ_M.c: New file.
61194         * lib/unictype/categ_Mc.c: New file.
61195         * lib/unictype/categ_Me.c: New file.
61196         * lib/unictype/categ_Mn.c: New file.
61197         * lib/unictype/categ_N.c: New file.
61198         * lib/unictype/categ_Nd.c: New file.
61199         * lib/unictype/categ_Nl.c: New file.
61200         * lib/unictype/categ_No.c: New file.
61201         * lib/unictype/categ_P.c: New file.
61202         * lib/unictype/categ_Pc.c: New file.
61203         * lib/unictype/categ_Pd.c: New file.
61204         * lib/unictype/categ_Pe.c: New file.
61205         * lib/unictype/categ_Pf.c: New file.
61206         * lib/unictype/categ_Pi.c: New file.
61207         * lib/unictype/categ_Po.c: New file.
61208         * lib/unictype/categ_Ps.c: New file.
61209         * lib/unictype/categ_S.c: New file.
61210         * lib/unictype/categ_Sc.c: New file.
61211         * lib/unictype/categ_Sk.c: New file.
61212         * lib/unictype/categ_Sm.c: New file.
61213         * lib/unictype/categ_So.c: New file.
61214         * lib/unictype/categ_Z.c: New file.
61215         * lib/unictype/categ_Zl.c: New file.
61216         * lib/unictype/categ_Zp.c: New file.
61217         * lib/unictype/categ_Zs.c: New file.
61218         * lib/unictype/categ_and.c: New file.
61219         * lib/unictype/categ_and_not.c: New file.
61220         * lib/unictype/categ_byname.c: New file.
61221         * lib/unictype/categ_name.c: New file.
61222         * lib/unictype/categ_none.c: New file.
61223         * lib/unictype/categ_of.c: New file.
61224         * lib/unictype/categ_or.c: New file.
61225         * lib/unictype/categ_test.c: New file.
61226         * lib/unictype/combining.c: New file.
61227         * lib/unictype/ctype_alnum.c: New file.
61228         * lib/unictype/ctype_alpha.c: New file.
61229         * lib/unictype/ctype_blank.c: New file.
61230         * lib/unictype/ctype_cntrl.c: New file.
61231         * lib/unictype/ctype_digit.c: New file.
61232         * lib/unictype/ctype_graph.c: New file.
61233         * lib/unictype/ctype_lower.c: New file.
61234         * lib/unictype/ctype_print.c: New file.
61235         * lib/unictype/ctype_punct.c: New file.
61236         * lib/unictype/ctype_space.c: New file.
61237         * lib/unictype/ctype_upper.c: New file.
61238         * lib/unictype/ctype_xdigit.c: New file.
61239         * lib/unictype/decdigit.c: New file.
61240         * lib/unictype/digit.c: New file.
61241         * lib/unictype/identsyntaxmap.h: New file.
61242         * lib/unictype/mirror.c: New file.
61243         * lib/unictype/numeric.c: New file.
61244         * lib/unictype/pr_alphabetic.c: New file.
61245         * lib/unictype/pr_ascii_hex_digit.c: New file.
61246         * lib/unictype/pr_bidi_arabic_digit.c: New file.
61247         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
61248         * lib/unictype/pr_bidi_block_separator.c: New file.
61249         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
61250         * lib/unictype/pr_bidi_common_separator.c: New file.
61251         * lib/unictype/pr_bidi_control.c: New file.
61252         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
61253         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
61254         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
61255         * lib/unictype/pr_bidi_european_digit.c: New file.
61256         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
61257         * lib/unictype/pr_bidi_left_to_right.c: New file.
61258         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
61259         * lib/unictype/pr_bidi_other_neutral.c: New file.
61260         * lib/unictype/pr_bidi_pdf.c: New file.
61261         * lib/unictype/pr_bidi_segment_separator.c: New file.
61262         * lib/unictype/pr_bidi_whitespace.c: New file.
61263         * lib/unictype/pr_byname.c: New file.
61264         * lib/unictype/pr_byname.gperf: New file.
61265         * lib/unictype/pr_combining.c: New file.
61266         * lib/unictype/pr_composite.c: New file.
61267         * lib/unictype/pr_currency_symbol.c: New file.
61268         * lib/unictype/pr_dash.c: New file.
61269         * lib/unictype/pr_decimal_digit.c: New file.
61270         * lib/unictype/pr_default_ignorable_code_point.c: New file.
61271         * lib/unictype/pr_deprecated.c: New file.
61272         * lib/unictype/pr_diacritic.c: New file.
61273         * lib/unictype/pr_extender.c: New file.
61274         * lib/unictype/pr_format_control.c: New file.
61275         * lib/unictype/pr_grapheme_base.c: New file.
61276         * lib/unictype/pr_grapheme_extend.c: New file.
61277         * lib/unictype/pr_grapheme_link.c: New file.
61278         * lib/unictype/pr_hex_digit.c: New file.
61279         * lib/unictype/pr_hyphen.c: New file.
61280         * lib/unictype/pr_id_continue.c: New file.
61281         * lib/unictype/pr_id_start.c: New file.
61282         * lib/unictype/pr_ideographic.c: New file.
61283         * lib/unictype/pr_ids_binary_operator.c: New file.
61284         * lib/unictype/pr_ids_trinary_operator.c: New file.
61285         * lib/unictype/pr_ignorable_control.c: New file.
61286         * lib/unictype/pr_iso_control.c: New file.
61287         * lib/unictype/pr_join_control.c: New file.
61288         * lib/unictype/pr_left_of_pair.c: New file.
61289         * lib/unictype/pr_line_separator.c: New file.
61290         * lib/unictype/pr_logical_order_exception.c: New file.
61291         * lib/unictype/pr_lowercase.c: New file.
61292         * lib/unictype/pr_math.c: New file.
61293         * lib/unictype/pr_non_break.c: New file.
61294         * lib/unictype/pr_not_a_character.c: New file.
61295         * lib/unictype/pr_numeric.c: New file.
61296         * lib/unictype/pr_other_alphabetic.c: New file.
61297         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
61298         * lib/unictype/pr_other_grapheme_extend.c: New file.
61299         * lib/unictype/pr_other_id_continue.c: New file.
61300         * lib/unictype/pr_other_id_start.c: New file.
61301         * lib/unictype/pr_other_lowercase.c: New file.
61302         * lib/unictype/pr_other_math.c: New file.
61303         * lib/unictype/pr_other_uppercase.c: New file.
61304         * lib/unictype/pr_paired_punctuation.c: New file.
61305         * lib/unictype/pr_paragraph_separator.c: New file.
61306         * lib/unictype/pr_pattern_syntax.c: New file.
61307         * lib/unictype/pr_pattern_white_space.c: New file.
61308         * lib/unictype/pr_private_use.c: New file.
61309         * lib/unictype/pr_punctuation.c: New file.
61310         * lib/unictype/pr_quotation_mark.c: New file.
61311         * lib/unictype/pr_radical.c: New file.
61312         * lib/unictype/pr_sentence_terminal.c: New file.
61313         * lib/unictype/pr_soft_dotted.c: New file.
61314         * lib/unictype/pr_space.c: New file.
61315         * lib/unictype/pr_terminal_punctuation.c: New file.
61316         * lib/unictype/pr_test.c: New file.
61317         * lib/unictype/pr_titlecase.c: New file.
61318         * lib/unictype/pr_unassigned_code_value.c: New file.
61319         * lib/unictype/pr_unified_ideograph.c: New file.
61320         * lib/unictype/pr_uppercase.c: New file.
61321         * lib/unictype/pr_variation_selector.c: New file.
61322         * lib/unictype/pr_white_space.c: New file.
61323         * lib/unictype/pr_xid_continue.c: New file.
61324         * lib/unictype/pr_xid_start.c: New file.
61325         * lib/unictype/pr_zero_width.c: New file.
61326         * lib/unictype/scripts.c: New file.
61327         * lib/unictype/sy_c_ident.c: New file.
61328         * lib/unictype/sy_c_whitespace.c: New file.
61329         * lib/unictype/sy_java_ident.c: New file.
61330         * lib/unictype/sy_java_whitespace.c: New file.
61331
61332         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
61333         Unicode 5.0.0.
61334         * lib/unictype/blocks.h: Likewise.
61335         * lib/unictype/categ_C.h: Likewise.
61336         * lib/unictype/categ_Cc.h: Likewise.
61337         * lib/unictype/categ_Cf.h: Likewise.
61338         * lib/unictype/categ_Cn.h: Likewise.
61339         * lib/unictype/categ_Co.h: Likewise.
61340         * lib/unictype/categ_Cs.h: Likewise.
61341         * lib/unictype/categ_L.h: Likewise.
61342         * lib/unictype/categ_Ll.h: Likewise.
61343         * lib/unictype/categ_Lm.h: Likewise.
61344         * lib/unictype/categ_Lo.h: Likewise.
61345         * lib/unictype/categ_Lt.h: Likewise.
61346         * lib/unictype/categ_Lu.h: Likewise.
61347         * lib/unictype/categ_M.h: Likewise.
61348         * lib/unictype/categ_Mc.h: Likewise.
61349         * lib/unictype/categ_Me.h: Likewise.
61350         * lib/unictype/categ_Mn.h: Likewise.
61351         * lib/unictype/categ_N.h: Likewise.
61352         * lib/unictype/categ_Nd.h: Likewise.
61353         * lib/unictype/categ_Nl.h: Likewise.
61354         * lib/unictype/categ_No.h: Likewise.
61355         * lib/unictype/categ_P.h: Likewise.
61356         * lib/unictype/categ_Pc.h: Likewise.
61357         * lib/unictype/categ_Pd.h: Likewise.
61358         * lib/unictype/categ_Pe.h: Likewise.
61359         * lib/unictype/categ_Pf.h: Likewise.
61360         * lib/unictype/categ_Pi.h: Likewise.
61361         * lib/unictype/categ_Po.h: Likewise.
61362         * lib/unictype/categ_Ps.h: Likewise.
61363         * lib/unictype/categ_S.h: Likewise.
61364         * lib/unictype/categ_Sc.h: Likewise.
61365         * lib/unictype/categ_Sk.h: Likewise.
61366         * lib/unictype/categ_Sm.h: Likewise.
61367         * lib/unictype/categ_So.h: Likewise.
61368         * lib/unictype/categ_Z.h: Likewise.
61369         * lib/unictype/categ_Zl.h: Likewise.
61370         * lib/unictype/categ_Zp.h: Likewise.
61371         * lib/unictype/categ_Zs.h: Likewise.
61372         * lib/unictype/categ_of.h: Likewise.
61373         * lib/unictype/combining.h: Likewise.
61374         * lib/unictype/ctype_alnum.h: Likewise.
61375         * lib/unictype/ctype_alpha.h: Likewise.
61376         * lib/unictype/ctype_blank.h: Likewise.
61377         * lib/unictype/ctype_cntrl.h: Likewise.
61378         * lib/unictype/ctype_digit.h: Likewise.
61379         * lib/unictype/ctype_graph.h: Likewise.
61380         * lib/unictype/ctype_lower.h: Likewise.
61381         * lib/unictype/ctype_print.h: Likewise.
61382         * lib/unictype/ctype_punct.h: Likewise.
61383         * lib/unictype/ctype_space.h: Likewise.
61384         * lib/unictype/ctype_upper.h: Likewise.
61385         * lib/unictype/ctype_xdigit.h: Likewise.
61386         * lib/unictype/decdigit.h: Likewise.
61387         * lib/unictype/digit.h: Likewise.
61388         * lib/unictype/mirror.h: Likewise.
61389         * lib/unictype/numeric.h: Likewise.
61390         * lib/unictype/pr_alphabetic.h: Likewise.
61391         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
61392         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
61393         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
61394         * lib/unictype/pr_bidi_block_separator.h: Likewise.
61395         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
61396         * lib/unictype/pr_bidi_common_separator.h: Likewise.
61397         * lib/unictype/pr_bidi_control.h: Likewise.
61398         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
61399         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
61400         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
61401         * lib/unictype/pr_bidi_european_digit.h: Likewise.
61402         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
61403         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
61404         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
61405         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
61406         * lib/unictype/pr_bidi_pdf.h: Likewise.
61407         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
61408         * lib/unictype/pr_bidi_whitespace.h: Likewise.
61409         * lib/unictype/pr_combining.h: Likewise.
61410         * lib/unictype/pr_composite.h: Likewise.
61411         * lib/unictype/pr_currency_symbol.h: Likewise.
61412         * lib/unictype/pr_dash.h: Likewise.
61413         * lib/unictype/pr_decimal_digit.h: Likewise.
61414         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
61415         * lib/unictype/pr_deprecated.h: Likewise.
61416         * lib/unictype/pr_diacritic.h: Likewise.
61417         * lib/unictype/pr_extender.h: Likewise.
61418         * lib/unictype/pr_format_control.h: Likewise.
61419         * lib/unictype/pr_grapheme_base.h: Likewise.
61420         * lib/unictype/pr_grapheme_extend.h: Likewise.
61421         * lib/unictype/pr_grapheme_link.h: Likewise.
61422         * lib/unictype/pr_hex_digit.h: Likewise.
61423         * lib/unictype/pr_hyphen.h: Likewise.
61424         * lib/unictype/pr_id_continue.h: Likewise.
61425         * lib/unictype/pr_id_start.h: Likewise.
61426         * lib/unictype/pr_ideographic.h: Likewise.
61427         * lib/unictype/pr_ids_binary_operator.h: Likewise.
61428         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
61429         * lib/unictype/pr_ignorable_control.h: Likewise.
61430         * lib/unictype/pr_iso_control.h: Likewise.
61431         * lib/unictype/pr_join_control.h: Likewise.
61432         * lib/unictype/pr_left_of_pair.h: Likewise.
61433         * lib/unictype/pr_line_separator.h: Likewise.
61434         * lib/unictype/pr_logical_order_exception.h: Likewise.
61435         * lib/unictype/pr_lowercase.h: Likewise.
61436         * lib/unictype/pr_math.h: Likewise.
61437         * lib/unictype/pr_non_break.h: Likewise.
61438         * lib/unictype/pr_not_a_character.h: Likewise.
61439         * lib/unictype/pr_numeric.h: Likewise.
61440         * lib/unictype/pr_other_alphabetic.h: Likewise.
61441         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
61442         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
61443         * lib/unictype/pr_other_id_continue.h: Likewise.
61444         * lib/unictype/pr_other_id_start.h: Likewise.
61445         * lib/unictype/pr_other_lowercase.h: Likewise.
61446         * lib/unictype/pr_other_math.h: Likewise.
61447         * lib/unictype/pr_other_uppercase.h: Likewise.
61448         * lib/unictype/pr_paired_punctuation.h: Likewise.
61449         * lib/unictype/pr_paragraph_separator.h: Likewise.
61450         * lib/unictype/pr_pattern_syntax.h: Likewise.
61451         * lib/unictype/pr_pattern_white_space.h: Likewise.
61452         * lib/unictype/pr_private_use.h: Likewise.
61453         * lib/unictype/pr_punctuation.h: Likewise.
61454         * lib/unictype/pr_quotation_mark.h: Likewise.
61455         * lib/unictype/pr_radical.h: Likewise.
61456         * lib/unictype/pr_sentence_terminal.h: Likewise.
61457         * lib/unictype/pr_soft_dotted.h: Likewise.
61458         * lib/unictype/pr_space.h: Likewise.
61459         * lib/unictype/pr_terminal_punctuation.h: Likewise.
61460         * lib/unictype/pr_titlecase.h: Likewise.
61461         * lib/unictype/pr_unassigned_code_value.h: Likewise.
61462         * lib/unictype/pr_unified_ideograph.h: Likewise.
61463         * lib/unictype/pr_uppercase.h: Likewise.
61464         * lib/unictype/pr_variation_selector.h: Likewise.
61465         * lib/unictype/pr_white_space.h: Likewise.
61466         * lib/unictype/pr_xid_continue.h: Likewise.
61467         * lib/unictype/pr_xid_start.h: Likewise.
61468         * lib/unictype/pr_zero_width.h: Likewise.
61469         * lib/unictype/scripts.h: Likewise.
61470         * lib/unictype/scripts_byname.gperf: Likewise.
61471         * lib/unictype/sy_c_ident.h: Likewise.
61472         * lib/unictype/sy_c_whitespace.h: Likewise.
61473         * lib/unictype/sy_java_ident.h: Likewise.
61474         * lib/unictype/sy_java_whitespace.h: Likewise.
61475
61476         * lib/unictype/Makefile: New file.
61477         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
61478         glibc.
61479         * lib/unictype/3level.h: New file, copied from glibc.
61480         * lib/unictype/3levelbit.h: New file.
61481
61482 2007-11-11  Bruno Haible  <bruno@clisp.org>
61483
61484         * modules/gperf: New file.
61485         * modules/iconv_open (Depends-on): Add it.
61486         (Makefile.am): Remove the GPERF definition.
61487
61488 2007-11-11  Bruno Haible  <bruno@clisp.org>
61489
61490         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
61491         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
61492
61493 2007-11-11  Bruno Haible  <bruno@clisp.org>
61494
61495         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
61496         (usage): Remove function.
61497
61498 2007-11-11  Bruno Haible  <bruno@clisp.org>
61499
61500         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
61501         gl_FUNC_CEILF_LIBS.
61502         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
61503         gl_FUNC_CEIL_LIBS.
61504         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
61505         gl_FUNC_CEILL_LIBS.
61506         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
61507         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
61508         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
61509
61510 2007-11-11  Bruno Haible  <bruno@clisp.org>
61511
61512         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
61513         roundf were declared but do not exist on functions.
61514         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
61515         roundl were declared but do not exist on functions.
61516         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
61517         HAVE_FLOORL_AND_CEILL, respectively.
61518         Needed for Sun C on Solaris 10.
61519
61520 2007-11-11  Bruno Haible  <bruno@clisp.org>
61521
61522         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
61523         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
61524         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
61525         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
61526         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
61527         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
61528         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
61529         HAVE_DECL_ROUNDF.
61530         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
61531         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
61532         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
61533         of HAVE_DECL_ROUND*.
61534         * modules/math (Makefile.am): Update.
61535
61536 2007-11-10  Bruno Haible  <bruno@clisp.org>
61537
61538         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
61539         ptrdiff_t as m4/intl.m4.
61540
61541 2007-11-10  Jim Meyering  <meyering@redhat.com>
61542
61543         Avoid link failure for the argmatch test.
61544         * tests/test-argmatch.c (usage): Define function to avoid a link
61545         failure: argmatch_die requires a usage function.
61546
61547 2007-11-09  Bruno Haible  <bruno@clisp.org>
61548
61549         * doc/functions/snprintf.texi: Mention BeOS deficiency.
61550         * doc/functions/vsnprintf.texi: Likewise.
61551         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
61552         with a size argument < 2.
61553
61554 2007-11-09  Bruno Haible  <bruno@clisp.org>
61555
61556         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
61557         buffer. Fixes an inefficiency introduced on 2007-11-03.
61558
61559 2007-11-09  Bruno Haible  <bruno@clisp.org>
61560
61561         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
61562         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
61563
61564 2007-11-08  Jim Meyering  <meyering@redhat.com>
61565
61566         Change cache variable name prefix "jm_" to "gl_" everywhere.
61567         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
61568         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
61569         * m4/uptime.m4: s/gl_/jm_/
61570
61571 2007-11-07  Bruno Haible  <bruno@clisp.org>
61572
61573         Update to GNU gettext 0.17.
61574         * m4/intl.m4: Update to GNU gettext 0.17.
61575         * m4/po.m4: Likewise.
61576         * modules/gettext (Files): Remove m4/ulonglong.m4.
61577         (configure.ac): Require gettext infrastructure from version 0.17.
61578
61579 2007-11-06  Bruno Haible  <bruno@clisp.org>
61580
61581         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
61582         symbolic values are not defined in a public header.
61583         * lib/freadable.c (freadable) [QNX]: Likewise.
61584         * lib/freadahead.c (freadahead) [QNX]: Likewise.
61585         * lib/freading.c (freading) [QNX]: Likewise.
61586         * lib/fseterr.c (fseterr) [QNX]: Likewise.
61587         * lib/fwritable.c (fwritable) [QNX]: Likewise.
61588         * lib/fwriting.c (fwriting) [QNX]: Likewise.
61589         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
61590         Reported by Alain Magloire.
61591
61592         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
61593
61594 2007-11-05  Bruno Haible  <bruno@clisp.org>
61595
61596         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
61597         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
61598         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
61599         Reported by Eric Blake.
61600
61601 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61602             Bruno Haible  <bruno@clisp.org>
61603
61604         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
61605         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
61606         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
61607         (malloc): Undefine also before including <stdlib.h>.
61608         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
61609         Needed on OSF/1 4.0.
61610
61611 2007-11-05  Jim Meyering  <meyering@redhat.com>
61612
61613         git-version-gen: sync from coreutils.
61614         * build-aux/git-version-gen: Add comments.
61615         Change the first '-' to '.' in the snapshot version string,
61616         e.g., 6.9-377-08144 -> 6.9.377-08144
61617         Remove first parameter.
61618         Don't declare a version "-dirty" merely because a time
61619         stamp has changed.
61620
61621 2007-11-04  Bruno Haible  <bruno@clisp.org>
61622
61623         * lib/lock.h: Protect all macro definitions containing an 'if'
61624         statement through a "do { ... } while (0)".
61625         * lib/tls.h: Likewise.
61626
61627 2007-11-04  Bruno Haible  <bruno@clisp.org>
61628
61629         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
61630
61631 2007-11-04  Bruno Haible  <bruno@clisp.org>
61632
61633         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
61634         * modules/fprintf-posix (Depends-on): Add nocrash.
61635         * modules/snprintf-posix (Depends-on): Likewise.
61636         * modules/sprintf-posix (Depends-on): Likewise.
61637         * modules/vasnprintf-posix (Depends-on): Likewise.
61638         * modules/vasprintf-posix (Depends-on): Likewise.
61639         * modules/vfprintf-posix (Depends-on): Likewise.
61640         * modules/vsnprintf-posix (Depends-on): Likewise.
61641         * modules/vsprintf-posix (Depends-on): Likewise.
61642         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61643         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61644         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61645         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61646         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61647         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61648         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61649
61650 2007-11-04  Bruno Haible  <bruno@clisp.org>
61651
61652         * modules/nocrash: New file.
61653         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
61654         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
61655
61656 2007-11-04  Bruno Haible  <bruno@clisp.org>
61657
61658         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
61659         precision handling.
61660         * tests/test-vasprintf-posix.c (test_function): Likewise.
61661         * tests/test-snprintf-posix.h (test_function): Likewise.
61662         * tests/test-sprintf-posix.h (test_function): Likewise.
61663
61664         Fix *printf behaviour for large precisions on mingw and BeOS.
61665         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
61666         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
61667         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
61668         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61669         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61670         gl_PRINTF_PRECISION and test its result. Invoke
61671         gl_PREREQ_VASNPRINTF_PRECISION.
61672         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61673         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61674         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61675         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61676         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61677         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61678         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61679         * doc/functions/fprintf.texi: Update.
61680         * doc/functions/printf.texi: Update.
61681         * doc/functions/snprintf.texi: Update.
61682         * doc/functions/sprintf.texi: Update.
61683         * doc/functions/vfprintf.texi: Update.
61684         * doc/functions/vprintf.texi: Update.
61685         * doc/functions/vsnprintf.texi: Update.
61686         * doc/functions/vsprintf.texi: Update.
61687
61688 2007-11-04  Bruno Haible  <bruno@clisp.org>
61689
61690         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
61691
61692 2007-11-04  Bruno Haible  <bruno@clisp.org>
61693
61694         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
61695         Reported by Sylvain Beucler <beuc@gnu.org>.
61696
61697 2007-11-03  Bruno Haible  <bruno@clisp.org>
61698
61699         * tests/test-fprintf-posix2.sh: New file.
61700         * tests/test-fprintf-posix2.c: New file.
61701         * modules/fprintf-posix-tests (Files): Add them.
61702         (TESTS): Add test-fprintf-posix2.sh.
61703         (configure.ac): Check for getrlimit and setrlimit.
61704         (check_PROGRAMS): Add test-fprintf-posix2.
61705
61706         * tests/test-printf-posix2.sh: New file.
61707         * tests/test-printf-posix2.c: New file.
61708         * modules/printf-posix-tests (Files): Add them.
61709         (TESTS): Add test-printf-posix2.sh.
61710         (configure.ac): Check for getrlimit and setrlimit.
61711         (check_PROGRAMS): Add test-printf-posix2.
61712
61713         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
61714         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
61715         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
61716         (decode_double): New function, copied from decode_long_double.
61717         (scale10_round_decimal_decoded): New function, extracted from
61718         scale10_round_decimal_long_double.
61719         (scale10_round_decimal_long_double): Use it.
61720         (scale10_round_decimal_double): New function.
61721         (floorlog10): New function.
61722         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
61723         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
61724         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61725         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61726         gl_PRINTF_ENOMEM and test its result. Invoke
61727         gl_PREREQ_VASNPRINTF_ENOMEM.
61728         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61729         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61730         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61731         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61732         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61733         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61734         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61735         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
61736         * modules/snprintf-posix (Depends-on): Likewise.
61737         * modules/sprintf-posix (Depends-on): Likewise.
61738         * modules/vasnprintf-posix (Depends-on): Likewise.
61739         * modules/vasprintf-posix (Depends-on): Likewise.
61740         * modules/vfprintf-posix (Depends-on): Likewise.
61741         * modules/vsnprintf-posix (Depends-on): Likewise.
61742         * modules/vsprintf-posix (Depends-on): Likewise.
61743         * doc/functions/fprintf.texi: Update.
61744         * doc/functions/printf.texi: Update.
61745         * doc/functions/snprintf.texi: Update.
61746         * doc/functions/sprintf.texi: Update.
61747         * doc/functions/vfprintf.texi: Update.
61748         * doc/functions/vprintf.texi: Update.
61749         * doc/functions/vsnprintf.texi: Update.
61750         * doc/functions/vsprintf.texi: Update.
61751
61752 2007-11-03  Bruno Haible  <bruno@clisp.org>
61753
61754         * modules/frexp-nolibm-tests: New file.
61755
61756         * modules/frexp-nolibm: New file.
61757         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
61758
61759 2007-11-03  Bruno Haible  <bruno@clisp.org>
61760
61761         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
61762         value is C99 compliant.
61763         Needed for OSF/1 5.1.
61764
61765 2007-11-03  Bruno Haible  <bruno@clisp.org>
61766
61767         Fix out-of-memory handling of vasnprintf.
61768         * lib/printf-parse.c: Include <errno.h>.
61769         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
61770         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
61771         is already set.
61772
61773 2007-11-02  Eric Blake  <ebb9@byu.net>
61774
61775         Fix tests on cygwin.
61776         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
61777
61778 2007-11-01  Bruno Haible  <bruno@clisp.org>
61779
61780         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
61781         warning.
61782         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
61783         needed for POSIX compatibility.
61784
61785 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61786
61787         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
61788         for compatibility with GNU.
61789
61790 2007-11-01  Bruno Haible  <bruno@clisp.org>
61791
61792         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
61793         (putenv): Renamed from rpl_putenv. Change argument type from
61794         'const char *' to 'char *'.
61795         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
61796         of defining putenv in config.h, just set REPLACE_PUTENV.
61797         * modules/putenv (Depends-on): Add stdlib.
61798         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61799         (Include): Use <stdlib.h>.
61800         * lib/stdlib.in.h (putenv): New declaration.
61801         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
61802         REPLACE_PUTENV.
61803         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
61804         REPLACE_PUTENV.
61805         Needed for MacOS X 10.5.0.
61806         Reported by Peter O'Gorman <peter@pogma.com>.
61807
61808 2007-11-01  Jim Meyering  <meyering@redhat.com>
61809
61810         Treat an empty date string exactly like "0".
61811         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
61812         if the remaining date string (to be parsed) is empty, use "0".
61813         Reported by Mischa Molhoek and discussed in this thread:
61814         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
61815
61816 2007-10-31  Bruno Haible  <bruno@clisp.org>
61817
61818         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
61819         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
61820         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
61821         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
61822         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
61823         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
61824
61825 2007-10-31  Bruno Haible  <bruno@clisp.org>
61826
61827         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
61828         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
61829         (AC_TYPE_LONG_LONG_INT): Use it.
61830         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
61831         it as well.
61832         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
61833         to m4/longlong.m4.
61834         * modules/stdint (Files): Remove m4/ulonglong.m4.
61835         * modules/strtoull (Files): Use m4/longlong.m4 instead of
61836         m4/ulonglong.m4.
61837         * modules/strtoumax (Files): Likewise.
61838
61839 2007-10-30  Bruno Haible  <bruno@clisp.org>
61840
61841         * modules/xvasprintf-posix: New file.
61842         Suggested by Eric Blake.
61843
61844 2007-10-30  Bruno Haible  <bruno@clisp.org>
61845
61846         * modules/xprintf-posix-tests: New file.
61847         * tests/test-xprintf-posix.sh: New file.
61848         * tests/test-xprintf-posix.c: New file.
61849         * tests/test-xfprintf-posix.c: New file.
61850
61851         * modules/xprintf-posix: New file.
61852
61853 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61854
61855         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
61856         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
61857         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
61858
61859 2007-10-29  Bruno Haible  <bruno@clisp.org>
61860
61861         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
61862         contain the special marker '_cv_'.
61863         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
61864         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
61865         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
61866         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
61867         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
61868         Reported by Ralf Wildenhues.
61869
61870 2007-10-29  Bruno Haible  <bruno@clisp.org>
61871
61872         * gnulib-tool (func_import): When --lgpl is not specified, set
61873         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
61874         GPLv3.
61875         Reported by Simon Josefsson.
61876
61877 2007-10-28  Bruno Haible  <bruno@clisp.org>
61878
61879         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
61880         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
61881         HAVE_DECL_ISFINITE.
61882         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61883         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
61884         HAVE_DECL_ISFINITE.
61885
61886 2007-10-28  Bruno Haible  <bruno@clisp.org>
61887
61888         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
61889         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
61890
61891 2007-10-28  Bruno Haible  <bruno@clisp.org>
61892
61893         Fix link errors with Sun C 5.0 on Solaris 10.
61894         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
61895         function is declared but not present in the compiler's libm.
61896         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
61897         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
61898         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
61899         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
61900         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
61901         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
61902         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
61903         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61904         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
61905         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
61906         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
61907         HAVE_DECL_FLOORL.
61908
61909 2007-10-28  Bruno Haible  <bruno@clisp.org>
61910
61911         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
61912         gl_FUNC_FLOORL. Cache the result.
61913         (gl_FUNC_FLOORL): Use it.
61914         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
61915         gl_FUNC_CEILL. Cache the result.
61916         (gl_FUNC_CEILL): Use it.
61917
61918         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
61919         gl_FUNC_FLOOR. Cache the result.
61920         (gl_FUNC_FLOOR): Use it.
61921         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
61922         gl_FUNC_CEIL. Cache the result.
61923         (gl_FUNC_CEIL): Use it.
61924
61925         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
61926         gl_FUNC_FLOORF. Cache the result.
61927         (gl_FUNC_FLOORF): Use it.
61928         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
61929         gl_FUNC_CEILF. Cache the result.
61930         (gl_FUNC_CEILF): Use it.
61931
61932 2007-10-28  Bruno Haible  <bruno@clisp.org>
61933
61934         * gnulib-tool: Allow specifying the LGPL version number through
61935         --lgpl=2 or --lgpl=3.
61936         (func_usage): Document --lgpl with argument.
61937         Handle --lgpl=... arguments.
61938         (func_import): Recognize also gl_LGPL calls with an argument. When
61939         --lgpl=2 is used and the module's license is just LGPL, report an
61940         error. Set sed_transform_lib_file according to the lgpl variable. In
61941         the generated files, use --lgpl or gl_LGPL invocations with argument,
61942         if necessary.
61943         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
61944         an LGPv2+ license.
61945         * doc/gnulib-tool.texi (Modified imports): Update explanation of
61946         gl_LGPL macro.
61947
61948 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61949             Bruno Haible  <bruno@clisp.org>
61950
61951         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
61952         (u16_uctomb_aux): Likewise.
61953         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
61954         !HAVE_INLINE.
61955         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
61956
61957 2007-10-28  Bruno Haible  <bruno@clisp.org>
61958
61959         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
61960         Invoke AM_GETTEXT_OPTION if it exists.
61961         * modules/vasprintf: Likewise.
61962         * modules/verror: Likewise.
61963         * modules/xprintf: Likewise.
61964         * modules/xvasprintf: Likewise.
61965
61966 2007-10-27  Ben Pfaff  <blp@gnu.org>
61967
61968         * lib/math.in.h: Define isfinite macro and prototypes for
61969         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
61970         implementations.
61971         * m4/math_h.m4: New substitutions for isfinite module.
61972         * lib/isfinite.c: New file.
61973         * m4/isfinite.m4: New file.
61974         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
61975         * modules/isfinite: New file.
61976         * modules/isfinite-tests: New file.
61977         * tests/tests-isfinite.c: New file.
61978         * doc/functions/isfinite.texi: Mention isfinite module.
61979         * MODULES.html.sh: Mention new module.
61980
61981 2007-10-27  Ben Pfaff  <blp@gnu.org>
61982
61983         Ralf Wildenhues reported that Tru64 4.0D declares the round
61984         functions but does not have definitions.
61985         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
61986         cannot be found in any library, set the output variable to
61987         "missing" instead of "".
61988         * m4/round.m4: Also use our substitute if we cannot find round in
61989         any library, even if it is declared.
61990         * m4/roundf.m4: Likewise for roundf.
61991         * m4/roundl.m4: Likewise for roundl.
61992         * lib/math.in.h: Undefine roundf, round, roundl before defining
61993         their replacements, to allow for hypothetical systems where these
61994         may be defined as macros but not available in libraries.
61995
61996 2007-10-27  Bruno Haible  <bruno@clisp.org>
61997
61998         * doc/gnulib.texi: Invoke @firstparagraphindent.
61999         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
62000         changes in gnulib.
62001         (Source changes): New section.
62002
62003 2007-10-26  Bruno Haible  <bruno@clisp.org>
62004
62005         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
62006         borrowed from autoconf.
62007
62008 2007-10-26  Bruno Haible  <bruno@clisp.org>
62009
62010         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
62011         strerror returned the empty string. Needed on HP-UX 11.00.
62012
62013 2007-10-24  Micah Cowan  <micah@cowan.name>
62014
62015         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
62016         * build-aux/bootstrap: Remove support for now-unnecessary option,
62017         --cvs-user, and envvars CVS_USER, CVS_RSH.
62018
62019 2007-10-24  Jim Meyering  <meyering@redhat.com>
62020
62021         Avoid diagnostics from sha1sum when there is no cached checksum.
62022         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
62023         if the po.s1 file hasn't been created yet.
62024
62025         * build-aux/bootstrap: Sync from coreutils:
62026         2007-10-24  Jim Meyering  <meyering@redhat.com>
62027         Get gnulib from the git repository, not from an obsolete cvs one.
62028         * build-aux/bootstrap: Suggestion from Micah Cowan.
62029         2007-10-04  Jim Meyering  <jim@meyering.net>
62030         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
62031         (update_po_files): Work also when there are no .po files in po/.
62032
62033 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62034
62035         * README: Append ".git" to git and cg examples.
62036         Problem reported by Benoit Sigoure.
62037
62038 2007-10-23  Micah Cowan  <micah@cowan.name>
62039
62040         * users.txt: Add wget.
62041
62042 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62043
62044         Fix linking of some unistdio tests on FreeBSD.
62045         * modules/unistdio/u16-vsnprintf-tests
62046         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
62047         * modules/unistdio/u16-vsprintf-tests
62048         (test_u16_vsnprintf1_LDADD): Likewise.
62049         * modules/unistdio/u32-vsnprintf-tests
62050         (test_u32_vsnprintf1_LDADD): Likewise.
62051         * modules/unistdio/u32-vsprintf-tests
62052         (test_u32_vsprintf1_LDADD): Likewise.
62053         * modules/unistdio/u8-vsnprintf-tests
62054         (test_u8_vsnprintf1_LDADD): Likewise.
62055         * modules/unistdio/u8-vsprintf-tests
62056         (test_u8_vsprintf1_LDADD): Likewise.
62057         * modules/unistdio/ulc-vsnprintf-tests
62058         (test_ulc_vsnprintf1_LDADD): Likewise.
62059         * modules/unistdio/ulc-vsprintf-tests
62060         (test_ulc_vsprintf1_LDADD): Likewise.
62061
62062         Fix linking of some uniconv tests on FreeBSD.
62063         * modules/uniconv/u16-conv-from-enc-tests
62064         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
62065         * modules/uniconv/u16-conv-to-enc-tests
62066         (test_u16_conv_to_enc_LDADD): Likewise.
62067         * modules/uniconv/u16-strconv-from-enc-tests
62068         (test_u16_strconv_from_enc_LDADD): Likewise.
62069         * modules/uniconv/u16-strconv-to-enc-tests
62070         (test_u16_strconv_to_enc_LDADD): Likewise.
62071         * modules/uniconv/u32-conv-from-enc-tests
62072         (test_u32_conv_from_enc_LDADD): Likewise.
62073         * modules/uniconv/u32-conv-to-enc-tests
62074         (test_u32_conv_to_enc_LDADD): Likewise.
62075         * modules/uniconv/u32-strconv-from-enc-tests
62076         (test_u32_strconv_from_enc_LDADD): Likewise.
62077         * modules/uniconv/u32-strconv-to-enc-tests
62078         (test_u32_strconv_to_enc_LDADD): Likewise.
62079         * modules/uniconv/u8-conv-from-enc-tests
62080         (test_u8_conv_from_enc_LDADD): Likewise.
62081         * modules/uniconv/u8-conv-to-enc-tests
62082         (test_u8_conv_to_enc_LDADD): Likewise.
62083         * modules/uniconv/u8-strconv-from-enc-tests
62084         (test_u8_strconv_from_enc_LDADD): Likewise.
62085         * modules/uniconv/u8-strconv-to-enc-tests
62086         (test_u8_strconv_to_enc_LDADD): Likewise.
62087
62088 2007-10-22  Bruno Haible  <bruno@clisp.org>
62089
62090         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
62091         size.
62092
62093 2007-10-22  Eric Blake  <ebb9@byu.net>
62094
62095         Tweak x*printf documentation.
62096         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
62097         variable name and comments.
62098         Suggested by Bruno Haible.
62099
62100 2007-10-22  Bruno Haible  <bruno@clisp.org>
62101
62102         * lib/acl.c (copy_acl): Fix file name in comment.
62103
62104 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62105
62106         Fix Tru64 problem with stdbool.h.
62107         * lib/stdbool.in.h (false, true):
62108         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
62109         Don't declare as an enum in this situation; it runs afoul of Tru64.
62110         Problem reported by Steven M. Schweda in
62111         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
62112
62113 2007-10-22  Eric Blake  <ebb9@byu.net>
62114
62115         Also wrap vf?printf.
62116         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
62117         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
62118         (xvprintf, xvfprintf): New functions.
62119
62120 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62121
62122         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
62123         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
62124
62125         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
62126         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
62127
62128 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62129
62130         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
62131         by Bruno Haible.
62132
62133 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62134
62135         * lib/getloadavg.c
62136         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
62137         Undef `sys' after including sys/table.h, for Tru64 4.0D.
62138
62139         * tests/test-i-ring.c: Work for C89.
62140
62141 2007-10-22  Bruno Haible  <bruno@clisp.org>
62142
62143         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
62144         -1u, in preprocessor expression, so that we don't test for the bug
62145         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
62146         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
62147
62148 2007-10-22  Eric Blake  <ebb9@byu.net>
62149
62150         * tests/test-yesno.sh: Silence stderr during test.
62151
62152 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62153
62154         * modules/crypto/gc-camellia: New file.
62155
62156         * m4/gc-camellia.m4: New file.
62157
62158         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
62159
62160         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
62161
62162 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62163
62164         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
62165         --help to stdout.  Reported by sms@antinode.org (Steven
62166         M. Schweda).
62167
62168 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62169
62170         * users.txt: Fix link to libksba.
62171
62172 2007-10-21  Ben Pfaff  <blp@gnu.org>
62173
62174         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
62175         round.c roundf implementation that depends on floorf and ceilf to
62176         be tested unconditionally.
62177
62178 2007-10-21  Ben Pfaff  <blp@gnu.org>
62179
62180         * m4/check-libm-func.m4: Removed.
62181         * m4/check-math-lib.m4: New file.
62182         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
62183         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
62184         definition and lack of AC_LIBOBJ([roundf]).
62185         * m4/roundl.m4: Ditto, and similarly for roundl.
62186         * modules/round: Reference new m4 file.
62187         * modules/roundf: Ditto.
62188         * modules/roundl: Ditto.
62189         * tests/test-round2.c (main): Use ROUND instead of round.
62190         Bug report from Bruno Haible.
62191
62192 2007-10-21  Bruno Haible  <bruno@clisp.org>
62193
62194         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
62195         context.
62196
62197 2007-10-21  Bruno Haible  <bruno@clisp.org>
62198
62199         * tests/test-wcwidth.c (main): Allow negative result for some control
62200         characters.
62201
62202         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
62203         Needed on OSF/1 5.1.
62204
62205 2007-10-21  Bruno Haible  <bruno@clisp.org>
62206
62207         * tests/test-floorf1.c: Include isnanf.h.
62208         (main): Use isnanf() instead of isnan().
62209         * tests/test-ceilf1.c: Include isnanf.h.
62210         (main): Use isnanf() instead of isnan().
62211         * tests/test-truncf1.c: Include isnanf.h.
62212         (main): Use isnanf() instead of isnan().
62213         * tests/test-roundf1.c: Include isnanf.h.
62214         (main): Use isnanf() instead of isnan().
62215
62216 2007-10-21  Eric Blake  <ebb9@byu.net>
62217
62218         * users.txt: Update URL for m4.
62219
62220 2007-10-21  Bruno Haible  <bruno@clisp.org>
62221
62222         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
62223
62224 2007-10-21  Bruno Haible  <bruno@clisp.org>
62225
62226         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
62227         Git's management files if the CVS files are not present.
62228
62229 2007-10-20  Bruno Haible  <bruno@clisp.org>
62230
62231         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
62232         gcc-3.4.x.
62233
62234 2007-10-20  Ben Pfaff  <blp@gnu.org>
62235
62236         * lib/math.in.h: Declare round, roundf, roundl if we are providing
62237         implementations.
62238         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
62239         * lib/round.c: New file.
62240         * lib/roundf.c: New file.
62241         * lib/roundl.c: New file.
62242         * m4/round.m4: New file.
62243         * m4/roundf.m4: New file.
62244         * m4/roundl.m4: New file.
62245         * m4/check-libm-func-m4: New file.
62246         * modules/math: Replace round, roundf, roundl related @VARS@ in
62247         math.in.h.
62248         * modules/round: New file.
62249         * modules/round-tests: New file.
62250         * modules/roundf: New file.
62251         * modules/roundf-tests: New file.
62252         * modules/roundl: New file.
62253         * modules/roundl-tests: New file.
62254         * tests/test-round1.c: New file.
62255         * tests/test-round2.c: New file.
62256         * tests/test-roundf1.c: New file.
62257         * tests/test-roundf2.c: New file.
62258         * tests/test-roundl.c: New file.
62259         * doc/functions/round.texi: Mention round module.
62260         * doc/functions/roundf.texi: Mention roundf module.
62261         * doc/functions/roundl.texi: Mention roundl module.
62262         * MODULES.html.sh: Mention new modules.
62263         Thanks to Bruno Haible for suggestions.
62264
62265 2007-10-20  Jim Meyering  <meyering@redhat.com>
62266
62267         * lib/xprintf.c: Include <config.h> unconditionally.
62268
62269         Change xprintf's license to GPL.
62270         * modules/xprintf (License): s/LGPL/GPL/, since this module
62271         depends on modules (exit and exitfail) which are GPL.
62272         Suggestion from Bruno Haible.
62273
62274         xprintf fixes.
62275         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
62276         Use a clearer diagnostic.
62277         Patch from Bruno Haible.
62278
62279 2007-10-20  Bruno Haible  <bruno@clisp.org>
62280
62281         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
62282         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
62283         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62284
62285 2007-10-20  Bruno Haible  <bruno@clisp.org>
62286
62287         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
62288         precision in the comparison result > x - 1 or similar.
62289         * tests/test-ceilf2.c (correct_result_p): Likewise.
62290         * tests/test-truncf2.c (correct_result_p): Likewise.
62291         * tests/test-trunc2.c (correct_result_p): Likewise.
62292         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62293
62294 2007-10-20  Bruno Haible  <bruno@clisp.org>
62295
62296         * modules/ceil: New file.
62297         * m4/ceil.m4: New file.
62298         * doc/functions/ceil.texi: Mention the 'ceil' module.
62299
62300 2007-10-20  Bruno Haible  <bruno@clisp.org>
62301
62302         * modules/floor: New file.
62303         * m4/floor.m4: New file.
62304         * doc/functions/floor.texi: Mention the 'floor' module.
62305
62306 2007-10-20  Bruno Haible  <bruno@clisp.org>
62307
62308         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
62309         of %a.
62310         * modules/floorf-tests (Depends-on): Likewise.
62311         * modules/truncf-tests (Depends-on): Likewise.
62312         * modules/trunc-tests (Depends-on): Likewise.
62313         Reported by Ben Pfaff.
62314
62315 2007-10-19  Jim Meyering  <meyering@redhat.com>
62316
62317         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
62318         Don't bother testing specific errno values.  Just test ferror.
62319
62320         New module: xprintf
62321         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
62322
62323 2007-10-19  Bruno Haible  <bruno@clisp.org>
62324
62325         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
62326         syntax.
62327         * modules/javaexec (Makefile.am): Likewise.
62328         * modules/relocatable-prog (Makefile.am): Likewise.
62329         Suggested by Jim Meyering.
62330
62331 2007-10-18  Bruno Haible  <bruno@clisp.org>
62332
62333         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
62334         Reported by Jim Meyering.
62335
62336 2007-10-18  Eric Blake  <ebb9@byu.net>
62337
62338         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
62339
62340 2007-10-18  Bruno Haible  <bruno@clisp.org>
62341
62342         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
62343         the format string into writable memory. Needed in Fortify conditions.
62344
62345 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
62346             Bruno Haible  <bruno@clisp.org>
62347
62348         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
62349         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
62350         * modules/trim (Depends-on): Add mbchar.
62351         (configure.ac): Add gl_FUNC_MBRTOWC.
62352         (Makefile.am): Augment lib_SOURCES.
62353
62354 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62355
62356         Modify glob.c to use fstatat and dirfd, to simplify it.
62357         Suggested by Eric Blake.
62358         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
62359         Don't include <stdbool.h>; not used.
62360         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
62361         (link_exists_p): Simplify implementation, since we can now assume
62362         dirfd and fstatat.
62363         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
62364
62365 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62366
62367         * gnulib-tool (func_get_dependencies): Fix sed script to
62368         match only tests.
62369
62370 2007-10-17  Bruno Haible  <bruno@clisp.org>
62371
62372         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
62373         allow locale names without encoding suffix.
62374         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
62375         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62376
62377 2007-10-16  Bruno Haible  <bruno@clisp.org>
62378
62379         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
62380         * lib/getgroups.c (getgroups): Likewise.
62381         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
62382
62383 2007-10-16  Bruno Haible  <bruno@clisp.org>
62384
62385         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
62386         * modules/malloc-posix (License): Likewise.
62387         * modules/realloc-posix (License): Likewise.
62388         * modules/calloc-posix (License): Likewise.
62389         * modules/intprops (License): Change from GPL to LGPL, with
62390         Paul Eggert's approval.
62391
62392 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62393
62394         Merge glibc changes into lib/glob.c.
62395
62396         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
62397         2007-10-15 04:59:03 UTC.  Here are the changes:
62398
62399         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
62400
62401         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
62402
62403         * lib/glob.c: Add some branch prediction throughout.
62404
62405         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
62406
62407         [BZ #5103]
62408         * lib/glob.c (glob): Recognize patterns starting \/.
62409
62410         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
62411
62412         [BZ #3996]
62413         * lib/glob.c (attribute_hidden): Define if not defined.
62414         (glob): Unescape dirname, filename or username when needed and not
62415         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
62416         is NULL.  Handle unescaped [ in pattern without closing ].
62417         Don't pass GLOB_CHECK down to recursive glob for directories.
62418         (__glob_pattern_type): New function.
62419         (__glob_pattern_p): Implement using __glob_pattern_type.
62420         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
62421         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
62422         Remove unreachable code.
62423
62424         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
62425
62426         * lib/glob.c (glob_in_dir): Add some comments and asserts to
62427         explain why there are no leaks.
62428
62429         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
62430
62431         [BZ #3253]
62432         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
62433         time, rather allocate increasingly bigger arrays of pointers, if
62434         possible with alloca, if too large with malloc.
62435
62436 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62437
62438         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
62439         Problem reported by H.Merijn Brand in
62440         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
62441         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
62442         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
62443
62444 2007-10-15  Bruno Haible  <bruno@clisp.org>
62445
62446         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
62447         with explicit rpl_ prefix.
62448         * lib/fopen.c (fopen): Likewise.
62449         * lib/freopen.c (freopen): Likewise.
62450         * lib/iconv.c (iconv): Likewise.
62451         * lib/iconv_close.c (iconv_close): Likewise.
62452
62453 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62454
62455         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
62456
62457 2007-10-15  Bruno Haible  <bruno@clisp.org>
62458
62459         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
62460         <stddef.h> instead of <stdlib.h> since we only need NULL.
62461         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62462
62463 2007-10-15  Bruno Haible  <bruno@clisp.org>
62464
62465         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
62466         Replace paragraph talking about LIBOBJS.
62467         Reported by Colin Watson <cjwatson@debian.org>.
62468
62469 2007-10-15  Bruno Haible  <bruno@clisp.org>
62470
62471         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
62472         <stdlib.h> before using NULL.
62473
62474 2007-10-15  Simon Josefsson  <simon@josefsson.org>
62475
62476         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
62477         Reported by Albert Chin <china@thewrittenword.com>.
62478
62479 2007-10-14  Bruno Haible  <bruno@clisp.org>
62480
62481         * modules/iconv_open-utf-tests: New file.
62482         * tests/test-iconv-utf.c: New file.
62483
62484         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
62485         * modules/iconv_open-utf: New file.
62486         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
62487         (iconv, iconv_close): New declarations.
62488         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
62489         be defined.
62490         (iconv_open): Add special handling of conversion between UTF-8 and
62491         UTF-{16,32}{BE,LE}.
62492         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
62493         * lib/iconv_close.c: New file.
62494         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
62495         gl_FUNC_ICONV_OPEN.
62496         (gl_FUNC_ICONV_OPEN): Use it.
62497         (gl_FUNC_ICONV_OPEN_UTF): New macro.
62498         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
62499         and REPLACE_ICONV_UTF.
62500         * modules/iconv_open (Depends-on): Add c-strcase.
62501         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
62502         ICONV_CONST.
62503         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
62504
62505 2007-10-13  Albert Chin  <china@thewrittenword.com>
62506             Bruno Haible  <bruno@clisp.org>
62507
62508         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
62509         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
62510
62511 2007-10-13  Bruno Haible  <bruno@clisp.org>
62512
62513         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
62514         defined, use the ISO C99 inline semantics.
62515         * lib/argp.h (ARGP_EI): Likewise.
62516
62517 2007-10-13  Bruno Haible  <bruno@clisp.org>
62518
62519         Handle 'inline' change in gcc 4.3.0.
62520         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
62521         argp_fmtstream_write, argp_fmtstream_set_lmargin,
62522         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
62523         argp_fmtstream_point): Disable 'extern' declaration if the function
62524         definition is going to be provided inline.
62525         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
62526         semantics, not the ISO C99 inline semantics.
62527         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
62528         'extern' declaration if the function definition is going to be provided
62529         inline.
62530         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
62531         the GNU C inline semantics, not the ISO C99 inline semantics. With
62532         GCC 4.2, avoid a warning.
62533
62534 2007-10-13  Bruno Haible  <bruno@clisp.org>
62535
62536         * lib/freading.h (freading): Enable the use of __freading for
62537         glibc >= 2.7.
62538         * lib/freading.c (freading): Likewise.
62539
62540 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62541
62542         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
62543         "warning: C99 inline functions are not supported; using GNU89".
62544
62545 2007-10-12  Bruno Haible  <bruno@clisp.org>
62546
62547         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
62548         of 2.
62549         * tests/test-ceilf2.c: New file.
62550         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
62551
62552         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
62553         * modules/ceilf-tests: Update.
62554
62555 2007-10-12  Bruno Haible  <bruno@clisp.org>
62556
62557         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
62558         of 2.
62559         * tests/test-floorf2.c: New file.
62560         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
62561
62562         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
62563         * modules/floorf-tests: Update.
62564
62565 2007-10-12  Bruno Haible  <bruno@clisp.org>
62566
62567         * tests/test-trunc2.c: New file.
62568         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
62569
62570         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
62571         * modules/trunc-tests: Update.
62572
62573 2007-10-12  Bruno Haible  <bruno@clisp.org>
62574
62575         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
62576         of 2.
62577         * tests/test-truncf2.c: New file.
62578         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
62579
62580         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
62581         * modules/truncf-tests: Update.
62582
62583 2007-10-11  Eric Blake  <ebb9@byu.net>
62584
62585         Don't claim strerror is broken on Interix.
62586         * doc/functions/strerror.texi (strerror): Known broken systems are
62587         now Solaris 8, and not Interix.
62588         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
62589         Interix on cross-compile.
62590         Reported by Martin Koeppe in
62591         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
62592
62593 2007-10-11  Bruno Haible  <bruno@clisp.org>
62594
62595         * modules/i-ring-tests: New file.
62596         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
62597         instead of assert.
62598
62599 2007-10-11  Bruno Haible  <bruno@clisp.org>
62600
62601         * modules/filenamecat-tests: New file.
62602         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
62603         * lib/filenamecat.c: Remove test code.
62604
62605 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62606
62607         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
62608
62609         * lib/strerror.c: Include <string.h> always, to test interface,
62610         and to remove the need for the dummy.
62611         Include intprops.h to compute width instead of doing it ourselves
62612         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
62613         (strerror): Define it to return NULL if there's no system strerror.
62614         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
62615         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
62616         ancient pre-strerror Unix systems well any more.  Saying "unknown
62617         system error" is enough.
62618         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
62619         simpler strerror.c implementation.
62620         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
62621         Simplify the tests to reflect the simpler strerror implementation.
62622         * modules/strerror (Depends-on): Add intprops.
62623
62624 2007-10-09  Eric Blake  <ebb9@byu.net>
62625
62626         Silence test-fpending.
62627         * modules/fpending-tests (Files): Add wrapper script.
62628         * tests/test-fpending.sh: New file.
62629
62630 2007-10-09  Bruno Haible  <bruno@clisp.org>
62631
62632         * MODULES.html.sh (func_module): Don't create a hyperlink for
62633         function names like 'printf_frexp'.
62634         (Misc): Add crc, memxor.
62635         (Characteristics of floating types): New section.
62636         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
62637         isnanf-nolibm, signbit, trunc, truncf, truncl.
62638         (Enhancements for ISO C 99 functions): New subsection Input/output.
62639         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
62640         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
62641         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
62642         (Compatibility checks for POSIX:2001 functions): Add clock-time.
62643         (Enhancements for POSIX:2001 functions): Add chdir-long.
62644         (File system functions): Add areadlink, chdir-safer, read-file.
62645         Remove cycle-check.
62646         (File system as inode set): New section.
62647         (Date and time): Add gethrxtime.
62648         (Multithreading): Add openmp.
62649         (Internationalization functions): Add localename.
62650         (Unicode string functions): Add unistr/u*-mbsnlen.
62651         (Support for maintaining and releasing projects): Add git-version-gen.
62652         (Lone files): Remove directories.
62653
62654 2007-10-08  Ben Pfaff  <blp@gnu.org>
62655
62656         * lib/xmalloca.h: Fix typo in comment.
62657
62658 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62659
62660         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
62661         when avoiding problems with integer overflow.  Use a portable test
62662         instead.
62663
62664 2007-10-08  Simon Josefsson  <simon@josefsson.org>
62665
62666         * modules/dummy (License): Change to LGPLv2+.
62667         * modules/float (License): Likewise
62668         * modules/realloc (License): Likewise
62669         * modules/stdlib (License): Likewise
62670
62671 2007-10-07  Bruno Haible  <bruno@clisp.org>
62672
62673         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
62674         * floor.c (TWO_MANT_DIG): Likewise.
62675         * ceil.c (TWO_MANT_DIG): Likewise.
62676         Reported by Ben Pfaff.
62677
62678 2007-10-07  Bruno Haible  <bruno@clisp.org>
62679
62680         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
62681         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
62682         * lib/frexp.c (FUNC): Likewise.
62683         * lib/printf-frexp.h (printf_frexp): Likewise.
62684         * lib/printf-frexpl.h (printf_frexpl): Likewise.
62685         * lib/printf-frexp.c (FUNC): Likewise.
62686         Suggested by Jim Meyering.
62687
62688 2007-10-07  Jim Meyering  <meyering@redhat.com>
62689
62690         Make xnanosleep's integer overflow test more robust.
62691         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
62692         so that gcc-4.3.0 doesn't optimize away this test for overflow.
62693
62694 2007-10-07  Bruno Haible  <bruno@clisp.org>
62695
62696         * NEWS: Mention the license change.
62697
62698         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
62699         abbreviations in the modules files.
62700
62701         Change copyright notice from GPLv2+ to GPLv3+.
62702         * README: Change copyright notice.
62703         * MODULES.html.sh: Likewise.
62704         * build-aux/bootstrap.conf: Likewise.
62705         * build-aux/config.libpath: Likewise.
62706         * build-aux/csharpcomp.sh.in: Likewise.
62707         * build-aux/csharpexec.sh.in: Likewise.
62708         * build-aux/install-reloc: Likewise.
62709         * build-aux/javacomp.sh.in: Likewise.
62710         * build-aux/javaexec.sh.in: Likewise.
62711         * build-aux/ldd.sh.in: Likewise.
62712         * build-aux/reloc-ldflags: Likewise.
62713         * build-aux/relocatable.sh.in: Likewise.
62714         * build-aux/x-to-1.in: Likewise.
62715         * check-module: Likewise.
62716         * config/srclistvars.sh: Likewise.
62717         * gnulib-tool: Likewise.
62718         * lib/acl-internal.h: Likewise.
62719         * lib/acl.c: Likewise.
62720         * lib/acl.h: Likewise.
62721         * lib/acl_entries.c: Likewise.
62722         * lib/areadlink-with-size.c: Likewise.
62723         * lib/areadlink.c: Likewise.
62724         * lib/areadlink.h: Likewise.
62725         * lib/argmatch.c: Likewise.
62726         * lib/argmatch.h: Likewise.
62727         * lib/argp-ba.c: Likewise.
62728         * lib/argp-eexst.c: Likewise.
62729         * lib/argp-fmtstream.c: Likewise.
62730         * lib/argp-fmtstream.h: Likewise.
62731         * lib/argp-fs-xinl.c: Likewise.
62732         * lib/argp-help.c: Likewise.
62733         * lib/argp-namefrob.h: Likewise.
62734         * lib/argp-parse.c: Likewise.
62735         * lib/argp-pin.c: Likewise.
62736         * lib/argp-pv.c: Likewise.
62737         * lib/argp-pvh.c: Likewise.
62738         * lib/argp-xinl.c: Likewise.
62739         * lib/argp.h: Likewise.
62740         * lib/at-func.c: Likewise.
62741         * lib/atanl.c: Likewise.
62742         * lib/backupfile.c: Likewise.
62743         * lib/backupfile.h: Likewise.
62744         * lib/basename.c: Likewise.
62745         * lib/binary-io.h: Likewise.
62746         * lib/byteswap.in.h: Likewise.
62747         * lib/c-stack.c: Likewise.
62748         * lib/c-stack.h: Likewise.
62749         * lib/c-strcasestr.c: Likewise.
62750         * lib/c-strcasestr.h: Likewise.
62751         * lib/c-strstr.c: Likewise.
62752         * lib/c-strstr.h: Likewise.
62753         * lib/c-strtod.c: Likewise.
62754         * lib/calloc.c: Likewise.
62755         * lib/canon-host.c: Likewise.
62756         * lib/canon-host.h: Likewise.
62757         * lib/canonicalize-lgpl.c: Likewise.
62758         * lib/canonicalize.c: Likewise.
62759         * lib/canonicalize.h: Likewise.
62760         * lib/ceil.c: Likewise.
62761         * lib/ceilf.c: Likewise.
62762         * lib/ceill.c: Likewise.
62763         * lib/chdir-long.c: Likewise.
62764         * lib/chdir-long.h: Likewise.
62765         * lib/chdir-safer.c: Likewise.
62766         * lib/chdir-safer.h: Likewise.
62767         * lib/chown.c: Likewise.
62768         * lib/classpath.c: Likewise.
62769         * lib/classpath.h: Likewise.
62770         * lib/clean-temp.c: Likewise.
62771         * lib/clean-temp.h: Likewise.
62772         * lib/cloexec.c: Likewise.
62773         * lib/close-stream.c: Likewise.
62774         * lib/closein.c: Likewise.
62775         * lib/closein.h: Likewise.
62776         * lib/closeout.c: Likewise.
62777         * lib/closeout.h: Likewise.
62778         * lib/concat-filename.c: Likewise.
62779         * lib/copy-file.c: Likewise.
62780         * lib/copy-file.h: Likewise.
62781         * lib/count-one-bits.h: Likewise.
62782         * lib/crc.c: Likewise.
62783         * lib/crc.h: Likewise.
62784         * lib/creat-safer.c: Likewise.
62785         * lib/csharpcomp.c: Likewise.
62786         * lib/csharpcomp.h: Likewise.
62787         * lib/csharpexec.c: Likewise.
62788         * lib/csharpexec.h: Likewise.
62789         * lib/cycle-check.c: Likewise.
62790         * lib/cycle-check.h: Likewise.
62791         * lib/diacrit.c: Likewise.
62792         * lib/diacrit.h: Likewise.
62793         * lib/diffseq.h: Likewise.
62794         * lib/dirchownmod.c: Likewise.
62795         * lib/dirent.in.h: Likewise.
62796         * lib/dirfd.c: Likewise.
62797         * lib/dirfd.h: Likewise.
62798         * lib/dirname.c: Likewise.
62799         * lib/dirname.h: Likewise.
62800         * lib/dummy.c: Likewise.
62801         * lib/dup-safer.c: Likewise.
62802         * lib/dup2.c: Likewise.
62803         * lib/eealloc.h: Likewise.
62804         * lib/error.c: Likewise.
62805         * lib/error.h: Likewise.
62806         * lib/euidaccess.c: Likewise.
62807         * lib/exclude.c: Likewise.
62808         * lib/exclude.h: Likewise.
62809         * lib/execute.c: Likewise.
62810         * lib/execute.h: Likewise.
62811         * lib/exitfail.c: Likewise.
62812         * lib/exitfail.h: Likewise.
62813         * lib/expl.c: Likewise.
62814         * lib/fatal-signal.c: Likewise.
62815         * lib/fatal-signal.h: Likewise.
62816         * lib/fbufmode.c: Likewise.
62817         * lib/fbufmode.h: Likewise.
62818         * lib/fchdir.c: Likewise.
62819         * lib/fchmodat.c: Likewise.
62820         * lib/fchownat.c: Likewise.
62821         * lib/fcntl--.h: Likewise.
62822         * lib/fcntl-safer.h: Likewise.
62823         * lib/fcntl.in.h: Likewise.
62824         * lib/fd-safer.c: Likewise.
62825         * lib/fflush.c: Likewise.
62826         * lib/file-has-acl.c: Likewise.
62827         * lib/file-set.c: Likewise.
62828         * lib/file-type.c: Likewise.
62829         * lib/file-type.h: Likewise.
62830         * lib/fileblocks.c: Likewise.
62831         * lib/filemode.c: Likewise.
62832         * lib/filemode.h: Likewise.
62833         * lib/filename.h: Likewise.
62834         * lib/filenamecat.c: Likewise.
62835         * lib/filenamecat.h: Likewise.
62836         * lib/findprog.c: Likewise.
62837         * lib/findprog.h: Likewise.
62838         * lib/float.in.h: Likewise.
62839         * lib/floor.c: Likewise.
62840         * lib/floorf.c: Likewise.
62841         * lib/floorl.c: Likewise.
62842         * lib/fopen-safer.c: Likewise.
62843         * lib/fopen.c: Likewise.
62844         * lib/fpending.c: Likewise.
62845         * lib/fpending.h: Likewise.
62846         * lib/fprintf.c: Likewise.
62847         * lib/fprintftime.h: Likewise.
62848         * lib/fpucw.h: Likewise.
62849         * lib/fpurge.c: Likewise.
62850         * lib/fpurge.h: Likewise.
62851         * lib/freadable.c: Likewise.
62852         * lib/freadable.h: Likewise.
62853         * lib/freadahead.c: Likewise.
62854         * lib/freadahead.h: Likewise.
62855         * lib/freading.c: Likewise.
62856         * lib/freading.h: Likewise.
62857         * lib/free.c: Likewise.
62858         * lib/freopen.c: Likewise.
62859         * lib/frexp.c: Likewise.
62860         * lib/frexpl.c: Likewise.
62861         * lib/fseek.c: Likewise.
62862         * lib/fseterr.c: Likewise.
62863         * lib/fseterr.h: Likewise.
62864         * lib/fstatat.c: Likewise.
62865         * lib/fstrcmp.c: Likewise.
62866         * lib/fstrcmp.h: Likewise.
62867         * lib/fsusage.c: Likewise.
62868         * lib/fsusage.h: Likewise.
62869         * lib/ftell.c: Likewise.
62870         * lib/ftello.c: Likewise.
62871         * lib/fts-cycle.c: Likewise.
62872         * lib/fts.c: Likewise.
62873         * lib/fts_.h: Likewise.
62874         * lib/full-read.c: Likewise.
62875         * lib/full-read.h: Likewise.
62876         * lib/full-write.c: Likewise.
62877         * lib/full-write.h: Likewise.
62878         * lib/fwritable.c: Likewise.
62879         * lib/fwritable.h: Likewise.
62880         * lib/fwriteerror.c: Likewise.
62881         * lib/fwriteerror.h: Likewise.
62882         * lib/fwriting.c: Likewise.
62883         * lib/fwriting.h: Likewise.
62884         * lib/gcd.c: Likewise.
62885         * lib/gcd.h: Likewise.
62886         * lib/getcwd.c: Likewise.
62887         * lib/getdate.h: Likewise.
62888         * lib/getdate.y: Likewise.
62889         * lib/getdomainname.c: Likewise.
62890         * lib/getdomainname.h: Likewise.
62891         * lib/getgroups.c: Likewise.
62892         * lib/gethostname.c: Likewise.
62893         * lib/gethrxtime.c: Likewise.
62894         * lib/gethrxtime.h: Likewise.
62895         * lib/getloadavg.c: Likewise.
62896         * lib/getndelim2.c: Likewise.
62897         * lib/getndelim2.h: Likewise.
62898         * lib/getnline.c: Likewise.
62899         * lib/getnline.h: Likewise.
62900         * lib/getopt.c: Likewise.
62901         * lib/getopt.in.h: Likewise.
62902         * lib/getopt1.c: Likewise.
62903         * lib/getopt_int.h: Likewise.
62904         * lib/getpagesize.h: Likewise.
62905         * lib/getsubopt.c: Likewise.
62906         * lib/gettime.c: Likewise.
62907         * lib/getugroups.c: Likewise.
62908         * lib/getugroups.h: Likewise.
62909         * lib/getusershell.c: Likewise.
62910         * lib/gl_anyavltree_list1.h: Likewise.
62911         * lib/gl_anyavltree_list2.h: Likewise.
62912         * lib/gl_anyhash_list1.h: Likewise.
62913         * lib/gl_anyhash_list2.h: Likewise.
62914         * lib/gl_anylinked_list1.h: Likewise.
62915         * lib/gl_anylinked_list2.h: Likewise.
62916         * lib/gl_anyrbtree_list1.h: Likewise.
62917         * lib/gl_anyrbtree_list2.h: Likewise.
62918         * lib/gl_anytree_list1.h: Likewise.
62919         * lib/gl_anytree_list2.h: Likewise.
62920         * lib/gl_anytree_oset.h: Likewise.
62921         * lib/gl_anytreehash_list1.h: Likewise.
62922         * lib/gl_anytreehash_list2.h: Likewise.
62923         * lib/gl_array_list.c: Likewise.
62924         * lib/gl_array_list.h: Likewise.
62925         * lib/gl_array_oset.c: Likewise.
62926         * lib/gl_array_oset.h: Likewise.
62927         * lib/gl_avltree_list.c: Likewise.
62928         * lib/gl_avltree_list.h: Likewise.
62929         * lib/gl_avltree_oset.c: Likewise.
62930         * lib/gl_avltree_oset.h: Likewise.
62931         * lib/gl_avltreehash_list.c: Likewise.
62932         * lib/gl_avltreehash_list.h: Likewise.
62933         * lib/gl_carray_list.c: Likewise.
62934         * lib/gl_carray_list.h: Likewise.
62935         * lib/gl_linked_list.c: Likewise.
62936         * lib/gl_linked_list.h: Likewise.
62937         * lib/gl_linkedhash_list.c: Likewise.
62938         * lib/gl_linkedhash_list.h: Likewise.
62939         * lib/gl_list.c: Likewise.
62940         * lib/gl_list.h: Likewise.
62941         * lib/gl_oset.c: Likewise.
62942         * lib/gl_oset.h: Likewise.
62943         * lib/gl_rbtree_list.c: Likewise.
62944         * lib/gl_rbtree_list.h: Likewise.
62945         * lib/gl_rbtree_oset.c: Likewise.
62946         * lib/gl_rbtree_oset.h: Likewise.
62947         * lib/gl_rbtreehash_list.c: Likewise.
62948         * lib/gl_rbtreehash_list.h: Likewise.
62949         * lib/gl_sublist.c: Likewise.
62950         * lib/gl_sublist.h: Likewise.
62951         * lib/group-member.c: Likewise.
62952         * lib/group-member.h: Likewise.
62953         * lib/hard-locale.c: Likewise.
62954         * lib/hard-locale.h: Likewise.
62955         * lib/hash-pjw.c: Likewise.
62956         * lib/hash-pjw.h: Likewise.
62957         * lib/hash-triple.c: Likewise.
62958         * lib/hash.c: Likewise.
62959         * lib/hash.h: Likewise.
62960         * lib/human.c: Likewise.
62961         * lib/human.h: Likewise.
62962         * lib/i-ring.c: Likewise.
62963         * lib/i-ring.h: Likewise.
62964         * lib/idcache.c: Likewise.
62965         * lib/imaxabs.c: Likewise.
62966         * lib/imaxdiv.c: Likewise.
62967         * lib/inet_pton.c: Likewise.
62968         * lib/inet_pton.h: Likewise.
62969         * lib/intprops.h: Likewise.
62970         * lib/inttostr.c: Likewise.
62971         * lib/inttostr.h: Likewise.
62972         * lib/inttypes.in.h: Likewise.
62973         * lib/isapipe.c: Likewise.
62974         * lib/isdir.c: Likewise.
62975         * lib/isnan.c: Likewise.
62976         * lib/isnan.h: Likewise.
62977         * lib/isnanf.c: Likewise.
62978         * lib/isnanf.h: Likewise.
62979         * lib/isnanl-nolibm.h: Likewise.
62980         * lib/isnanl.c: Likewise.
62981         * lib/isnanl.h: Likewise.
62982         * lib/javacomp.c: Likewise.
62983         * lib/javacomp.h: Likewise.
62984         * lib/javaexec.c: Likewise.
62985         * lib/javaexec.h: Likewise.
62986         * lib/javaversion.c: Likewise.
62987         * lib/javaversion.h: Likewise.
62988         * lib/javaversion.java: Likewise.
62989         * lib/lbrkprop.h: Likewise.
62990         * lib/lchmod.h: Likewise.
62991         * lib/lchown.c: Likewise.
62992         * lib/ldexpl.c: Likewise.
62993         * lib/linebreak.c: Likewise.
62994         * lib/linebreak.h: Likewise.
62995         * lib/linebuffer.c: Likewise.
62996         * lib/linebuffer.h: Likewise.
62997         * lib/locale.in.h: Likewise.
62998         * lib/logl.c: Likewise.
62999         * lib/long-options.c: Likewise.
63000         * lib/long-options.h: Likewise.
63001         * lib/lstat.c: Likewise.
63002         * lib/lstat.h: Likewise.
63003         * lib/math.in.h: Likewise.
63004         * lib/mbchar.c: Likewise.
63005         * lib/mbchar.h: Likewise.
63006         * lib/mbfile.h: Likewise.
63007         * lib/mbiter.h: Likewise.
63008         * lib/mbscasecmp.c: Likewise.
63009         * lib/mbscasestr.c: Likewise.
63010         * lib/mbschr.c: Likewise.
63011         * lib/mbscspn.c: Likewise.
63012         * lib/mbslen.c: Likewise.
63013         * lib/mbsncasecmp.c: Likewise.
63014         * lib/mbsnlen.c: Likewise.
63015         * lib/mbspbrk.c: Likewise.
63016         * lib/mbspcasecmp.c: Likewise.
63017         * lib/mbsrchr.c: Likewise.
63018         * lib/mbssep.c: Likewise.
63019         * lib/mbsspn.c: Likewise.
63020         * lib/mbsstr.c: Likewise.
63021         * lib/mbstok_r.c: Likewise.
63022         * lib/mbswidth.c: Likewise.
63023         * lib/mbswidth.h: Likewise.
63024         * lib/mbuiter.h: Likewise.
63025         * lib/memcasecmp.c: Likewise.
63026         * lib/memcasecmp.h: Likewise.
63027         * lib/memchr.c: Likewise.
63028         * lib/memcmp.c: Likewise.
63029         * lib/memcoll.c: Likewise.
63030         * lib/memcoll.h: Likewise.
63031         * lib/memcpy.c: Likewise.
63032         * lib/memrchr.c: Likewise.
63033         * lib/mkancesdirs.c: Likewise.
63034         * lib/mkdir-p.c: Likewise.
63035         * lib/mkdir-p.h: Likewise.
63036         * lib/mkdir.c: Likewise.
63037         * lib/mkdirat.c: Likewise.
63038         * lib/mkdtemp.c: Likewise.
63039         * lib/mkstemp-safer.c: Likewise.
63040         * lib/mkstemp.c: Likewise.
63041         * lib/modechange.c: Likewise.
63042         * lib/modechange.h: Likewise.
63043         * lib/mountlist.c: Likewise.
63044         * lib/mountlist.h: Likewise.
63045         * lib/mpsort.c: Likewise.
63046         * lib/nanosleep.c: Likewise.
63047         * lib/obstack.c: Likewise.
63048         * lib/obstack.h: Likewise.
63049         * lib/open-safer.c: Likewise.
63050         * lib/open.c: Likewise.
63051         * lib/openat-die.c: Likewise.
63052         * lib/openat-priv.h: Likewise.
63053         * lib/openat-proc.c: Likewise.
63054         * lib/openat.c: Likewise.
63055         * lib/openat.h: Likewise.
63056         * lib/pagealign_alloc.c: Likewise.
63057         * lib/pagealign_alloc.h: Likewise.
63058         * lib/physmem.c: Likewise.
63059         * lib/physmem.h: Likewise.
63060         * lib/pipe-safer.c: Likewise.
63061         * lib/pipe.c: Likewise.
63062         * lib/pipe.h: Likewise.
63063         * lib/posixtm.c: Likewise.
63064         * lib/posixtm.h: Likewise.
63065         * lib/posixver.c: Likewise.
63066         * lib/printf-frexp.c: Likewise.
63067         * lib/printf-frexp.h: Likewise.
63068         * lib/printf-frexpl.c: Likewise.
63069         * lib/printf-frexpl.h: Likewise.
63070         * lib/printf.c: Likewise.
63071         * lib/progname.c: Likewise.
63072         * lib/progname.h: Likewise.
63073         * lib/progreloc.c: Likewise.
63074         * lib/putenv.c: Likewise.
63075         * lib/quote.c: Likewise.
63076         * lib/quote.h: Likewise.
63077         * lib/quotearg.c: Likewise.
63078         * lib/quotearg.h: Likewise.
63079         * lib/raise.c: Likewise.
63080         * lib/readline.c: Likewise.
63081         * lib/readline.h: Likewise.
63082         * lib/readlink.c: Likewise.
63083         * lib/readtokens.c: Likewise.
63084         * lib/readtokens.h: Likewise.
63085         * lib/readtokens0.c: Likewise.
63086         * lib/readtokens0.h: Likewise.
63087         * lib/readutmp.c: Likewise.
63088         * lib/readutmp.h: Likewise.
63089         * lib/realloc.c: Likewise.
63090         * lib/relocwrapper.c: Likewise.
63091         * lib/rename-dest-slash.c: Likewise.
63092         * lib/rename.c: Likewise.
63093         * lib/rmdir.c: Likewise.
63094         * lib/rpmatch.c: Likewise.
63095         * lib/safe-read.c: Likewise.
63096         * lib/safe-read.h: Likewise.
63097         * lib/safe-write.c: Likewise.
63098         * lib/safe-write.h: Likewise.
63099         * lib/same-inode.h: Likewise.
63100         * lib/same.c: Likewise.
63101         * lib/same.h: Likewise.
63102         * lib/save-cwd.c: Likewise.
63103         * lib/save-cwd.h: Likewise.
63104         * lib/savedir.c: Likewise.
63105         * lib/savedir.h: Likewise.
63106         * lib/savewd.c: Likewise.
63107         * lib/savewd.h: Likewise.
63108         * lib/search.in.h: Likewise.
63109         * lib/setenv.c: Likewise.
63110         * lib/setenv.h: Likewise.
63111         * lib/settime.c: Likewise.
63112         * lib/sh-quote.c: Likewise.
63113         * lib/sh-quote.h: Likewise.
63114         * lib/sig2str.c: Likewise.
63115         * lib/sig2str.h: Likewise.
63116         * lib/signal.in.h: Likewise.
63117         * lib/signbitd.c: Likewise.
63118         * lib/signbitf.c: Likewise.
63119         * lib/signbitl.c: Likewise.
63120         * lib/sigprocmask.c: Likewise.
63121         * lib/sincosl.c: Likewise.
63122         * lib/sleep.c: Likewise.
63123         * lib/sprintf.c: Likewise.
63124         * lib/sqrtl.c: Likewise.
63125         * lib/stat-time.h: Likewise.
63126         * lib/stdio--.h: Likewise.
63127         * lib/stdio-safer.h: Likewise.
63128         * lib/stdlib--.h: Likewise.
63129         * lib/stdlib-safer.h: Likewise.
63130         * lib/stdlib.in.h: Likewise.
63131         * lib/stpcpy.c: Likewise.
63132         * lib/stpncpy.c: Likewise.
63133         * lib/strchrnul.c: Likewise.
63134         * lib/strcspn.c: Likewise.
63135         * lib/strerror.c: Likewise.
63136         * lib/strftime.c: Likewise.
63137         * lib/strftime.h: Likewise.
63138         * lib/striconveh.c: Likewise.
63139         * lib/striconveh.h: Likewise.
63140         * lib/striconveha.c: Likewise.
63141         * lib/striconveha.h: Likewise.
63142         * lib/stripslash.c: Likewise.
63143         * lib/strnlen1.c: Likewise.
63144         * lib/strnlen1.h: Likewise.
63145         * lib/strtod.c: Likewise.
63146         * lib/strtoimax.c: Likewise.
63147         * lib/strtok_r.c: Likewise.
63148         * lib/strtol.c: Likewise.
63149         * lib/strtoll.c: Likewise.
63150         * lib/strtoul.c: Likewise.
63151         * lib/strtoull.c: Likewise.
63152         * lib/sysexits.in.h: Likewise.
63153         * lib/tempname.c: Likewise.
63154         * lib/tempname.h: Likewise.
63155         * lib/timespec.h: Likewise.
63156         * lib/tls.c: Likewise.
63157         * lib/tls.h: Likewise.
63158         * lib/tmpdir.c: Likewise.
63159         * lib/tmpdir.h: Likewise.
63160         * lib/tmpfile-safer.c: Likewise.
63161         * lib/tmpfile.c: Likewise.
63162         * lib/trigl.c: Likewise.
63163         * lib/trigl.h: Likewise.
63164         * lib/trim.c: Likewise.
63165         * lib/trim.h: Likewise.
63166         * lib/trunc.c: Likewise.
63167         * lib/truncf.c: Likewise.
63168         * lib/truncl.c: Likewise.
63169         * lib/tsearch.c: Likewise.
63170         * lib/unicodeio.c: Likewise.
63171         * lib/unicodeio.h: Likewise.
63172         * lib/unistd--.h: Likewise.
63173         * lib/unistd-safer.h: Likewise.
63174         * lib/unistdio/ulc-fprintf.c: Likewise.
63175         * lib/unistdio/ulc-vfprintf.c: Likewise.
63176         * lib/unlinkdir.c: Likewise.
63177         * lib/unlinkdir.h: Likewise.
63178         * lib/unlocked-io.h: Likewise.
63179         * lib/unsetenv.c: Likewise.
63180         * lib/userspec.c: Likewise.
63181         * lib/utime.c: Likewise.
63182         * lib/utimecmp.c: Likewise.
63183         * lib/utimecmp.h: Likewise.
63184         * lib/utimens.c: Likewise.
63185         * lib/verify.h: Likewise.
63186         * lib/verror.c: Likewise.
63187         * lib/verror.h: Likewise.
63188         * lib/version-etc-fsf.c: Likewise.
63189         * lib/version-etc.c: Likewise.
63190         * lib/version-etc.h: Likewise.
63191         * lib/vfprintf.c: Likewise.
63192         * lib/vprintf.c: Likewise.
63193         * lib/vsprintf.c: Likewise.
63194         * lib/w32spawn.h: Likewise.
63195         * lib/wait-process.c: Likewise.
63196         * lib/wait-process.h: Likewise.
63197         * lib/wcwidth.c: Likewise.
63198         * lib/write-any-file.c: Likewise.
63199         * lib/xalloc-die.c: Likewise.
63200         * lib/xalloc.h: Likewise.
63201         * lib/xasprintf.c: Likewise.
63202         * lib/xgetcwd.c: Likewise.
63203         * lib/xgetcwd.h: Likewise.
63204         * lib/xgetdomainname.c: Likewise.
63205         * lib/xgetdomainname.h: Likewise.
63206         * lib/xgethostname.c: Likewise.
63207         * lib/xmalloc.c: Likewise.
63208         * lib/xmalloca.c: Likewise.
63209         * lib/xmalloca.h: Likewise.
63210         * lib/xmemcoll.c: Likewise.
63211         * lib/xnanosleep.c: Likewise.
63212         * lib/xreadlink.c: Likewise.
63213         * lib/xreadlink.h: Likewise.
63214         * lib/xsetenv.c: Likewise.
63215         * lib/xsetenv.h: Likewise.
63216         * lib/xstriconv.c: Likewise.
63217         * lib/xstriconv.h: Likewise.
63218         * lib/xstrndup.c: Likewise.
63219         * lib/xstrndup.h: Likewise.
63220         * lib/xstrtod.c: Likewise.
63221         * lib/xstrtod.h: Likewise.
63222         * lib/xstrtol-error.c: Likewise.
63223         * lib/xstrtol.c: Likewise.
63224         * lib/xstrtol.h: Likewise.
63225         * lib/xtime.h: Likewise.
63226         * lib/xvasprintf.c: Likewise.
63227         * lib/xvasprintf.h: Likewise.
63228         * lib/yesno.c: Likewise.
63229         * lib/yesno.h: Likewise.
63230         * posix-modules: Likewise.
63231         * tests/test-alloca-opt.c: Likewise.
63232         * tests/test-arcfour.c: Likewise.
63233         * tests/test-arctwo.c: Likewise.
63234         * tests/test-argmatch.c: Likewise.
63235         * tests/test-argp-2.sh: Likewise.
63236         * tests/test-argp.c: Likewise.
63237         * tests/test-arpa_inet.c: Likewise.
63238         * tests/test-array_list.c: Likewise.
63239         * tests/test-array_oset.c: Likewise.
63240         * tests/test-atexit.c: Likewise.
63241         * tests/test-avltree_list.c: Likewise.
63242         * tests/test-avltree_oset.c: Likewise.
63243         * tests/test-avltreehash_list.c: Likewise.
63244         * tests/test-base64.c: Likewise.
63245         * tests/test-binary-io.c: Likewise.
63246         * tests/test-byteswap.c: Likewise.
63247         * tests/test-c-ctype.c: Likewise.
63248         * tests/test-c-strcasecmp.c: Likewise.
63249         * tests/test-c-strcasestr.c: Likewise.
63250         * tests/test-c-strncasecmp.c: Likewise.
63251         * tests/test-c-strstr.c: Likewise.
63252         * tests/test-canonicalize-lgpl.c: Likewise.
63253         * tests/test-canonicalize.c: Likewise.
63254         * tests/test-carray_list.c: Likewise.
63255         * tests/test-ceilf.c: Likewise.
63256         * tests/test-ceill.c: Likewise.
63257         * tests/test-count-one-bits.c: Likewise.
63258         * tests/test-crc.c: Likewise.
63259         * tests/test-dirname.c: Likewise.
63260         * tests/test-fbufmode.c: Likewise.
63261         * tests/test-fcntl.c: Likewise.
63262         * tests/test-fflush.c: Likewise.
63263         * tests/test-floorf.c: Likewise.
63264         * tests/test-floorl.c: Likewise.
63265         * tests/test-fopen.c: Likewise.
63266         * tests/test-fprintf-posix.c: Likewise.
63267         * tests/test-fprintf-posix.h: Likewise.
63268         * tests/test-fpurge.c: Likewise.
63269         * tests/test-freadable.c: Likewise.
63270         * tests/test-freadahead.c: Likewise.
63271         * tests/test-freading.c: Likewise.
63272         * tests/test-freopen.c: Likewise.
63273         * tests/test-frexp.c: Likewise.
63274         * tests/test-frexpl.c: Likewise.
63275         * tests/test-fseek.c: Likewise.
63276         * tests/test-fseeko.c: Likewise.
63277         * tests/test-fseterr.c: Likewise.
63278         * tests/test-fstrcmp.c: Likewise.
63279         * tests/test-ftell.c: Likewise.
63280         * tests/test-ftello.c: Likewise.
63281         * tests/test-fwritable.c: Likewise.
63282         * tests/test-fwriting.c: Likewise.
63283         * tests/test-getaddrinfo.c: Likewise.
63284         * tests/test-getpass.c: Likewise.
63285         * tests/test-gettimeofday.c: Likewise.
63286         * tests/test-hmac-md5.c: Likewise.
63287         * tests/test-hmac-sha1.c: Likewise.
63288         * tests/test-iconv.c: Likewise.
63289         * tests/test-iconvme.c: Likewise.
63290         * tests/test-inttypes.c: Likewise.
63291         * tests/test-isnan.c: Likewise.
63292         * tests/test-isnanf.c: Likewise.
63293         * tests/test-isnanl-nolibm.c: Likewise.
63294         * tests/test-isnanl.c: Likewise.
63295         * tests/test-isnanl.h: Likewise.
63296         * tests/test-ldexpl.c: Likewise.
63297         * tests/test-linked_list.c: Likewise.
63298         * tests/test-linkedhash_list.c: Likewise.
63299         * tests/test-locale.c: Likewise.
63300         * tests/test-localename.c: Likewise.
63301         * tests/test-lock.c: Likewise.
63302         * tests/test-lseek.c: Likewise.
63303         * tests/test-malloca.c: Likewise.
63304         * tests/test-math.c: Likewise.
63305         * tests/test-mbscasecmp.c: Likewise.
63306         * tests/test-mbscasestr1.c: Likewise.
63307         * tests/test-mbscasestr2.c: Likewise.
63308         * tests/test-mbscasestr3.c: Likewise.
63309         * tests/test-mbscasestr4.c: Likewise.
63310         * tests/test-mbschr.c: Likewise.
63311         * tests/test-mbscspn.c: Likewise.
63312         * tests/test-mbsncasecmp.c: Likewise.
63313         * tests/test-mbspbrk.c: Likewise.
63314         * tests/test-mbspcasecmp.c: Likewise.
63315         * tests/test-mbsrchr.c: Likewise.
63316         * tests/test-mbsspn.c: Likewise.
63317         * tests/test-mbsstr1.c: Likewise.
63318         * tests/test-mbsstr2.c: Likewise.
63319         * tests/test-mbsstr3.c: Likewise.
63320         * tests/test-md5.c: Likewise.
63321         * tests/test-memmem.c: Likewise.
63322         * tests/test-netinet_in.c: Likewise.
63323         * tests/test-open.c: Likewise.
63324         * tests/test-printf-frexp.c: Likewise.
63325         * tests/test-printf-frexpl.c: Likewise.
63326         * tests/test-printf-posix.c: Likewise.
63327         * tests/test-printf-posix.h: Likewise.
63328         * tests/test-rbtree_list.c: Likewise.
63329         * tests/test-rbtree_oset.c: Likewise.
63330         * tests/test-rbtreehash_list.c: Likewise.
63331         * tests/test-read-file.c: Likewise.
63332         * tests/test-rijndael.c: Likewise.
63333         * tests/test-search.c: Likewise.
63334         * tests/test-signbit.c: Likewise.
63335         * tests/test-sleep.c: Likewise.
63336         * tests/test-snprintf-posix.c: Likewise.
63337         * tests/test-snprintf-posix.h: Likewise.
63338         * tests/test-snprintf.c: Likewise.
63339         * tests/test-sprintf-posix.c: Likewise.
63340         * tests/test-sprintf-posix.h: Likewise.
63341         * tests/test-stat-time.c: Likewise.
63342         * tests/test-stdbool.c: Likewise.
63343         * tests/test-stdint.c: Likewise.
63344         * tests/test-stdio.c: Likewise.
63345         * tests/test-stdlib.c: Likewise.
63346         * tests/test-stpncpy.c: Likewise.
63347         * tests/test-strcasestr.c: Likewise.
63348         * tests/test-striconv.c: Likewise.
63349         * tests/test-striconveh.c: Likewise.
63350         * tests/test-striconveha.c: Likewise.
63351         * tests/test-string.c: Likewise.
63352         * tests/test-sys_select.c: Likewise.
63353         * tests/test-sys_socket.c: Likewise.
63354         * tests/test-sys_stat.c: Likewise.
63355         * tests/test-sys_time.c: Likewise.
63356         * tests/test-sysexits.c: Likewise.
63357         * tests/test-time.c: Likewise.
63358         * tests/test-tls.c: Likewise.
63359         * tests/test-trunc.c: Likewise.
63360         * tests/test-truncf.c: Likewise.
63361         * tests/test-truncl.c: Likewise.
63362         * tests/test-unistd.c: Likewise.
63363         * tests/test-vasnprintf-posix.c: Likewise.
63364         * tests/test-vasnprintf-posix2.c: Likewise.
63365         * tests/test-vasnprintf.c: Likewise.
63366         * tests/test-vasprintf-posix.c: Likewise.
63367         * tests/test-vasprintf.c: Likewise.
63368         * tests/test-verify.c: Likewise.
63369         * tests/test-vfprintf-posix.c: Likewise.
63370         * tests/test-vprintf-posix.c: Likewise.
63371         * tests/test-vsnprintf-posix.c: Likewise.
63372         * tests/test-vsnprintf.c: Likewise.
63373         * tests/test-vsprintf-posix.c: Likewise.
63374         * tests/test-wchar.c: Likewise.
63375         * tests/test-wctype.c: Likewise.
63376         * tests/test-wcwidth.c: Likewise.
63377         * tests/test-xstrtol.c: Likewise.
63378         * tests/test-xvasprintf.c: Likewise.
63379         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
63380         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
63381         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
63382         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
63383         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
63384         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
63385         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
63386         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
63387         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
63388         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
63389         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
63390         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
63391         * tests/uniname/test-uninames.c: Likewise.
63392         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
63393         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
63394         * tests/unistdio/test-u16-printf1.h: Likewise.
63395         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
63396         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
63397         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
63398         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
63399         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
63400         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
63401         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
63402         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
63403         * tests/unistdio/test-u32-printf1.h: Likewise.
63404         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
63405         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
63406         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
63407         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
63408         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
63409         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
63410         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
63411         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
63412         * tests/unistdio/test-u8-printf1.h: Likewise.
63413         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
63414         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
63415         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
63416         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
63417         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
63418         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
63419         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
63420         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
63421         * tests/unistdio/test-ulc-printf1.h: Likewise.
63422         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
63423         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
63424         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
63425         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
63426         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
63427         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
63428         * tests/uniwidth/test-u16-strwidth.c: Likewise.
63429         * tests/uniwidth/test-u16-width.c: Likewise.
63430         * tests/uniwidth/test-u32-strwidth.c: Likewise.
63431         * tests/uniwidth/test-u32-width.c: Likewise.
63432         * tests/uniwidth/test-u8-strwidth.c: Likewise.
63433         * tests/uniwidth/test-u8-width.c: Likewise.
63434         * tests/uniwidth/test-uc_width.c: Likewise.
63435         * config/srclist-update: Likewise.
63436         (fixlicense): Update to GPLv3+.
63437
63438         Change copyright notice from LGPLv2.1+ to LGPLv3+.
63439         * tests/test-tsearch.c: Change copyright notice.
63440
63441         Change copyright notice from LGPLv2.0+ to LGPLv3+.
63442         * lib/c-strcaseeq.h: Change copyright notice.
63443         * lib/streq.h: Likewise.
63444         * lib/uniconv.h: Likewise.
63445         * lib/uniconv/u-conv-from-enc.h: Likewise.
63446         * lib/uniconv/u-conv-to-enc.h: Likewise.
63447         * lib/uniconv/u-strconv-from-enc.h: Likewise.
63448         * lib/uniconv/u-strconv-to-enc.h: Likewise.
63449         * lib/uniconv/u16-conv-from-enc.c: Likewise.
63450         * lib/uniconv/u16-conv-to-enc.c: Likewise.
63451         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
63452         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
63453         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
63454         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
63455         * lib/uniconv/u32-conv-from-enc.c: Likewise.
63456         * lib/uniconv/u32-conv-to-enc.c: Likewise.
63457         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
63458         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
63459         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
63460         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
63461         * lib/uniconv/u8-conv-from-enc.c: Likewise.
63462         * lib/uniconv/u8-conv-to-enc.c: Likewise.
63463         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
63464         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
63465         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
63466         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
63467         * lib/uniname.h: Likewise.
63468         * lib/uniname/uniname.c: Likewise.
63469         * lib/unistdio.h: Likewise.
63470         * lib/unistdio/u-asnprintf.h: Likewise.
63471         * lib/unistdio/u-asprintf.h: Likewise.
63472         * lib/unistdio/u-printf-args.c: Likewise.
63473         * lib/unistdio/u-printf-args.h: Likewise.
63474         * lib/unistdio/u-printf-parse.h: Likewise.
63475         * lib/unistdio/u-snprintf.h: Likewise.
63476         * lib/unistdio/u-sprintf.h: Likewise.
63477         * lib/unistdio/u-vasprintf.h: Likewise.
63478         * lib/unistdio/u-vsnprintf.h: Likewise.
63479         * lib/unistdio/u-vsprintf.h: Likewise.
63480         * lib/unistdio/u16-asnprintf.c: Likewise.
63481         * lib/unistdio/u16-asprintf.c: Likewise.
63482         * lib/unistdio/u16-printf-parse.c: Likewise.
63483         * lib/unistdio/u16-snprintf.c: Likewise.
63484         * lib/unistdio/u16-sprintf.c: Likewise.
63485         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
63486         * lib/unistdio/u16-u16-asprintf.c: Likewise.
63487         * lib/unistdio/u16-u16-snprintf.c: Likewise.
63488         * lib/unistdio/u16-u16-sprintf.c: Likewise.
63489         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
63490         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
63491         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
63492         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
63493         * lib/unistdio/u16-vasnprintf.c: Likewise.
63494         * lib/unistdio/u16-vasprintf.c: Likewise.
63495         * lib/unistdio/u16-vsnprintf.c: Likewise.
63496         * lib/unistdio/u16-vsprintf.c: Likewise.
63497         * lib/unistdio/u32-asnprintf.c: Likewise.
63498         * lib/unistdio/u32-asprintf.c: Likewise.
63499         * lib/unistdio/u32-printf-parse.c: Likewise.
63500         * lib/unistdio/u32-snprintf.c: Likewise.
63501         * lib/unistdio/u32-sprintf.c: Likewise.
63502         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
63503         * lib/unistdio/u32-u32-asprintf.c: Likewise.
63504         * lib/unistdio/u32-u32-snprintf.c: Likewise.
63505         * lib/unistdio/u32-u32-sprintf.c: Likewise.
63506         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
63507         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
63508         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
63509         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
63510         * lib/unistdio/u32-vasnprintf.c: Likewise.
63511         * lib/unistdio/u32-vasprintf.c: Likewise.
63512         * lib/unistdio/u32-vsnprintf.c: Likewise.
63513         * lib/unistdio/u32-vsprintf.c: Likewise.
63514         * lib/unistdio/u8-asnprintf.c: Likewise.
63515         * lib/unistdio/u8-asprintf.c: Likewise.
63516         * lib/unistdio/u8-printf-parse.c: Likewise.
63517         * lib/unistdio/u8-snprintf.c: Likewise.
63518         * lib/unistdio/u8-sprintf.c: Likewise.
63519         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
63520         * lib/unistdio/u8-u8-asprintf.c: Likewise.
63521         * lib/unistdio/u8-u8-snprintf.c: Likewise.
63522         * lib/unistdio/u8-u8-sprintf.c: Likewise.
63523         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
63524         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
63525         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
63526         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
63527         * lib/unistdio/u8-vasnprintf.c: Likewise.
63528         * lib/unistdio/u8-vasprintf.c: Likewise.
63529         * lib/unistdio/u8-vsnprintf.c: Likewise.
63530         * lib/unistdio/u8-vsprintf.c: Likewise.
63531         * lib/unistdio/ulc-asnprintf.c: Likewise.
63532         * lib/unistdio/ulc-asprintf.c: Likewise.
63533         * lib/unistdio/ulc-printf-parse.c: Likewise.
63534         * lib/unistdio/ulc-snprintf.c: Likewise.
63535         * lib/unistdio/ulc-sprintf.c: Likewise.
63536         * lib/unistdio/ulc-vasnprintf.c: Likewise.
63537         * lib/unistdio/ulc-vasprintf.c: Likewise.
63538         * lib/unistdio/ulc-vsnprintf.c: Likewise.
63539         * lib/unistdio/ulc-vsprintf.c: Likewise.
63540         * lib/unistr.h: Likewise.
63541         * lib/unistr/u-cpy-alloc.h: Likewise.
63542         * lib/unistr/u-cpy.h: Likewise.
63543         * lib/unistr/u-endswith.h: Likewise.
63544         * lib/unistr/u-move.h: Likewise.
63545         * lib/unistr/u-set.h: Likewise.
63546         * lib/unistr/u-startswith.h: Likewise.
63547         * lib/unistr/u-stpcpy.h: Likewise.
63548         * lib/unistr/u-stpncpy.h: Likewise.
63549         * lib/unistr/u-strcat.h: Likewise.
63550         * lib/unistr/u-strcpy.h: Likewise.
63551         * lib/unistr/u-strcspn.h: Likewise.
63552         * lib/unistr/u-strdup.h: Likewise.
63553         * lib/unistr/u-strlen.h: Likewise.
63554         * lib/unistr/u-strncat.h: Likewise.
63555         * lib/unistr/u-strncpy.h: Likewise.
63556         * lib/unistr/u-strnlen.h: Likewise.
63557         * lib/unistr/u-strpbrk.h: Likewise.
63558         * lib/unistr/u-strspn.h: Likewise.
63559         * lib/unistr/u-strstr.h: Likewise.
63560         * lib/unistr/u-strtok.h: Likewise.
63561         * lib/unistr/u16-check.c: Likewise.
63562         * lib/unistr/u16-chr.c: Likewise.
63563         * lib/unistr/u16-cmp.c: Likewise.
63564         * lib/unistr/u16-cpy-alloc.c: Likewise.
63565         * lib/unistr/u16-cpy.c: Likewise.
63566         * lib/unistr/u16-endswith.c: Likewise.
63567         * lib/unistr/u16-mblen.c: Likewise.
63568         * lib/unistr/u16-mbsnlen.c: Likewise.
63569         * lib/unistr/u16-mbtouc-aux.c: Likewise.
63570         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
63571         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
63572         * lib/unistr/u16-mbtouc.c: Likewise.
63573         * lib/unistr/u16-mbtoucr.c: Likewise.
63574         * lib/unistr/u16-move.c: Likewise.
63575         * lib/unistr/u16-next.c: Likewise.
63576         * lib/unistr/u16-prev.c: Likewise.
63577         * lib/unistr/u16-set.c: Likewise.
63578         * lib/unistr/u16-startswith.c: Likewise.
63579         * lib/unistr/u16-stpcpy.c: Likewise.
63580         * lib/unistr/u16-stpncpy.c: Likewise.
63581         * lib/unistr/u16-strcat.c: Likewise.
63582         * lib/unistr/u16-strchr.c: Likewise.
63583         * lib/unistr/u16-strcmp.c: Likewise.
63584         * lib/unistr/u16-strcpy.c: Likewise.
63585         * lib/unistr/u16-strcspn.c: Likewise.
63586         * lib/unistr/u16-strdup.c: Likewise.
63587         * lib/unistr/u16-strlen.c: Likewise.
63588         * lib/unistr/u16-strmblen.c: Likewise.
63589         * lib/unistr/u16-strmbtouc.c: Likewise.
63590         * lib/unistr/u16-strncat.c: Likewise.
63591         * lib/unistr/u16-strncmp.c: Likewise.
63592         * lib/unistr/u16-strncpy.c: Likewise.
63593         * lib/unistr/u16-strnlen.c: Likewise.
63594         * lib/unistr/u16-strpbrk.c: Likewise.
63595         * lib/unistr/u16-strrchr.c: Likewise.
63596         * lib/unistr/u16-strspn.c: Likewise.
63597         * lib/unistr/u16-strstr.c: Likewise.
63598         * lib/unistr/u16-strtok.c: Likewise.
63599         * lib/unistr/u16-to-u32.c: Likewise.
63600         * lib/unistr/u16-to-u8.c: Likewise.
63601         * lib/unistr/u16-uctomb-aux.c: Likewise.
63602         * lib/unistr/u16-uctomb.c: Likewise.
63603         * lib/unistr/u32-check.c: Likewise.
63604         * lib/unistr/u32-chr.c: Likewise.
63605         * lib/unistr/u32-cmp.c: Likewise.
63606         * lib/unistr/u32-cpy-alloc.c: Likewise.
63607         * lib/unistr/u32-cpy.c: Likewise.
63608         * lib/unistr/u32-endswith.c: Likewise.
63609         * lib/unistr/u32-mblen.c: Likewise.
63610         * lib/unistr/u32-mbsnlen.c: Likewise.
63611         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
63612         * lib/unistr/u32-mbtouc.c: Likewise.
63613         * lib/unistr/u32-mbtoucr.c: Likewise.
63614         * lib/unistr/u32-move.c: Likewise.
63615         * lib/unistr/u32-next.c: Likewise.
63616         * lib/unistr/u32-prev.c: Likewise.
63617         * lib/unistr/u32-set.c: Likewise.
63618         * lib/unistr/u32-startswith.c: Likewise.
63619         * lib/unistr/u32-stpcpy.c: Likewise.
63620         * lib/unistr/u32-stpncpy.c: Likewise.
63621         * lib/unistr/u32-strcat.c: Likewise.
63622         * lib/unistr/u32-strchr.c: Likewise.
63623         * lib/unistr/u32-strcmp.c: Likewise.
63624         * lib/unistr/u32-strcpy.c: Likewise.
63625         * lib/unistr/u32-strcspn.c: Likewise.
63626         * lib/unistr/u32-strdup.c: Likewise.
63627         * lib/unistr/u32-strlen.c: Likewise.
63628         * lib/unistr/u32-strmblen.c: Likewise.
63629         * lib/unistr/u32-strmbtouc.c: Likewise.
63630         * lib/unistr/u32-strncat.c: Likewise.
63631         * lib/unistr/u32-strncmp.c: Likewise.
63632         * lib/unistr/u32-strncpy.c: Likewise.
63633         * lib/unistr/u32-strnlen.c: Likewise.
63634         * lib/unistr/u32-strpbrk.c: Likewise.
63635         * lib/unistr/u32-strrchr.c: Likewise.
63636         * lib/unistr/u32-strspn.c: Likewise.
63637         * lib/unistr/u32-strstr.c: Likewise.
63638         * lib/unistr/u32-strtok.c: Likewise.
63639         * lib/unistr/u32-to-u16.c: Likewise.
63640         * lib/unistr/u32-to-u8.c: Likewise.
63641         * lib/unistr/u32-uctomb.c: Likewise.
63642         * lib/unistr/u8-check.c: Likewise.
63643         * lib/unistr/u8-chr.c: Likewise.
63644         * lib/unistr/u8-cmp.c: Likewise.
63645         * lib/unistr/u8-cpy-alloc.c: Likewise.
63646         * lib/unistr/u8-cpy.c: Likewise.
63647         * lib/unistr/u8-endswith.c: Likewise.
63648         * lib/unistr/u8-mblen.c: Likewise.
63649         * lib/unistr/u8-mbsnlen.c: Likewise.
63650         * lib/unistr/u8-mbtouc-aux.c: Likewise.
63651         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
63652         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
63653         * lib/unistr/u8-mbtouc.c: Likewise.
63654         * lib/unistr/u8-mbtoucr.c: Likewise.
63655         * lib/unistr/u8-move.c: Likewise.
63656         * lib/unistr/u8-next.c: Likewise.
63657         * lib/unistr/u8-prev.c: Likewise.
63658         * lib/unistr/u8-set.c: Likewise.
63659         * lib/unistr/u8-startswith.c: Likewise.
63660         * lib/unistr/u8-stpcpy.c: Likewise.
63661         * lib/unistr/u8-stpncpy.c: Likewise.
63662         * lib/unistr/u8-strcat.c: Likewise.
63663         * lib/unistr/u8-strchr.c: Likewise.
63664         * lib/unistr/u8-strcmp.c: Likewise.
63665         * lib/unistr/u8-strcpy.c: Likewise.
63666         * lib/unistr/u8-strcspn.c: Likewise.
63667         * lib/unistr/u8-strdup.c: Likewise.
63668         * lib/unistr/u8-strlen.c: Likewise.
63669         * lib/unistr/u8-strmblen.c: Likewise.
63670         * lib/unistr/u8-strmbtouc.c: Likewise.
63671         * lib/unistr/u8-strncat.c: Likewise.
63672         * lib/unistr/u8-strncmp.c: Likewise.
63673         * lib/unistr/u8-strncpy.c: Likewise.
63674         * lib/unistr/u8-strnlen.c: Likewise.
63675         * lib/unistr/u8-strpbrk.c: Likewise.
63676         * lib/unistr/u8-strrchr.c: Likewise.
63677         * lib/unistr/u8-strspn.c: Likewise.
63678         * lib/unistr/u8-strstr.c: Likewise.
63679         * lib/unistr/u8-strtok.c: Likewise.
63680         * lib/unistr/u8-to-u16.c: Likewise.
63681         * lib/unistr/u8-to-u32.c: Likewise.
63682         * lib/unistr/u8-uctomb-aux.c: Likewise.
63683         * lib/unistr/u8-uctomb.c: Likewise.
63684         * lib/unitypes.h: Likewise.
63685         * lib/uniwidth.h: Likewise.
63686         * lib/uniwidth/cjk.h: Likewise.
63687         * lib/uniwidth/u16-strwidth.c: Likewise.
63688         * lib/uniwidth/u16-width.c: Likewise.
63689         * lib/uniwidth/u32-strwidth.c: Likewise.
63690         * lib/uniwidth/u32-width.c: Likewise.
63691         * lib/uniwidth/u8-strwidth.c: Likewise.
63692         * lib/uniwidth/u8-width.c: Likewise.
63693         * lib/uniwidth/width.c: Likewise.
63694
63695 2007-10-07  Bruno Haible  <bruno@clisp.org>
63696
63697         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
63698         The file is still under LGPL (see modules/inttypes).
63699
63700 2007-10-06  Bruno Haible  <bruno@clisp.org>
63701
63702         * modules/trunc (Dependencies): Add 'extensions'.
63703         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
63704         Reported by Ben Pfaff <blp@gnu.org>.
63705
63706 2007-10-06  Bruno Haible  <bruno@clisp.org>
63707
63708         * modules/freopen-tests: New file.
63709         * tests/test-freopen.c: New file.
63710
63711         * modules/fopen-tests: New file.
63712         * tests/test-fopen.c: New file.
63713
63714         * modules/fopen: New file.
63715         * lib/fopen.c: New file.
63716         * m4/fopen.m4: New file.
63717         * modules/freopen: New file.
63718         * lib/freopen.c: New file.
63719         * m4/freopen.m4: New file.
63720         * lib/stdio.in.h (fopen, freopen): New declarations.
63721         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
63722         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63723         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
63724         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63725         * doc/functions/fopen.texi: Mention the 'fopen' module.
63726         * doc/functions/freopen.texi: Mention the 'freopen' module.
63727
63728 2007-10-06  Bruno Haible  <bruno@clisp.org>
63729
63730         * modules/open-tests: New file.
63731         * tests/test-open.c: New file.
63732
63733         * modules/open: New file.
63734         * lib/open.c: New file.
63735         * m4/open.m4: New file.
63736         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
63737         lib/open.c does.
63738         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
63739         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
63740         macros.
63741         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
63742         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
63743         REPLACE_OPEN.
63744         * doc/functions/open.texi: Mention the 'open' module.
63745
63746 2007-10-04  Bruno Haible  <bruno@clisp.org>
63747
63748         * modules/ceill-tests: New file.
63749         * tests/test-ceill.c: New file.
63750
63751         * modules/ceill: New file.
63752         * lib/ceill.c: Replace entire file.
63753         * m4/ceill.m4: New file.
63754         * lib/math.in.h (ceill): Replace declaration.
63755         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
63756         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
63757         * doc/functions/ceill.texi: Mention the 'ceill' module.
63758         * modules/mathl (Files): Remove lib/ceill.c.
63759         (Depends-on): Add ceill.
63760
63761 2007-10-04  Bruno Haible  <bruno@clisp.org>
63762
63763         * modules/ceilf-tests: New file.
63764         * tests/test-ceilf.c: New file.
63765
63766         * modules/ceilf: New file.
63767         * lib/ceil.c: New file.
63768         * lib/ceilf.c: New file.
63769         * m4/ceilf.m4: New file.
63770         * lib/math.in.h (ceilf): New declaration.
63771         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
63772         HAVE_DECL_CEILF.
63773         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
63774         HAVE_DECL_CEILF.
63775         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
63776
63777 2007-10-04  Bruno Haible  <bruno@clisp.org>
63778
63779         * modules/floorl-tests: New file.
63780         * tests/test-floorl.c: New file.
63781
63782         * modules/floorl: New file.
63783         * lib/floorl.c: Replace entire file.
63784         * m4/floorl.m4: New file.
63785         * lib/math.in.h (floorl): Replace declaration.
63786         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
63787         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
63788         * doc/functions/floorl.texi: Mention the 'floorl' module.
63789         * modules/mathl (Files): Remove lib/floorl.c.
63790         (Depends-on): Add floorl.
63791
63792 2007-10-04  Bruno Haible  <bruno@clisp.org>
63793
63794         * modules/floorf-tests: New file.
63795         * tests/test-floorf.c: New file.
63796
63797         * modules/floorf: New file.
63798         * lib/floor.c: New file.
63799         * lib/floorf.c: New file.
63800         * m4/floorf.m4: New file.
63801         * lib/math.in.h (floorf): New declaration.
63802         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
63803         HAVE_DECL_FLOORF.
63804         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
63805         HAVE_DECL_FLOORF.
63806         * doc/functions/floorf.texi: Mention the 'floorf' module.
63807
63808 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
63809             Bruno Haible  <bruno@clisp.org>
63810
63811         Advertise for the Git server instead of the CVS server.
63812         * doc/gnulib-intro.texi (Steady Development): Mention the Git
63813         repository instead of the CVS one.
63814         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
63815         about all VCS systems generically.
63816         * doc/gnulib.texi (Introduction): Capitalize `Git'.
63817
63818 2007-10-04  Bruno Haible  <bruno@clisp.org>
63819
63820         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
63821         means.
63822         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
63823
63824 2007-10-04  Bruno Haible  <bruno@clisp.org>
63825
63826         * modules/truncl-tests: New file.
63827         * tests/test-truncl.c: New file.
63828
63829         * modules/truncl: New file.
63830         * lib/truncl.c: New file.
63831         * m4/truncl.m4: New file.
63832         * lib/math.in.h (truncl): New declaration.
63833         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
63834         HAVE_DECL_TRUNCL.
63835         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
63836         HAVE_DECL_TRUNCL.
63837         * doc/functions/truncl.texi: Mention the 'truncl' module.
63838
63839 2007-10-04  Bruno Haible  <bruno@clisp.org>
63840
63841         * modules/truncf-tests: New file.
63842         * tests/test-truncf.c: New file.
63843
63844         * modules/truncf: New file.
63845         * lib/trunc.c: Make paramerizable through USE_* macros.
63846         * lib/truncf.c: New file.
63847         * m4/truncf.m4: New file.
63848         * lib/math.in.h (truncf): New declaration.
63849         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
63850         HAVE_DECL_TRUNCF.
63851         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
63852         HAVE_DECL_TRUNCF.
63853         * doc/functions/truncf.texi: Mention the 'truncf' module.
63854
63855 2007-10-03  Bruno Haible  <bruno@clisp.org>
63856
63857         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
63858         augmentation also for tests modules.
63859         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
63860         * modules/atexit-tests (Makefile.am): Likewise.
63861         * modules/binary-io-tests (Makefile.am): Likewise.
63862         * modules/c-strcase-tests (Makefile.am): Likewise.
63863         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
63864         * modules/canonicalize-tests (Makefile.am): Likewise.
63865         * modules/closein-tests (Makefile.am): Likewise.
63866         * modules/fprintf-posix-tests (Makefile.am): Likewise.
63867         * modules/freadahead-tests (Makefile.am): Likewise.
63868         * modules/fseek-tests (Makefile.am): Likewise.
63869         * modules/fseeko-tests (Makefile.am): Likewise.
63870         * modules/ftell-tests (Makefile.am): Likewise.
63871         * modules/ftello-tests (Makefile.am): Likewise.
63872         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
63873         * modules/isnanl-tests (Makefile.am): Likewise.
63874         * modules/lseek-tests (Makefile.am): Likewise.
63875         * modules/mbscasecmp-tests (Makefile.am): Likewise.
63876         * modules/mbscasestr-tests (Makefile.am): Likewise.
63877         * modules/mbschr-tests (Makefile.am): Likewise.
63878         * modules/mbscspn-tests (Makefile.am): Likewise.
63879         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
63880         * modules/mbspbrk-tests (Makefile.am): Likewise.
63881         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
63882         * modules/mbsrchr-tests (Makefile.am): Likewise.
63883         * modules/mbsspn-tests (Makefile.am): Likewise.
63884         * modules/mbsstr-tests (Makefile.am): Likewise.
63885         * modules/printf-posix-tests (Makefile.am): Likewise.
63886         * modules/snprintf-posix-tests (Makefile.am): Likewise.
63887         * modules/sprintf-posix-tests (Makefile.am): Likewise.
63888         * modules/tsearch-tests (Makefile.am): Likewise.
63889         * modules/uniname/uniname-tests (Makefile.am): Likewise.
63890         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
63891         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
63892         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
63893         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
63894         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
63895         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
63896         * modules/vprintf-posix-tests (Makefile.am): Likewise.
63897         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
63898         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
63899         * modules/xstrtoimax-tests (Makefile.am): Likewise.
63900         * modules/xstrtol-tests (Makefile.am): Likewise.
63901         * modules/xstrtoumax-tests (Makefile.am): Likewise.
63902         * modules/yesno-tests (Makefile.am): Likewise.
63903
63904 2007-10-03  Bruno Haible  <bruno@clisp.org>
63905
63906         * modules/trunc-tests: New file.
63907         * tests/test-trunc.c: New file.
63908
63909         * modules/trunc: New file.
63910         * lib/trunc.c: New file.
63911         * m4/trunc.m4: New file.
63912         * lib/math.in.h (trunc): New declaration.
63913         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
63914         HAVE_DECL_TRUNC.
63915         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
63916         HAVE_DECL_TRUNC.
63917         * doc/functions/trunc.texi: Mention the 'trunc' module.
63918
63919 2007-10-03  Bruno Haible  <bruno@clisp.org>
63920
63921         * tests/test-fpending.c: New file, mostly copied
63922         from coreutils/lib/t-fpending.c.
63923         * modules/fpending-tests: New file.
63924
63925 2007-10-03  Bruno Haible  <bruno@clisp.org>
63926
63927         Port the stdio extensions to QNX (untested).
63928         * lib/fseterr.c (fseterr): Add support for QNX.
63929         * lib/fbufmode.c (fbufmode): Likewise.
63930         * lib/freadable.c (freadable): Likewise.
63931         * lib/fwritable.c (fwritable): Likewise.
63932         * lib/freading.c (freading): Likewise.
63933         * lib/fwriting.c (fwriting): Likewise.
63934         * lib/freadahead.c (freadahed): Likewise.
63935         * lib/fpurge.c (fpurge): Likewise.
63936         * lib/fseeko.c (rpl_fseeko): Likewise.
63937
63938 2007-10-03  Bruno Haible  <bruno@clisp.org>
63939             Jim Meyering  <jim@meyering.net>
63940             Eric Blake  <ebb9@byu.net>
63941
63942         * doc/relocatable.texi: Use @command instead of @program.
63943
63944 2007-10-02  Jim Meyering  <jim@meyering.net>
63945
63946         Perform one more "_.h" -> ".in.h" substitution.
63947         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
63948         instead of unistd_.h here, too.
63949
63950 2007-10-01  Bruno Haible  <bruno@clisp.org>
63951
63952         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
63953         Needed for the alloca-opt module.
63954
63955 2007-09-30  Bruno Haible  <bruno@clisp.org>
63956
63957         * lib/alloca.in.h: Renamed from lib/alloca_.h.
63958         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
63959         alloca_.h.
63960         * lib/argz.in.h: Renamed from lib/argz_.h.
63961         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
63962         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
63963         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
63964         byteswap_.h.
63965         * lib/dirent.in.h: Renamed from lib/dirent_.h.
63966         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
63967         dirent_.h.
63968         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
63969         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
63970         fcntl_.h.
63971         * lib/float.in.h: Renamed from lib/float_.h.
63972         * modules/float (Files, Makefile.am): Use float.in.h instead of
63973         float_.h.
63974         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
63975         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
63976         fnmatch_.h.
63977         * lib/getopt.in.h: Renamed from lib/getopt_.h.
63978         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
63979         getopt_.h.
63980         * lib/glob.in.h: Renamed from lib/glob_.h.
63981         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
63982         * lib/iconv.in.h: Renamed from lib/iconv_.h.
63983         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
63984         iconv_.h.
63985         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
63986         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
63987         inttypes_.h.
63988         * lib/locale.in.h: Renamed from lib/locale_.h.
63989         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
63990         locale_.h.
63991         * lib/math.in.h: Renamed from lib/math_.h.
63992         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
63993         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
63994         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
63995         of netinet_in_.h. Add dependency.
63996         * lib/poll.in.h: Renamed from lib/poll_.h.
63997         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
63998         * lib/search.in.h: Renamed from lib/search_.h.
63999         * modules/search (Files, Makefile.am): Use search.in.h instead of
64000         search_.h.
64001         * lib/signal.in.h: Renamed from lib/signal_.h.
64002         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
64003         _signal.h.
64004         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
64005         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
64006         stdbool_.h.
64007         * lib/stdint.in.h: Renamed from lib/stdint_.h.
64008         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
64009         stdint_.h.
64010         * lib/stdio.in.h: Renamed from lib/stdio_.h.
64011         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
64012         stdio_.h.
64013         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
64014         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
64015         stdlib_.h.
64016         * lib/string.in.h: Renamed from lib/string_.h.
64017         * modules/string (Files, Makefile.am): Use string.in.h instead of
64018         string_.h.
64019         * doc/gnulib-tool.texi (Initial import): Update.
64020         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
64021         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
64022         of sys_select_.h. Add dependency.
64023         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
64024         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
64025         of sys_socket_.h.
64026         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
64027         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
64028         sys_stat_.h.
64029         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
64030         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
64031         sys_time_.h.
64032         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
64033         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
64034         sysexits_.h.
64035         * lib/time.in.h: Renamed from lib/time_.h.
64036         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
64037         * lib/unistd.in.h: Renamed from lib/unistd_.h.
64038         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
64039         unistd_.h.
64040         * lib/wchar.in.h: Renamed from lib/wchar_.h.
64041         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
64042         wchar_.h.
64043         * lib/wctype.in.h: Renamed from lib/wctype_.h.
64044         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
64045         wctype_.h.
64046         * build-aux/bootstrap (slurp): Update.
64047         * lib/.cppi-disable: Update.
64048
64049 2007-09-30  Bruno Haible  <bruno@clisp.org>
64050
64051         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
64052         Needed on BeOS.
64053
64054 2007-09-30  Bruno Haible  <bruno@clisp.org>
64055
64056         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
64057
64058 2007-09-29  Bruno Haible  <bruno@clisp.org>
64059
64060         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
64061
64062 2007-09-29  Bruno Haible  <bruno@clisp.org>
64063
64064         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
64065         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
64066         * build-aux/install-reloc: Compile also areadlink.c.
64067         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
64068
64069 2007-09-29  Bruno Haible  <bruno@clisp.org>
64070
64071         * gnulib-tool (func_emit_initmacro_done): Indentation.
64072
64073 2007-09-29  Bruno Haible  <bruno@clisp.org>
64074
64075         * README: Add CVS checkout update instructions.
64076         Info from Bob Proulx <bob@proulx.com>.
64077
64078 2007-09-28  Eric Blake  <ebb9@byu.net>
64079
64080         Provide move-if-change.
64081         * build-aux/move-if-change: New file, based on best practice
64082         rather than any canonical upstream location.
64083
64084 2007-09-28  Jim Meyering  <jim@meyering.net>
64085
64086         Fix canonicalize loop-detection corner case.
64087         Do not attempt to stat the symlink values stored via seen_triple.
64088         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
64089         on linux-2.6.18, (but not 2.6.22).
64090         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
64091         triple_compare.  The former compares dev,ino,filename, while the latter
64092         would actually stat dirname(filename) when dev and ino were equal.
64093         * lib/hash-triple.c: Install <string.h>.
64094         (STREQ): Define.
64095         (triple_compare_ino_str): New function.
64096         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
64097
64098 2007-09-28  Eric Blake  <ebb9@byu.net>
64099
64100         Enforce that AC_REPLACE_FUNCS files exist.
64101         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
64102         override check for typos.
64103
64104         Fix test-closein on Solaris 10.
64105         * tests/test-closein.c (main): Don't assume stdin can be inherited
64106         closed on all systems.
64107         * tests/test-closein.sh: Likewise.
64108         Reported by Piotr Tarnowski.
64109
64110 2007-09-28  Jim Meyering  <jim@meyering.net>
64111
64112         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
64113
64114 2007-09-27  Jim Meyering  <jim@meyering.net>
64115
64116         canonicalize: Avoid a false-positive cycle failure.
64117         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
64118         Sort.  Remove cycle-check.
64119         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
64120         not cycle-check.h.
64121         (seen_triple): New function.
64122         (canonicalize_filename_mode): Use it instead of cycle-check.
64123         * tests/test-canonicalize.c: Add a test for this bug.
64124         * tests/test-canonicalize.sh: Set up and run the test.
64125
64126         New module, file-set, from coreutils.
64127         * modules/file-set: Define it.
64128         * lib/file-set.c, lib/file-set.h: Implement.
64129
64130         New module, hash-triple, from coreutils.
64131         * modules/hash-triple: Define it.
64132         * lib/hash-triple.c, lib/hash-triple.h: Implement.
64133
64134 2007-09-25  Eric Blake  <ebb9@byu.net>
64135
64136         Fix strerror on Interix.
64137         * lib/string_.h (strerror): Declare replacement.
64138         * doc/functions/strerror.texi (strerror): Document the Interix
64139         shortcoming.
64140         * modules/string (Makefile.am): Support new hooks.
64141         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
64142         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
64143         gl_FUNC_STRERROR_SEPARATE.
64144         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
64145         * lib/strerror.c (rpl_strerror): Provide replacement.
64146         * modules/strerror (Depends-on): Add string.
64147         (configure.ac): Detect use of module.
64148         * tests/test-strerror.c: New file.
64149         * modules/strerror-tests: New test module.
64150         * modules/argp (Depends-on): Add strerror.
64151         * modules/error (Depends-on): Likewise.
64152         Reported by Martin Koeppe.
64153
64154 2007-09-24  Bruno Haible  <bruno@clisp.org>
64155
64156         * README: Update git instructions.
64157
64158 2007-09-24  Eric Blake  <ebb9@byu.net>
64159
64160         Revert fpending breakage from 2007-09-08.
64161         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
64162         __fpending.c.
64163
64164 2007-09-24  Jim Meyering  <jim@meyering.net>
64165
64166         filenamecat.c: Add a test.
64167         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
64168         showing how the function works when DIR is the empty string.
64169
64170 2007-09-21  Simon Josefsson  <simon@josefsson.org>
64171
64172         * tests/test-canonicalize.sh: Turn on executable bit.
64173
64174 2007-09-19  Eric Blake  <ebb9@byu.net>
64175
64176         * README: Update CVS instructions.
64177
64178 2007-09-18  Bruno Haible  <bruno@clisp.org>
64179
64180         * modules/areadlink: New file.
64181         * lib/areadlink.h (areadlink): New declaration.
64182         * lib/areadlink.c: New file, based on lib/xreadlink.c.
64183
64184 2007-09-17  Jim Meyering  <jim@meyering.net>
64185
64186         * lib/savewd.c (ESTALE) [!defined]: Define.
64187         Reported to be required on Interix by Martin Koeppe.
64188
64189 2007-09-17  Bruno Haible  <bruno@clisp.org>
64190
64191         * gnulib-tool (func_version): Use $version.
64192
64193 2007-09-16  Bruno Haible  <bruno@clisp.org>
64194
64195         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
64196         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
64197         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
64198         Reported by Greg Schafer <gschafer@zip.com.au>.
64199
64200 2007-09-15  Bruno Haible  <bruno@clisp.org>
64201
64202         * gnulib-tool (sed): Try a little harder to make bash understand the
64203         alias.
64204         Reported by Bruce Korb <bruce.korb@gmail.com>.
64205
64206 2007-09-13  Eric Blake  <ebb9@byu.net>
64207
64208         * ChangeLog: Remove conflict markers.
64209
64210 2007-09-13  Simon Josefsson  <simon@josefsson.org>
64211
64212         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
64213         Reported by Bruno Haible <bruno@clisp.org>.
64214
64215 2007-09-12  Bruno Haible  <bruno@clisp.org>
64216
64217         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
64218         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
64219         is not defined.
64220
64221 2007-09-12  Eric Blake  <ebb9@byu.net>
64222
64223         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
64224         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
64225         Autoconf definition.
64226         * modules/euidaccess (Depends-on): Add extensions, for
64227         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
64228         * modules/fnmatch (Depends-on): Likewise.
64229         * modules/getaddrinfo (Depends-on): Likewise.
64230         * modules/getdelim (Depends-on): Likewise.
64231         * modules/getline (Depends-on): Likewise.
64232         * modules/getsubopt (Depends-on): Likewise.
64233         * modules/gettext (Depends-on): Likewise.
64234         * modules/group-member (Depends-on): Likewise.
64235         * modules/mbchar (Depends-on): Likewise.
64236         * modules/memmem (Depends-on): Likewise.
64237         * modules/mempcpy (Depends-on): Likewise.
64238         * modules/memrchr (Depends-on): Likewise.
64239         * modules/pagealign_alloc (Depends-on): Likewise.
64240         * modules/readutmp (Depends-on): Likewise.
64241         * modules/stpcpy (Depends-on): Likewise.
64242         * modules/stpncpy (Depends-on): Likewise.
64243         * modules/strchrnul (Depends-on): Likewise.
64244         * modules/strndup (Depends-on): Likewise.
64245         * modules/strsep (Depends-on): Likewise.
64246         * modules/strverscmp (Depends-on): Likewise.
64247         * modules/vasprintf (Depends-on): Likewise.
64248         * modules/wcwidth (Depends-on): Likewise.
64249         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
64250         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
64251         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
64252         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
64253         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
64254         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64255         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
64256         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64257         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
64258         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
64259         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
64260         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64261         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64262         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
64263         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
64264         * m4/readutmp.m4 (gl_READUTMP): Likewise.
64265         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64266         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64267         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64268         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64269         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64270         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64271         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64272         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
64273         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
64274         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64275         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
64276         so that lock.m4 can be used in gettext without extensions module.
64277
64278 2007-09-11  Bruno Haible  <bruno@clisp.org>
64279
64280         * m4/isc-posix.m4: Remove file.
64281         Suggested by Eric Blake.
64282
64283 2007-09-11  Eric Blake  <ebb9@byu.net>
64284
64285         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
64286
64287 2007-09-10  Bruno Haible  <bruno@clisp.org>
64288
64289         * posix-modules: Fix typo in error message.
64290         Reported by Matt <mkraai@beckman.com>.
64291
64292 2007-09-09  Bruno Haible  <bruno@clisp.org>
64293
64294         * doc/functions/getdelim.texi: Update list of platforms lacking the
64295         function.
64296         * doc/functions/getline.texi: Likewise.
64297
64298 2007-09-09  Jim Meyering  <jim@meyering.net>
64299
64300         * lib/hash.c (hash_initialize): Detect calloc failure.
64301         Reported by Bruno Haible.
64302
64303 2007-09-09  Bruno Haible  <bruno@clisp.org>
64304
64305         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
64306         malloc or realloc fails.
64307
64308 2007-09-09  Bruno Haible  <bruno@clisp.org>
64309
64310         * modules/getcwd (Depends-on): Add malloc-posix.
64311         * modules/glob (Depends-on): Likewise.
64312         * modules/putenv (Depends-on): Likewise.
64313         * modules/strdup (Depends-on): Likewise.
64314         * modules/getdelim (Depends-on): Add realloc-posix.
64315         * modules/read-file (Depends-on): Likewise.
64316
64317 2007-09-09  Bruno Haible  <bruno@clisp.org>
64318
64319         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
64320         (gl_FUNC_MALLOC_POSIX): Require it.
64321         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
64322         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
64323         * modules/realloc (Files): Add m4/malloc.m4.
64324         * modules/calloc (Files): Likewise.
64325
64326 2007-09-09  Bruno Haible  <bruno@clisp.org>
64327
64328         * modules/malloc-posix: New file.
64329         * modules/malloc (Depends-on): Add malloc-posix.
64330         * lib/malloc.c: Include errno.h.
64331         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
64332         and a POSIX-compatible malloc into a single function. Set ENOMEM
64333         when returning NULL.
64334         * m4/malloc.m4: New file.
64335         * doc/functions/malloc.texi: Mention the malloc-posix module.
64336         * lib/stdlib_.h (malloc): New declaration.
64337         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64338         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
64339         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
64340         and HAVE_MALLOC_POSIX.
64341
64342 2007-09-09  Bruno Haible  <bruno@clisp.org>
64343
64344         * modules/realloc-posix: New file.
64345         * modules/realloc (Depends-on): Add realloc-posix.
64346         * lib/realloc.c: Include errno.h.
64347         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
64348         and a POSIX-compatible realloc into a single function. Set ENOMEM
64349         when returning NULL.
64350         * m4/realloc.m4: New file.
64351         * doc/functions/realloc.texi: Mention the realloc-posix module.
64352         * lib/stdlib_.h (realloc): New declaration.
64353         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64354         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
64355         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
64356         and HAVE_REALLOC_POSIX.
64357
64358 2007-09-09  Bruno Haible  <bruno@clisp.org>
64359
64360         * modules/calloc-posix: New file.
64361         * modules/calloc (Depends-on): Add calloc-posix.
64362         * lib/calloc.c: Include errno.h.
64363         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
64364         and a POSIX-compatible calloc into a single function. Set ENOMEM
64365         when returning NULL.
64366         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
64367         * doc/functions/calloc.texi: Mention the calloc-posix module.
64368         * lib/stdlib_.h (calloc): New declaration.
64369         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64370         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
64371         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
64372         and HAVE_CALLOC_POSIX.
64373
64374 2007-09-09  Bruno Haible  <bruno@clisp.org>
64375
64376         Allow for modules to show an arbitrary notice.
64377         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
64378         * gnulib-tool: New option --extract-notice.
64379         (func_usage): Document it.
64380         (sed_extract_prog): Update.
64381         (func_get_notice): New function.
64382         (func_modules_notice): New function.
64383         (func_import, func_create_testdir): Invoke it.
64384         Suggested by Jim Meyering.
64385
64386 2007-09-09  Bruno Haible  <bruno@clisp.org>
64387
64388         * gnulib-tool: New options --verbose, --quiet.
64389         (func_usage): Document them.
64390         (verbose): New variable.
64391         (func_execute_command): New function.
64392         (func_import): Don't show the module list and the file list if
64393         $verbose < 0.
64394         (func_create_testdir): Likewise. Use func_execute_command.
64395         (func_create_megatestdir): Use func_execute_command.
64396
64397 2007-09-08  Bruno Haible  <bruno@clisp.org>
64398
64399         * gnulib-tool (func_import): Prefer rsync over wget when available,
64400         for fetching the PO files.
64401
64402 2007-09-08  Bruno Haible  <bruno@clisp.org>
64403
64404         * posix-modules: New file. Portions copied from gnulib-tool.
64405         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
64406
64407 2007-09-08  Jim Meyering  <jim@meyering.net>
64408
64409         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
64410         * lib/fpending.h: Rename from __fpending.h.
64411         * lib/fpending.c: Rename from __fpending.c.
64412         Include "fpending.h", not "__fpending.h".
64413         * lib/__fpending.h, lib/__fpending.c: Remove files.
64414         * modules/fpending (Files): Reflect new file names.
64415         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
64416
64417 2007-09-08  Bruno Haible  <bruno@clisp.org>
64418
64419         * m4/inttypes-h.m4: Remove stub file.
64420
64421 2007-09-07  Simon Josefsson  <simon@josefsson.org>
64422
64423         * doc/headers/stdint.texi: Discuss #include_next issue.
64424
64425 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64426
64427         * build-aux/bootstrap: Remove obsolete comment about wget --help.
64428
64429 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64430
64431         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
64432         in variable name.
64433
64434 2007-09-03  Jim Meyering  <jim@meyering.net>
64435
64436         New module: git-version-gen.
64437         * modules/git-version-gen: New file.
64438
64439         Import changes from coreutils for bootstrap script.
64440
64441         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
64442
64443         bootstrap: uses rsync to download the .po files
64444         * build-aux/bootstrap (po_download_command_format): New global.
64445         (download_po_files): Use rsync.
64446         (update_po_files): Don't remove .po files after download,
64447         so future rsync runs can take advantage of the copies.
64448
64449         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
64450
64451         Solve the unnecessary-.po-file-regeneration problem once and for all.
64452         * build-aux/bootstrap (download_po_files): New function, renamed from
64453         get_translations.  Now, downloads, but doesn't update LINGUAS.
64454         (update_po_files): New function.
64455
64456         bootstrap: Ignore more.
64457         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
64458         uniwidth to e.g., lib/.gitignore.
64459         (slurp): Handle the sys_stat_.h -> sys mapping, too.
64460
64461         * build-aux/bootstrap: New setting: vc_ignore.
64462         (insert_sorted_if_absent): Create $file if absent.
64463         Adapt to new, possibly empty, list: $vc_ignore.
64464
64465         bootstrap: generate more ignorable names
64466         * build-aux/bootstrap (slurp): When generating ignorable names,
64467         also map .sin to .sed, .gperf to .c, and .y to .c.
64468
64469 2007-09-03  Jim Meyering  <jim@meyering.net>
64470
64471         * build-aux/git-version-gen: New file, from coreutils.  For details, see
64472         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
64473
64474 2007-09-02  Bruno Haible  <bruno@clisp.org>
64475
64476         Fix mis-recognition of 'mcs' on QNX 6.
64477         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
64478         output contains the string "Mono".
64479         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
64480         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
64481
64482 2007-09-01  Bruno Haible  <bruno@clisp.org>
64483
64484         Fix collision between uniwidth/* and linebreak modules.
64485         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
64486         u32_width): Remove declarations.
64487         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
64488         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
64489         streq3, streq2, streq1, streq0): Remove functions.
64490         (STREQ): Remove macro.
64491         (is_cjk_encoding): Remove function.
64492         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
64493         (uc_width, u8_width, u16_width, u32_width): Remove functions.
64494         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
64495         * NEWS: Document the change.
64496
64497 2007-09-01  Bruno Haible  <bruno@clisp.org>
64498
64499         * lib/streq.h: Add double-inclusion guard.
64500
64501 2007-09-01  Karl Berry  <karl@gnu.org>
64502
64503         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
64504
64505 2007-08-28  Jim Meyering  <jim@meyering.net>
64506
64507         Rename mreadlink_with_size to areadlink_with_size.
64508         * NEWS: Document the change.
64509         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
64510         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
64511         * lib/mreadlink.h: Rename this to...
64512         * lib/areadlink.h: ...this.
64513         * modules/mreadlink-with-size: Rename this to...
64514         * modules/areadlink-with-size: ...this.
64515         * lib/canonicalize.c: Reflect the renaming.
64516         * modules/canonicalize: Likewise.
64517
64518 2007-08-26  Bruno Haible  <bruno@clisp.org>
64519
64520         * gnulib-tool (func_import): When deciding which files to remove,
64521         consider also dangling symbolic links.
64522         Reported by Eric Blake.
64523
64524 2007-08-26  Bruno Haible  <bruno@clisp.org>
64525
64526         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
64527
64528 2007-08-23  Simon Josefsson  <simon@josefsson.org>
64529
64530         * lib/readline.c: Don't include getline.h, the prototype is now
64531         found in stdio.h.
64532
64533 2007-08-23  Jim Meyering  <jim@meyering.net>
64534
64535         Getdelim touchup.
64536         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
64537         around the funlockfile call, since funlockfile never sets errno.
64538         Don't set errno upon failed realloc.
64539
64540 2007-08-22  Eric Blake  <ebb9@byu.net>
64541
64542         Getline touchups.
64543         * lib/getdelim.c (getdelim): Revert regression that required *n to
64544         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
64545         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
64546         getdelim, rather than whether implementation is missing.
64547         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
64548         * lib/stdio_.h (getline): Also declare if replacement is
64549         required.
64550         * doc/functions/getdelim.texi: New file.
64551         * doc/functions/getline.texi: Likewise.
64552         * doc/gnulib.texi (Function Substitutes): Add new files.
64553         Reported by Bruno Haible.
64554
64555 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
64556
64557         * users.txt: Add Guile.
64558
64559 2007-08-22  Eric Blake  <ebb9@byu.net>
64560
64561         * tests/test-getdelim.c (main): Use remove, not unlink.
64562         * tests/test-getline.c (main): Likewise.
64563
64564         Move getline and getdelim into stdio.h, per POSIX 200x.
64565         * modules/getline (Files): Remove getline.h.
64566         (Depends-on): Add stdio.
64567         (configure.ac): Add module indicator.
64568         * modules/getdelim (Files): Remove getdelim.h.
64569         (Depends-on): Add stdio.
64570         (configure.ac): Add module indicator.
64571         * modules/stdio (Makefile.am): Work with new indicators.
64572         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
64573         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
64574         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64575         * lib/getdelim.h: Delete.
64576         * lib/getline.h: Delete.
64577         * lib/stdio_.h (getdelim, getline): Declare.
64578         * modules/getdelim-tests: New module.
64579         * modules/getline-tests: Likewise.
64580         * tests/test-getdelim.c: New file.
64581         * tests/test-getline.c: Likewise.
64582         * NEWS: Document the change.
64583         * lib/getline.c: Update choice of header.
64584         * lib/csharpcomp.c: Likewise.
64585         * lib/getpass.c: Likewise.
64586         * lib/javacomp.c: Likewise.
64587         * lib/javaversion.c: Likewise.
64588         * lib/yesno.c: Likewise.
64589         * lib/getdelim.c: Likewise.
64590         (getdelim): Set errno on failure, and avoid memory leak.
64591
64592 2007-08-19  Bruno Haible  <bruno@clisp.org>
64593
64594         * modules/closein (Depends-on): Add freadahead.
64595         * lib/closein.c: Include freadahead.h.
64596         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
64597         is zero.
64598
64599 2007-08-19  Bruno Haible  <bruno@clisp.org>
64600
64601         * modules/freadahead-tests: New file.
64602         * tests/test-freadahead.sh: New file.
64603         * tests/test-freadahead.c: New file.
64604
64605         * modules/freadahead: New file.
64606         * lib/freadahead.h: New file.
64607         * lib/freadahead.c: New file.
64608         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
64609         fbufmode, fpurge, freadable, fwritable.
64610
64611 2007-08-19  Eric Blake  <ebb9@byu.net>
64612
64613         Test yesno in combination with closein.
64614         * lib/yesno.c (yesno): Document use of stdin.
64615         * modules/yesno-tests (Files): New module.
64616         * tests/test-yesno.c (main): New file.
64617         * tests/test-yesno.sh: Likewise.
64618
64619 2007-08-19  Bruno Haible  <bruno@clisp.org>
64620
64621         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
64622         * lib/fseeko.c (rpl_fseeko): Likewise.
64623         * lib/fseterr.c (fseterr): Likewise.
64624
64625 2007-08-19  Bruno Haible  <bruno@clisp.org>
64626
64627         * tests/test-lseek.c (main): Disable a test for BeOS.
64628         * doc/functions/lseek.texi: Document the BeOS bug.
64629
64630 2007-08-19  Bruno Haible  <bruno@clisp.org>
64631             Eric Blake  <ebb9@byu.net>
64632
64633         * lib/lseek.c: Include <sys/stat.h>.
64634         (rpl_lseek): Add workaround code also for Unix platforms.
64635         Needed for BeOS.
64636         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
64637         * doc/functions/lseek.texi: Document BeOS definiency.
64638
64639 2007-08-18  Bruno Haible  <bruno@clisp.org>
64640
64641         * modules/fstrcmp-tests: New file.
64642         * tests/test-fstrcmp.c: New file.
64643
64644 2007-08-18  Bruno Haible  <bruno@clisp.org>
64645
64646         * modules/fstrcmp: New file, from GNU gettext with modifications.
64647         * lib/fstrcmp.h: New file, from GNU gettext.
64648         * lib/fstrcmp.c: New file, from GNU gettext.
64649         * MODULES.html.sh (String handling): Add fstrcmp.
64650
64651 2007-08-18  Bruno Haible  <bruno@clisp.org>
64652
64653         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
64654         'bool'.
64655         (diag, compareseq): Remove const from the ctxt argument.
64656         (USE_HEURISTIC): Undefine at the end.
64657
64658 2007-08-18  Jim Meyering  <jim@meyering.net>
64659
64660         New file: lib/idcache.h
64661         * NEWS: Mention the addition.
64662         * modules/idcache (Files): Add lib/idcache.h
64663         * lib/idcache.c: Include "idcache.h".
64664         Don't include <sys/types.h>.
64665         Add a FIXME comment.
64666         Move file-scoped "static" declarations to the top.
64667         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
64668
64669 2007-08-17  Bruno Haible  <bruno@clisp.org>
64670         and Paul Eggert  <eggert@cs.ucla.edu>
64671
64672         * MODULES.html.sh: Add diffseq.
64673         * modules/diffseq: New file.
64674         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
64675         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
64676
64677 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64678
64679         Import changes from coreutils for bootstrap script.
64680
64681         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
64682
64683         * build-aux/bootstrap (slurp): Work even in environments where
64684         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
64685         current code does not slurp files whose names start with ".", and
64686         this looks like it might be a troublesome area.
64687
64688         2007-07-11  Jim Meyering  <jim@meyering.net>
64689
64690         If there's a GPL vN copyright comment, require that N == 3.
64691
64692         2007-07-08  Jim Meyering  <jim@meyering.net>
64693
64694         Run the coreutils-specific code only if tests/Makefile.am.in exists.
64695         * build-aux/bootstrap (mam_template): Move definition out of loop.
64696
64697         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
64698
64699         * build-aux/bootstrap (symlink_to_dir): Rename function from
64700         symlink_to_gnulib.  Add a directory parameter.  Update all
64701         callers.
64702         (cp_mark_as_generated): Also check for -- and link to -- files in
64703         gl/.
64704
64705         2007-07-08  Jim Meyering  <jim@meyering.net>
64706
64707         Adapt to deeper hierarchy in gnulib.
64708         * build-aux/bootstrap (symlink_to_dir): If the destination
64709         directory doesn't exist, create it. This is required at least for
64710         "lib/uniwidth/cjk.h".
64711
64712         2007-05-15  Jim Meyering  <jim@meyering.net>
64713
64714         * build-aux/bootstrap: Now that generated Makefile.am files
64715         are no longer under version control, they must be created at
64716         bootstrap time.
64717
64718 2007-08-14  Ben Pfaff  <blp@gnu.org>
64719
64720         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
64721
64722 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64723
64724         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
64725         given the changes below.
64726         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
64727         even on hosts that have padding bits beyond the supported 64.
64728
64729 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64730
64731         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
64732         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
64733         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
64734         depends on it.
64735         (xstrtol_error): Remove.
64736         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
64737         but with a different signature.
64738         (ATTRIBUTE_NORETURN, __attribute__): New macros.
64739         * lib/xstrtol-error.c: Include exitfail.h.
64740         (xstrtol_fatal): New function, with a different signature from the
64741         old xstrtol_error, so that the caller need not worry about passing
64742         in an exit status, or about storage management of the option argument.
64743         (xstrtol_error): Now a static function.  Redo signature to
64744         implement xstrtol_fatal.  Output the correct number of hyphens in
64745         front of the option so that the caller need not worry about
64746         storage management.
64747         (N_): New macro.
64748         (_): Remove; not used now.
64749         * modules/xstrtol: Depend on getopt.
64750         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
64751         of old STRTOL_FATAL_ERROR macro.
64752         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
64753         of test program.
64754         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
64755         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
64756
64757 2007-08-08  Eric Blake  <ebb9@byu.net>
64758
64759         * lib/xstrtol-error.c: Add missing include.
64760
64761         Move xstrtol messages into gnulib domain, when --pobase is used.
64762         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
64763         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
64764         * modules/xstrtol (Files): Distribute new file.
64765         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
64766         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
64767         * tests/test-xstrtol.c: ...into new file.
64768         * tests/test-xstrtoul.c: Also test xstrtoul.
64769         * tests/test-xstrtoimax.c: Also test xstrtoimax.
64770         * tests/test-xstrtoumax.c: Also test xstrtoumax.
64771         * tests/test-xstrtol.sh: Drive the tests.
64772         * tests/test-xstrtoimax.sh: Likewise.
64773         * tests/test-xstrtoumax.sh: Likewise.
64774         * modules/xstrtol-tests: New module.
64775         * modules/xstrtoimax-tests: Likewise.
64776         * modules/xstrtoumax-tests: Likewise.
64777
64778 2007-08-08  Jim Meyering  <jim@meyering.net>
64779
64780         New function: mfile_name_concat.
64781         * lib/filenamecat.c (mfile_name_concat): New function, just like
64782         file_name_concat, but return NULL upon failure rather than exiting
64783         with a diagnostic.
64784         * lib/filenamecat.h: Declare it.
64785
64786 2007-08-07  Bruno Haible  <bruno@clisp.org>
64787
64788         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
64789         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
64790         warning from gcc.
64791         Reported by Eric Blake.
64792
64793 2007-08-07  Simon Josefsson  <simon@josefsson.org>
64794
64795         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
64796         * modules/crypto/arcfour (License): Likewise.
64797         * modules/crypto/des-tests (License): Likewise.
64798         * modules/crypto/gc-arctwo-tests (License): Likewise.
64799         * modules/crypto/gc-des-tests (License): Likewise.
64800         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
64801         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
64802         * modules/crypto/gc-md2-tests (License): Likewise.
64803         * modules/crypto/gc-md4-tests (License): Likewise.
64804         * modules/crypto/gc-md5-tests (License): Likewise.
64805         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
64806         * modules/crypto/gc-rijndael-tests (License): Likewise.
64807         * modules/crypto/gc-sha1-tests (License): Likewise.
64808         * modules/crypto/gc-tests (License): Likewise.
64809         * modules/crypto/hmac-md5 (License): Likewise.
64810         * modules/crypto/hmac-sha1 (License): Likewise.
64811         * modules/crypto/md2-tests (License): Likewise.
64812         * modules/crypto/md4-tests (License): Likewise.
64813         * modules/crypto/md5 (License): Likewise.
64814         * modules/crypto/rijndael (License): Likewise.
64815         * modules/crypto/sha1 (License): Likewise.
64816         * modules/memxor (License): Likewise.
64817
64818 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64819         and Bruno Haible  <bruno@clisp.org>
64820
64821         * NEWS: Describe interface changes to human, xstrtol.
64822         * lib/human.h: Include <xstrtol.h>.
64823         (human_options): Return enum strtol_error, not int.  Remove
64824         bool arg; take int * instead.
64825         * lib/human.c: Don't include "gettext.h".
64826         (_): Remove; no longer used.
64827         Don't include <xstrtol.h>, since human.h does it.
64828         (human_options): Adjust to abovementioned interface changes.
64829         Do not report error to stderr; that's now the caller's
64830         responsibility.
64831         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
64832         interface change.
64833         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
64834         Str, Argument_type_string.  All uses changed.  Put " argument"
64835         in diagnostics to make them clearer.  Change wording of suffix
64836         message for clarity.
64837         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
64838         Argument_type_string.
64839         (STRTOL_FATAL_WARN): Remove; no longer used.
64840         * modules/human (Depends-on): Remove gettext-h.
64841
64842 2007-08-06  Simon Josefsson  <simon@josefsson.org>
64843
64844         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
64845
64846 2007-07-31  Bruno Haible  <bruno@clisp.org>
64847
64848         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
64849         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
64850         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
64851
64852 2007-07-31  Bruno Haible  <bruno@clisp.org>
64853
64854         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
64855         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
64856
64857 2007-07-30  Bruno Haible  <bruno@clisp.org>
64858
64859         * modules/base64 (License): Use the synonymous term "LGPLv2+".
64860         * modules/c-ctype (License): Likewise.
64861         * modules/c-strcase (License): Likewise.
64862         * modules/check-version (License): Likewise.
64863         * modules/iconv (License): Likewise.
64864         * modules/iconv_open (License): Likewise.
64865         * modules/read-file (License): Likewise.
64866         * modules/striconv (License): Likewise.
64867         * modules/strverscmp (License): Likewise.
64868         * modules/vasprintf (License): Likewise.
64869         * modules/crypto/des (License): Likewise.
64870         * modules/crypto/gc (License): Likewise.
64871         * modules/crypto/gc-arcfour (License): Likewise.
64872         * modules/crypto/gc-arctwo (License): Likewise.
64873         * modules/crypto/gc-des (License): Likewise.
64874         * modules/crypto/gc-hmac-md5 (License): Likewise.
64875         * modules/crypto/gc-hmac-sha1 (License): Likewise.
64876         * modules/crypto/gc-md2 (License): Likewise.
64877         * modules/crypto/gc-md4 (License): Likewise.
64878         * modules/crypto/gc-md5 (License): Likewise.
64879         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
64880         * modules/crypto/gc-random (License): Likewise.
64881         * modules/crypto/gc-rijndael (License): Likewise.
64882         * modules/crypto/gc-sha1 (License): Likewise.
64883         * modules/crypto/md2 (License): Likewise.
64884         * modules/crypto/md4 (License): Likewise.
64885
64886 2007-07-30  Jim Meyering  <jim@meyering.net>
64887
64888         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
64889         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
64890         it has valid stat data.  This bug would cause du not to count the
64891         sizes of inaccessible directories.
64892         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
64893         in <http://bugzilla.redhat.com/250077>.
64894
64895 2007-07-25  Peter O'Gorman  <peter@pogma.com>
64896             Bruno Haible  <bruno@clisp.org>
64897
64898         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
64899         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
64900         #include_next, gives a diagnostic about it, but reports no error in
64901         the exit code.
64902         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
64903
64904 2007-07-24  Ben Pfaff  <blp@gnu.org>
64905
64906         Improve name: "count-one-bits" is better than "popcount".
64907         * MODULES.html.sh: Update name.
64908         * lib/popcount.h: Renamed lib/count-one-bits.h.
64909         (popcount): Renamed count_one_bits.
64910         (popcountl): Renamed count_one_bits_l.
64911         (popcountll): Renamed count_one_bits_ll.
64912         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
64913         * modules/popcount: Renamed module/count-one-bits.
64914         * modules/popcount-tests: Renamed module/count-one-bits-tests.
64915         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
64916
64917 2007-07-23  Ben Pfaff  <blp@gnu.org>
64918
64919         * lib/popcount.h (popcount32): Reduce size of constants, to allow
64920         better code generation, and add U to large constants to avoid
64921         warnings, in non-GCC case.
64922         Suggested by Bruno Haible.
64923
64924 2007-07-23  Ben Pfaff  <blp@gnu.org>
64925
64926         * lib/popcount.h: Use verify_true instead of if...abort.
64927         * modules/popcount: Depend on verify module.
64928         Suggested by Jim Meyering.
64929
64930 2007-07-23  Bruno Haible  <bruno@clisp.org>
64931
64932         * gnulib-tool (func_import): Create a .cvsignore file also when the
64933         directory is not yet in CVS but the toplevel directory is. When
64934         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
64935         Reported by Karl Berry.
64936
64937 2007-07-22  Ben Pfaff  <blp@gnu.org>
64938
64939         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
64940         case.
64941         Suggested by Eric Blake.
64942
64943 2007-07-22  Ben Pfaff  <blp@gnu.org>
64944
64945         New module: popcount.
64946         * MODULES.html.sh: Add popcount.
64947         * modules/popcount: New file.
64948         * modules/popcount-tests: New file.
64949         * tests/test-popcount.c: New file.
64950         * lib/popcount.h: New file.
64951         * m4/popcount.m4: New file.
64952
64953 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64954
64955         * build-aux/announce-gen: Update to GPLv3.
64956
64957         * build-aux/config.guess: Update from config.
64958
64959 2007-07-21  Bruno Haible  <bruno@clisp.org>
64960
64961         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
64962         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
64963
64964 2007-07-20  Jim Meyering  <jim@meyering.net>
64965
64966         * check-module: Diagnose a self-dependency.
64967
64968 2007-07-19  Bruno Haible  <bruno@clisp.org>
64969
64970         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
64971         empty.
64972         Reported by Eric Blake.
64973
64974 2007-07-18  Bruno Haible  <bruno@clisp.org>
64975
64976         * gnulib-tool: New options --po-base, --po-domain.
64977         (func_usage): Document them.
64978         (pobase, po_domain): New variables.
64979         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
64980         DEFAULT_TEXT_DOMAIN.
64981         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
64982         (func_import): Consider pobase and po_domain. Create a po/ directory.
64983         (func_create_testdir): Set pobase and po_domain to empty.
64984         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
64985         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
64986
64987 2007-07-18  Bruno Haible  <bruno@clisp.org>
64988
64989         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64990         EXTRA_DIST augmentation for files in build-aux/.
64991
64992 2007-07-16  Bruno Haible  <bruno@clisp.org>
64993
64994         * modules/lseek (License): Use the synonymous term "LGPLv2+".
64995         * modules/getdelim (License): Likewise.
64996
64997 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64998
64999         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
65000         * modules/d-type (License): Likewise.
65001         * modules/extensions (License): Likewise.
65002         * modules/fnmatch (License): Likewise.
65003         * modules/fseeko (License): Likewise.
65004         * modules/getaddrinfo (License): Likewise.
65005         * modules/getline (License): Likewise.
65006         * modules/getlogin_r (License): Likewise.
65007         * modules/getpass (License): Likewise.
65008         * modules/gettimeofday (License): Likewise.
65009         * modules/glob (License): Likewise.
65010         * modules/inet_ntop (License): Likewise.
65011         * modules/malloc (License): Likewise.
65012         * modules/malloca (License): Likewise.
65013         * modules/memmem (License): Likewise.
65014         * modules/mempcpy (License): Likewise.
65015         * modules/memset (License): Likewise.
65016         * modules/minmax (License): Likewise.
65017         * modules/mktime (License): Likewise.
65018         * modules/netinet_in (License): Likewise.
65019         * modules/pathmax (License): Likewise.
65020         * modules/poll (License): Likewise.
65021         * modules/regex (License): Likewise.
65022         * modules/snprintf (License): Likewise.
65023         * modules/stdbool (License): Likewise.
65024         * modules/stdint (License): Likewise.
65025         * modules/stdio (License): Likewise.
65026         * modules/strcase (License): Likewise.
65027         * modules/strcasestr (License): Likewise.
65028         * modules/strdup (License): Likewise.
65029         * modules/string (License): Likewise.
65030         * modules/strndup (License): Likewise.
65031         * modules/strnlen (License): Likewise.
65032         * modules/strpbrk (License): Likewise.
65033         * modules/strptime (License): Likewise.
65034         * modules/strsep (License): Likewise.
65035         * modules/sys_select (License): Likewise.
65036         * modules/sys_socket (License): Likewise.
65037         * modules/sys_stat (License): Likewise.
65038         * modules/sys_time (License): Likewise.
65039         * modules/time (License): Likewise.
65040         * modules/time_r (License): Likewise.
65041         * modules/timegm (License): Likewise.
65042         * modules/unistd (License): Likewise.
65043         * modules/vsnprintf (License): Likewise.
65044         * modules/wctype (License): Likewise.
65045
65046 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65047
65048         * modules/argz (License): LGPLv2+.
65049
65050 2007-07-15  Karl Berry  <karl@gnu.org>
65051
65052         * doc/gnulib.texi: revise node structure per new fdl.texi.
65053
65054 2007-07-14  Bruno Haible  <bruno@clisp.org>
65055
65056         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
65057         the output file.
65058         * lib/uniname/uninames.h: Regenerated.
65059
65060 2007-07-14  Karl Berry  <karl@gnu.org>
65061
65062         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
65063         omitting sectioning and index commands.
65064
65065 2007-07-13  Bruno Haible  <bruno@clisp.org>
65066
65067         New gnulib-tool option --more-symlinks.
65068         * gnulib-tool (func_usage): Document --more-symlinks.
65069         (do_copyrights): New variable.
65070         Recognize option --more-symlinks.
65071         (func_import): Don't add a copyright notice transform to
65072         sed_transform_lib_file if do_copyrights is empty.
65073
65074 2007-07-13  Bruno Haible  <bruno@clisp.org>
65075
65076         * lib/vasnprintf.c (decimal_point_char): Define also if
65077         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
65078         && !NEED_PRINTF_DIRECTIVE_A.
65079         Reported by Clemens Koller <clemens.koller@anagramm.de> via
65080         Gary V. Vaughan <gary@gnu.org>.
65081
65082 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
65083
65084         * lib/inttypes_.h: Undo previous change, since it was fixed
65085         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
65086
65087 2007-07-13  Bruno Haible  <bruno@clisp.org>
65088
65089         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
65090         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
65091
65092 2007-07-13  Jim Meyering  <jim@meyering.net>
65093
65094         df: Don't fail for Tru64's "file-on-file mount".
65095         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
65096         so we fall through and use statfs instead.  Details here:
65097         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
65098         Reported by Albert Chin.
65099
65100 2007-07-13  Bruno Haible  <bruno@clisp.org>
65101
65102         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
65103         * modules/configmake (License): Likewise.
65104         * modules/gettext (License): Likewise.
65105         * modules/gettext-h (License): Likewise.
65106         * modules/include_next (License): Likewise.
65107         * modules/link-warning (License): Likewise.
65108         * modules/localcharset (License): Likewise.
65109         * modules/localename (License): Likewise.
65110         * modules/lock (License): Likewise.
65111         * modules/relocatable-lib-lgpl (License): Likewise.
65112         * modules/size_max (License): Likewise.
65113         * modules/vasnprintf (License): Likewise.
65114         * modules/wchar (License): Likewise.
65115         * modules/xsize (License): Likewise.
65116
65117 2007-07-13  Bruno Haible  <bruno@clisp.org>
65118
65119         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
65120         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
65121
65122 2007-07-12  Bruno Haible  <bruno@clisp.org>
65123
65124         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
65125         in the modules files.
65126
65127 2007-07-11  Karl Berry  <karl@gnu.org>
65128
65129         * MODULES.html.sh (func_module): use
65130          sed -e '\|^'"${includefile}"'$|d'
65131          instead of /.../d, to avoid errors on $includefile's containing /.
65132
65133 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65134
65135         * gnulib-tool (func_import): Avoid duplication of --avoid
65136         statements
65137         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
65138         names to `_' in variable names.
65139
65140 2007-07-10  Eric Blake  <ebb9@byu.net>
65141
65142         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
65143         * NEWS: Document this change.
65144
65145 2007-07-08  Bruno Haible  <bruno@clisp.org>
65146
65147         Update to Unicode 5.0.
65148         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
65149         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
65150         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
65151         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
65152         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
65153         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
65154         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
65155         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
65156         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
65157         U+10A3F, U+1D242..U+1D244.
65158         (nonspacing_table_ind): Update.
65159         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
65160         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
65161
65162 2007-07-08  Bruno Haible  <bruno@clisp.org>
65163
65164         Update to Unicode 5.0.
65165         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
65166         code transform. Extend the name index field of unicode_name_to_code and
65167         unicode_code_to_name from 16 to 24 bits.
65168         * lib/uniname/uniname.c (unicode_character_name,
65169         unicode_name_character): Add the range 0x12xxx to the code transform.
65170         * lib/uniname/uninames.h: Regenerated.
65171         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
65172
65173 2007-07-07  Bruno Haible  <bruno@clisp.org>
65174
65175         * modules/wcwidth-tests: New file.
65176         * tests/test-wcwidth.c: New file.
65177
65178         Work around MacOS X wcwidth() bug.
65179         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
65180         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
65181         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
65182         original wcwidth in non-UTF-8 locales.
65183         * modules/wcwidth (Depends-on): Add localcharset, streq,
65184         uniwidth/width.
65185         * doc/functions/wcwidth.texi: Update.
65186
65187 2007-07-07  Bruno Haible  <bruno@clisp.org>
65188
65189         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
65190         (wcwidth): New declaration.
65191         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
65192         macros.
65193         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
65194         here. Prepare for creating <wchar.h> unconditionally.
65195         * modules/wchar (Depends-on): Add link-warning.
65196         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
65197         REPLACE_WCWIDTH, and GL_LINK_WARNING.
65198         * lib/wcwidth.h: Remove file.
65199         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
65200         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
65201         * modules/wcwidth (Files): Remove lib/wcwidth.h.
65202         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
65203         (Include): Replace wcwidth.h with <wchar.h>.
65204         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
65205         * lib/mbchar.h: Don't include wcwidth.h.
65206         * lib/mbswidth.c: Likewise.
65207         * NEWS: Mention the change.
65208
65209 2007-07-07  Bruno Haible  <bruno@clisp.org>
65210
65211         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
65212         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
65213         definition with an external declaration.
65214         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
65215         defined as a function. Remove AC_C_INLINE requirement.
65216         * modules/wcwidth (Files): Add lib/wcwidth.c.
65217         (Makefile.am): Remove redundant statement.
65218
65219 2007-07-07  Bruno Haible  <bruno@clisp.org>
65220
65221         * MODULES.html.sh (Unicode string functions): Add the new modules.
65222
65223         * tests/uniwidth/test-u32-strwidth.c: New file.
65224         * modules/uniwidth/u32-strwidth-tests: New file.
65225
65226         * lib/uniwidth/u32-strwidth.c: New file.
65227         * modules/uniwidth/u32-strwidth: New file.
65228
65229         * tests/uniwidth/test-u16-strwidth.c: New file.
65230         * modules/uniwidth/u16-strwidth-tests: New file.
65231
65232         * lib/uniwidth/u16-strwidth.c: New file.
65233         * modules/uniwidth/u16-strwidth: New file.
65234
65235         * tests/uniwidth/test-u8-strwidth.c: New file.
65236         * modules/uniwidth/u8-strwidth-tests: New file.
65237
65238         * lib/uniwidth/u8-strwidth.c: New file.
65239         * modules/uniwidth/u8-strwidth: New file.
65240
65241         * tests/uniwidth/test-u32-width.c: New file.
65242         * modules/uniwidth/u32-width-tests: New file.
65243
65244         * lib/uniwidth/u32-width.c: New file.
65245         * modules/uniwidth/u32-width: New file.
65246
65247         * tests/uniwidth/test-u16-width.c: New file.
65248         * modules/uniwidth/u16-width-tests: New file.
65249
65250         * lib/uniwidth/u16-width.c: New file.
65251         * modules/uniwidth/u16-width: New file.
65252
65253         * tests/uniwidth/test-u8-width.c: New file.
65254         * modules/uniwidth/u8-width-tests: New file.
65255
65256         * lib/uniwidth/u8-width.c: New file.
65257         * modules/uniwidth/u8-width: New file.
65258
65259         * tests/uniwidth/test-uc_width.c: New file.
65260         * modules/uniwidth/width-tests: New file.
65261
65262         * lib/uniwidth/width.c: New file, from GNU libiconv.
65263         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
65264         * modules/uniwidth/width: New file.
65265
65266         * lib/uniwidth.h: New file, from GNU libiconv.
65267         * modules/uniwidth/base: New file.
65268
65269 2007-07-07  Bruno Haible  <bruno@clisp.org>
65270
65271         * lib/uniname.h: New file, from GNU gettext.
65272         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
65273         * lib/uniname/uninames.h: New file, from GNU gettext.
65274         * lib/uniname/uniname.c: New file, from GNU gettext.
65275         * tests/uniname/test-uninames.sh: New file.
65276         * tests/uniname/test-uninames.c: New file, from GNU gettext.
65277         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
65278         * modules/uniname/base: New file.
65279         * modules/uniname/uniname: New file.
65280         * modules/uniname/uniname-tests: New file.
65281         * MODULES.html.sh (Unicode string functions): Add the new modules.
65282
65283 2007-07-06  Bruno Haible  <bruno@clisp.org>
65284
65285         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
65286
65287 2007-07-06  Bruno Haible  <bruno@clisp.org>
65288
65289         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
65290         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
65291         includes <cygwin/sys_time.h> which includes <sys/select.h> which
65292         include <sys/time.h>.
65293         Reported by Eric Blake.
65294
65295 2007-07-06  Eric Blake  <ebb9@byu.net>
65296
65297         Fix testing canonicalize on cygwin.
65298         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
65299         Revert patch from 2007-06-19.
65300         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
65301         canonicalize module is also in use.
65302         * tests/test-canonicalize.c: New file.
65303         * tests/test-canonicalize.sh: Likewise.
65304         * modules/canonicalize-tests: Likewise.
65305
65306 2007-07-06  Jim Meyering  <jim@meyering.net>
65307
65308         * lib/getugroups.c (getugroups): Detect getgrent failure.
65309         Adjust comment to reflect reality: this function may return -1.
65310
65311 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
65312
65313         * build-aux/bootstrap (TP_URL,get_translations): Update to use
65314         the new TP address.
65315         (usage): Fix typo
65316         (gnulib_mk): New variable.
65317
65318 2007-07-05  Jim Meyering  <jim@meyering.net>
65319
65320         Don't let endgrent clobber errno, no matter how improbable.
65321         * lib/getugroups.c (getugroups): Save and restore errno around
65322         endgrent call.
65323
65324         Close the group DB even when failing with 2^31 or more members.
65325         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
65326
65327 2007-07-04  Jim Meyering  <jim@meyering.net>
65328
65329         * lib/getugroups.h: New file.
65330         * lib/getugroups.c: Include "getugroups.h".
65331         Remove uses of "register" keyword.
65332         Move local variable, "cp", down into scope where used.
65333         Give "username" parameter the "const" attribute.
65334         * modules/getugroups (Files): Add lib/getugroups.h
65335
65336 2007-07-04  Karl Berry  <karl@gnu.org>
65337
65338         * MODULES.html.sh (func_all_modules): Complete rename of
65339         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
65340
65341 2007-07-02  Bruno Haible  <bruno@clisp.org>
65342
65343         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
65344         mode, when inttypes.h comes from gnulib.
65345         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
65346
65347 2007-07-02  Simon Josefsson  <simon@josefsson.org>
65348
65349         * NEWS: Mention lgpl module name change.
65350
65351         * modules/lgpl-2.1: Renamed from lgpl.
65352
65353         * NEWS: Mention gpl module name change.
65354
65355         * modules/gpl-3.0: New file, based on gpl-2.0.
65356
65357         * modules/gpl-2.0: Renamed from gpl.
65358
65359         * modules/gpl: Fix filename, doc/gpl.texi is now found at
65360         doc/gpl-2.0.texi.
65361
65362 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65363
65364         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
65365         #define __STDC_LIMIT_MACROS temporarily while including
65366         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
65367         Problem reported by Joel E. Denny in
65368         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
65369
65370 2007-07-01  Bruno Haible  <bruno@clisp.org>
65371
65372         * lib/unistdio.h: New file.
65373         * lib/unistdio/u-asnprintf.h: New file.
65374         * lib/unistdio/u-asprintf.h: New file.
65375         * lib/unistdio/u-printf-args.c: New file.
65376         * lib/unistdio/u-printf-args.h: New file.
65377         * lib/unistdio/u-printf-parse.h: New file.
65378         * lib/unistdio/u-snprintf.h: New file.
65379         * lib/unistdio/u-sprintf.h: New file.
65380         * lib/unistdio/u-vasprintf.h: New file.
65381         * lib/unistdio/u-vsnprintf.h: New file.
65382         * lib/unistdio/u-vsprintf.h: New file.
65383         * lib/unistdio/ulc-asnprintf.c: New file.
65384         * lib/unistdio/ulc-asprintf.c: New file.
65385         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
65386         * lib/unistdio/ulc-printf-parse.c: New file.
65387         * lib/unistdio/ulc-snprintf.c: New file.
65388         * lib/unistdio/ulc-sprintf.c: New file.
65389         * lib/unistdio/ulc-vasnprintf.c: New file.
65390         * lib/unistdio/ulc-vasprintf.c: New file.
65391         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
65392         * lib/unistdio/ulc-vsnprintf.c: New file.
65393         * lib/unistdio/ulc-vsprintf.c: New file.
65394         * lib/unistdio/u8-asnprintf.c: New file.
65395         * lib/unistdio/u8-asprintf.c: New file.
65396         * lib/unistdio/u8-printf-parse.c: New file.
65397         * lib/unistdio/u8-snprintf.c: New file.
65398         * lib/unistdio/u8-sprintf.c: New file.
65399         * lib/unistdio/u8-vasnprintf.c: New file.
65400         * lib/unistdio/u8-vasprintf.c: New file.
65401         * lib/unistdio/u8-vsnprintf.c: New file.
65402         * lib/unistdio/u8-vsprintf.c: New file.
65403         * lib/unistdio/u8-u8-asnprintf.c: New file.
65404         * lib/unistdio/u8-u8-asprintf.c: New file.
65405         * lib/unistdio/u8-u8-snprintf.c: New file.
65406         * lib/unistdio/u8-u8-sprintf.c: New file.
65407         * lib/unistdio/u8-u8-vasnprintf.c: New file.
65408         * lib/unistdio/u8-u8-vasprintf.c: New file.
65409         * lib/unistdio/u8-u8-vsnprintf.c: New file.
65410         * lib/unistdio/u8-u8-vsprintf.c: New file.
65411         * lib/unistdio/u16-asnprintf.c: New file.
65412         * lib/unistdio/u16-asprintf.c: New file.
65413         * lib/unistdio/u16-printf-parse.c: New file.
65414         * lib/unistdio/u16-snprintf.c: New file.
65415         * lib/unistdio/u16-sprintf.c: New file.
65416         * lib/unistdio/u16-vasnprintf.c: New file.
65417         * lib/unistdio/u16-vasprintf.c: New file.
65418         * lib/unistdio/u16-vsnprintf.c: New file.
65419         * lib/unistdio/u16-vsprintf.c: New file.
65420         * lib/unistdio/u16-u16-asnprintf.c: New file.
65421         * lib/unistdio/u16-u16-asprintf.c: New file.
65422         * lib/unistdio/u16-u16-snprintf.c: New file.
65423         * lib/unistdio/u16-u16-sprintf.c: New file.
65424         * lib/unistdio/u16-u16-vasnprintf.c: New file.
65425         * lib/unistdio/u16-u16-vasprintf.c: New file.
65426         * lib/unistdio/u16-u16-vsnprintf.c: New file.
65427         * lib/unistdio/u16-u16-vsprintf.c: New file.
65428         * lib/unistdio/u32-asnprintf.c: New file.
65429         * lib/unistdio/u32-asprintf.c: New file.
65430         * lib/unistdio/u32-printf-parse.c: New file.
65431         * lib/unistdio/u32-snprintf.c: New file.
65432         * lib/unistdio/u32-sprintf.c: New file.
65433         * lib/unistdio/u32-vasnprintf.c: New file.
65434         * lib/unistdio/u32-vasprintf.c: New file.
65435         * lib/unistdio/u32-vsnprintf.c: New file.
65436         * lib/unistdio/u32-vsprintf.c: New file.
65437         * lib/unistdio/u32-u32-asnprintf.c: New file.
65438         * lib/unistdio/u32-u32-asprintf.c: New file.
65439         * lib/unistdio/u32-u32-snprintf.c: New file.
65440         * lib/unistdio/u32-u32-sprintf.c: New file.
65441         * lib/unistdio/u32-u32-vasnprintf.c: New file.
65442         * lib/unistdio/u32-u32-vasprintf.c: New file.
65443         * lib/unistdio/u32-u32-vsnprintf.c: New file.
65444         * lib/unistdio/u32-u32-vsprintf.c: New file.
65445         * tests/unistdio/test-ulc-asnprintf1.c: New file.
65446         * tests/unistdio/test-ulc-asnprintf1.h: New file.
65447         * tests/unistdio/test-ulc-printf1.h: New file.
65448         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
65449         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
65450         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
65451         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
65452         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
65453         * tests/unistdio/test-ulc-vasprintf1.c: New file.
65454         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
65455         * tests/unistdio/test-ulc-vsprintf1.c: New file.
65456         * tests/unistdio/test-u8-asnprintf1.c: New file.
65457         * tests/unistdio/test-u8-asnprintf1.h: New file.
65458         * tests/unistdio/test-u8-printf1.h: New file.
65459         * tests/unistdio/test-u8-vasnprintf1.c: New file.
65460         * tests/unistdio/test-u8-vasnprintf2.c: New file.
65461         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
65462         * tests/unistdio/test-u8-vasnprintf3.c: New file.
65463         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
65464         * tests/unistdio/test-u8-vasprintf1.c: New file.
65465         * tests/unistdio/test-u8-vsnprintf1.c: New file.
65466         * tests/unistdio/test-u8-vsprintf1.c: New file.
65467         * tests/unistdio/test-u16-asnprintf1.c: New file.
65468         * tests/unistdio/test-u16-asnprintf1.h: New file.
65469         * tests/unistdio/test-u16-printf1.h: New file.
65470         * tests/unistdio/test-u16-vasnprintf1.c: New file.
65471         * tests/unistdio/test-u16-vasnprintf2.c: New file.
65472         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
65473         * tests/unistdio/test-u16-vasnprintf3.c: New file.
65474         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
65475         * tests/unistdio/test-u16-vasprintf1.c: New file.
65476         * tests/unistdio/test-u16-vsnprintf1.c: New file.
65477         * tests/unistdio/test-u16-vsprintf1.c: New file.
65478         * tests/unistdio/test-u32-asnprintf1.c: New file.
65479         * tests/unistdio/test-u32-asnprintf1.h: New file.
65480         * tests/unistdio/test-u32-printf1.h: New file.
65481         * tests/unistdio/test-u32-vasnprintf1.c: New file.
65482         * tests/unistdio/test-u32-vasnprintf2.c: New file.
65483         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
65484         * tests/unistdio/test-u32-vasnprintf3.c: New file.
65485         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
65486         * tests/unistdio/test-u32-vasprintf1.c: New file.
65487         * tests/unistdio/test-u32-vsnprintf1.c: New file.
65488         * tests/unistdio/test-u32-vsprintf1.c: New file.
65489         * modules/unistdio/base: New file.
65490         * modules/unistdio/u-printf-args: New file.
65491         * modules/unistdio/ulc-asnprintf: New file.
65492         * modules/unistdio/ulc-asprintf: New file.
65493         * modules/unistdio/ulc-fprintf: New file.
65494         * modules/unistdio/ulc-printf-parse: New file.
65495         * modules/unistdio/ulc-snprintf: New file.
65496         * modules/unistdio/ulc-sprintf: New file.
65497         * modules/unistdio/ulc-vasnprintf: New file.
65498         * modules/unistdio/ulc-vasprintf: New file.
65499         * modules/unistdio/ulc-vfprintf: New file.
65500         * modules/unistdio/ulc-vsnprintf: New file.
65501         * modules/unistdio/ulc-vsprintf: New file.
65502         * modules/unistdio/u8-asnprintf: New file.
65503         * modules/unistdio/u8-asprintf: New file.
65504         * modules/unistdio/u8-printf-parse: New file.
65505         * modules/unistdio/u8-snprintf: New file.
65506         * modules/unistdio/u8-sprintf: New file.
65507         * modules/unistdio/u8-vasnprintf: New file.
65508         * modules/unistdio/u8-vasprintf: New file.
65509         * modules/unistdio/u8-vsnprintf: New file.
65510         * modules/unistdio/u8-vsprintf: New file.
65511         * modules/unistdio/u8-u8-asnprintf: New file.
65512         * modules/unistdio/u8-u8-asprintf: New file.
65513         * modules/unistdio/u8-u8-snprintf: New file.
65514         * modules/unistdio/u8-u8-sprintf: New file.
65515         * modules/unistdio/u8-u8-vasnprintf: New file.
65516         * modules/unistdio/u8-u8-vasprintf: New file.
65517         * modules/unistdio/u8-u8-vsnprintf: New file.
65518         * modules/unistdio/u8-u8-vsprintf: New file.
65519         * modules/unistdio/u16-asnprintf: New file.
65520         * modules/unistdio/u16-asprintf: New file.
65521         * modules/unistdio/u16-printf-parse: New file.
65522         * modules/unistdio/u16-snprintf: New file.
65523         * modules/unistdio/u16-sprintf: New file.
65524         * modules/unistdio/u16-vasnprintf: New file.
65525         * modules/unistdio/u16-vasprintf: New file.
65526         * modules/unistdio/u16-vsnprintf: New file.
65527         * modules/unistdio/u16-vsprintf: New file.
65528         * modules/unistdio/u16-u16-asnprintf: New file.
65529         * modules/unistdio/u16-u16-asprintf: New file.
65530         * modules/unistdio/u16-u16-snprintf: New file.
65531         * modules/unistdio/u16-u16-sprintf: New file.
65532         * modules/unistdio/u16-u16-vasnprintf: New file.
65533         * modules/unistdio/u16-u16-vasprintf: New file.
65534         * modules/unistdio/u16-u16-vsnprintf: New file.
65535         * modules/unistdio/u16-u16-vsprintf: New file.
65536         * modules/unistdio/u32-asnprintf: New file.
65537         * modules/unistdio/u32-asprintf: New file.
65538         * modules/unistdio/u32-printf-parse: New file.
65539         * modules/unistdio/u32-snprintf: New file.
65540         * modules/unistdio/u32-sprintf: New file.
65541         * modules/unistdio/u32-vasnprintf: New file.
65542         * modules/unistdio/u32-vasprintf: New file.
65543         * modules/unistdio/u32-vsnprintf: New file.
65544         * modules/unistdio/u32-vsprintf: New file.
65545         * modules/unistdio/u32-u32-asnprintf: New file.
65546         * modules/unistdio/u32-u32-asprintf: New file.
65547         * modules/unistdio/u32-u32-snprintf: New file.
65548         * modules/unistdio/u32-u32-sprintf: New file.
65549         * modules/unistdio/u32-u32-vasnprintf: New file.
65550         * modules/unistdio/u32-u32-vasprintf: New file.
65551         * modules/unistdio/u32-u32-vsnprintf: New file.
65552         * modules/unistdio/u32-u32-vsprintf: New file.
65553         * modules/unistdio/ulc-asnprintf-tests: New file.
65554         * modules/unistdio/ulc-vasnprintf-tests: New file.
65555         * modules/unistdio/ulc-vasprintf-tests: New file.
65556         * modules/unistdio/ulc-vsnprintf-tests: New file.
65557         * modules/unistdio/ulc-vsprintf-tests: New file.
65558         * modules/unistdio/u8-asnprintf-tests: New file.
65559         * modules/unistdio/u8-vasnprintf-tests: New file.
65560         * modules/unistdio/u8-vasprintf-tests: New file.
65561         * modules/unistdio/u8-vsnprintf-tests: New file.
65562         * modules/unistdio/u8-vsprintf-tests: New file.
65563         * modules/unistdio/u16-asnprintf-tests: New file.
65564         * modules/unistdio/u16-vasnprintf-tests: New file.
65565         * modules/unistdio/u16-vasprintf-tests: New file.
65566         * modules/unistdio/u16-vsnprintf-tests: New file.
65567         * modules/unistdio/u16-vsprintf-tests: New file.
65568         * modules/unistdio/u32-asnprintf-tests: New file.
65569         * modules/unistdio/u32-vasnprintf-tests: New file.
65570         * modules/unistdio/u32-vasprintf-tests: New file.
65571         * modules/unistdio/u32-vsnprintf-tests: New file.
65572         * modules/unistdio/u32-vsprintf-tests: New file.
65573         * MODULES.html.sh (Unicode string functions): Add the new modules.
65574
65575 2007-07-01  Bruno Haible  <bruno@clisp.org>
65576
65577         * lib/sprintf.c (sprintf): Limit the available length estimation,
65578         to avoid address wraparound.
65579         * lib/vsprintf.c (vsprintf): Likewise.
65580         * modules/sprintf-posix (Dependencies): Add stdint.
65581         * modules/vsprintf-posix (Dependencies): Likewise.
65582
65583 2007-07-01  Bruno Haible  <bruno@clisp.org>
65584
65585         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
65586         Windows PATH as well. Conservative double-quoting. Comments.
65587
65588 2007-07-01  Bruno Haible  <bruno@clisp.org>
65589             Eric Blake  <ebb9@byu.net>
65590             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65591
65592         * gnulib-tool (self_abspathname): Fix algorithm to cope with
65593         empty components in $PATH, denoting '.'.
65594
65595 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65596
65597         * gnulib-tool: Fix indentation.
65598         (func_create_megatestdir): Likewise.
65599         Report by Bruno Haible.
65600
65601 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65602
65603         Sync from Automake.
65604         * build-aux/gnupload: Fix shell portability issues with for loops.
65605         Report by Karl Berry.
65606
65607 2007-06-29  Simon Josefsson  <simon@josefsson.org>
65608
65609         * build-aux/maint.mk (POURL): Use translationproject.org.
65610
65611 2007-06-27  Simon Josefsson  <simon@josefsson.org>
65612             Bruno Haible  <bruno@clisp.org>
65613
65614         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
65615         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
65616         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
65617         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
65618         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
65619
65620 2007-06-27  Bruno Haible  <bruno@clisp.org>
65621
65622         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
65623         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
65624
65625 2007-06-26  Karl Berry  <karl@gnu.org>
65626
65627         * MODULES.html.sh: remove xreadlink-with-size.
65628
65629 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65630
65631         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
65632         method that I hope also handles the double-include problem noted
65633         by Bruno Haible in
65634         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
65635
65636 2007-06-23  Bruno Haible  <bruno@clisp.org>
65637
65638         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65639         Don't let the 'mostlyclean' target fail if the last subdirectory could
65640         not be removed.
65641         Reported by Karl Berry.
65642
65643 2007-06-23  Bruno Haible  <bruno@clisp.org>
65644
65645         * gnulib-tool (echo): Add a speedier workaround for ksh.
65646         * tests/test-echo.sh: Likewise.
65647
65648 2007-06-23  Bruno Haible  <bruno@clisp.org>
65649
65650         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
65651         * tests/test-echo.sh: Likewise.
65652
65653 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65654
65655         * gnulib-tool (IFS): Initialize early, so we don't set it to
65656         empty later.
65657         (self_abspathname): Rewrite algorithm to set it, reindent.
65658         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
65659         (func_create_megatestdir): Merge some sed scripts.
65660
65661 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65662
65663         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
65664         exposed by Sun Studio 11 cc on Solaris 8.
65665
65666 2007-06-22  Bruno Haible  <bruno@clisp.org>
65667
65668         * gnulib-tool (echo): Ensure the echo primitive does not interpret
65669         backslashes.
65670         * tests/test-echo.sh: New file.
65671
65672 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65673
65674         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
65675         simplify `sed_replace_build_aux' scripts, they are portable but
65676         echoing them with `echo' is not.
65677         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
65678
65679 2007-06-21  Karl Berry  <karl@gnu.org>
65680
65681         * config/srclist.txt: guess we can't handle the licenses via
65682         srclist at the moment.
65683
65684 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
65685
65686         * MODULES.html.sh: Add include_next.
65687         * modules/include_next: New file.
65688
65689 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
65690
65691         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
65692         INCLUDE_NEXT.
65693         (gl_CHECK_NEXT_HEADERS): New macro.
65694         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
65695         the obsolescent gl_ABSOLUTE_HEADER.
65696         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
65697         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
65698         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
65699         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
65700         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
65701         * m4/math_h.m4 (gl_MATH_H): Likewise.
65702         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
65703         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
65704         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
65705         * m4/stdint.m4 (gl_STDINT_H): Likewise.
65706         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
65707         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
65708         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
65709         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
65710         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
65711         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
65712         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
65713         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
65714         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
65715         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
65716         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
65717         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65718         * m4/inttypes.m4 (gl_INTTYPES_H): Define
65719         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
65720         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
65721         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
65722         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
65723         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
65724         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
65725         * lib/float_.h: Likewise.
65726         * lib/inttypes_.h: Likewise.
65727         * lib/math_.h: Likewise.
65728         * lib/search_.h: Likewise.
65729         * lib/signal_.h: Likewise.
65730         * lib/stdint_.h: Likewise.
65731         * lib/stdio_.h: Likewise.
65732         * lib/stdlib_.h: Likewise.
65733         * lib/string_.h: Likewise.
65734         * lib/sys_stat_.h: Likewise.
65735         * lib/sys_time_.h: Likewise.
65736         * lib/time_.h: Likewise.
65737         * lib/unistd_.h: Likewise.
65738         * lib/wchar_.h: Likewise.
65739         * lib/wctype_.h: Likewise.
65740         * lib/dirent_.h: Likewise.
65741         * lib/iconv_.h: Likewise.
65742         * lib/locale_.h: Likewise.
65743         * lib/netinet_in_.h: Likewise.
65744         * lib/sys_select_.h: Likewise.
65745         * lib/sys_socket_.h: Likewise.
65746         * lib/sysexits_.h: Likewise.
65747         * modules/fcntl (Depends-on): Depend on include_next, not
65748         absolute_header.
65749         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
65750         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
65751         * modules/fchdir: Likewise.
65752         * modules/float: Likewise.
65753         * modules/iconv_open: Likewise.
65754         * modules/inttypes: Likewise.
65755         * modules/locale: Likewise.
65756         * modules/math: Likewise.
65757         * modules/netinet_in: Likewise.
65758         * modules/search: Likewise.
65759         * modules/signal: Likewise.
65760         * modules/stdint: Likewise.
65761         * modules/stdio: Likewise.
65762         * modules/stdlib: Likewise.
65763         * modules/string: Likewise.
65764         * modules/sys_select: Likewise.
65765         * modules/sys_socket: Likewise.
65766         * modules/sys_stat: Likewise.
65767         * modules/sys_time: Likewise.
65768         * modules/sysexits: Likewise.
65769         * modules/time: Likewise.
65770         * modules/unistd: Likewise.
65771         * modules/wchar: Likewise.
65772         * modules/wctype: Likewise.
65773         * modules/sys_stat: Change maintainer to "all".
65774         * modules/unistd: Likewise.
65775
65776 2007-06-20  Karl Berry  <karl@gnu.org>
65777
65778         * config/srclist.txt: track www changes in license files.
65779
65780 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
65781
65782         * build-aux/bootstrap: Remove stray dot.
65783         Make sure build_aux settings are honored when linking
65784         gnulib_extra_files.
65785
65786 2007-06-19  Eric Blake  <ebb9@byu.net>
65787
65788         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
65789         Allow compilation on cygwin.
65790
65791 2007-06-19  Jim Meyering  <jim@meyering.net>
65792
65793         xreadlink-with-size: Remove module.  No longer used.
65794         Ex-callers now use xreadlink or mreadlink-with-size.
65795         * modules/xreadlink-with-size: Remove module.
65796         * lib/xreadlink-with-size.c: Remove file.
65797         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
65798         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
65799         just before the function definition *is* accurate.
65800
65801         Eliminate one way canonicalize_filename_mode could exit.
65802         * lib/canonicalize.c (canonicalize_filename_mode):
65803         Use mreadlink_with_size, not xreadlink_with_size.
65804
65805 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
65806
65807         Detect porting problems to FreeBSD/arm, which has time_t wider than
65808         long int.  Original problem reported for GNU diff by Xin Li in
65809         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
65810         * modules/getdate (Depends-on): Add intprops, verify.
65811         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
65812         is an integer type no wider than long int.
65813
65814 2007-06-18  Jim Meyering  <jim@meyering.net>
65815
65816         New module: mreadlink-with-size.
65817         * MODULES.html.sh: Add mreadlink-with-size.
65818         * modules/mreadlink-with-size: New module
65819         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
65820         not xreadlink-with-size.
65821         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
65822
65823 2007-06-16  Bruno Haible  <bruno@clisp.org>
65824
65825         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
65826         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
65827         Reported by Gary V. Vaughan <gary@gnu.org>.
65828
65829 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
65830
65831         Revamp lchown so that it lives in unistd.h where it belongs.
65832         * lib/lchown.h: Remove.
65833         * lib/dirchownmod.c: Don't include lib/lchown.h.
65834         * lib/fchownat.c: Likewise.
65835         * lib/openat.c: Likewise.
65836         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
65837         does not follow symlinks.
65838         (EOPNOTSUPP): Define if not defined.
65839         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
65840         is defined to 0.
65841         (lchown): New decl.
65842         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
65843         Do not check for lchown decl.
65844         Set REPLACE_LCHOWN.
65845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
65846         REPLACE_LCHOWN.
65847         * modules/chown: Make it clear it follows symlinks.
65848         * modules/lchown: Make it clear it doesn't follow symlinks.
65849         (Files): Remove lib/lchown.h
65850         (Depends-on): Add unistd.
65851         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
65852         (Include): Include <unistd.h>, not "lchown.h".
65853         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
65854         REPLACE_LCHOWN.
65855
65856 2007-06-15  Jim Meyering  <jim@meyering.net>
65857
65858         Change license (GPL to LGPL) of fsusage and dependents.
65859         * modules/fsusage (License): Change to LGPL.
65860         * modules/full-read (License): Likewise.
65861         * modules/full-write (License): Likewise.
65862         * modules/safe-read (License): Likewise.
65863         * modules/safe-write (License): Likewise.
65864
65865 2007-06-14  Ben Pfaff  <blp@gnu.org>
65866
65867         Missing part of allocsa -> malloca transition.
65868         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
65869         gl_MALLOCA.
65870
65871 2007-06-12  Bruno Haible  <bruno@clisp.org>
65872
65873         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
65874         to ia64, x86_64, i386.
65875         Reported by Eric Blake.
65876
65877 2007-06-12  Bruno Haible  <bruno@clisp.org>
65878
65879         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
65880         cross-compiling to x86_64.
65881
65882 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
65883
65884         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
65885         glitch reported by Ralf Wildenhues in
65886         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
65887
65888         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
65889         Vin Shelton.
65890
65891 2007-06-11  Bruno Haible  <bruno@clisp.org>
65892
65893         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
65894         replacement string.
65895         Reported by Eric Blake.
65896
65897 2007-06-10  Bruno Haible  <bruno@clisp.org>
65898
65899         Prepare vasnprintf code for use with Unicode strings.
65900         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
65901         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
65902         TYPE_U32_STRING.
65903         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
65904         a_u32_string variants.
65905         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65906         * lib/printf-args.c: Don't include config.h and the specification
65907         header if PRINTF_FETCHARGS is already defined.
65908         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65909         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
65910         TYPE_U16_STRING, TYPE_U32_STRING.
65911         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
65912         u16_directive, u16_directives, u32_directive, u32_directives): New
65913         types.
65914         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
65915         New declarations.
65916         * lib/printf-parse.c: Don't include config.h and the specification
65917         header if PRINTF_PARSE is already defined. Eliminate the set of
65918         parameters for WIDE_CHAR_VERSION; the user of this file must provide
65919         them now. Include c-ctype.h.
65920         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
65921         directive and CHAR_T_ONLY_ASCII.
65922         * lib/vasnprintf.c: Don't include config.h and the specification header
65923         if VASNPRINTF is already defined.
65924         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
65925         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
65926         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
65927         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
65928         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
65929         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
65930         code accordingly.
65931         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
65932         pad_ourselves also in this case, with the 'c' and 's' directives, and
65933         with a different notion of "width".
65934         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
65935
65936 2007-06-10  Bruno Haible  <bruno@clisp.org>
65937
65938         * modules/unistr/u32-mbsnlen: New file.
65939         * lib/unistr/u32-mbsnlen.c: New file.
65940
65941         * modules/unistr/u16-mbsnlen: New file.
65942         * lib/unistr/u16-mbsnlen.c: New file.
65943
65944         * modules/unistr/u8-mbsnlen: New file.
65945         * lib/unistr/u8-mbsnlen.c: New file.
65946
65947         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
65948         declarations.
65949
65950 2007-06-10  Bruno Haible  <bruno@clisp.org>
65951
65952         * lib/string_.h (mbsnlen): New declaration.
65953         * lib/mbsnlen.c: New file.
65954         * m4/mbsnlen.m4: New file.
65955         * modules/mbsnlen: New file.
65956         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
65957         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
65958         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
65959
65960 2007-06-10  Bruno Haible  <bruno@clisp.org>
65961
65962         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
65963
65964 2007-06-10  Bruno Haible  <bruno@clisp.org>
65965
65966         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
65967         * lib/mbuiter.h: Likewise.
65968
65969 2007-06-10  Bruno Haible  <bruno@clisp.org>
65970
65971         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
65972         declaration.
65973
65974 2007-06-10  Karl Berry  <karl@gnu.org>
65975
65976         * config/srclist.txt: remove gettext entries, Bruno prefers
65977         to update individually.
65978
65979 2007-06-10  Bruno Haible  <bruno@clisp.org>
65980
65981         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
65982         'maxlen'. Ensure only length + width bytes are allocated, not
65983         length + 1 + width.
65984
65985 2007-06-09  Bruno Haible  <bruno@clisp.org>
65986
65987         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
65988         (CHAR_T): Remove macro.
65989         (VASNPRINTF): Update.
65990
65991 2007-06-09  Bruno Haible  <bruno@clisp.org>
65992
65993         * MODULES.html.sh (Unicode string functions): Add the new modules.
65994
65995         * modules/uniconv/u32-conv-to-enc: New file.
65996         * lib/uniconv/u32-conv-to-enc.c: New file.
65997         * modules/uniconv/u32-conv-to-enc-tests: New file.
65998         * tests/uniconv/test-u32-conv-to-enc.c: New file.
65999
66000         * modules/uniconv/u16-conv-to-enc: New file.
66001         * lib/uniconv/u16-conv-to-enc.c: New file.
66002         * lib/uniconv/u-conv-to-enc.h: New file.
66003         * modules/uniconv/u16-conv-to-enc-tests: New file.
66004         * tests/uniconv/test-u16-conv-to-enc.c: New file.
66005
66006         * modules/uniconv/u8-conv-to-enc: New file.
66007         * lib/uniconv/u8-conv-to-enc.c: New file.
66008         * modules/uniconv/u8-conv-to-enc-tests: New file.
66009         * tests/uniconv/test-u8-conv-to-enc.c: New file.
66010
66011         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
66012         u32_conv_to_encoding): New declarations.
66013
66014 2007-06-09  Bruno Haible  <bruno@clisp.org>
66015
66016         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
66017
66018 2007-06-09  Bruno Haible  <bruno@clisp.org>
66019
66020         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
66021         * modules/malloca: Renamed from modules/allocsa, updated.
66022         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
66023         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
66024         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
66025         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
66026         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
66027         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
66028         * modules/xmalloca: Renamed from modules/xallocsa, updated.
66029         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
66030         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
66031         * modules/c-strcasestr (Depends-on): Update.
66032         * lib/c-strcasestr.c: Update.
66033         * modules/c-strstr (Depends-on): Update.
66034         * lib/c-strstr.c: Update.
66035         * modules/canonicalize-lgpl (Depends-on): Update.
66036         * lib/canonicalize-lgpl.c: Update.
66037         * modules/clean-temp (Depends-on): Update.
66038         * lib/clean-temp.c: Update.
66039         * modules/csharpcomp (Depends-on): Update.
66040         * lib/csharpcomp.c: Update.
66041         * modules/csharpexec (Depends-on): Update.
66042         * lib/csharpexec.c: Update.
66043         * modules/javacomp (Depends-on): Update.
66044         * lib/javacomp.c: Update.
66045         * modules/javaexec (Depends-on): Update.
66046         * lib/javaexec.c: Update.
66047         * modules/mbscasestr (Depends-on): Update.
66048         * lib/mbscasestr.c: Update.
66049         * modules/mbsstr (Depends-on): Update.
66050         * lib/mbsstr.c: Update.
66051         * modules/setenv (Depends-on): Update.
66052         * lib/setenv.c: Update.
66053         * modules/strcasestr (Depends-on): Update.
66054         * lib/strcasestr.c: Update.
66055         * modules/striconveha (Depends-on): Update.
66056         * lib/striconveha.c: Update.
66057         * modules/relocatable-prog-wrapper (Files): Update.
66058         * lib/relocwrapper.c: Update.
66059         * build-aux/install-reloc: Update.
66060         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
66061
66062 2007-06-08  Bruno Haible  <bruno@clisp.org>
66063
66064         Port to uClibc.
66065         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
66066         * lib/fpurge.c (fpurge): Likewise.
66067         * lib/freading.c (freading): Likewise.
66068         * lib/fseeko.c (rpl_fseeko): Likewise.
66069         * lib/fseterr.c (fseterr): Likewise.
66070         * lib/fwriting.c (fwriting): Likewise.
66071         * tests/test-fflush.c (main): Avoid a failure on uClibc.
66072
66073 2007-06-08  Bruno Haible  <bruno@clisp.org>
66074
66075         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
66076         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
66077         * modules/gettext (Files): Add m4/intlmacosx.m4.
66078
66079 2007-06-07  Bruno Haible  <bruno@clisp.org>
66080
66081         * modules/localename-tests: New file.
66082         * tests/test-localename.c: New file.
66083
66084         New module 'localename'.
66085         * lib/localename.h: New file.
66086         * lib/localename.c: New file, from GNU gettext.
66087         * m4/localename.m4: New file.
66088         * modules/localename: New file.
66089
66090 2007-06-07  Bruno Haible  <bruno@clisp.org>
66091
66092         Work around the lack of <wchar.h> on some builds of uClibc.
66093         * doc/headers/wchar.texi: Update.
66094         * lib/wchar_.h: Include <wchar.h> only if it exists.
66095         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
66096         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
66097         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
66098         doesn't exist.
66099         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
66100         * modules/mbfile (Depends-on): Add wchar.
66101         * modules/mbiter (Depends-on): Likewise.
66102         * modules/mbuiter (Depends-on): Likewise.
66103         Reported by Simon Josefsson.
66104
66105 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
66106
66107         Work around problem reported by Steven M. Schweda in
66108         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
66109         Tru64 5.1B with the Compaq compiler environment installed declares
66110         an 'isblank' function but does not define it in the C library.
66111         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
66112         * lib/regex_internal.h (isblank): Likewise.
66113         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
66114         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66115
66116 2007-06-05  Bruno Haible  <bruno@clisp.org>
66117
66118         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
66119         ia64.
66120         * modules/printf-safe: New file.
66121         * modules/fprintf-posix (Depends-on): Add printf-safe.
66122         * modules/printf-posix (Depends-on): Likewise.
66123         * modules/snprintf-posix (Depends-on): Likewise.
66124         * modules/sprintf-posix (Depends-on): Likewise.
66125         * modules/vasnprintf-posix (Depends-on): Likewise.
66126         * modules/vasprintf-posix (Depends-on): Likewise.
66127         * modules/vfprintf-posix (Depends-on): Likewise.
66128         * modules/vprintf-posix (Depends-on): Likewise.
66129         * modules/vsnprintf-posix (Depends-on): Likewise.
66130         * modules/vsprintf-posix (Depends-on): Likewise.
66131         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
66132         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
66133         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
66134         "no" on i386, x86_64, ia64.
66135         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
66136         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66137         on i386, x86_64, ia64.
66138         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
66139         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66140         on i386, x86_64, ia64.
66141         * tests/test-vasnprintf-posix.c: Include float.h.
66142         (LDBL80_WORDS): New macro.
66143         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66144         on i386, x86_64, ia64.
66145         * tests/test-vasprintf-posix.c: Include float.h.
66146         (LDBL80_WORDS): New macro.
66147         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66148         on i386, x86_64, ia64.
66149         * tests/test-snprintf-posix.c: Include float.h.
66150         * tests/test-sprintf-posix.c: Likewise.
66151         * tests/test-vsnprintf-posix.c: Likewise.
66152         * tests/test-vsprintf-posix.c: Likewise.
66153
66154 2007-06-05  Bruno Haible  <bruno@clisp.org>
66155
66156         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
66157         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
66158         non-IEEE numbers on i386, x86_64, ia64.
66159         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
66160         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
66161         * tests/test-isnanl.h: Include float.h.
66162         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
66163
66164 2007-06-05  Bruno Haible  <bruno@clisp.org>
66165
66166         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
66167         also the %a / %A. Handle the %a / %A code before this extra handling.
66168
66169 2007-06-05  Bruno Haible  <bruno@clisp.org>
66170
66171         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
66172         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
66173
66174 2007-06-05  Bruno Haible  <bruno@clisp.org>
66175
66176         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
66177         typo in variable name.
66178
66179 2007-06-05  Eric Blake  <ebb9@byu.net>
66180
66181         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
66182         Reported by Simon Josefsson.
66183
66184 2007-06-04  Bruno Haible  <bruno@clisp.org>
66185
66186         Avoid test failures on some PowerPC platforms.
66187         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
66188         Define differently for PowerPC.
66189         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
66190         Reported by Gary V. Vaughan <gary@gnu.org>.
66191
66192 2007-06-02  Bruno Haible  <bruno@clisp.org>
66193
66194         Fix test-stdint failure on FreeBSD/ia64.
66195         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
66196         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
66197         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
66198         * doc/headers/stdint.texi: Update.
66199
66200 2007-06-01  Bruno Haible  <bruno@clisp.org>
66201
66202         * tests/test-binary-io.c (main): Pass a third argument to open().
66203         Reported by Gary V. Vaughan <gary@gnu.org>.
66204
66205 2007-06-01  Bruno Haible  <bruno@clisp.org>
66206
66207         * doc/functions/frexpl.texi: Update for mingw.
66208
66209 2007-06-01  Bruno Haible  <bruno@clisp.org>
66210
66211         * tests/test-lseek.c (main): Disable test of errno for invalid third
66212         argument.
66213         * doc/functions/lseek.texi: Update.
66214         Reported by Gary V. Vaughan <gary@gnu.org>.
66215
66216 2007-05-28  Bruno Haible  <bruno@clisp.org>
66217
66218         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
66219
66220 2007-05-31  Eric Blake  <ebb9@byu.net>
66221
66222         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
66223         cross compiling.
66224
66225 2007-05-30  Eric Blake  <ebb9@byu.net>
66226         and Bruno Haible  <bruno@clisp.org>
66227
66228         Work around mingw test failures exposed by m4-1.4.9b.
66229         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
66230         * tests/test-unistd.c: Disable uid_t and git_t tests for the
66231         moment.
66232
66233 2007-05-30  Bruno Haible  <bruno@clisp.org>
66234
66235         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
66236         assuming that they are closed. Needed on HP-UX 11.
66237
66238 2007-05-29  Bruno Haible  <bruno@clisp.org>
66239
66240         Fix a problem with #include_next.
66241         * lib/dirent_.h: Split the double-inclusion guard.
66242         * lib/fcntl_.h: Likewise.
66243         * lib/float_.h: Likewise.
66244         * lib/iconv_.h: Likewise.
66245         * lib/inttypes_.h: Likewise.
66246         * lib/locale_.h: Likewise.
66247         * lib/math_.h: Likewise.
66248         * lib/netinet_in_.h: Likewise.
66249         * lib/search_.h: Likewise.
66250         * lib/signal_.h: Likewise.
66251         * lib/stdint_.h: Likewise.
66252         * lib/stdio_.h: Likewise.
66253         * lib/stdlib_.h: Likewise.
66254         * lib/string_.h: Likewise.
66255         * lib/sys_select_.h: Likewise.
66256         * lib/sys_socket_.h: Likewise.
66257         * lib/sys_stat_.h: Likewise.
66258         * lib/sys_time_.h: Likewise.
66259         * lib/sysexits_.h: Likewise.
66260         * lib/time_.h: Likewise.
66261         * lib/unistd_.h: Likewise.
66262         * lib/wchar_.h: Likewise.
66263         * lib/wctype_.h: Likewise.
66264
66265 2007-05-29  Bruno Haible  <bruno@clisp.org>
66266
66267         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
66268         for the moment.
66269
66270 2007-05-29  Bruno Haible  <bruno@clisp.org>
66271
66272         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
66273         invocation.
66274         Reported by Eric Blake.
66275
66276 2007-05-29  Bruno Haible  <bruno@clisp.org>
66277
66278         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
66279         compiling case.
66280
66281 2007-05-29  Eric Blake  <ebb9@byu.net>
66282             Bruno Haible  <bruno@clisp.org>
66283
66284         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
66285         cross compiles.
66286
66287 2007-05-28  Eric Blake  <ebb9@byu.net>
66288
66289         * modules/closein-tests (test_closein_LDADD): Support test on
66290         cygwin with libtool.
66291
66292 2007-05-28  Bruno Haible  <bruno@clisp.org>
66293
66294         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
66295         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
66296         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
66297         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
66298         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
66299         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
66300         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
66301         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
66302         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
66303
66304 2007-05-28  Eric Blake  <ebb9@byu.net>
66305
66306         Unconditionally include <config.h> in unit tests.
66307         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
66308         * tests/test-allocsa.c, tests/test-arcfour.c,
66309         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
66310         tests/test-array_list.c, tests/test-array_oset.c,
66311         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
66312         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
66313         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
66314         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
66315         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
66316         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
66317         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
66318         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
66319         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
66320         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
66321         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
66322         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
66323         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
66324         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
66325         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
66326         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
66327         test-md5.c, test-memmem.c, test-printf-posix.c,
66328         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
66329         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
66330         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
66331         test-strcasestr.c, test-striconv.c, test-striconveh.c,
66332         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
66333         test-vasnprintf-posix2.c, test-vasnprintf.c,
66334         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
66335         test-vfprintf-posix.c, test-vprintf-posix.c,
66336         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
66337         test-xvasprintf.c: Likewise.
66338
66339 2007-05-28  Bruno Haible  <bruno@clisp.org>
66340
66341         * gnulib-tool (func_import): Remember the --with-tests command-line
66342         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
66343         Reported by Eric Blake.
66344
66345 2007-05-28  Bruno Haible  <bruno@clisp.org>
66346
66347         * modules/ftell-tests: New file.
66348         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
66349         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
66350
66351         * lib/ftell.c: New file.
66352         * modules/ftell: New file.
66353         * m4/ftell.m4: New file.
66354         * doc/functions/ftell.texi: Update.
66355         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
66356         REPLACE_FTELL.
66357         * lib/stdio_.h (rpl_ftell): New declaration.
66358         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
66359         REPLACE_FTELL.
66360
66361 2007-05-28  Eric Blake  <ebb9@byu.net>
66362
66363         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
66364
66365 2007-05-28  Bruno Haible  <bruno@clisp.org>
66366
66367         * modules/fseek-tests: New file.
66368         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
66369         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
66370
66371         * lib/fseek.c: New file.
66372         * modules/fseek: New file.
66373         * m4/fseek.m4: New file.
66374         * doc/functions/fseek.texi: Update.
66375         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
66376         REPLACE_FSEEK.
66377         * lib/stdio_.h (rpl_fseek): New declaration.
66378         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
66379         REPLACE_FSEEK.
66380
66381 2007-05-28  Bruno Haible  <bruno@clisp.org>
66382
66383         * lib/stdio_.h (fflush): More comments.
66384
66385 2007-05-28  Bruno Haible  <bruno@clisp.org>
66386
66387         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
66388         runtime test.
66389
66390 2007-05-28  Eric Blake  <ebb9@byu.net>
66391
66392         Improve lseek module.
66393         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
66394         * lib/unistd_.h (lseek): Scale back link warning message.
66395         * tests/test-lseek.c: Beef up test.
66396         * tests/test-lseek.sh: Exercise more facets of lseek.
66397         Reported by Bruno Haible.
66398
66399 2007-05-28  Bruno Haible  <bruno@clisp.org>
66400
66401         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
66402         to define.
66403
66404 2007-05-27  Bruno Haible  <bruno@clisp.org>
66405
66406         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
66407
66408 2007-05-27  Bruno Haible  <bruno@clisp.org>
66409
66410         * modules/openmp: New file.
66411         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
66412         Noah Misch.
66413
66414 2007-05-26  Bruno Haible  <bruno@clisp.org>
66415
66416         * modules/chdir-long (Depends-on): Add fchdir.
66417         * modules/chdir-safer (Depends-on): Likewise.
66418         * modules/fts (Depends-on): Likewise.
66419         * modules/fts-lgpl (Depends-on): Likewise.
66420         * modules/openat (Depends-on): Likewise.
66421         * modules/savewd (Depends-on): Likewise.
66422
66423 2007-05-24  Eric Blake  <ebb9@byu.net>
66424
66425         Fix lseek on mingw.
66426         * modules/lseek: New module.
66427         * m4/lseek.m4: New file.
66428         * lib/lseek.c: New file.
66429         * modules/lseek-tests: New file.
66430         * tests/test-lseek.c: New file.
66431         * tests/test-lseek.sh: New file.
66432         * MODULES.html.sh: Document lseek module.
66433         * modules/fflush (Depends-on): Add lseek, fseeko.
66434         * modules/fseeko (Depends-on): Likewise.
66435         * modules/ftello (Depends-on): Likewise.
66436         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
66437         broken.
66438         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
66439         broken.
66440         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
66441         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
66442         * lib/ftello.c (rpl_ftello): Likewise.
66443         * tests/test-fseeko.c (main): Test this.
66444         * tests/test-fseeko.sh: Likewise.
66445         * tests/test-ftello.c (main): Likewise.
66446         * tests/test-ftello.sh: Likewise.
66447         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
66448         implies replacing fseek.
66449         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
66450         HAVE_FTELLO.
66451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
66452         * modules/unistd (Makefile.am): Likewise.
66453         * lib/unistd_.h (lseek): Declare a replacement.
66454         * doc/functions/lseek.texi (lseek): Document this fix.
66455         * doc/functions/fseek.texi (fseek): Likewise.
66456         * doc/functions/ftell.texi (ftell): Likewise.
66457
66458 2007-05-24  Bruno Haible  <bruno@clisp.org>
66459
66460         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
66461         in the printed representation of a NaN.
66462         * tests/test-vasprintf-posix.c (test_function): Likewise.
66463         * tests/test-snprintf-posix.h (test_function): Likewise.
66464         * tests/test-sprintf-posix.h (test_function): Likewise.
66465         Reported by Eric Blake.
66466
66467 2007-05-23  Eric Blake  <ebb9@byu.net>
66468
66469         Fix fseeko/ftello on cygwin 1.5.24.
66470         * doc/functions/fseeko.texi (fseeko): Document the fix.
66471         * doc/functions/ftello.texi (ftello): Document the fix.
66472         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
66473         * doc/functions/stdout.text (stdout): New file.
66474         * doc/functions/stderr.text (stderr): New file.
66475         * doc/gnulib.texi (Function Substitutes): Use new files.
66476         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
66477         prior to 1.7.0.
66478         * tests/test-ftello.c (main): Likewise for ftello.
66479         * tests/test-fseeko.sh: New file.
66480         * tests/test-ftello.sh: New file.
66481         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
66482         with seekable stdin.
66483         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
66484         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
66485         (gl_REPLACE_FSEEKO): New macro.
66486         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
66487         * modules/fseeko (Files): Distribute fseeko.c.
66488         * modules/ftello (Files): Distribute ftello.c.
66489         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
66490         mode.
66491         * lib/ftello.c (rpl_ftello): New file.
66492         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
66493         fseeko, ftello.
66494         (gl_STDIN_LARGE_OFFSET): New macro.
66495         * modules/stdio (Makefile.am): Perform the replacement.
66496         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
66497
66498 2007-05-23  Bruno Haible  <bruno@clisp.org>
66499
66500         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
66501         GNULIB_POSIXCHECK is defined.
66502
66503 2007-05-21  Bruno Haible  <bruno@clisp.org>
66504
66505         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
66506         Check also the output for NaN arguments. When cross-compiling, guess
66507         no on IRIX.
66508         * lib/vasnprintf.c: Update comments.
66509         * tests/test-vasnprintf-posix.c (strisnan): New function.
66510         (test_function): Use it.
66511         * tests/test-vasprintf-posix.c (strisnan): New function.
66512         (test_function): Use it.
66513         * tests/test-snprintf-posix.h (strisnan): New function.
66514         (test_function): Use it.
66515         * tests/test-sprintf-posix.h (strisnan): New function.
66516         (test_function): Use it.
66517         Reported by Eric Blake.
66518
66519 2007-05-20  Bruno Haible  <bruno@clisp.org>
66520
66521         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
66522         numbers that fails on BeOS.
66523         * doc/functions/frexpl.texi: Update.
66524
66525 2007-05-20  Jim Meyering  <jim@meyering.net>
66526
66527         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
66528         forced upon us by glibc-2.6.
66529
66530 2007-05-20  Bruno Haible  <bruno@clisp.org>
66531
66532         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
66533         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
66534         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
66535         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
66536         NEED_PRINTF_INFINITE.
66537         (is_infinitel): New function.
66538         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
66539         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
66540         gl_PREREQ_VASNPRINTF_INFINITE.
66541         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
66542         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66543         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
66544         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
66545         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
66546         gl_PREREQ_VASNPRINTF_INFINITE.
66547         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66548         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66549         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66550         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66551         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66552         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66553         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66554         * doc/functions/fprintf.texi: Update.
66555         * doc/functions/printf.texi: Update.
66556         * doc/functions/snprintf.texi: Update.
66557         * doc/functions/sprintf.texi: Update.
66558         * doc/functions/vfprintf.texi: Update.
66559         * doc/functions/vprintf.texi: Update.
66560         * doc/functions/vsnprintf.texi: Update.
66561         * doc/functions/vsprintf.texi: Update.
66562
66563 2007-05-20  Bruno Haible  <bruno@clisp.org>
66564
66565         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
66566         was not found in libc.
66567         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
66568
66569 2007-05-20  Bruno Haible  <bruno@clisp.org>
66570
66571         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
66572         printed as "-nan" instead of "nan".
66573         * tests/test-vasprintf-posix.c (test_function): Likewise.
66574         * tests/test-snprintf-posix.h (test_function): Likewise.
66575         * tests/test-sprintf-posix.h (test_function): Likewise.
66576         Needed for HP-UX 11.
66577
66578 2007-05-20  Jim Meyering  <jim@meyering.net>
66579
66580         Fix buggy test for the fchownat-deref bug.
66581         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
66582         symlink required for the run-test.  Without it, this test would
66583         always declare that fchownat doesn't work, and client code would
66584         unnecessarily use the replacement function with fixed libc.
66585         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
66586         Reported by Greg Schafer.
66587
66588 2007-05-19  Bruno Haible  <bruno@clisp.org>
66589
66590         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
66591         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
66592         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
66593         Needed for IRIX 6.5 and Solaris 2.5.1.
66594
66595 2007-05-19  Bruno Haible  <bruno@clisp.org>
66596
66597         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
66598         (test_function): Skip tests involving -0.0 on platforms where
66599         -0.0 = 0.0.
66600         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
66601         (test_function): Skip tests involving -0.0 on platforms where
66602         -0.0 = 0.0.
66603         * tests/test-snprintf-posix.h (have_minus_zero): New function.
66604         (test_function): Skip tests involving -0.0 on platforms where
66605         -0.0 = 0.0.
66606         * tests/test-sprintf-posix.h (have_minus_zero): New function.
66607         (test_function): Skip tests involving -0.0 on platforms where
66608         -0.0 = 0.0.
66609         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
66610         tests.
66611         * tests/test-printf-posix.h (test_function): Likewise.
66612         * tests/test-printf-posix.output: Remove all -0.0 related results.
66613         Needed for IRIX 6.5.
66614
66615 2007-05-19  Bruno Haible  <bruno@clisp.org>
66616
66617         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
66618         printed as "nan0x7fffffff" instead of "nan".
66619         * tests/test-vasprintf-posix.c (test_function): Likewise.
66620         * tests/test-snprintf-posix.h (test_function): Likewise.
66621         * tests/test-sprintf-posix.h (test_function): Likewise.
66622         * tests/test-fprintf-posix.h (NaN): Remove macro.
66623         (test_function): Remove all NaN related tests.
66624         * tests/test-printf-posix.h (NaN): Remove macro.
66625         (test_function): Remove all NaN related tests.
66626         * tests/test-printf-posix.output: Remove all NaN related results.
66627         Needed for IRIX 6.5.
66628
66629 2007-05-19  Bruno Haible  <bruno@clisp.org>
66630
66631         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
66632         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
66633
66634 2007-05-19  Bruno Haible  <bruno@clisp.org>
66635
66636         * lib/float_.h: New file.
66637         * m4/float_h.m4: New file.
66638         * modules/float: New file.
66639         * modules/isnanl (Dependencies): Add float.
66640         * modules/isnanl-nolibm (Dependencies): Likewise.
66641         * modules/mathl (Dependencies): Likewise.
66642         * modules/printf-frexpl (Dependencies): Likewise.
66643         * modules/signbit (Dependencies): Likewise.
66644         * modules/vasnprintf (Dependencies): Likewise.
66645         * doc/headers/float.texi: Update.
66646
66647 2007-05-19  Jim Meyering  <jim@meyering.net>
66648
66649         * lib/utimens.c (gl_futimens): Rename from futimens,
66650         now that glibc-2.6 declares futimens.
66651         * lib/utimens.h: Likewise.
66652
66653 2007-05-19  Bruno Haible  <bruno@clisp.org>
66654
66655         Avoid test failures on mingw.
66656         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
66657         * tests/test-printf-posix.sh: Likewise.
66658         * tests/test-vfprintf-posix.sh: Likewise.
66659         * tests/test-vprintf-posix.sh: Likewise.
66660
66661 2007-05-19  Bruno Haible  <bruno@clisp.org>
66662
66663         Fix *printf result for NaN, Inf, -0.0 on mingw.
66664         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
66665         * lib/vasnprintf.c: Include math.h and isnan.h.
66666         (is_infinite_or_zero): New function.
66667         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
66668         values in the %f, %F, %e, %E, %g, %G directives.
66669         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
66670         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66671         gl_PRINTF_INFINITE and test its result. Invoke
66672         gl_PREREQ_VASNPRINTF_INFINITE.
66673         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66674         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66675         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66676         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66677         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66678         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66679         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66680         * doc/functions/fprintf.texi: Update.
66681         * doc/functions/printf.texi: Update.
66682         * doc/functions/snprintf.texi: Update.
66683         * doc/functions/sprintf.texi: Update.
66684         * doc/functions/vfprintf.texi: Update.
66685         * doc/functions/vprintf.texi: Update.
66686         * doc/functions/vsnprintf.texi: Update.
66687         * doc/functions/vsprintf.texi: Update.
66688
66689 2007-05-19  Bruno Haible  <bruno@clisp.org>
66690
66691         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
66692         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
66693         Instead of multiplying with 10^k, set extra_zeroes to k.
66694         (scale10_round_long_double): Remove function.
66695
66696 2007-05-18  Bruno Haible  <bruno@clisp.org>
66697
66698         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
66699         introduced on 2007-05-06.
66700
66701 2007-05-18  Bruno Haible  <bruno@clisp.org>
66702
66703         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
66704         %g directives.
66705         * tests/test-vasprintf-posix.c (test_function): Likewise.
66706         * tests/test-snprintf-posix.h (test_function): Likewise.
66707         * tests/test-sprintf-posix.h (test_function): Likewise.
66708
66709 2007-05-18  Bruno Haible  <bruno@clisp.org>
66710
66711         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
66712         (strmatch): New function.
66713         (test_function): Test the %f directive on numbers of various exponents.
66714         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
66715         (strmatch): New function.
66716         (test_function): Test the %f directive on numbers of various exponents.
66717         * tests/test-snprintf-posix.h (strmatch): New function.
66718         (test_function): Test the %f directive on numbers of various exponents.
66719         * tests/test-sprintf-posix.h (strmatch): New function.
66720         (test_function): Test the %f directive on numbers of various exponents.
66721         * tests/test-snprintf-posix.c (SIZEOF): New macro.
66722         * tests/test-sprintf-posix.c (SIZEOF): New macro.
66723         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
66724         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
66725
66726 2007-05-18  Bruno Haible  <bruno@clisp.org>
66727
66728         Add support for 'long double' number output.
66729         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
66730         * lib/vasnprintf.c: Include math.h and float+.h.
66731         (mp_limb_t): New type.
66732         (GMP_LIMB_BITS): New macro.
66733         (mp_twolimb_t): New type.
66734         (GMP_TWOLIMB_BITS): New macro.
66735         (mpn_t): New type.
66736         (multiply, divide, convert_to_decimal, decode_long_double,
66737         scale10_round_long_double, scale10_round_decimal_long_double,
66738         floorlog10l): New functions.
66739         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
66740         for the %f, %F, %e, %E, %g, %G directives.
66741         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
66742         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66743         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
66744         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
66745         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66746         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66747         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66748         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66749         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66750         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66751         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66752         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
66753         * modules/snprintf-posix (Depends-on): Likewise.
66754         * modules/sprintf-posix (Depends-on): Likewise.
66755         * modules/vasnprintf-posix (Depends-on): Likewise.
66756         * modules/vasprintf-posix (Depends-on): Likewise.
66757         * modules/vfprintf-posix (Depends-on): Likewise.
66758         * modules/vsnprintf-posix (Depends-on): Likewise.
66759         * modules/vsprintf-posix (Depends-on): Likewise.
66760         * modules/vasnprintf (Files): Add lib/float+.h.
66761         * doc/functions/fprintf.texi: Update.
66762         * doc/functions/printf.texi: Update.
66763         * doc/functions/snprintf.texi: Update.
66764         * doc/functions/sprintf.texi: Update.
66765         * doc/functions/vfprintf.texi: Update.
66766         * doc/functions/vprintf.texi: Update.
66767         * doc/functions/vsnprintf.texi: Update.
66768         * doc/functions/vsprintf.texi: Update.
66769
66770 2007-05-18  Bruno Haible  <bruno@clisp.org>
66771
66772         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
66773
66774 2007-05-18  Bruno Haible  <bruno@clisp.org>
66775
66776         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
66777         for printing 64-bit integers. Needed for mingw.
66778
66779 2007-05-18  Bruno Haible  <bruno@clisp.org>
66780
66781         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66782         gl_FUNC_FREXPL_WORKS.
66783         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
66784
66785 2007-05-18  Bruno Haible  <bruno@clisp.org>
66786
66787         * modules/frexpl-nolibm-tests: New file.
66788
66789         * modules/frexpl-nolibm: New file.
66790         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
66791
66792 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
66793
66794         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
66795         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66796         GCC 4.2, which otherwise issues a lot of warnings.
66797         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
66798         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
66799         Likewise.
66800         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
66801         * modules/iconv_open (iconv.h): Likewise.
66802         * modules/locale (locale.h): Likewise.
66803         * modules/netinet_in (netinet/in.h): Likewise.
66804         * modules/sys_select (sys_select.h): Likewise.
66805         * modules/sys_socket (sys/socket.h): Likewise.
66806         * modules/sys_stat (sys/stat.h): Likewise.
66807         * modules/sysexits (sysexits.h): Likewise.
66808         * modules/unistd (unistd.h): Likewise.
66809
66810 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66811
66812         * modules/closein-tests (Makefile.am): Distribute
66813         `test-closein.sh'.
66814
66815 2007-05-17  Bruno Haible  <bruno@clisp.org>
66816
66817         * tests/test-printf-posix.output: Renamed from
66818         tests/test-fprintf-posix.out.
66819         * modules/fprintf-posix-tests: Update.
66820         * modules/printf-posix-tests: Update.
66821         * modules/vfprintf-posix-tests: Update.
66822         * modules/vprintf-posix-tests: Update.
66823         * tests/test-fprintf-posix.sh: Update.
66824         * tests/test-printf-posix.sh: Update.
66825         * tests/test-vfprintf-posix.sh: Update.
66826         * tests/test-vprintf-posix.sh: Update.
66827         Reported by Ralf Wildenhues.
66828
66829 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
66830
66831         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
66832         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66833         GCC 4.2, which otherwise issues a lot of warnings.
66834         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
66835         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
66836         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
66837         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
66838         it should no longer be needed.
66839         * lib/string_.h: Likewise.
66840         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
66841         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
66842         * modules/inttypes (inttypes.h): Likewise.
66843         * modules/math (math.h): Likewise.
66844         * modules/search (search.h): Likewise.
66845         * modules/signal (signal.h): Likewise.
66846         * modules/stdint (stdint.h): Likewise.
66847         * modules/stdio (stdio.h): Likewise.
66848         * modules/stdlib (stdlib.h): Likewise.
66849         * modules/string (string.h): Likewise.
66850         * modules/sys_time (sys/time.h): Likewise.
66851         * modules/time (time.h): Likewise.
66852         * modules/wchar (wchar.h): Likewise.
66853         * modules/wctype (wtype.h): Likewise.
66854
66855 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
66856
66857         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
66858
66859 2007-05-13  Bruno Haible  <bruno@clisp.org>
66860
66861         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
66862         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66863         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
66864         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66865         (gl_PREREQ_STRTOK_R): Don't require it here.
66866
66867 2007-05-13  Bruno Haible  <bruno@clisp.org>
66868
66869         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
66870         when used in C++ mode.
66871
66872 2007-05-12  Bruno Haible  <bruno@clisp.org>
66873
66874         * lib/linebuffer.h: Tweak doc.
66875         * lib/linebuffer.c: Likewise.
66876
66877 2007-05-12  James Youngman  <jay@gnu.org>
66878
66879         * lib/linebuffer.c (readlinebuffer_delim): New function,
66880         like readlinebuffer, but use a caller-specified delimiter.
66881         (readlinebuffer): Just call readlinebuffer_delim with '\n'
66882         as the delimiter.
66883         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
66884
66885 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66886
66887         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
66888         * modules/openat (Files): Remove openat-die.c.
66889         (Depends-on): Add openat-die.
66890         * modules/openat-die: New module.
66891
66892 2007-05-06  Bruno Haible  <bruno@clisp.org>
66893
66894         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
66895         Update with info about Cygwin.
66896         * doc/functions/fprintf.texi: Update.
66897         * doc/functions/printf.texi: Update.
66898         * doc/functions/snprintf.texi: Update.
66899         * doc/functions/sprintf.texi: Update.
66900         * doc/functions/vfprintf.texi: Update.
66901         * doc/functions/vprintf.texi: Update.
66902         * doc/functions/vsnprintf.texi: Update.
66903         * doc/functions/vsprintf.texi: Update.
66904         Reported by Eric Blake.
66905
66906 2007-05-06  Bruno Haible  <bruno@clisp.org>
66907
66908         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
66909         padding ourselves for the floating-point directives.
66910         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
66911         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
66912         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66913         gl_PRINTF_FLAG_ZERO and test its result. Invoke
66914         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
66915         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66916         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66917         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66918         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66919         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66920         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66921         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66922         * tests/test-snprintf-posix.h (test_function): Also check the width
66923         and some flags in the %f directive.
66924         * tests/test-sprintf-posix.h (test_function): Likewise.
66925         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66926         * tests/test-vasprintf-posix.c (test_function): Likewise.
66927         * doc/functions/fprintf.texi: Update.
66928         * doc/functions/printf.texi: Update.
66929         * doc/functions/snprintf.texi: Update.
66930         * doc/functions/sprintf.texi: Update.
66931         * doc/functions/vfprintf.texi: Update.
66932         * doc/functions/vprintf.texi: Update.
66933         * doc/functions/vsnprintf.texi: Update.
66934         * doc/functions/vsprintf.texi: Update.
66935
66936 2007-05-06  Bruno Haible  <bruno@clisp.org>
66937
66938         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
66939         pass the ' flag character to sprintf or snprintf.
66940         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
66941         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
66942         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66943         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
66944         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
66945         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66946         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66947         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66948         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66949         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66950         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66951         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66952         * tests/test-snprintf-posix.h (test_function): Also check the grouping
66953         flag.
66954         * tests/test-sprintf-posix.h (test_function): Likewise.
66955         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66956         * tests/test-vasprintf-posix.c (test_function): Likewise.
66957         * doc/functions/fprintf.texi: Update.
66958         * doc/functions/printf.texi: Update.
66959         * doc/functions/snprintf.texi: Update.
66960         * doc/functions/sprintf.texi: Update.
66961         * doc/functions/vfprintf.texi: Update.
66962         * doc/functions/vprintf.texi: Update.
66963         * doc/functions/vsnprintf.texi: Update.
66964         * doc/functions/vsprintf.texi: Update.
66965
66966 2007-05-01  Bruno Haible  <bruno@clisp.org>
66967
66968         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
66969
66970 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
66971
66972         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
66973         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
66974
66975 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66976
66977         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
66978         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
66979         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
66980
66981 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
66982
66983         * lib/argp-help.c (struct hol_entry): New member `ord'.
66984         (HOL_ENTRY_PTRCMP): Use ord for comparison
66985         (hol_sort): Initialize ord.
66986
66987 2007-05-01  Bruno Haible  <bruno@clisp.org>
66988
66989         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
66990         Reported by Eric Blake.
66991         * doc/gnulib.texi (Function Substitutes): Update.
66992
66993 2007-05-01  Bruno Haible  <bruno@clisp.org>
66994
66995         * doc/functions.texi: Remove file, now redundant through
66996         doc/functions/*.texi.
66997
66998 2007-05-01  Bruno Haible  <bruno@clisp.org>
66999
67000         * modules/argp (Depends-on): Add sleep.
67001
67002 2007-05-01  Bruno Haible  <bruno@clisp.org>
67003
67004         * modules/sleep-tests: New file.
67005         * tests/test-sleep.c: New file.
67006
67007         * modules/sleep: New file.
67008         * lib/sleep.c: New file.
67009         * m4/sleep.m4: New file.
67010         * lib/unistd_.h (sleep): New declaration.
67011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
67012         HAVE_SLEEP.
67013         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
67014         * doc/functions/sleep.texi: Document the sleep module.
67015
67016 2007-05-01  Bruno Haible  <bruno@clisp.org>
67017
67018         * lib/sigprocmask.h: Remove file.
67019         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
67020         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
67021         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
67022         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
67023         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
67024         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
67025         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
67026         HAVE_SIGSET_T as a shell variable.
67027         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
67028         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
67029         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
67030         (Depends-on): Add signal. Remove verify.
67031         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
67032         (Include): Mention <signal.h> instead of sigprocmask.h.
67033         * NEWS: Mention the change.
67034         * lib/fatal-signal.c: Don't include sigprocmask.h.
67035
67036 2007-05-01  Bruno Haible  <bruno@clisp.org>
67037
67038         * modules/signal: New file.
67039         * lib/signal_.h: New file.
67040         * m4/signal_h.m4: New file.
67041
67042 2007-05-01  Bruno Haible  <bruno@clisp.org>
67043
67044         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
67045         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
67046         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
67047         HAVE_WCTYPE_CTMP_BUG into wctype.h.
67048
67049 2007-05-01  Bruno Haible  <bruno@clisp.org>
67050
67051         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
67052         configure time.
67053         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
67054         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
67055         * modules/sys_stat (Makefile.am): Substitute their values into
67056         sys/stat.h.
67057
67058 2007-05-01  Bruno Haible  <bruno@clisp.org>
67059
67060         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
67061         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
67062         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
67063
67064 2007-05-01  Bruno Haible  <bruno@clisp.org>
67065
67066         * doc/header/assert.texi: Undo last change: don't mention the gnulib
67067         'assert' module here.
67068
67069 2007-05-01  Bruno Haible  <bruno@clisp.org>
67070
67071         * doc/functions/*.texi: New files.
67072         * doc/functions/google-ranking.txt: New file.
67073         * doc/gnulib.texi (Function Substitutes): New chapter.
67074         (ctime, inet_ntoa): Remove sections.
67075         * doc/ctime.texi: Remove file.
67076         * doc/inet_ntoa.texi: Remove file.
67077         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
67078         dependencies.
67079         (%.info): New rule, specifying a --reference-limit.
67080
67081 2007-05-01  Bruno Haible  <bruno@clisp.org>
67082
67083         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
67084
67085 2007-05-01  Bruno Haible  <bruno@clisp.org>
67086
67087         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
67088         the portability of 'mkdir' to mingw systems.
67089
67090 2007-05-01  Bruno Haible  <bruno@clisp.org>
67091
67092         * doc/headers/google-ranking.txt: New file.
67093
67094 2007-04-30  Eric Blake  <ebb9@byu.net>
67095
67096         Prefer fseeko to fseek.
67097         * modules/getpass (Depends-on): Add fseeko.
67098         * lib/getpass.c (getpass): Use fseeko, not fseek.
67099
67100 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
67101
67102         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
67103         assumes the sorting is stable, while most qsort implementations
67104         are not.  Use argument addresses to ensure they never compare as
67105         equal.
67106
67107         * tests/test-argp-2.sh (usage-indent test): Fix output
67108         (func_compare): Restore diff options
67109         * tests/test-argp.c: Restore #include "progname.h"
67110
67111 2007-04-29  Bruno Haible  <bruno@clisp.org>
67112
67113         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
67114         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67115         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
67116         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67117         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
67118         (configure.ac): Define CHECK_SNPRINTF_POSIX.
67119         (TESTS, check_PROGRAMS): Add test-snprintf.
67120         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
67121         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
67122         (TESTS, check_PROGRAMS): Add test-vsnprintf.
67123         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
67124         assertions that fail on HP-UX, OSF/1, or IRIX.
67125         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
67126
67127 2007-04-29  Bruno Haible  <bruno@clisp.org>
67128
67129         * MODULES.html.sh (posix_functions): Remove 'contents'.
67130
67131 2007-04-29  Karl Berry  <karl@gnu.org>
67132
67133         * config/srclist.txt (gendocs_template_min): new entry.
67134
67135 2007-04-29  Bruno Haible  <bruno@clisp.org>
67136
67137         Work around fpurge bug on BSD systems.
67138         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
67139         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
67140         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
67141         fpurge to rpl_fpurge if the system already has this function.
67142         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
67143         the case where the system already has this function. Correct invariants
67144         on BSD systems.
67145         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
67146         BSD systems.
67147
67148 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
67149
67150         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
67151         proposed by Sven Verdoolaege.
67152
67153         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
67154         options.
67155         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
67156         (usage and help tests): Update
67157
67158 2007-04-29  Bruno Haible  <bruno@clisp.org>
67159
67160         * tests/test-fflush.c (main): Use a file of size 17, not 10.
67161         Print more information in case of failure. Disable a test on BeOS.
67162
67163 2007-04-29  Bruno Haible  <bruno@clisp.org>
67164
67165         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
67166         This helps debugging on systems on which no gdb is available.
67167
67168 2007-04-29  Bruno Haible  <bruno@clisp.org>
67169
67170         * lib/freading.h: Improve comments.
67171         * lib/fwriting.h: Likewise.
67172         * tests/test-freading.c (main): Don't check freading immediately after
67173         repositioning. Needed for glibc.
67174
67175 2007-04-29  Bruno Haible  <bruno@clisp.org>
67176
67177         * lib/freading.c (freading): Trivial simplification.
67178
67179 2007-04-28  Bruno Haible  <bruno@clisp.org>
67180
67181         * tests/test-fwriting.c (main): Also test the interaction between
67182         fflush and fwriting.
67183         * modules/fwriting-tests (Depends-on): Add fflush.
67184
67185         * tests/test-freading.c (main): Also test the interaction between
67186         fflush and freading.
67187         * modules/freading-tests (Depends-on): Add fflush.
67188
67189 2007-04-28  Bruno Haible  <bruno@clisp.org>
67190
67191         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
67192         fseeko and ftello.
67193         Suggested by Eric Blake.
67194
67195 2007-04-28  Jim Meyering  <jim@meyering.net>
67196
67197         Avoid false-negative in gl_STDINT_H's C99 conformance test.
67198         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
67199         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
67200
67201 2007-04-27  Eric Blake  <ebb9@byu.net>
67202
67203         * doc/headers/assert.texi (assert.h): Document assert module use.
67204
67205 2007-04-27  Bruno Haible  <bruno@clisp.org>
67206
67207         * doc/headers/*.texi: New files.
67208         * doc/gnulib.texi (Header File Substitutes): New chapter.
67209         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
67210         dependencies.
67211         (standards.info ,standards.html, standards.dvi): Update dependencies.
67212         (mostlyclean, clean): New targets.
67213
67214 2007-04-27  Bruno Haible  <bruno@clisp.org>
67215
67216         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
67217         * modules/sysexits (Files, Makefile.am): Update.
67218
67219         * lib/sys_socket_.h: Renamed from lib/socket_.h.
67220         * modules/sys_socket (Files, Makefile.am): Update.
67221
67222         * lib/sys_stat_.h: Renamed from lib/stat_.h.
67223         * modules/sys_stat (Files, Makefile.am): Update.
67224
67225 2007-04-27  Eric Blake  <ebb9@byu.net>
67226
67227         * lib/freading.h: Improve comments.
67228         * lib/fwriting.h: Likewise.
67229         * lib/fflush.c: Likewise.
67230
67231         Fix closein for mingw.
67232         * modules/closein-tests: Add tests for closein.
67233         * tests/test-closein.c: New file.
67234         * tests/test-closein.sh: Likewise.
67235         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
67236         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
67237
67238 2007-04-27  Bruno Haible  <bruno@clisp.org>
67239
67240         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
67241         version is < 6.
67242         * lib/math_.h [__DECC]: Likewise.
67243         * lib/stdio_.h [__DECC]: Likewise.
67244         * lib/stdlib_.h [__DECC]: Likewise.
67245         * lib/string_.h [__DECC]: Likewise.
67246         * lib/time_.h [__DECC]: Likewise.
67247         * lib/wchar_.h [__DECC]: Likewise.
67248         * lib/wctype_.h [__DECC]: Likewise.
67249
67250 2007-04-27  Bruno Haible  <bruno@clisp.org>
67251
67252         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
67253
67254 2007-04-27  Bruno Haible  <bruno@clisp.org>
67255
67256         * lib/fflush.c: Add comments.
67257         * modules/fpurge-tests (Depends-on): Add fflush.
67258         * modules/freadable-tests (Depends-on): Likewise.
67259         * modules/fwritable-tests (Depends-on): Likewise.
67260
67261 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
67262
67263         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
67264         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
67265         Report by Bruno Haible <bruno@clisp.org>.
67266
67267 2007-04-26  Eric Blake  <ebb9@byu.net>
67268
67269         Fix fflush on mingw.
67270         * modules/fflush (Depends-on): Add freading.
67271         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
67272         but unread data.
67273
67274 2007-04-26  Eric Blake  <ebb9@byu.net>
67275         and Bruno Haible  <bruno@clisp.org>
67276
67277         Implement freading and fwriting.
67278         * lib/freading.c: New file.
67279         * lib/freading.h: Likewise.
67280         * m4/freading.m4: Likewise.
67281         * modules/freading: Likewise.
67282         * modules/freading-tests: Likewise.
67283         * tests/test-freading.c: Likewise.
67284         * lib/fwriting.c: New file.
67285         * lib/fwriting.h: Likewise.
67286         * m4/fwriting.m4: Likewise.
67287         * modules/fwriting: Likewise.
67288         * modules/fwriting-tests: Likewise.
67289         * tests/test-fwriting.c: Likewise.
67290         * MODULES.html.sh (File stream based Input/Output): Mention them.
67291
67292 2007-04-26  Bruno Haible  <bruno@clisp.org>
67293
67294         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
67295         'long' when we assume it.
67296         Suggested by Eric Blake.
67297
67298 2007-04-26  Bruno Haible  <bruno@clisp.org>
67299
67300         Ensure fseeko, ftello are declared on glibc systems.
67301         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
67302         * modules/fseeko (configure.ac-early): Likewise.
67303         * modules/ftello (configure.ac-early): Likewise.
67304         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
67305         AC_FUNC_FSEEKO for this.
67306         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
67307         (gl_CHECK_FSEEKO): Remove macro.
67308
67309 2007-04-26  Bruno Haible  <bruno@clisp.org>
67310
67311         * tests/test-fflush.c (main): Also check the ftell result after
67312         fflush and fseek/fseeko.
67313         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
67314         file descriptor position cache in the stream.
67315         * lib/fseeko.c (rpl_fseeko): Likewise.
67316
67317 2007-04-26  Bruno Haible  <bruno@clisp.org>
67318
67319         * modules/fflush-tests (Depends-on): Add fseeko.
67320
67321 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
67322             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67323
67324         * lib/argz_.h: ensure error_t definition is obtained in same
67325         mechanism system argz.h would have.
67326         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
67327         argz facilities are known bad.  Err on the side of caution if
67328         cross-compiling.
67329
67330 2007-04-25  Eric Blake  <ebb9@byu.net>
67331
67332         * lib/fpurge.c (includes): Use stdlib.h for free.
67333         * tests/test-fflush.c (main): Also test fflush-fseeko.
67334
67335 2007-04-25  Bruno Haible  <bruno@clisp.org>
67336
67337         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
67338         * lib/fseeko.c: New file.
67339         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
67340         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
67341         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
67342         gl_FUNC_FSEEKO.
67343         (gl_FUNC_FSEEKO): Invoke it.
67344         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
67345         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
67346         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
67347
67348 2007-04-25  Bruno Haible  <bruno@clisp.org>
67349
67350         * modules/fflush (Depends-on): Add ftello.
67351
67352 2007-04-25  Bruno Haible  <bruno@clisp.org>
67353
67354         * modules/ftello-tests: New file.
67355         * tests/test-ftello.c: New file.
67356
67357         * modules/ftello: New file.
67358         * m4/ftello.m4: New file.
67359         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
67360         HAVE_FTELLO.
67361         * lib/stdio_.h (ftello): New declaration.
67362         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
67363         HAVE_FTELLO.
67364
67365 2007-04-25  Bruno Haible  <bruno@clisp.org>
67366
67367         * modules/fseeko-tests: New file.
67368         * tests/test-fseeko.c: New file.
67369
67370         * modules/fseeko: New file.
67371         * m4/fseeko.m4: New file.
67372         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
67373         HAVE_FSEEKO.
67374         * lib/stdio_.h (fseeko): New declaration.
67375         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
67376         HAVE_FSEEKO.
67377
67378 2007-04-25  Bruno Haible  <bruno@clisp.org>
67379
67380         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
67381
67382 2007-04-25  Bruno Haible  <bruno@clisp.org>
67383
67384         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
67385         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
67386         * tests/test-unistd.c: Likewise.
67387         * tests/test-fcntl.c: Likewise.
67388
67389 2007-04-23  Eric Blake  <ebb9@byu.net>
67390
67391         * lib/fflush.c: Fix missing include.
67392         Reported by Bruno Haible.
67393
67394 2007-04-23  Bruno Haible  <bruno@clisp.org>
67395
67396         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
67397         Reported by Eric Blake.
67398
67399 2007-04-23  Bruno Haible  <bruno@clisp.org>
67400
67401         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
67402
67403 2007-04-23  Bruno Haible  <bruno@clisp.org>
67404
67405         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
67406
67407 2007-04-23  Bruno Haible  <bruno@clisp.org>
67408
67409         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
67410         Needed on HP-UX 11.
67411
67412 2007-04-16  Eric Blake  <ebb9@byu.net>
67413
67414         Make fflush rely on fpurge.
67415         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
67416         open coding all variants.
67417         * modules/fflush (Depends-on): Add fpurge and unistd.
67418         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
67419         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
67420
67421         Fix --with-tests compilation on cygwin.
67422         * modules/argmatch-tests (Makefile.am): List gnulib library first
67423         in LDADD.
67424         * modules/argp-tests (Makefile.am): Likewise.
67425         * modules/array-list-tests (Makefile.am): Likewise.
67426         * modules/array-oset-tests (Makefile.am): Likewise.
67427         * modules/avltree-list-tests (Makefile.am): Likewise.
67428         * modules/avltree-oset-tests (Makefile.am): Likewise.
67429         * modules/avltreehash-list-tests (Makefile.am): Likewise.
67430         * modules/carray-list-tests (Makefile.am): Likewise.
67431         * modules/dirname-tests (Makefile.am): Likewise.
67432         * modules/frexp-tests (Makefile.am): Likewise.
67433         * modules/isnanl-tests (Makefile.am): Likewise.
67434         * modules/linked-list-tests (Makefile.am): Likewise.
67435         * modules/linkedhash-list-tests (Makefile.am): Likewise.
67436         * modules/lock-tests (Makefile.am): Likewise.
67437         * modules/rbtree-list-tests (Makefile.am): Likewise.
67438         * modules/rbtree-oset-tests (Makefile.am): Likewise.
67439         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
67440         * modules/tls-tests (Makefile.am): Likewise.
67441         * modules/tsearch-tests (Makefile.am): Likewise.
67442         * modules/xvasprintf-tests (Makefile.am): Likewise.
67443
67444         Fix fpurge for cygwin.
67445         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
67446         value.
67447         * modules/fpurge-tests (Depends-on): Clean up trash.
67448
67449 2007-04-16  Simon Josefsson  <simon@josefsson.org>
67450
67451         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
67452
67453         * m4/autobuild.m4: Re-indent.
67454
67455 2007-04-13  Bruno Haible  <bruno@clisp.org>
67456
67457         * modules/fpurge-tests: New file.
67458         * tests/test-fpurge.c: New file.
67459
67460         * modules/fpurge: New file.
67461         * lib/fpurge.h: New file.
67462         * lib/fpurge.c: New file.
67463         * m4/fpurge.m4: New file.
67464
67465 2007-04-13  Bruno Haible  <bruno@clisp.org>
67466
67467         * modules/fbufmode-tests: New file.
67468         * tests/test-fbufmode.c: New file.
67469
67470         * modules/fbufmode: New file.
67471         * lib/fbufmode.h: New file.
67472         * lib/fbufmode.c: New file.
67473         * m4/fbufmode.m4: New file.
67474
67475 2007-04-13  Bruno Haible  <bruno@clisp.org>
67476
67477         * modules/fwritable-tests: New file.
67478         * tests/test-fwritable.c: New file.
67479
67480         * modules/fwritable: New file.
67481         * lib/fwritable.h: New file.
67482         * lib/fwritable.c: New file.
67483         * m4/fwritable.m4: New file.
67484
67485 2007-04-13  Bruno Haible  <bruno@clisp.org>
67486
67487         * modules/freadable-tests: New file.
67488         * tests/test-freadable.c: New file.
67489
67490         * modules/freadable: New file.
67491         * lib/freadable.h: New file.
67492         * lib/freadable.c: New file.
67493         * m4/freadable.m4: New file.
67494
67495 2007-04-13  Bruno Haible  <bruno@clisp.org>
67496
67497         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
67498         MOSTLYCLEANFILES.
67499
67500 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67501
67502         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
67503         gzip bootstrap.conf to avoid dragging in i18n machinery.
67504         (gnulib_tool_option): Use it.
67505
67506 2007-04-13  Bruno Haible  <bruno@clisp.org>
67507
67508         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
67509         %F directives.
67510         * tests/test-vasprintf-posix.c (test_function): Likewise.
67511         * tests/test-snprintf-posix.h (test_function): Likewise.
67512         * tests/test-sprintf-posix.h (test_function): Likewise.
67513         * tests/test-fprintf-posix.h (test_function): Likewise.
67514         * tests/test-printf-posix.h (test_function): Likewise.
67515         * tests/test-fprintf-posix.out: Likewise.
67516
67517 2007-04-13  Bruno Haible  <bruno@clisp.org>
67518
67519         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
67520         * modules/tls-tests (configure.ac): Likewise.
67521         Reported by Arto C. Nirkko <anirkko@insel.ch>.
67522
67523 2007-04-13  Bruno Haible  <bruno@clisp.org>
67524
67525         * lib/tls.c (glthread_tls_get): Fix return type.
67526         Patch by Arto C. Nirkko <anirkko@insel.ch>.
67527
67528 2007-04-12  Eric Blake  <ebb9@byu.net>
67529
67530         * modules/gettime (Depends-on): Remove gettime.
67531         Reported by Dmitry V. Levin.
67532
67533 2007-04-12  Bruno Haible  <bruno@clisp.org>
67534
67535         * modules/fflush (Include): Mention <stdio.h>.
67536         * modules/strtoimax (Include): Mention <inttypes.h>.
67537         * modules/strtoumax (Include): Likewise.
67538
67539 2007-04-12  Eric Blake  <ebb9@byu.net>
67540
67541         * .cvsignore: New file.
67542         * .gitignore: Likewise.
67543
67544 2007-04-12  Bruno Haible  <bruno@clisp.org>
67545
67546         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
67547         not before, since $(LDADD) often contains libgnu.a.
67548         * modules/striconv-tests (test_striconv_LDADD): Likewise.
67549         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
67550         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
67551         Needed on Cygwin.
67552
67553 2007-04-12  Eric Blake  <ebb9@byu.net>
67554
67555         Work around glibc's failure to flush stdin on fclose.
67556         * lib/closein.c (close_stdin): Flush stdin before closing.
67557
67558         Work around glibc's failure to reset seekable stdin on exit.
67559         * modules/closein: New module.
67560         * lib/closein.c: New file.
67561         * lib/closein.h: Likewise.
67562         * m4/closein.m4: Likewise.
67563         * MODULES.html.sh (File stream based Input/Output): Document it.
67564
67565 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67566
67567         * gnulib-tool: Rename generated 'autobuild' script to
67568         'do-autobuild' in --create-megatestdir output.
67569
67570         * doc/gnulib.texi (Build robot for gnulib): Fix.
67571
67572 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67573
67574         * modules/sysexits (Depends-on): Add absolute-header.
67575
67576 2007-04-12  Eric Blake  <ebb9@byu.net>
67577
67578         No need to preserve errno on success.
67579         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
67580         Reported by Bruno Haible.
67581
67582 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67583
67584         * MODULES.html.sh (Support for maintaining and releasing
67585         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
67586
67587 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67588
67589         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
67590
67591 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67592
67593         * modules/autobuild: New module.
67594
67595         * m4/autobuild.m4: New file.
67596
67597 2007-04-11  Bruno Haible  <bruno@clisp.org>
67598
67599         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
67600         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
67601         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
67602         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
67603         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67604         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67605         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67606         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67607         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67608         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67609         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
67610         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67611         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67612         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
67613         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67614         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67615         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
67616         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67617         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67618         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
67619         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67620         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67621         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
67622         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67623         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67624         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
67625         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67626         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67627         Reported by Eric Blake.
67628
67629 2007-04-11  Bruno Haible  <bruno@clisp.org>
67630
67631         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
67632
67633 2007-04-10  Bruno Haible  <bruno@clisp.org>
67634
67635         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
67636         for NaN and Infinity. Needed on FreeBSD 6.1.
67637         * tests/test-vasnprintf-posix.c (test_function): Undo last change
67638         regarding results for "%010a" of Infinity and NaN.
67639         * tests/test-vasprintf-posix.c (test_function): Likewise.
67640         * tests/test-snprintf-posix.h (test_function): Likewise.
67641         * tests/test-sprintf-posix.h (test_function): Likewise.
67642         * tests/test-fprintf-posix.h (test_function): Likewise.
67643         * tests/test-printf-posix.h (test_function): Likewise.
67644         * tests/test-fprintf-posix.out: Likewise.
67645
67646 2007-04-10  Bruno Haible  <bruno@clisp.org>
67647
67648         * modules/locale-tests: New file.
67649         * tests/test-locale.c: New file.
67650
67651         * modules/locale: New file.
67652         * lib/locale_.h: New file.
67653         * m4/locale_h.m4: New file.
67654
67655 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
67656             Bruno Haible  <bruno@clisp.org>
67657
67658         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
67659         be determined, test for availability of the copysignf, copysign,
67660         copysignl functions.
67661         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
67662         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
67663         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
67664
67665 2007-04-09  Eric Blake  <ebb9@byu.net>
67666
67667         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
67668         * modules/stdio (Makefile.am): Support fflush.
67669         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
67670         * modules/fflush: New file.
67671         * lib/fflush.c: Likewise.
67672         * m4/fflush.m4: Likewise.
67673         * modules/fflush-tests: New test.
67674         * tests/test-fflush.c: Likewise.
67675         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
67676
67677 2007-04-06  Bruno Haible  <bruno@clisp.org>
67678
67679         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
67680         (VASNPRINTF): Use signbit for faster determination whether to print a
67681         minus sign.
67682         * modules/vasnprintf (Files): Remove lib/float+.h.
67683         * modules/fprintf-posix (Depends-on): Add signbit.
67684         * modules/snprintf-posix (Depends-on): Likewise.
67685         * modules/sprintf-posix (Depends-on): Likewise.
67686         * modules/vasnprintf-posix (Depends-on): Likewise.
67687         * modules/vasprintf-posix (Depends-on): Likewise.
67688         * modules/vfprintf-posix (Depends-on): Likewise.
67689         * modules/vsnprintf-posix (Depends-on): Likewise.
67690         * modules/vsprintf-posix (Depends-on): Likewise.
67691
67692 2007-04-06  Bruno Haible  <bruno@clisp.org>
67693
67694         * tests/test-frexp.c (main): Test also the sign bit of zero results.
67695         * tests/test-frexpl.c (main): Likewise.
67696         * tests/test-ldexpl.c (main): Likewise.
67697         * modules/frexp-tests (Depends-on): Add signbit.
67698         * modules/frexpl-tests (Depdends-on): Likewise.
67699         * modules/ldexpl-tests (Depdends-on): Likewise.
67700
67701 2007-04-06  Bruno Haible  <bruno@clisp.org>
67702
67703         * modules/signbit-tests: New file.
67704         * tests/test-signbit.c: New file.
67705
67706         * modules/signbit: New file.
67707         * lib/signbitf.c: New file.
67708         * lib/signbitd.c: New file.
67709         * lib/signbitl.c: New file.
67710         * m4/signbit.m4: New file.
67711         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
67712         (signbit): New macro.
67713         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
67714         REPLACE_SIGNBIT.
67715         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
67716         REPLACE_FREXPL into math.h.
67717
67718 2007-04-06  Bruno Haible  <bruno@clisp.org>
67719
67720         * modules/isnanf-nolibm-tests: New file.
67721         * tests/test-isnanf.c: New file.
67722
67723         * modules/isnanf-nolibm: New file.
67724         * lib/isnanf.h: New file.
67725         * lib/isnanf.c: New file.
67726         * lib/isnan.c: Consider the USE_FLOAT macro.
67727         * m4/isnanf.m4: New file.
67728
67729 2007-04-06  Bruno Haible  <bruno@clisp.org>
67730
67731         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
67732         (Link): New section.
67733
67734         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
67735
67736 2007-04-06  Bruno Haible  <bruno@clisp.org>
67737
67738         Assume the 'long double' type.
67739         * m4/longdouble.m4: Remove file.
67740         * config/srclist.txt: Don't mention longdouble.m4.
67741         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
67742         * lib/float+.h: Likewise.
67743         * lib/frexp.c: Likewise.
67744         * lib/printf-args.h: Likewise.
67745         * lib/printf-args.c: Likewise.
67746         * lib/printf-frexp.c: Likewise.
67747         * lib/printf-parse.c: Likewise.
67748         * lib/vasnprintf.c: Likewise.
67749         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
67750         * m4/intl.m4: Likewise.
67751         * m4/isnanl.m4: Likewise.
67752         * m4/printf.m4: Likewise.
67753         * m4/printf-frexpl.m4: Likewise.
67754         * m4/vasnprintf.m4: Likewise.
67755         * modules/allocsa (Files): Remove m4/longdouble.m4.
67756         * modules/gettext (Files): Likewise.
67757         * modules/relocatable-prog-wrapper (Files): Likewise.
67758         * modules/vasnprintf (Files): Likewise.
67759         * modules/isnanl (Files): Likewise.
67760         (Include): Simplify.
67761         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
67762         (Include): Simplify.
67763         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
67764         (Include): Simplify.
67765         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
67766         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67767         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
67768         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67769         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67770         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67771         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
67772         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67773         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67774         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67775         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
67776         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67777         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
67778         * tests/test-isnanl.c: Likewise.
67779         * tests/test-snprintf-posix.h: Likewise.
67780         * tests/test-sprintf-posix.h: Likewise.
67781         * tests/test-vasnprintf-posix.c: Likewise.
67782         * tests/test-vasnprintf-posix2.c: Likewise.
67783         * tests/test-vasprintf-posix.c: Likewise.
67784
67785 2007-04-06  Bruno Haible  <bruno@clisp.org>
67786
67787         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
67788         * lib/math_.h [__DECC]: Include the overridden include file through
67789         #include_next, outside the double-inclusion guard.
67790         * lib/stdio_.h [__DECC]: Likewise.
67791         * lib/stdlib_.h [__DECC]: Likewise.
67792         * lib/string_.h [__DECC]: Likewise.
67793         * lib/time_.h [__DECC]: Likewise.
67794         * lib/wchar_.h [__DECC]: Likewise.
67795         * lib/wctype_.h [__DECC]: Likewise.
67796         * lib/inttypes_.h [__DECC]: Likewise.
67797         Reported by Albert Chin <china@thewrittenword.com> in
67798         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
67799
67800 2007-04-04  Eric Blake  <ebb9@byu.net>
67801
67802         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
67803         1.5.x.
67804
67805 2007-04-04  Bruno Haible  <bruno@clisp.org>
67806
67807         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
67808         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
67809
67810 2007-04-04  Bruno Haible  <bruno@clisp.org>
67811
67812         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
67813         results for "%010a" of Infinity and NaN.
67814         * tests/test-vasprintf-posix.c (test_function): Likewise.
67815         * tests/test-snprintf-posix.h (test_function): Likewise.
67816         * tests/test-sprintf-posix.h (test_function): Likewise.
67817         * tests/test-fprintf-posix.h (test_function): Remove these tests.
67818         * tests/test-printf-posix.h (test_function): Likewise.
67819         * tests/test-fprintf-posix.out: Update.
67820         Needed for FreeBSD 6.1.
67821
67822 2007-04-04  Bruno Haible  <bruno@clisp.org>
67823
67824         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
67825         directly used by the gnulib modules nor by gnulib-tool.
67826
67827 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
67828
67829         * DEPENDENCIES: Give overall description of version dependency
67830         desirability.  Use more-typical names for apps.
67831         Add shell, coreutils, diffutils, grep, tar, gzip.
67832
67833 2007-04-04  Simon Josefsson  <simon@josefsson.org>
67834
67835         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
67836
67837 2007-04-04  Karl Berry  <karl@gnu.org>
67838
67839         * MODULES.html.sh (func_module): missing '.
67840
67841 2007-04-03  Bruno Haible  <bruno@clisp.org>
67842
67843         * modules/argmatch-tests (Makefile.am): New variable
67844         test_argmatch_LDADD.
67845         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
67846         * modules/array-list-tests (Makefile.am): New variable
67847         test_array_list_LDADD.
67848         * modules/array-oset-tests (Makefile.am): New variable
67849         test_array_oset_LDADD.
67850         * modules/avltree-list-tests (Makefile.am): New variable
67851         test_avltree_list_LDADD.
67852         * modules/avltree-oset-tests (Makefile.am): New variable
67853         test_avltree_oset_LDADD.
67854         * modules/avltreehash-list-tests (Makefile.am): New variable
67855         test_avltreehash_list_LDADD.
67856         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
67857         test_canonicalize_lgpl_LDADD.
67858         * modules/carray-list-tests (Makefile.am): New variable
67859         test_carray_list_LDADD.
67860         * modules/dirname-tests (Makefile.am): New variable
67861         test_dirname_LDADD.
67862         * modules/linked-list-tests (Makefile.am): New variable
67863         test_linked_list_LDADD.
67864         * modules/linkedhash-list-tests (Makefile.am): New variable
67865         test_linkedhash_list_LDADD.
67866         * modules/rbtree-list-tests (Makefile.am): New variable
67867         test_rbtree_list_LDADD.
67868         * modules/rbtree-oset-tests (Makefile.am): New variable
67869         test_rbtree_oset_LDADD.
67870         * modules/rbtreehash-list-tests (Makefile.am): New variable
67871         test_rbtreehash_list_LDADD.
67872         * modules/xvasprintf-tests (Makefile.am): New variable
67873         test_xvasprintf_LDADD.
67874         Reported by Eric Blake.
67875
67876 2007-04-03  Eric Blake  <ebb9@byu.net>
67877
67878         * DEPENDENCIES: Weaken m4 requirements.
67879
67880 2007-04-03  Bruno Haible  <bruno@clisp.org>
67881
67882         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
67883         * modules/isnanl-tests (configure.ac): Likewise.
67884
67885 2007-04-03  Ben Pfaff  <blp@gnu.org>
67886
67887         * modules/iconv_open: Add $(srcdir)/ to source directory
67888         references in Makefile fragments that call gperf, to fix VPATH
67889         builds.
67890
67891 2007-04-03  Bruno Haible  <bruno@clisp.org>
67892
67893         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
67894         * lib/ldexpl.c: Undo last change.
67895
67896 2007-04-03  Bruno Haible  <bruno@clisp.org>
67897
67898         * modules/printf-frexpl (Depends-on): Undo last change.
67899         (Files): Add m4/ldexpl.m4.
67900
67901 2007-04-03  Bruno Haible  <bruno@clisp.org>
67902
67903         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
67904         * modules/isnanl (Link): New section.
67905
67906         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
67907         * modules/frexp (Link): New section.
67908
67909         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
67910         * modules/frexpl (Link): New section.
67911
67912         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
67913         * modules/ldexpl (Link): New section.
67914
67915 2007-04-03  Bruno Haible  <bruno@clisp.org>
67916
67917         * modules/TEMPLATE-EXTENDED: New file.
67918         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
67919
67920 2007-04-03  Bruno Haible  <bruno@clisp.org>
67921
67922         * DEPENDENCIES: New file.
67923         Suggested by Simon Josefsson.
67924
67925 2007-04-03  Bruno Haible  <bruno@clisp.org>
67926
67927         * doc/gnulib.texi: Escape @.
67928
67929 2007-04-03  James Youngman  <jay@gnu.org>
67930         and Paul Eggert  <eggert@cs.ucla.edu>
67931
67932         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
67933         birthtime on all systems that have birthtime, not just those which
67934         use st_birthtimensec rather than st_birthtim.  Putting zero in
67935         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
67936         that the birth time is not available for files on an NFS mount.
67937
67938 2007-04-03  Simon Josefsson  <simon@josefsson.org>
67939
67940         * modules/memxor: Move back from crypto/, suggested by Bruno.
67941         * modules/crypto/hmac-sha1: Fix memxor dependency.
67942
67943         * modules/crypto/gc: Moved from ../.
67944
67945 2007-04-02  Eric Blake  <ebb9@byu.net>
67946
67947         * lib/ldexpl.c (includes): Avoid libm.
67948
67949         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
67950
67951 2007-04-02  Bruno Haible  <bruno@clisp.org>
67952
67953         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
67954         on IRIX.
67955
67956 2007-04-02  Bruno Haible  <bruno@clisp.org>
67957
67958         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
67959         x86 or x86_64 platforms running MacOS X.
67960         Reported by Ryan Schmidt <@ryandesign.com>.
67961
67962 2007-04-02  Bruno Haible  <bruno@clisp.org>
67963
67964         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
67965         i386.
67966
67967 2007-04-01  Simon Josefsson  <simon@josefsson.org>
67968
67969         * modules/crypto/arcfour: Moved from ../.
67970         * modules/crypto/arcfour-tests: Moved from ../.
67971         * modules/crypto/arctwo: Moved from ../.
67972         * modules/crypto/arctwo-tests: Moved from ../.
67973         * modules/crypto/des: Moved from ../.
67974         * modules/crypto/des-tests: Moved from ../.
67975         * modules/crypto/gc-arcfour: Moved from ../.
67976         * modules/crypto/gc-arcfour-tests: Moved from ../.
67977         * modules/crypto/gc-arctwo: Moved from ../.
67978         * modules/crypto/gc-arctwo-tests: Moved from ../.
67979         * modules/crypto/gc-des: Moved from ../.
67980         * modules/crypto/gc-des-tests: Moved from ../.
67981         * modules/crypto/gc-hmac-md5: Moved from ../.
67982         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
67983         * modules/crypto/gc-hmac-sha1: Moved from ../.
67984         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
67985         * modules/crypto/gc-md2: Moved from ../.
67986         * modules/crypto/gc-md2-tests: Moved from ../.
67987         * modules/crypto/gc-md4: Moved from ../.
67988         * modules/crypto/gc-md4-tests: Moved from ../.
67989         * modules/crypto/gc-md5: Moved from ../.
67990         * modules/crypto/gc-md5-tests: Moved from ../.
67991         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
67992         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
67993         * modules/crypto/gc-random: Moved from ../.
67994         * modules/crypto/gc-rijndael: Moved from ../.
67995         * modules/crypto/gc-rijndael-tests: Moved from ../.
67996         * modules/crypto/gc-sha1: Moved from ../.
67997         * modules/crypto/gc-sha1-tests: Moved from ../.
67998         * modules/crypto/gc-tests: Moved from ../.
67999         * modules/crypto/hmac-md5: Moved from ../.
68000         * modules/crypto/hmac-md5-tests: Moved from ../.
68001         * modules/crypto/hmac-sha1: Moved from ../.
68002         * modules/crypto/hmac-sha1-tests: Moved from ../.
68003         * modules/crypto/md2: Moved from ../.
68004         * modules/crypto/md2-tests: Moved from ../.
68005         * modules/crypto/md4: Moved from ../.
68006         * modules/crypto/md4-tests: Moved from ../.
68007         * modules/crypto/md5: Moved from ../.
68008         * modules/crypto/md5-tests: Moved from ../.
68009         * modules/crypto/memxor: Moved from ../.
68010         * modules/crypto/rijndael: Moved from ../.
68011         * modules/crypto/rijndael-tests: Moved from ../.
68012         * modules/crypto/sha1: Moved from ../.
68013
68014 2007-03-30  James Youngman  <jay@gnu.org>
68015
68016         * tests/test-stat-time.c (prepare_test): use chmod() rather than
68017         rename() to change the ctime of a file (because ctime is unaffected
68018         by rename on jfs2 on AIX 5.1).
68019         (main): Start by doing cleanup, in case a previous run failed leaving
68020         test files behind.
68021
68022 2007-03-31  Bruno Haible  <bruno@clisp.org>
68023
68024         Support old proprietary implementations of iconv.
68025         * modules/iconv_open: New file.
68026         * lib/iconv_.h: New file.
68027         * m4/iconv_h.m4: New file.
68028         * lib/iconv_open.c: New file.
68029         * lib/iconv_open-aix.gperf: New file.
68030         * lib/iconv_open-hpux.gperf: New file.
68031         * lib/iconv_open-irix.gperf: New file.
68032         * lib/iconv_open-osf.gperf: New file.
68033         * m4/iconv_open.m4: New file.
68034         * modules/linebreak (Depends-on): Add iconv_open.
68035         * modules/striconv (Depends-on): Likewise.
68036         * modules/striconveh (Depends-on): Likewise.
68037         * modules/unicodeio (Depends-on): Likewise.
68038         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
68039         (iconv_t)(-1).
68040         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
68041         conversion if cd is (iconv_t)(-1).
68042         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
68043         is not possible.
68044
68045 2007-03-31  Bruno Haible  <bruno@clisp.org>
68046
68047         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
68048         work on Solaris either. Protect also second use of "autodetect_jp".
68049
68050 2007-03-31  Bruno Haible  <bruno@clisp.org>
68051
68052         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
68053         the function is not present.
68054
68055 2007-03-31  Bruno Haible  <bruno@clisp.org>
68056
68057         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
68058         the function is not present.
68059
68060 2007-03-31  Bruno Haible  <bruno@clisp.org>
68061
68062         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
68063         a bug in HP-UX iconv_open().
68064
68065 2007-03-31  Bruno Haible  <bruno@clisp.org>
68066
68067         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
68068         (Mathematics <math.h>): New section, add fpieee.
68069         (Input/output <stdio.h>): Add fseterr.
68070         (Mathematics <math.h>): New section, add printf-frexp.
68071         (Container data structures): Add sublist.
68072         (Core language properties): Add fpucw, inline.
68073         (Functions for greatest-width integer types <inttypes.h>): Add
68074         imaxabs, imaxdiv, inttypes.
68075         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
68076         isnanl-nolibm, ldexp.
68077         (Mathematics <math.h>): New section, add printf-frexpl.
68078         (Support for systems lacking POSIX:2001): Add fprintf-posix,
68079         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
68080         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
68081         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
68082         (Unicode string functions): Add unistr/u*-mbtoucr.
68083         (Java): Add javacomp-script, javaexec-script.
68084         (C#): Add csharpcomp-script, csharpexec-script.
68085         (Support for building libraries and executables): Add havelib,
68086         relocatable-*.
68087         (Support for maintaining and releasing projects): Renamed from
68088         'Support for maintaining and release projects'. Add announce-gen.
68089
68090 2007-03-31  Bruno Haible  <bruno@clisp.org>
68091
68092         * README: Talk primarily about git.
68093         (git and CVS): Renamed from CVS.
68094         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
68095         gnulib is available through git.
68096         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
68097
68098 2007-03-30  Bruno Haible  <bruno@clisp.org>
68099
68100         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
68101         * lib/poll_.h: Likewise.
68102         * lib/stat_.h: Likewise.
68103         * lib/sys_time_.h: Likewise.
68104         * lib/sysexit_.h: Likewise.
68105         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
68106         * lib/stdbool_.h: Likewise.
68107         * lib/byteswap_.h: Add double-inclusion guard.
68108
68109 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
68110
68111         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
68112
68113 2007-03-30  Karl Berry  <karl@gnu.org>
68114
68115         * config/srclist-update: double space after USA in the license
68116         substitution, since that's how it's usually (?) written.
68117
68118 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
68119
68120         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
68121         reported by Bruno Haible.
68122
68123 2007-03-29  Bruno Haible  <bruno@clisp.org>
68124
68125         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
68126         a bug in AIX iconv().
68127
68128 2007-03-29  Bruno Haible  <bruno@clisp.org>
68129
68130         * modules/ldexpl-tests: New file.
68131         * tests/test-ldexpl.c: New file.
68132
68133 2007-03-29  Bruno Haible  <bruno@clisp.org>
68134
68135         * lib/ldexpl.c: Include fpucw.h.
68136         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
68137         multiplication.
68138         * modules/ldexpl (Depends-on): Add fpucw.
68139
68140 2007-03-29  Bruno Haible  <bruno@clisp.org>
68141
68142         * modules/ldexpl: New file.
68143         * m4/ldexpl.m4: New file.
68144         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
68145         set.
68146         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
68147         REPLACE_LDEXPL.
68148         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
68149         REPLACE_LDEXPL.
68150         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
68151         gl_FUNC_LDEXPL_WORKS.
68152         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
68153         * modules/mathl (Files): Remove lib/ldexpl.c.
68154         (Depends-on): Add ldexpl.
68155
68156 2007-03-29  Bruno Haible  <bruno@clisp.org>
68157
68158         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
68159
68160 2007-03-29  Bruno Haible  <bruno@clisp.org>
68161
68162         * tests/test-striconveh.c (main): Don't assume that a direct conversion
68163         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
68164         and possibly also HP-UX.
68165         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
68166         work on AIX, IRIX, HP-UX, OSF/1.
68167         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
68168         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
68169         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
68170         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
68171         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
68172         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
68173
68174 2007-03-29  Bruno Haible  <bruno@clisp.org>
68175
68176         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
68177
68178 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
68179
68180         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
68181         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
68182
68183 2007-03-29  Eric Blake  <ebb9@byu.net>
68184
68185         * lib/acl-internal.h: Remove redundant include.
68186         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
68187         Cygwin when a file is locked.
68188
68189 2007-03-29  Bruno Haible  <bruno@clisp.org>
68190
68191         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
68192         file.
68193         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
68194
68195 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
68196
68197         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
68198         try to remove a parent directory if the child couldn't be removed
68199         (except for the first rmdir, which could fail because the child
68200         doesn't exist).  Problem reported by Jeff Blaine in
68201         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
68202
68203 2007-03-28  Bruno Haible  <bruno@clisp.org>
68204
68205         * lib/striconveh.c (utf8conv_carefully): New function.
68206         (mem_cd_iconveh_internal): Invoke it.
68207
68208 2007-03-28  Bruno Haible  <bruno@clisp.org>
68209
68210         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
68211         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
68212         input.
68213         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
68214         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
68215         unistr/u8-uctomb.
68216
68217 2007-03-28  Bruno Haible  <bruno@clisp.org>
68218
68219         * modules/unistr/u8-mbtoucr: New file.
68220         * lib/unistr/u8-mbtoucr.c: New file.
68221         * modules/unistr/u16-mbtoucr: New file.
68222         * lib/unistr/u16-mbtoucr.c: New file.
68223         * modules/unistr/u16-mbtoucr: New file.
68224         * lib/unistr/u16-mbtoucr.c: New file.
68225         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
68226
68227 2007-03-27  Simon Josefsson  <simon@josefsson.org>
68228             Bruno Haible  <bruno@clisp.org>
68229
68230         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
68231         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
68232         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
68233
68234         * m4/stdio_h.m4: Add stubs for vasprintf too.
68235
68236         * modules/stdio: Support vasprintf in sed command.
68237
68238         * modules/vasprintf: Depend on stdio for prototypes.  Remove
68239         vasprintf.h.  Add stdio module indicator.
68240
68241         * lib/stdio_.h: Declare asprintf and vasprintf, based on
68242         vasprintf.h.
68243
68244         * lib/vasprintf.h: File removed.
68245
68246         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
68247         * lib/vasprintf.c: Ditto.
68248         * lib/xvasprintf.c: Ditto.
68249         * tests/test-vasprintf-posix.c: Ditto.
68250         * tests/test-vasprintf.c: Ditto.
68251
68252 2007-03-27  Bruno Haible  <bruno@clisp.org>
68253
68254         Make vasnprintf multithread-safe.
68255         * lib/vasnprintf.c (decimal_point_char): New function.
68256         (VASNPRINTF): Use it.
68257         Suggested by Simon Josefsson.
68258
68259 2007-03-27  Eric Blake  <ebb9@byu.net>
68260
68261         Support sub-second birthtime on cygwin.
68262         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
68263         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
68264         (get_stat_birthtime): Also work with st_birthtim.
68265
68266 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
68267
68268         * lib/stat-time.h (USE_BIRTHTIME): Remove.
68269         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
68270         (get_stat_birthtime_ns): Do not try to use "spare" fields.
68271         (get_stat_birthtime_ns): Simplify compile-time tests.
68272         (get_stat_birthtime): Change the API to look like
68273         get_stat_mtime etc., except return a negative tv_nsec on error.
68274         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
68275         Don't check for "spare" fields.
68276         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
68277         or for struct stat.st_birthtime, as these tests aren't used.
68278         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
68279
68280 2007-03-27  Bruno Haible  <bruno@clisp.org>
68281
68282         * lib/stat-time.h: Include <sys/stat.h>.
68283
68284 2007-03-27  James Youngman  <jay@gnu.org>
68285
68286         * lib/stat-time.h (get_stat_birthtime): New function for
68287           retrieving st_birthtime as provided by UFS2 (hence *BSD).
68288         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
68289           and its variants.
68290         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
68291         * modules/stat-time-test: New file.
68292         * tests/test-stat-time.c: New test, devised by Bruno Haible.
68293
68294 2007-03-26  Bruno Haible  <bruno@clisp.org>
68295
68296         Better support of signalling NaNs.
68297         * lib/atanl.c: Include isnanl.h.
68298         (atanl): Perform test for NaN at the beginning of the function and
68299         through a call to isnanl.
68300         * lib/cosl.c: Include isnanl.h.
68301         (cosl): Perform test for NaN at the beginning of the function and
68302         through a call to isnanl.
68303         * lib/ldexpl.c: Include isnanl.h.
68304         (ldexpl): Perform test for NaN through a call to isnanl.
68305         * lib/logl.c: Include isnanl.h.
68306         (logl): Perform test for NaN at the beginning of the function and
68307         through a call to isnanl.
68308         * lib/sinl.c: Include isnanl.h.
68309         (sinl): Perform test for NaN at the beginning of the function and
68310         through a call to isnanl.
68311         * lib/sqrtl.c: Include isnanl.h.
68312         (sqrtl): Perform test for NaN at the beginning of the function and
68313         through a call to isnanl.
68314         * lib/tanl.c: Include isnanl.h.
68315         (tanl): Perform test for NaN at the beginning of the function and
68316         through a call to isnanl.
68317         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
68318         * modules/mathl (Depends-on): Add isnanl.
68319
68320 2007-03-26  Eric Blake  <ebb9@byu.net>
68321
68322         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
68323         regression in logic sense of previous patch.
68324
68325 2007-03-26  Bruno Haible  <bruno@clisp.org>
68326
68327         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
68328         unportable shell command "if ! ...".
68329         Reported by Ralf Wildenhues.
68330
68331 2007-03-25  Bruno Haible  <bruno@clisp.org>
68332
68333         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
68334         <sysexits.h> file, and only add EX_CONFIG.
68335         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
68336         absolute file name and whether it is sufficient. Substitute also
68337         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
68338         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
68339         ABSOLUTE_SYSEXITS_H into sysexits.h.
68340
68341 2007-03-25  Bruno Haible  <bruno@clisp.org>
68342
68343         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
68344         hints is NULL.
68345
68346 2007-03-25  Bruno Haible  <bruno@clisp.org>
68347
68348         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
68349         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
68350
68351 2007-03-25  Bruno Haible  <bruno@clisp.org>
68352
68353         * lib/vasnprintf.c: Include langinfo.h.
68354         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
68355         multithread-safe.
68356         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
68357         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
68358         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68359         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68360         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68361         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68362         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68363         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
68364         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68365         Reported by Simon Josefsson.
68366
68367 2007-03-25  Bruno Haible  <bruno@clisp.org>
68368
68369         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
68370         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
68371         * modules/vasnprintf (Depends-on): Add stdint.
68372
68373 2007-03-25  Bruno Haible  <bruno@clisp.org>
68374
68375         * modules/fpieee: New file.
68376         * m4/fpieee.m4: New file.
68377         * modules/isnan-nolibm (Depends-on): Add fpieee.
68378         * modules/isnanl-nolibm (Depends-on): Add fpieee.
68379         * modules/isnanl (Depends-on): Add fpieee.
68380
68381 2007-03-25  Bruno Haible  <bruno@clisp.org>
68382
68383         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
68384
68385 2007-03-25  Bruno Haible  <bruno@clisp.org>
68386
68387         Avoid test failures on IRIX 6.5.
68388         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
68389         (main): Use it.
68390         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
68391         macros.
68392         (main): Use them.
68393
68394 2007-03-25  Bruno Haible  <bruno@clisp.org>
68395
68396         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
68397         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
68398         exists but doesn't work.
68399         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
68400         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
68401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
68402         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
68403         math.h.
68404
68405 2007-03-25  Bruno Haible  <bruno@clisp.org>
68406
68407         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
68408         returns inf. Needed on IRIX 6.5.
68409
68410 2007-03-25  Bruno Haible  <bruno@clisp.org>
68411
68412         * tests/test-frexpl.c: Include isnanl-nolibm.h.
68413         (main): Use isnanl instead of x != x idiom.
68414         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
68415
68416         * tests/test-frexp.c: Include isnan.h.
68417         (main): Use isnan instead of x != x idiom.
68418         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
68419
68420 2007-03-25  Bruno Haible  <bruno@clisp.org>
68421
68422         * tests/test-frexp.c (NaN): New function/macro.
68423         (main): Use it instead of 0.0 / 0.0.
68424         * tests/test-isnan.c (NaN): New function/macro.
68425         (main): Use it instead of 0.0 / 0.0.
68426         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
68427         (test_function): Use it instead of 0.0 / 0.0.
68428         * tests/test-vasprintf-posix.c (NaN): New function/macro.
68429         (test_function): Use it instead of 0.0 / 0.0.
68430         * tests/test-snprintf-posix.h (NaN): New function/macro.
68431         (test_function): Use it instead of 0.0 / 0.0.
68432         * tests/test-sprintf-posix.h (NaN): New function/macro.
68433         (test_function): Use it instead of 0.0 / 0.0.
68434         * tests/test-fprintf-posix.h (NaN): New function/macro.
68435         (test_function): Use it instead of 0.0 / 0.0.
68436         * tests/test-printf-posix.h (NaN): New function/macro.
68437         (test_function): Use it instead of 0.0 / 0.0.
68438
68439         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
68440
68441 2007-03-25  Bruno Haible  <bruno@clisp.org>
68442
68443         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
68444
68445 2007-03-25  Bruno Haible  <bruno@clisp.org>
68446
68447         * lib/regexec.c (merge_state_with_log): Make static.
68448
68449 2007-03-25  Bruno Haible  <bruno@clisp.org>
68450
68451         * lib/trigl.c (kernel_rem_pio2): Make static.
68452
68453 2007-03-25  Bruno Haible  <bruno@clisp.org>
68454
68455         * lib/sincosl.c (sincosl_table): Make static.
68456
68457 2007-03-25  Bruno Haible  <bruno@clisp.org>
68458
68459         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
68460         if the compiler does not support C99.
68461
68462 2007-03-25  Bruno Haible  <bruno@clisp.org>
68463
68464         * modules/time (Makefile.am): Ensure all rule action lines start with a
68465         tab.
68466
68467 2007-03-24  Bruno Haible  <bruno@clisp.org>
68468
68469         * modules/tsearch-tests: New file.
68470         * tests/test-tsearch.sh: New file.
68471         * tests/test-tsearch.c: New file, mostly copied from glibc.
68472
68473         * modules/search-tests: New file.
68474         * tests/test-search.c: New file.
68475
68476         * modules/search: New file.
68477         * lib/search_.h: New file, incorporating lib/tsearch.h.
68478         * m4/search_h.m4: New file.
68479         * lib/tsearch.h: Remove file.
68480         * lib/tsearch.c: Include search.h instead of tsearch.h.
68481         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
68482         HAVE_TSEARCH.
68483         * modules/tsearch (Files): Remove lib/tsearch.h.
68484         (Depends-on): Add search.
68485         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
68486         (Include): Change tsearch.h into search.h.
68487
68488 2007-03-24  Bruno Haible  <bruno@clisp.org>
68489
68490         * modules/fpucw: New file.
68491         * lib/fpucw.h: New file.
68492         * lib/frexp.c: Include fpucw.h.
68493         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
68494         (FUNC): Use them.
68495         * lib/printf-frexp.c: Include fpucw.h.
68496         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
68497         (FUNC): Use them.
68498         * lib/vasnprintf.c: Include fpucw.h.
68499         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
68500         'long double' calculations.
68501         * tests/test-frexpl.c: Include fpucw.h.
68502         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
68503         * tests/test-printf-frexpl.c: Include fpucw.h.
68504         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
68505         * modules/frexpl (Depends-on): Add fpucw.
68506         * modules/printf-frexpl (Depends-on): Likewise.
68507         * modules/fprintf-posix (Depends-on): Likewise.
68508         * modules/snprintf-posix (Depends-on): Likewise.
68509         * modules/sprintf-posix (Depends-on): Likewise.
68510         * modules/vasnprintf-posix (Depends-on): Likewise.
68511         * modules/vasprintf-posix (Depends-on): Likewise.
68512         * modules/vfprintf-posix (Depends-on): Likewise.
68513         * modules/vsnprintf-posix (Depends-on): Likewise.
68514         * modules/vsprintf-posix (Depends-on): Likewise.
68515         * modules/frexpl-tests (Depends-on): Likewise.
68516         * modules/printf-frexpl-tests (Depends-on): Likewise.
68517
68518 2007-03-24  Bruno Haible  <bruno@clisp.org>
68519
68520         * lib/float+.h: New file.
68521         * lib/isnan.c: Include float+.h.
68522         (SIZE): New macro.
68523         (FUNC): Compare only SIZE bytes of the value.
68524         * lib/vasnprintf.c: Include float+.h.
68525         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
68526         SIZEOF_LDBL or SIZEOF_DBL bytes.
68527         * modules/isnan-nolibm (Files): Add lib/float+.h.
68528         * modules/isnanl-nolibm (Files): Add lib/float+.h.
68529         * modules/isnanl (Files): Add lib/float+.h.
68530         * modules/vasnprintf (Files): Add lib/float+.h.
68531
68532 2007-03-24  Bruno Haible  <bruno@clisp.org>
68533
68534         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
68535         include isnanl-nolibm.h.
68536
68537 2007-03-24  Bruno Haible  <bruno@clisp.org>
68538
68539         * tests/test-read-file.c (main): Don't produce spurious output for
68540         expected situations. Make the test fail if it encountered unexpected
68541         results.
68542
68543 2007-03-24  Bruno Haible  <bruno@clisp.org>
68544
68545         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
68546         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
68547
68548 2007-03-24  Bruno Haible  <bruno@clisp.org>
68549
68550         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
68551
68552 2007-03-24  Bruno Haible  <bruno@clisp.org>
68553
68554         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
68555         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
68556
68557         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
68558         * modules/utf8-ucs4: Turn into a symbolic link to module
68559         unistr/u8-mbtouc.
68560
68561         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
68562         utf8-ucs4-unsafe.
68563         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
68564         unistr/u8-mbtouc-unsafe.
68565
68566         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
68567         * modules/utf16-ucs4: Turn into a symbolic link to module
68568         unistr/u16-mbtouc.
68569
68570         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
68571         utf16-ucs4-unsafe.
68572         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
68573         unistr/u16-mbtouc-unsafe.
68574
68575         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
68576         * modules/ucs4-utf8: Turn into a symbolic link to module
68577         unistr/u8-ubtomb.
68578
68579         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
68580         * modules/ucs4-utf16: Turn into a symbolic link to module
68581         unistr/u16-ubtomb.
68582
68583 2007-03-24  Bruno Haible  <bruno@clisp.org>
68584
68585         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
68586         Enable the function only if HAVE_INLINE.
68587         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
68588         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
68589         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
68590         Enable the function only if HAVE_INLINE.
68591         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
68592         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
68593         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
68594         Enable the function only if HAVE_INLINE.
68595         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
68596         Enable the function only if HAVE_INLINE.
68597         * modules/utf8-ucs4: Update.
68598         * modules/utf8-ucs4-unsafe: Update.
68599         * modules/utf16-ucs4: Update.
68600         * modules/utf16-ucs4-unsafe: Update.
68601         * modules/ucs4-utf8: Update.
68602         * modules/ucs4-utf16: Update.
68603
68604 2007-03-24  Bruno Haible  <bruno@clisp.org>
68605
68606         * lib/utf8-ucs4.h: Remove file.
68607         * lib/utf8-ucs4-unsafe.h: Remove file.
68608         * lib/utf16-ucs4.h: Remove file.
68609         * lib/utf16-ucs4-unsafe.h: Remove file.
68610         * lib/ucs4-utf8.h: Remove file.
68611         * lib/ucs4-utf16.h: Remove file.
68612         * lib/unistr.h: Include their previous contents.
68613         * m4/utf-ucs4.m4: Remove file.
68614         * m4/ucs4-utf.m4: Remove file.
68615         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
68616         (Depends-on): Add unistr/base.
68617         (configure.ac): Remove gl_UTF_UCS4.
68618         (Makefile.am): Update.
68619         (Include): Change to unistr.h.
68620         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
68621         (Depends-on): Add unistr/base.
68622         (configure.ac): Remove gl_UTF_UCS4.
68623         (Makefile.am): Update.
68624         (Include): Change to unistr.h.
68625         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
68626         (Depends-on): Add unistr/base.
68627         (configure.ac): Remove gl_UTF_UCS4.
68628         (Makefile.am): Update.
68629         (Include): Change to unistr.h.
68630         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
68631         (Depends-on): Add unistr/base.
68632         (configure.ac): Remove gl_UTF_UCS4.
68633         (Makefile.am): Update.
68634         (Include): Change to unistr.h.
68635         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
68636         (Depends-on): Add unistr/base.
68637         (configure.ac): Remove gl_UCS4_UTF.
68638         (Makefile.am): Update.
68639         (Include): Change to unistr.h.
68640         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
68641         (Depends-on): Add unistr/base.
68642         (configure.ac): Remove gl_UCS4_UTF.
68643         (Makefile.am): Update.
68644         (Include): Change to unistr.h.
68645         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
68646         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
68647         utf8-ucs4-unsafe.h.
68648         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
68649         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
68650         utf16-ucs4-unsafe.h.
68651         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
68652         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
68653         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
68654         * lib/unistr/u8-strchr.c: Likewise.
68655         * lib/unistr/u8-strrchr.c: Likewise.
68656         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
68657         * lib/unistr/u16-strchr.c: Likewise.
68658         * lib/unistr/u16-strrchr.c: Likewise.
68659         * lib/striconveh.c: Update.
68660         * lib/linebreak.c: Update.
68661
68662 2007-03-24  Bruno Haible  <bruno@clisp.org>
68663
68664         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
68665         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
68666
68667 2007-03-22  Bruno Haible  <bruno@clisp.org>
68668
68669         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
68670
68671 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68672
68673         * MODULES.html.sh (File system functions): New module write-any-file.
68674         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
68675         * m4/write-any-file.m4: New files.
68676
68677 2007-03-23  Eric Blake  <ebb9@byu.net>
68678
68679         * gnulib-tool: Rearrange space-tab sequences, since some editors
68680         like to eat them.
68681
68682 2007-03-23  Eric Blake  <ebb9@byu.net>
68683
68684         * lib/version-etc.c (version_etc_va): Update license wording to
68685         be more concise.  Recommended by Richard Stallman.
68686
68687 2007-03-22  Bruno Haible  <bruno@clisp.org>
68688
68689         * lib/poll.c (MSG_PEEK): New fallback definition.
68690
68691 2007-03-22  Bruno Haible  <bruno@clisp.org>
68692
68693         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
68694         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
68695         (main): Update.
68696         Fixes a compilation error on BeOS.
68697
68698 2007-03-22  Bruno Haible  <bruno@clisp.org>
68699
68700         * modules/frexpl-tests: New file.
68701         * tests/test-frexpl.c: New file.
68702
68703         * modules/frexpl: New file.
68704         * m4/frexpl.m4: New file.
68705         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
68706         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
68707         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
68708         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
68709         (Depends-on): Add frexpl. Remove isnanl-nolibm.
68710         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
68711
68712 2007-03-22  Bruno Haible  <bruno@clisp.org>
68713
68714         * lib/frexpl.c: Share code with lib/frexp.c.
68715         * modules/mathl (Files): Add lib/frexp.c.
68716         (Depends-on): Add isnanl-nolibm.
68717
68718 2007-03-22  Bruno Haible  <bruno@clisp.org>
68719
68720         * modules/printf-frexp (Files): Add m4/frexp.m4.
68721         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
68722         only if the found frexp function actually works.
68723
68724 2007-03-22  Bruno Haible  <bruno@clisp.org>
68725
68726         * lib/frexp.c: Remove older implementation that uses divisions.
68727
68728 2007-03-21  Bruno Haible  <bruno@clisp.org>
68729
68730         * modules/frexp-tests: New file.
68731         * tests/test-frexp.c: New file.
68732
68733         * modules/frexp: New file.
68734         * lib/frexp.c: New file.
68735         * m4/frexp.m4: New file.
68736         * lib/math_.h (frexp): New declaration.
68737         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
68738         REPLACE_FREXP.
68739         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
68740
68741 2007-03-21  Bruno Haible  <bruno@clisp.org>
68742
68743         * modules/isnanl-tests: New file.
68744         * tests/test-isnanl.c: New file.
68745
68746         * modules/isnanl: New file.
68747         * lib/isnanl.h: New file.
68748         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
68749         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
68750         gl_FUNC_ISNANL_WORKS.
68751         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
68752         New macros.
68753
68754 2007-03-21  Bruno Haible  <bruno@clisp.org>
68755
68756         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
68757         lib/isnanl.h.
68758         (Include): Update.
68759         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
68760         * lib/vasnprintf.c: Update.
68761         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
68762         tests/test-isnanl.h, remove tests/test-isnanl.c.
68763         (Makefile.am): Update.
68764         * tests/test-isnanl-nolibm.c: New file.
68765         * tests/test-isnanl.h: New file.
68766         * tests/test-isnanl.c: Remove file.
68767
68768 2007-03-21  Jim Meyering  <jim@meyering.net>
68769
68770         When trying to open ".", treat ESTALE like EACCES.
68771         * lib/savewd.c (savewd_save): Resort to forking not just upon
68772         failure with EACCES, but also when errno is ESTALE.
68773
68774 2007-03-20  Bruno Haible  <bruno@clisp.org>
68775
68776         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
68777         Needed on AIX 5.1. Reported by Matthew Woehlke.
68778
68779 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68780
68781         Suggestions by Bruno Haible:
68782         * lib/acl-internal.h: Include "gettext.h" rather than rolling
68783         our own.
68784         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
68785         * modules/acl (Depends-on): Add gettext.
68786
68787 2007-03-19  Bruno Haible  <bruno@clisp.org>
68788
68789         * modules/iconvme: Remove file.
68790         * lib/iconvme.h: Remove file.
68791         * lib/iconvme.c: Remove file.
68792         * m4/iconvme.m4: Remove file.
68793
68794 2007-03-19  Bruno Haible  <bruno@clisp.org>
68795
68796         * doc/relocatable-maint.texi: Break long shell script line.
68797         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68798
68799 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68800
68801         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
68802         handle file_has_acl.
68803         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
68804         * lib/acl.c: Move header inclusions and related macro defns into
68805         lib/acl-internal.h.
68806         (S_ISLNK): Remove defn, since that's now done for us.
68807         (file_has_acl): Move to lib/file-has-acl.c.
68808         Call acl_trivial if available.  This is the crucial part of the fix.
68809         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
68810         shared within the library.  Rewrite a bit, partly to make it compatible
68811         with the GNU coding style.
68812         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
68813         Remove unnecessary double-quotes.
68814         Don't test for acl_to_text; the build will catch that.
68815         Replace acl_entries if it doesn't exist and it is needed.
68816         Check for -lsec and acl_trivial (as used on Solaris 10).
68817         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
68818         lib/file-has-acl.c.
68819         (Depends-on): Add sys_stat, for S_ISLNK.
68820
68821 2007-03-19  Ben Pfaff  <blp@gnu.org>
68822
68823         * doc/gnulib.texi: Fix typos.
68824         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68825
68826 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68827
68828         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
68829         If size is zero here, buf must be zero.
68830
68831 2007-03-19  Simon Josefsson  <simon@josefsson.org>
68832
68833         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
68834         <bruno@clisp.org>.
68835
68836 2007-03-18  Bruno Haible  <bruno@clisp.org>
68837
68838         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
68839         Suggested by Eric Blake.
68840
68841 2007-03-18  Ben Pfaff  <blp@gnu.org>
68842
68843         * doc/relocatable.texi: Recommend using as prefix a directory
68844         that does not exist and will never be created.  Based on
68845         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
68846         and others.
68847
68848 2007-03-17  Bruno Haible  <bruno@clisp.org>
68849
68850         * lib/fchownat.c: Include lchown.h.
68851
68852 2007-03-17  Bruno Haible  <bruno@clisp.org>
68853
68854         Fix endless loop when the given allocated size was > INT_MAX.
68855         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
68856         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
68857         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
68858         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
68859         * lib/sprintf.c (sprintf): Likewise.
68860
68861 2007-03-17  Bruno Haible  <bruno@clisp.org>
68862
68863         * tests/test-argp-2.sh (func_compare): Output a context diff.
68864
68865 2007-03-17  Bruno Haible  <bruno@clisp.org>
68866
68867         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
68868         locale's decimal-point character.
68869
68870 2007-03-17  Bruno Haible  <bruno@clisp.org>
68871
68872         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
68873         before comparing it. Needed because on some platforms (e.g. x86) a
68874         'long double' occupies less bytes than sizeof (long double).
68875
68876 2007-03-17  Bruno Haible  <bruno@clisp.org>
68877
68878         * tests/test-crc.c (main): Make printf statements 64-bit clean.
68879         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
68880         * tests/test-getaddrinfo.c (simple): Likewise.
68881         * tests/test-read-file.c (main): Likewise.
68882
68883 2007-03-17  Bruno Haible  <bruno@clisp.org>
68884
68885         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
68886
68887 2007-03-17  Bruno Haible  <bruno@clisp.org>
68888
68889         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
68890         unused variable.
68891
68892 2007-03-17  Bruno Haible  <bruno@clisp.org>
68893
68894         * tests/test-c-strcasecmp.c: Include c-strcase.h.
68895         * tests/test-c-strncasecmp.c: Likewise.
68896
68897 2007-03-17  Bruno Haible  <bruno@clisp.org>
68898
68899         * modules/stdlib (Depends-on): Add unistd.
68900         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
68901         Needed for MacOS X 10.3.
68902
68903 2007-03-17  Bruno Haible  <bruno@clisp.org>
68904
68905         * lib/unistr/u-strdup.h: Include <stdlib.h>.
68906
68907 2007-03-17  Bruno Haible  <bruno@clisp.org>
68908
68909         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
68910
68911 2007-03-17  Bruno Haible  <bruno@clisp.org>
68912
68913         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
68914         to reflect files copied from gnulib (with or without modifications).
68915         Suggested by Jim Meyering.
68916
68917 2007-03-17  Eric Blake  <ebb9@byu.net>
68918
68919         * NEWS: Document stdlib change from 2007-02-18.
68920
68921 2007-03-17  Jim Meyering  <jim@meyering.net>
68922
68923         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
68924         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
68925         someone uses a name containing shell meta-characters.
68926         Reported by Alfred M. Szmidt.
68927
68928         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
68929
68930 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68931
68932         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
68933         and copy gettext configuration files only if configure.ac contains
68934         a use of AM_GNU_GETTEXT_VERSION.
68935
68936 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68937
68938         * build-aux/bootstrap (gnulib_name): New variable.
68939         (gnulib_tool_options): Use it.
68940
68941 2007-03-13  Simon Josefsson  <simon@josefsson.org>
68942
68943         * tests/test-des.c: Use new namespace.
68944
68945 2007-03-15  Bruno Haible  <bruno@clisp.org>
68946
68947         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
68948         Reported by James Youngman <jay@gnu.org>.
68949
68950 2007-03-15  Bruno Haible  <bruno@clisp.org>
68951
68952         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
68953         declared prototype. Needed with cc on OSF/1 5.1.
68954
68955 2007-03-15  Bruno Haible  <bruno@clisp.org>
68956
68957         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
68958         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
68959         (struct gl_list_implementation): Add dispose_fn argument to the
68960         'create_empty', 'create' methods.
68961         (struct gl_list_impl_base): Add field 'dispose_fn'.
68962         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
68963         argument.
68964         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
68965         dispose_fn argument.
68966         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
68967         dispose_fn on the dropped values.
68968         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
68969         dispose_fn argument.
68970         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
68971         dropped values.
68972         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
68973         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68974         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
68975         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68976         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
68977         argument.
68978         (gl_tree_list_free): Call dispose_fn on the dropped values.
68979         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
68980         the dropped values.
68981         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
68982         Add dispose_fn argument.
68983         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
68984         Call dispose_fn on the dropped values.
68985         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
68986         Add dispose_fn argument.
68987         (gl_sublist_create): Initialize the 'dispose_fn' field.
68988         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
68989         * tests/test-array_list.c (main): Update.
68990         * tests/test-carray_list.c (main): Update.
68991         * tests/test-avltree_list.c (main): Update.
68992         * tests/test-rbtree_list.c (main): Update.
68993         * tests/test-avltreehash_list.c (main): Update.
68994         * tests/test-rbtreehash_list.c (main): Update.
68995         * tests/test-linked_list.c (main): Update.
68996         * tests/test-linkedhash_list.c (main): Update.
68997         * tests/test-array_oset.c (main): Update.
68998
68999 2007-03-15  Bruno Haible  <bruno@clisp.org>
69000
69001         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
69002         (gl_oset_create_empty): Add dispose_fn argument.
69003         (struct gl_oset_implementation): Add dispose_fn argument to
69004         'create_empty' method.
69005         (struct gl_oset_impl_base): Add dispose_fn field.
69006         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
69007         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
69008         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
69009         values.
69010         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
69011         (gl_tree_oset_free): Call dispose_fn on the dropped values.
69012         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
69013         dropped value.
69014         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
69015         dropped value.
69016         * tests/test-array_oset.c (main): Update.
69017         * tests/test-avltree_oset.c (main): Update.
69018         * tests/test-rbtree_oset.c (main): Update.
69019         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
69020
69021 2007-03-13  Bruno Haible  <bruno@clisp.org>
69022
69023         * tests/test-stdbool.c (i): Update after last patch.
69024
69025 2007-03-12  Bruno Haible  <bruno@clisp.org>
69026
69027         * lib/quotearg.c: Include <wctype.h> early, before the definition of
69028         the iswprint macro. Needed on Solaris 2.5.1.
69029
69030 2007-03-12  Bruno Haible  <bruno@clisp.org>
69031
69032         * tests/test-printf-frexp.c (main): Declare x as volatile.
69033
69034 2007-03-12  Simon Josefsson  <simon@josefsson.org>
69035
69036         * doc/gnulib.texi (Build robot for gnulib): New section.
69037
69038 2007-03-12  Jim Meyering  <jim@meyering.net>
69039
69040         * build-aux/bootstrap: New file.
69041         * build-aux/bootstrap.conf: New file, from coreutils.
69042
69043 2007-03-11  Bruno Haible  <bruno@clisp.org>
69044
69045         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
69046
69047 2007-03-12  Simon Josefsson  <simon@josefsson.org>
69048
69049         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
69050         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
69051         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
69052
69053 2007-03-11  Bruno Haible  <bruno@clisp.org>
69054
69055         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
69056         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
69057
69058 2007-03-11  Bruno Haible  <bruno@clisp.org>
69059
69060         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
69061         formula. Needed for SunPRO C 5.0.
69062
69063 2007-03-11  Bruno Haible  <bruno@clisp.org>
69064
69065         * modules/long-options (Depends-on): Add getopt.
69066
69067 2007-03-11  Bruno Haible  <bruno@clisp.org>
69068
69069         * modules/modechange (Depends-on): Add stdbool.
69070
69071 2007-03-11  Bruno Haible  <bruno@clisp.org>
69072
69073         * modules/i-ring (Depends-on): Add stdbool.
69074
69075 2007-03-11  Bruno Haible  <bruno@clisp.org>
69076
69077         * modules/gc-des (Depends-on): Add stdbool.
69078
69079 2007-03-11  Bruno Haible  <bruno@clisp.org>
69080
69081         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
69082
69083 2007-03-11  Bruno Haible  <bruno@clisp.org>
69084
69085         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
69086
69087 2007-03-11  Bruno Haible  <bruno@clisp.org>
69088
69089         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
69090
69091 2007-03-11  Bruno Haible  <bruno@clisp.org>
69092
69093         * lib/vasnprintf.c (sprintf): Undefine.
69094
69095 2007-03-11  Bruno Haible  <bruno@clisp.org>
69096
69097         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
69098         initializers in SunPRO C and Compaq C compilers.
69099
69100 2007-03-11  Bruno Haible  <bruno@clisp.org>
69101
69102         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
69103         decrementing code ANSI C compliant.
69104
69105 2007-03-11  Bruno Haible  <bruno@clisp.org>
69106
69107         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
69108         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
69109
69110 2007-03-11  Bruno Haible  <bruno@clisp.org>
69111
69112         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
69113         <stdbool.h> substitute doesn't pass.
69114
69115 2007-03-11  Bruno Haible  <bruno@clisp.org>
69116
69117         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
69118
69119 2007-03-11  Bruno Haible  <bruno@clisp.org>
69120
69121         * gnulib-tool (func_create_megatestdir): Create also an autobuild
69122         script, for submission to autobuild.josefsson.org.
69123
69124 2007-03-10  Bruno Haible  <bruno@clisp.org>
69125
69126         * modules/canonicalize-lgpl-tests: New file.
69127         * tests/test-canonicalize-lgpl.sh: New file.
69128         * tests/test-canonicalize-lgpl.c: New file.
69129
69130         * modules/c-strcase-tests: New file.
69131         * tests/test-c-strcase.sh: New file.
69132         * tests/test-c-strcasecmp.c: New file.
69133         * tests/test-c-strncasecmp.c: New file.
69134
69135         * modules/atexit-tests: New file.
69136         * tests/test-atexit.sh: New file.
69137         * tests/test-atexit.c: New file.
69138
69139 2007-03-10  Bruno Haible  <bruno@clisp.org>
69140
69141         * tests/test-binary-io.sh: Use temporary filenames that are not so
69142         likely to clash with those of other tests (in a parallel make).
69143         * tests/test-binary-io.c: Likewise.
69144
69145 2007-03-10  Bruno Haible  <bruno@clisp.org>
69146
69147         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
69148         fallback; use #error instead.
69149         Suggested by Simon Josefsson.
69150
69151 2007-03-10  Bruno Haible  <bruno@clisp.org>
69152
69153         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
69154         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
69155         first and the last.
69156
69157 2007-03-10  Bruno Haible  <bruno@clisp.org>
69158
69159         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
69160
69161 2007-03-10  Bruno Haible  <bruno@clisp.org>
69162
69163         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
69164         "make distcheck".
69165         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
69166         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
69167         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
69168
69169 2007-03-10  Bruno Haible  <bruno@clisp.org>
69170
69171         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
69172         variable.
69173         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
69174         variable.
69175
69176 2007-03-09  Eric Blake  <ebb9@byu.net>
69177         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
69178
69179         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
69180         types are not being provided by gnulib.
69181         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
69182         types are supported.
69183
69184 2007-03-10  Bruno Haible  <bruno@clisp.org>
69185
69186         * lib/stdio_.h (__attribute__): New macro.
69187         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
69188         vsprintf): Specify __attribute__ __format__ for GCC.
69189         Suggested by Eric Blake.
69190
69191 2007-03-09  Bruno Haible  <bruno@clisp.org>
69192
69193         * modules/printf-posix-tests: New file.
69194         * tests/test-printf-posix.sh: New file.
69195         * tests/test-printf-posix.c: New file.
69196
69197         * modules/printf-posix: New file.
69198         * lib/printf.c: New file.
69199         * m4/printf-posix-rpl.m4: New file.
69200         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
69201         REPLACE_PRINTF.
69202         * lib/stdio_.h (printf): New declaration.
69203         (format, __format__, ____printf____, ____scanf____, ____strftime____,
69204         ____strfmon____): New macros.
69205         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
69206         REPLACE_PRINTF.
69207
69208 2007-03-09  Bruno Haible  <bruno@clisp.org>
69209
69210         * tests/test-vasnprintf-posix2.sh: New file.
69211         * tests/test-vasnprintf-posix2.c: New file.
69212         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
69213         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
69214         (Makefile.am): Activate test-vasnprintf-posix2.sh.
69215
69216         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
69217         a locale dependent decimal point, rather than always '.'.
69218
69219 2007-03-09  Eric Blake  <ebb9@byu.net>
69220
69221         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
69222         spite of platforms like Tandem/NSK that define it to -1.
69223
69224 2007-03-08  Bruno Haible  <bruno@clisp.org>
69225
69226         * modules/vprintf-posix-tests: New file.
69227         * tests/test-vprintf-posix.sh: New file.
69228         * tests/test-vprintf-posix.c: New file.
69229         * tests/test-printf-posix.h: New file.
69230
69231         * modules/vprintf-posix: New file.
69232         * lib/vprintf.c: New file.
69233         * m4/vprintf-posix.m4: New file.
69234         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
69235         REPLACE_VPRINTF.
69236         * lib/stdio_.h (vprintf): New declaration.
69237         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
69238         REPLACE_VPRINTF.
69239
69240 2007-03-08  Bruno Haible  <bruno@clisp.org>
69241
69242         * modules/fprintf-posix-tests: New file.
69243         * tests/test-fprintf-posix.sh: New file.
69244         * tests/test-fprintf-posix.c: New file.
69245
69246         * modules/fprintf-posix: New file.
69247         * lib/fprintf.c: New file.
69248         * m4/fprintf-posix.m4: New file.
69249         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
69250         REPLACE_FPRINTF.
69251         * lib/stdio_.h (fprintf): New declaration.
69252         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
69253         REPLACE_FPRINTF.
69254
69255 2007-03-08  Bruno Haible  <bruno@clisp.org>
69256
69257         * modules/vfprintf-posix-tests: New file.
69258         * tests/test-vfprintf-posix.sh: New file.
69259         * tests/test-vfprintf-posix.c: New file.
69260         * tests/test-fprintf-posix.h: New file.
69261         * tests/test-fprintf-posix.out: New file.
69262
69263         * modules/vfprintf-posix: New file.
69264         * lib/vfprintf.c: New file.
69265         * m4/vfprintf-posix.m4: New file.
69266         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
69267         REPLACE_VFPRINTF.
69268         * lib/stdio_.h (vfprintf): New declaration.
69269         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
69270         REPLACE_VFPRINTF.
69271
69272 2007-03-08  Bruno Haible  <bruno@clisp.org>
69273
69274         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
69275
69276 2007-03-08  Bruno Haible  <bruno@clisp.org>
69277
69278         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
69279         instead of 'expr' invocations.
69280         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69281         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69282         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69283         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69284         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69285         Suggested by Paul Eggert.
69286
69287 2007-03-08  Bruno Haible  <bruno@clisp.org>
69288
69289         * modules/fseterr-tests: New file.
69290         * tests/test-fseterr.c: New file.
69291
69292         * modules/fseterr: New file.
69293         * lib/fseterr.h: New file.
69294         * lib/fseterr.c: New file.
69295
69296 2007-03-08  Bruno Haible  <bruno@clisp.org>
69297
69298         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
69299         * lib/getopt_.h: Likewise.
69300         * lib/mbswidth.h: Likewise.
69301         * lib/setenv.h: Likewise.
69302         * lib/vasnprintf.h: Likewise.
69303         * lib/vasprintf.h: Likewise.
69304         * lib/verror.h: Likewise.
69305         * lib/xsetenv.h: Likewise.
69306         * lib/xvasprintf.h: Likewise.
69307
69308 2007-03-08  Jim Meyering  <jim@meyering.net>
69309
69310         * users.txt: Add parted.
69311
69312         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
69313
69314 2007-03-07  Bruno Haible  <bruno@clisp.org>
69315
69316         * m4/printf.m4: Make the shell script snippets copy&pastable.
69317
69318 2007-03-02  Bruno Haible  <bruno@clisp.org>
69319
69320         * lib/netinet_in_.h: New file.
69321         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
69322         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
69323         * modules/netinet_in (Files): Add lib/netinet_in_.h.
69324         (Depends-on): Add absolute-header.
69325         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
69326         into netinet/in.h.
69327
69328 2007-03-03  Bruno Haible  <bruno@clisp.org>
69329
69330         * lib/sys_select_.h: New file.
69331         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
69332         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
69333         * modules/sys_select (Files): Add lib/sys_select_.h.
69334         (Depends-on): Add absolute-header.
69335         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
69336         into sys/select.h.
69337
69338 2007-03-02  Bruno Haible  <bruno@clisp.org>
69339
69340         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
69341         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
69342         values.
69343         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
69344         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
69345         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
69346         * modules/sys_socket (Depends-on): Add absolute-header.
69347         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
69348         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
69349         (Include): Remove requirement of inclusion of <sys/types.h>.
69350
69351 2007-03-02  Bruno Haible  <bruno@clisp.org>
69352
69353         * lib/byteswap_.h (bswap_32): Fix formula.
69354
69355 2007-03-06  Bruno Haible  <bruno@clisp.org>
69356
69357         * modules/sprintf-posix-tests: New file.
69358         * tests/test-sprintf-posix.c: New file.
69359
69360         * modules/sprintf-posix: New file.
69361         * lib/sprintf.c: New file.
69362         * m4/sprintf-posix.m4: New file.
69363         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
69364         REPLACE_SPRINTF.
69365         * lib/stdio_.h (sprintf): New declaration.
69366         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
69367         REPLACE_SPRINTF.
69368
69369 2007-03-06  Bruno Haible  <bruno@clisp.org>
69370
69371         * modules/vsprintf-posix-tests: New file.
69372         * tests/test-vsprintf-posix.c: New file.
69373         * tests/test-sprintf-posix.h: New file.
69374
69375         * modules/vsprintf-posix: New file.
69376         * lib/vsprintf.c: New file.
69377         * m4/vsprintf-posix.m4: New file.
69378         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
69379         REPLACE_VSPRINTF.
69380         * lib/stdio_.h (vsprintf): New declaration.
69381         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
69382         REPLACE_VSPRINTF.
69383
69384 2007-03-06  Bruno Haible  <bruno@clisp.org>
69385
69386         * modules/vsnprintf (Depend-on): Remove minmax.
69387
69388 2007-03-06  Bruno Haible  <bruno@clisp.org>
69389
69390         * modules/snprintf-posix-tests: New file.
69391         * tests/test-snprintf-posix.c: New file.
69392
69393         * modules/snprintf-posix: New file.
69394         * m4/snprintf-posix.m4: New file.
69395         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
69396         gl_FUNC_SNPRINTF.
69397         (gl_FUNC_SNPRINTF): Invoke it.
69398         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
69399         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
69400         is set.
69401         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
69402
69403 2007-03-06  Bruno Haible  <bruno@clisp.org>
69404
69405         * modules/vsnprintf-posix-tests: New file.
69406         * tests/test-vsnprintf-posix.c: New file.
69407         * tests/test-snprintf-posix.h: New file.
69408
69409         * modules/vsnprintf-posix: New file.
69410         * m4/vsnprintf-posix.m4: New file.
69411         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
69412         gl_FUNC_VSNPRINTF.
69413         (gl_FUNC_VSNPRINTF): Invoke it.
69414         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
69415         * lib/stdio_.h (vsnprintf): Define as a replacement if
69416         REPLACE_VSNPRINTF is set.
69417         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
69418
69419 2007-03-06  Bruno Haible  <bruno@clisp.org>
69420
69421         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
69422         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
69423
69424 2007-03-06  Bruno Haible  <bruno@clisp.org>
69425
69426         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
69427         (asinl): Declare also if HAVE_DECL_ASINL is set.
69428         (atanl): Declare also if HAVE_DECL_ATANL is set.
69429         (ceill): Declare also if HAVE_DECL_CEILL is set.
69430         (cosl): Declare also if HAVE_DECL_COSL is set.
69431         (expl): Declare also if HAVE_DECL_EXPL is set.
69432         (floorl): Declare also if HAVE_DECL_FLOORL is set.
69433         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
69434         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
69435         (logl): Declare also if HAVE_DECL_LOGL is set.
69436         (sinl): Declare also if HAVE_DECL_SINL is set.
69437         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
69438         (tanl): Declare also if HAVE_DECL_TANL is set.
69439         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
69440         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
69441         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
69442         declaration of frexpl, ldexpl.
69443         * modules/printf-frexpl (Depends-on): Add math.
69444         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
69445
69446 2007-03-05  Bruno Haible  <bruno@clisp.org>
69447
69448         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
69449         frexpl and ldexpl are declared.
69450         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
69451
69452 2007-03-05  Bruno Haible  <bruno@clisp.org>
69453
69454         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
69455         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
69456
69457 2007-03-05  Bruno Haible  <bruno@clisp.org>
69458
69459         * lib/stdio_.h: Include <stddef.h>.
69460
69461 2007-03-05  Bruno Haible  <bruno@clisp.org>
69462
69463         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
69464
69465 2007-03-05  Bruno Haible  <bruno@clisp.org>
69466
69467         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
69468         NetBSD 4, from Ralf Wildenhues.
69469
69470 2007-03-04  Bruno Haible  <bruno@clisp.org>
69471
69472         * lib/vasprintf.h: Update #if logic for the case when the functions
69473         exist but are overridden.
69474
69475 2007-03-04  Bruno Haible  <bruno@clisp.org>
69476
69477         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
69478         implementations: glibc-2.4 and MacOS X 10.3.
69479         * tests/test-vasnprintf-posix.c (test_function): Test also the case
69480         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
69481         * tests/test-vasprintf-posix.c (test_function): Likewise.
69482
69483 2007-03-04  Bruno Haible  <bruno@clisp.org>
69484
69485         * modules/vasprintf-posix-tests: New file.
69486         * tests/test-vasprintf-posix.c: New file.
69487
69488         * modules/vasprintf-posix: New file.
69489         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
69490         defined.
69491         * m4/vasprintf-posix.m4: New file.
69492         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
69493         gl_FUNC_VASPRINTF.
69494         (gl_FUNC_VASPRINTF): Invoke it.
69495         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
69496         here.
69497         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
69498
69499 2007-03-04  Bruno Haible  <bruno@clisp.org>
69500
69501         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
69502         REPLACE_GETTIMEOFDAY.
69503         * modules/sys_time (Makefile.am): Likewise.
69504         * m4/sys_time_h.m4: Likewise.
69505         * m4/gettimeofday.m4: Likewise.
69506
69507 2007-03-04  Bruno Haible  <bruno@clisp.org>
69508
69509         * modules/vasnprintf-posix-tests: New file.
69510         * tests/test-vasnprintf-posix.c: New file.
69511
69512         * modules/vasnprintf-posix: New file.
69513         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
69514         printf-frexpl.h.
69515         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
69516         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
69517         REPLACE_VASNPRINTF is defined.
69518         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
69519         gl_FUNC_VASNPRINTF.
69520         (gl_FUNC_VASNPRINTF): Invoke it.
69521         * m4/vasnprintf-posix.m4: New file.
69522         * m4/printf.m4: New file.
69523
69524 2007-03-04  Bruno Haible  <bruno@clisp.org>
69525
69526         Compile progreloc.c only if --enable-relocatable is specified.
69527         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
69528         if --enable-relocatable was specified.
69529         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
69530         lib_SOURCES.
69531
69532 2007-03-04  Jim Meyering  <jim@meyering.net>
69533
69534         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
69535         Use it consistently, rather than enumerating errno constants.
69536
69537 2007-03-04  Bruno Haible  <bruno@clisp.org>
69538
69539         * modules/xvasprintf-tests: New file.
69540         * tests/test-xvasprintf.c: New file.
69541
69542         * modules/vasprintf-tests: New file.
69543         * tests/test-vasprintf.c: New file.
69544
69545         * modules/vasnprintf-tests: New file.
69546         * tests/test-vasnprintf.c: New file.
69547
69548         * modules/vsnprintf-tests: New file.
69549         * tests/test-vsnprintf.c: New file.
69550
69551         * modules/snprintf-tests: New file.
69552         * tests/test-snprintf.c: New file.
69553
69554 2007-03-04  Bruno Haible  <bruno@clisp.org>
69555
69556         Compile relocatable.c only if --enable-relocatable is specified.
69557         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
69558         gl_RELOCATABLE_LIBRARY.
69559         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
69560         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
69561         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
69562         gl_RELOCATABLE_LIBRARY.
69563         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
69564         (Makefile.am): Remove lib_SOURCES.
69565         * modules/relocatable-lib-lgpl (configure.ac): Invoke
69566         gl_RELOCATABLE_LIBRARY.
69567         (Makefile.am): Remove lib_SOURCES.
69568         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
69569         always.
69570         * modules/relocatable-prog-wrapper (configure.ac): Invoke
69571         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
69572
69573 2007-03-04  Bruno Haible  <bruno@clisp.org>
69574
69575         * modules/argmatch-tests: New file.
69576         * tests/test-argmatch.c: New file.
69577
69578         * tests/test-allocsa.c (main): Halve the number of loop runs.
69579
69580         * modules/alloca-opt-tests: New file.
69581         * tests/test-alloca-opt.c: New file.
69582
69583 2007-03-04  Jim Meyering  <jim@meyering.net>
69584
69585         Work around difference between Linux ACLs and Solaris 10 ZFS.
69586         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
69587         for EINVAL.
69588
69589 2007-03-03  Bruno Haible  <bruno@clisp.org>
69590
69591         * modules/relocatable-prog (Depends-on): Add back progreloc's
69592         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
69593
69594 2007-03-03  Bruno Haible  <bruno@clisp.org>
69595
69596         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
69597         * modules/relocatable-lib: New file.
69598
69599 2007-03-03  Bruno Haible  <bruno@clisp.org>
69600
69601         * modules/relocatable-prog: Renamed from modules/relocatable.
69602         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
69603
69604 2007-03-03  Bruno Haible  <bruno@clisp.org>
69605
69606         * modules/relocatable-script (Files): Add doc/relocatable.texi,
69607         m4/relocatable-lib.m4.
69608         (Depends-on): Remove 'relocatable'.
69609         (configure.ac): Add gl_RELOCATABLE_NOP.
69610
69611 2007-03-03  Bruno Haible  <bruno@clisp.org>
69612
69613         * modules/relocatable-prog-wrapper: New file.
69614         * modules/relocatable (Depends-on): Add it. Remove all other
69615         dependencies except progname.
69616         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
69617
69618         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
69619         (gl_FUNC_STRERROR): Nop.
69620         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
69621
69622         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
69623         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
69624
69625         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
69626         (gl_FUNC_READLINK): Update.
69627
69628         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
69629
69630 2007-03-03  Bruno Haible  <bruno@clisp.org>
69631
69632         * lib/xreadlink.c: Include <unistd.h> unconditionally.
69633         * modules/xreadlink (Depends-on): Add unistd.
69634         * modules/xreadlink-with-size (Depends-on): Likewise.
69635
69636 2007-03-03  Bruno Haible  <bruno@clisp.org>
69637
69638         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
69639         extracted from gt_FUNC_SETENV.
69640         (gt_FUNC_SETENV): Remove macro.
69641         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
69642         remove gt_FUNC_SETENV.
69643
69644 2007-03-03  Bruno Haible  <bruno@clisp.org>
69645
69646         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
69647         ENABLE_RELOCATABLE here.
69648         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
69649
69650 2007-03-03  Bruno Haible  <bruno@clisp.org>
69651
69652         * modules/rbtreehash-list-tests (Depends-on): Add progname.
69653         * tests/test-rbtreehash_list.c: Include progname.h.
69654         (main): Call set_program_name.
69655
69656         * modules/rbtree-oset-tests (Depends-on): Add progname.
69657         * tests/test-rbtree_oset.c: Include progname.h.
69658         (main): Call set_program_name.
69659
69660         * modules/rbtree-list-tests (Depends-on): Add progname.
69661         * tests/test-rbtree_list.c: Include progname.h.
69662         (main): Call set_program_name.
69663
69664         * modules/linked-list-tests (Depends-on): Add progname.
69665         * tests/test-linked_list.c: Include progname.h.
69666         (main): Call set_program_name.
69667
69668 2007-03-03  Bruno Haible  <bruno@clisp.org>
69669
69670         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
69671         All uses of __restrict changed to _Restrict_.
69672         * lib/glob_.h (__restrict): Remove macro.
69673
69674 2007-03-02  Bruno Haible  <bruno@clisp.org>
69675
69676         * modules/gettext (configure.ac): Require gettext infrastructure
69677         from version 0.16.1.
69678
69679 2007-03-02  Bruno Haible  <bruno@clisp.org>
69680
69681         * modules/linkedhash-list-tests (Depends-on): Add progname.
69682         * tests/test-linkedhash_list.c: Include progname.h.
69683         (main): Call set_program_name.
69684
69685         * modules/carray-list-tests (Depends-on): Add progname.
69686         * tests/test-carray_list.c: Include progname.h.
69687         (main): Call set_program_name.
69688
69689         * modules/avltreehash-list-tests (Depends-on): Add progname.
69690         * tests/test-avltreehash_list.c: Include progname.h.
69691         (main): Call set_program_name.
69692
69693         * modules/avltree-oset-tests (Depends-on): Add progname.
69694         * tests/test-avltree_oset.c: Include progname.h.
69695         (main): Call set_program_name.
69696
69697         * modules/avltree-list-tests (Depends-on): Add progname.
69698         * tests/test-avltree_list.c: Include progname.h.
69699         (main): Call set_program_name.
69700
69701         * modules/array-oset-tests (Depends-on): Add progname.
69702         * tests/test-array_oset.c: Include progname.h.
69703         (main): Call set_program_name.
69704
69705         * modules/array-list-tests (Depends-on): Add progname.
69706         * tests/test-array_list.c: Include progname.h.
69707         (main): Call set_program_name.
69708
69709         * modules/argp-tests (Depends-on): Add progname.
69710         * tests/test-argp.c: Include argp.h first. Include progname.h.
69711         (main): Call set_program_name.
69712
69713 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
69714
69715         * doc/gnulib-tool.texi (Initial import): Reword description of
69716         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
69717         limited effect even if defined after the first system include.
69718
69719 2007-03-01  Bruno Haible  <bruno@clisp.org>
69720
69721         * build-aux/config.libpath: Update to libtool-1.5.22.
69722         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
69723
69724 2007-03-01  Bruno Haible  <bruno@clisp.org>
69725
69726         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
69727         foo_CFLAGS.
69728         Reported by Ralf Wildenhues.
69729
69730 2007-03-01  Bruno Haible  <bruno@clisp.org>
69731
69732         * build-aux/install-reloc: Remove object files left over by some
69733         compilers.
69734         Reported by Ralf Wildenhues.
69735
69736 2007-03-01  Bruno Haible  <bruno@clisp.org>
69737
69738         * build-aux/install-reloc: Break long lines.
69739
69740 2007-03-01  Bruno Haible  <bruno@clisp.org>
69741
69742         * doc/relocatable.texi: Document that it may not work on OpenBSD.
69743         Reported by Ralf Wildenhues.
69744
69745 2007-03-01  Bruno Haible  <bruno@clisp.org>
69746
69747         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
69748         include ordering constraints.
69749
69750 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69751
69752         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
69753         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
69754         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
69755         as another example.
69756         * lib/time_.h: Fix misspelling.
69757         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69758         Require gl_HEADER_TIME_H_DEFAULTS.
69759         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
69760         * m4/time_r.m4 (gl_TIME_R): Likewise.
69761         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
69762
69763 2007-03-01  Bruno Haible  <bruno@clisp.org>
69764
69765         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
69766         * m4/utimens.m4 (gl_UTIMENS): Likewise.
69767
69768 2007-03-01  Jim Meyering  <jim@meyering.net>
69769
69770         * modules/xreadlink (Maintainer): Add my name.
69771         * modules/xreadlink-with-size (Depends-on): Alphabetize.
69772
69773 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
69774             Bruno Haible  <bruno@clisp.org>
69775
69776         * build-aux/install-reloc: Compile also c-ctype.c.
69777         * build-aux/relocatable.sh.in: New file.
69778         * doc/relocatable.texi: New file.
69779         * doc/relocatable-maint.texi: New file.
69780         * doc/gnulib.texi: Include relocatable-maint.texi.
69781         * lib/progreloc.c: Include unistd.h unconditionally.
69782         * lib/relocwrapper.c: Include unistd.h unconditionally.
69783         Include c-ctype.h.
69784         (add_dotbin): Use c_tolower.
69785         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
69786         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
69787         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
69788         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
69789         to m4/relocatable-lib.m4.
69790         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
69791         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
69792         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
69793         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
69794         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
69795         * modules/relocatable: New file.
69796         * modules/relocatable-lib: New file.
69797         * modules/relocatable-script: New file.
69798
69799 2007-02-28  Bruno Haible  <bruno@clisp.org>
69800
69801         Import --enable-relocatable infrastructure.
69802         * build-aux/config.libpath: New file, from GNU gettext.
69803         * build-aux/install-reloc: New file, from GNU gettext.
69804         * build-aux/reloc-ldflags: New file, from GNU gettext.
69805         * lib/relocatable.h: New file, from GNU gettext.
69806         * lib/relocatable.c: New file, from GNU gettext.
69807         * lib/relocwrapper.c: New file, from GNU gettext.
69808         * m4/relocatable.m4: New file, from GNU gettext.
69809
69810 2007-02-28  Bruno Haible  <bruno@clisp.org>
69811
69812         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
69813
69814         * modules/xreadlink: New file, from GNU gettext with modifications.
69815         * lib/xreadlink.c: New file, from GNU gettext.
69816         * lib/xreadlink.h: Add comments.
69817         (xreadlink): New declaration.
69818
69819         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
69820         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
69821         lib/xreadlink-with-size.c.
69822         (configure.ac): Remove gl_XREADLINK invocation.
69823         (Makefile.am): Augment lib_SOURCES.
69824         * m4/xreadlink.m4: Remove file.
69825         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
69826         (xreadlink_with_size): Renamed from xreadink.
69827         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
69828         * modules/canonicalize (Depends-on): Replace xreadlink with
69829         xreadlink-with-size.
69830         * lib/canonicalize.c (canonicalize_filename_mode): Update.
69831
69832 2007-02-25  Jim Meyering  <jim@meyering.net>
69833
69834         * build-aux/announce-gen: When complaining about excess arguments,
69835         list them.
69836
69837 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69838
69839         * README: Document signed integer overflow situation more
69840         accurately.
69841
69842 2007-02-25  Bruno Haible  <bruno@clisp.org>
69843
69844         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
69845         'a' or 'A' conversion.
69846
69847 2007-02-25  Bruno Haible  <bruno@clisp.org>
69848
69849         * modules/filename: Renamed from modules/pathname.
69850         (Files): Replace lib/pathname.h with lib/filename.h. Replace
69851         lib/concatpath.c with lib/concat-filename.c.
69852         (Makefile.am): Update.
69853         (Include): Replace pathname.h with filename.h.
69854         * lib/filename.h: Renamed from lib/pathname.h.
69855         (concatenated_filename): Renamed from concatenated_pathname.
69856         * lib/concat-filename.c: Renamed from lib/concatpath.c.
69857         (concatenated_filename): Renamed from concatenated_pathname.
69858         * lib/findprog.c: Include filename.h instead of pathname.h.
69859         (find_in_path): Update.
69860         * lib/javacomp.c: Include filename.h instead of pathname.h.
69861         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
69862         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
69863         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
69864         is_oldgcj_14_13_usable, is_javac_usable): Update.
69865         * lib/javaexec.c: Include filename.h instead of pathname.h.
69866         (execute_java_class): Update.
69867         * modules/findprog: Update.
69868         * modules/javacomp: Update.
69869         * modules/javaexec: Update.
69870         * MODULES.html.sh (File system functions): Add 'filename', remove
69871         'pathname'.
69872
69873 2007-02-25  Bruno Haible  <bruno@clisp.org>
69874
69875         * modules/printf-frexpl-tests: New file.
69876         * tests/test-printf-frexpl.c: New file.
69877
69878         * modules/printf-frexpl: New file.
69879         * lib/printf-frexpl.h: New file.
69880         * lib/printf-frexpl.c: New file.
69881         * m4/printf-frexpl.m4: New file.
69882
69883 2007-02-25  Bruno Haible  <bruno@clisp.org>
69884
69885         * modules/printf-frexp-tests: New file.
69886         * tests/test-printf-frexp.c: New file.
69887
69888         * modules/printf-frexp: New file.
69889         * lib/printf-frexp.h: New file.
69890         * lib/printf-frexp.c: New file.
69891         * m4/printf-frexp.m4: New file.
69892
69893 2007-02-25  Bruno Haible  <bruno@clisp.org>
69894
69895         Assume automake >= 1.10 for the tests.
69896         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
69897         * modules/arctwo-tests: Likewise.
69898         * modules/argp-tests: Likewise.
69899         * modules/avltree-list-tests: Likewise.
69900         * modules/avltree-oset-tests: Likewise.
69901         * modules/avltreehash-list-tests: Likewise.
69902         * modules/carray-list-tests: Likewise.
69903         * modules/crc-tests: Likewise.
69904         * modules/des-tests: Likewise.
69905         * modules/gc-arcfour-tests: Likewise.
69906         * modules/gc-arctwo-tests: Likewise.
69907         * modules/gc-des-tests: Likewise.
69908         * modules/gc-hmac-md5-tests: Likewise.
69909         * modules/gc-hmac-sha1-tests: Likewise.
69910         * modules/gc-md2-tests: Likewise.
69911         * modules/gc-md4-tests: Likewise.
69912         * modules/gc-md5-tests: Likewise.
69913         * modules/gc-pbkdf2-sha1-tests: Likewise.
69914         * modules/gc-rijndael-tests: Likewise.
69915         * modules/gc-sha1-tests: Likewise.
69916         * modules/gc-tests: Likewise.
69917         * modules/getaddrinfo-tests: Likewise.
69918         * modules/hmac-md5-tests: Likewise.
69919         * modules/hmac-sha1-tests: Likewise.
69920         * modules/linked-list-tests: Likewise.
69921         * modules/linkedhash-list-tests: Likewise.
69922         * modules/lock-tests: Likewise.
69923         * modules/md2-tests: Likewise.
69924         * modules/md4-tests: Likewise.
69925         * modules/md5-tests: Likewise.
69926         * modules/rbtree-list-tests: Likewise.
69927         * modules/rbtree-oset-tests: Likewise.
69928         * modules/rbtreehash-list-tests: Likewise.
69929         * modules/read-file-tests: Likewise.
69930         * modules/rijndael-tests: Likewise.
69931         * modules/stdint-tests: Likewise.
69932         * modules/tls-tests: Likewise.
69933
69934 2007-02-24  Bruno Haible  <bruno@clisp.org>
69935
69936         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
69937         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
69938         function; instead check whether isnan with a double argument links.
69939         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
69940         function; instead check whether isnan with a 'long double' argument
69941         links.
69942         Reported by Eric Blake <ebb9@byu.net>.
69943
69944 2007-02-24  Bruno Haible  <bruno@clisp.org>
69945
69946         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
69947         defined.
69948         * lib/isnanl.c: Remove all code. Just include isnan.c.
69949         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
69950
69951 2007-02-25  Jim Meyering  <jim@meyering.net>
69952
69953         Avoid conflicting types for 'unsetenv' on FreeBSD.
69954         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
69955         conflicting with FreeBSD's (5.0 and 6.1) function declaration
69956         in stdlib.h.
69957
69958 2007-02-24  Bruno Haible  <bruno@clisp.org>
69959
69960         * modules/isnanl-nolibm-tests: New file.
69961         * tests/test-isnanl.c: New file.
69962
69963         * modules/isnanl-nolibm: New file.
69964         * lib/isnanl.h: New file.
69965         * lib/isnanl.c: New file.
69966         * m4/isnanl.m4: New file.
69967
69968 2007-02-24  Bruno Haible  <bruno@clisp.org>
69969
69970         * modules/isnan-nolibm-tests: New file.
69971         * tests/test-isnan.c: New file.
69972
69973         * modules/isnan-nolibm: New file.
69974         * lib/isnan.h: New file.
69975         * lib/isnan.c: New file.
69976         * m4/isnan.m4: New file.
69977
69978 2007-02-24  Bruno Haible  <bruno@clisp.org>
69979
69980         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
69981         assume that an exponent fits in 20 bits.
69982
69983 2007-02-24  Jim Meyering  <jim@meyering.net>
69984
69985         * m4/regex.m4: Update the description of the configure-time option,
69986         --without-included-regex, to state accurately what the defaults are,
69987         and perhaps to give people an idea why using this option is risky.
69988
69989 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69990
69991         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
69992         loops on small arguments.  This attempts to avoid the problem
69993         Bruno Haible reported for AIX 4.3.2 in
69994         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
69995
69996 2007-02-23  Bruno Haible  <bruno@clisp.org>
69997
69998         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
69999         Needed for help2man.
70000
70001 2007-02-23  Karl Berry  <karl@gnu.org>
70002
70003         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
70004         exists, foo.h should be cvs-ignored, not committed.
70005
70006 2007-02-23  Eric Blake  <ebb9@byu.net>
70007
70008         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
70009         * lib/stat-time.h (includes): Likewise.
70010         * lib/utimecmp.c (includes): Likewise.
70011         * lib/utimens.h (includes): Likewise.
70012         * lib/getdate.y (includes): Also include "timespec.h" for use
70013         internal to the module.
70014         * modules/utimens (Depends-on): Revert yesterday's patch.
70015         * modules/nanosleep (Depends-on): Add missing dependency.
70016
70017 2007-02-22  Bruno Haible  <bruno@clisp.org>
70018
70019         * lib/glob.c: Don't include getlogin_r.h.
70020
70021 2007-02-22  Jim Meyering  <jim@meyering.net>
70022
70023         * modules/utimens (Depends-on): Add timespec, required for
70024         utimens.h's inclusion of timespec.h.
70025
70026 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
70027
70028         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
70029         long unreadable paths in GNU/Linux.  Problem reported by Andreas
70030         Schwab in
70031         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
70032         I'll try to think of a better way to fix the Solaris problem.
70033
70034         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
70035         like glibc; on Solaris 10, it fails with errno == EINVAL.
70036         POSIX says the behavior is unspecified if the first argument is NULL,
70037         so play it safe and never pass NULL to the system getcwd.
70038
70039 2007-02-21  Jim Meyering  <jim@meyering.net>
70040
70041         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
70042         of gettimeofday.  It would conflict with the one now always
70043         provided via sys_time_.h.  Reported by Matthew Woehlke, as
70044         an IRIX 6.5 build failure.
70045
70046 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
70047
70048         Minor fixups to port to Solaris 10 with Sun C 5.8.
70049         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
70050         * modules/getcwd (Depends-on): Add dirfd.
70051         * lib/putenv.c (putenv): #undef it.
70052         (rpl_putenv): New decl.
70053         (malloc, free): Include <stdlib.h> rather than prototyping separately.
70054
70055 2007-02-20  Bruno Haible  <bruno@clisp.org>
70056
70057         * modules/stdio-tests: New file.
70058         * tests/test-stdio.c: New file.
70059
70060         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
70061         (Depends-on): Add stdio.
70062         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
70063         (Include): Use <stdio.h> instead of vsnprintf.h.
70064         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
70065         HAVE_DECL_VSNPRINTF.
70066         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
70067
70068         * modules/snprintf (Files): Remove lib/snprintf.h.
70069         (Depends-on): Add stdio.
70070         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
70071         (Include): Use <stdio.h> instead of snprintf.h.
70072         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
70073         HAVE_DECL_SNPRINTF.
70074         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
70075         * lib/getaddrinfo.c: Likewise.
70076
70077         * modules/stdio: New file.
70078         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
70079         * lib/snprintf.h: Remove file.
70080         * lib/vsnprintf.h: Remove file.
70081         * lib/.cppi-disable: Remove snprintf.h.
70082         * m4/stdio_h.m4: New file.
70083         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
70084
70085 2007-02-20  Jim Meyering  <jim@meyering.net>
70086
70087         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
70088         used by e.g., mingw.  From Bruno Haible.
70089
70090 2007-02-19  Bruno Haible  <bruno@clisp.org>
70091
70092         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
70093         warnings.
70094         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70095
70096 2007-02-19  Bruno Haible  <bruno@clisp.org>
70097
70098         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
70099         from mingw users.
70100
70101 2007-02-19  Bruno Haible  <bruno@clisp.org>
70102
70103         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
70104         warnings.
70105         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
70106
70107 2007-02-19  Jim Meyering  <jim@meyering.net>
70108
70109         Don't use FD after a successful "fdopendir (fd)".
70110         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
70111         Reset it by calling dirfd on the just-obtained DIR*.
70112
70113         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
70114         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
70115
70116 2007-02-18  Bruno Haible  <bruno@clisp.org>
70117
70118         * lib/readlink.c: Include <unistd.h>.
70119         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
70120         HAVE_READLINK.
70121         * modules/readlink (Depends-on): Add unistd.
70122         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70123         (Include): Add <unistd.h>.
70124
70125         * lib/getlogin_r.h: Remove file.
70126         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
70127         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
70128         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
70129         HAVE_DECL_GETLOGIN_R.
70130         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
70131         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70132         (Include): Use <unistd.h> instead of getlogin_r.h.
70133
70134         * lib/getcwd.h: Remove file.
70135         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
70136         * lib/xgetcwd.c: Likewise.
70137         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
70138         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
70139         * modules/getcwd (Files): Remove lib/getcwd.h.
70140         (Depends-on): Add unistd.
70141         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70142         (Include): Use <unistd.h> instad of getcwd.h.
70143
70144         * lib/ftruncate.c: Include <unistd.h> first.
70145         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
70146         Set HAVE_FTRUNCATE.
70147         * modules/ftruncate (Depends-on): Add unistd.
70148         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70149
70150         * lib/fchdir.c: Include <unistd.h> first.
70151         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
70152         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
70153         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
70154         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70155         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
70156
70157         * lib/dup2.c: Include <unistd.h> first.
70158         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
70159         HAVE_DUP2.
70160         * modules/dup2 (Depends-on): Add unistd.
70161         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70162
70163         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
70164         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
70165         REPLACE_CHOWN. Don't define chown as a macro here.
70166         * modules/chown (Depends-on): Add unistd.
70167         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70168
70169         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
70170         Add definition for GL_LINK_WARNING.
70171         (chown, dup2): New declarations.
70172         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
70173         link warning.
70174         (ftruncate): New declaration.
70175         (getcwd): New declaration, taken from old getcwd.h.
70176         (getlogin_r): New declaration, taken from old getlogin_r.h.
70177         (readlink): New declaration.
70178         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
70179         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
70180         (gl_PREREQ_UNISTD): Remove macro.
70181         (gl_UNISTD_MODULE_INDICATOR): New macro.
70182         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
70183         many new variables. Don't set UNISTD_H.
70184         * modules/unistd (Description): Change.
70185         (Depends-on): Add link-warning.
70186         (configure.ac): Update.
70187         (Makefile.am): Create unistd.h always. Substitute many new variables
70188         into it.
70189
70190 2007-02-18  Bruno Haible  <bruno@clisp.org>
70191
70192         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
70193         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
70194         HAVE_GETSUBOPT.
70195         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
70196         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
70197         * lib/getsubopt.h: Remove file.
70198         * modules/getsubopt (Files): Remove lib/getsubopt.h.
70199         (Depends-on): Add stdlib.
70200         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70201         (Includes): Use <stdlib.h> instead of getsubopt.h.
70202         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
70203         Set HAVE_GETSUBOPT.
70204         * lib/getsubopt.c: Don't include getsubopt.h.
70205
70206 2007-02-18  Bruno Haible  <bruno@clisp.org>
70207
70208         * modules/fchdir (Depends-on): Add dup2.
70209
70210 2007-02-18  Bruno Haible  <bruno@clisp.org>
70211
70212         * lib/stdlib_.h: Handle glibc's special invocation convention
70213         specially.
70214
70215 2007-02-18  Bruno Haible  <bruno@clisp.org>
70216
70217         * modules/stdlib-tests: New file.
70218         * tests/test-stdlib.c: New file.
70219
70220         * modules/mkstemp (Files): Remove lib/mkstemp.h.
70221         (Depends-on): Add stdlib.
70222         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70223         (Includes): Use <stdlib.h> instead of mkstemp.h.
70224         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
70225         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
70226         * lib/mkstemp.c: Don't include mkstemp.h.
70227         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
70228         * lib/stdlib--.h: Don't include mkstemp.h.
70229
70230         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
70231         (Depends-on): Add stdlib.
70232         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70233         (Includes): Use <stdlib.h> instead of mkdtemp.h.
70234         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
70235         HAVE_MKDTEMP.
70236         * lib/mkdtemp.c: Don't include mkdtemp.h.
70237         * lib/clean-temp.c: Don't include mkdtemp.h.
70238
70239         * modules/exit (Files): Remove lib/exit.h.
70240         (Depends-on): Add stdlib.
70241         (Makefile.am): Remove lib_SOURCES.
70242         (Include): Use <stdlib.h> instead of exit.h.
70243         * lib/argmatch.c: Don't include exit.h.
70244         * lib/execute.c: Likewise.
70245         * lib/pagealign_alloc.c: Likewise.
70246         * lib/pipe.c: Likewise.
70247         * lib/wait-process.c: Likewise.
70248         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
70249         * lib/exitfail.c: Likewise.
70250         * lib/savewd.c: Likewise.
70251         * lib/xsetenv.c: Likewise.
70252
70253         * modules/stdlib: New file.
70254         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
70255         and extra comments about mkstemp().
70256         * lib/exit.h: Remove file.
70257         * lib/mkdtemp.h: Remove file.
70258         * lib/mkstemp.h: Remove file.
70259         * m4/stdlib_h.m4: New file.
70260         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
70261
70262 2007-02-18  Bruno Haible  <bruno@clisp.org>
70263
70264         * modules/math-tests: New file.
70265         * tests/test-math.c: New file.
70266
70267         * modules/math: New file.
70268         * modules/mathl (Files): Remove lib/mathl.h.
70269         (Depends-on): Add math.
70270         (Makefile.am): Don't mention mathl.h.
70271         (Include): Use <math.h> instead of mathl.h.
70272         * lib/math_.h: New file.
70273         * lib/mathl.h: Remove file.
70274         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
70275         mathl.h.
70276         * lib/asinl.c: Likewise.
70277         * lib/atanl.c: Likewise.
70278         * lib/ceill.c: Likewise.
70279         * lib/cosl.c: Likewise.
70280         * lib/expl.c: Likewise.
70281         * lib/floorl.c: Likewise.
70282         * lib/frexpl.c: Likewise.
70283         * lib/ldexpl.c: Likewise.
70284         * lib/logl.c: Likewise.
70285         * lib/sincosl.c: Likewise.
70286         * lib/sinl.c: Likewise.
70287         * lib/sqrtl.c: Likewise.
70288         * lib/tanl.c: Likewise.
70289         * lib/trigl.c: Likewise.
70290         * m4/math_h.m4: New file.
70291         * MODULES.html.sh (Mathematics): Add math.
70292
70293 2007-02-17  Bruno Haible  <bruno@clisp.org>
70294
70295         * modules/wctype-tests: New file.
70296         * tests/test-wctype.c: New file.
70297
70298         * modules/wchar-tests: New file.
70299         * tests/test-wchar.c: New file.
70300
70301         * modules/unistd-tests: New file.
70302         * tests/test-unistd.c: New file.
70303
70304         * modules/time-tests: New file.
70305         * tests/test-time.c: New file.
70306
70307         * modules/sysexits-tests: New file.
70308         * tests/test-sysexits.c: New file.
70309
70310         * modules/sys_time-tests: New file.
70311         * tests/test-sys_time.c: New file.
70312
70313         * modules/sys_stat-tests: New file.
70314         * tests/test-sys_stat.c: New file.
70315
70316         * modules/sys_socket-tests: New file.
70317         * tests/test-sys_socket.c: New file.
70318
70319         * modules/sys_select-tests: New file.
70320         * tests/test-sys_select.c: New file.
70321
70322         * modules/string-tests: New file.
70323         * tests/test-string.c: New file.
70324
70325         * modules/stdbool-tests: New file.
70326         * tests/test-stdbool.c: New file.
70327
70328         * modules/netinet_in-tests: New file.
70329         * tests/test-netinet_in.c: New file.
70330
70331         * modules/inttypes-tests: New file.
70332         * tests/test-inttypes.c: New file.
70333
70334         * modules/fcntl-tests: New file.
70335         * tests/test-fcntl.c: New file.
70336
70337         * modules/byteswap-tests: New file.
70338         * tests/test-byteswap.c: New file.
70339
70340         * modules/arpa_inet-tests: New file.
70341         * tests/test-arpa_inet.c: New file.
70342
70343 2007-02-17  Bruno Haible  <bruno@clisp.org>
70344
70345         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
70346         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
70347         if the corresponding module is not enabled. Emit link warnings if
70348         the function is used nevertheless.
70349         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
70350         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
70351         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
70352         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
70353         * modules/inttypes (Depends-on): Add link-warning.
70354         (Makefile.am): Copy the contents of build-aux/link-warning.h into
70355         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
70356         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
70357         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
70358         * modules/imaxdiv (configure.ac): Likewise.
70359         * modules/strtoimax (configure.ac): Likewise.
70360         * modules/strtoumax (configure.ac): Likewise.
70361
70362 2007-02-17  Bruno Haible  <bruno@clisp.org>
70363
70364         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
70365         gl_STRING_MODULE_INDICATOR_DEFAULTS.
70366         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
70367         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
70368
70369 2007-02-17  Bruno Haible  <bruno@clisp.org>
70370
70371         * modules/link-warning: New file.
70372         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
70373         * lib/string_.h (GL_LINK_WARNING): Remove definition.
70374         * modules/string (Depends-on): Add link-warning.
70375         (Makefile.am): Copy the contents of build-aux/link-warning.h into
70376         string.h.
70377         * MODULES.html.sh (Support for building libraries and executables): Add
70378         link-warning.
70379
70380 2007-02-17  Bruno Haible  <bruno@clisp.org>
70381
70382         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
70383         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
70384         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
70385         long lines.
70386
70387 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
70388             Bruno Haible  <bruno@clisp.org>
70389
70390         * modules/tmpfile: New file.
70391         * lib/tmpfile.c: New file.
70392         * m4/tmpfile.m4: New file.
70393         * MODULES.html.sh (func_all_modules): New section "Input/output".
70394
70395 2007-02-15  Bruno Haible  <bruno@clisp.org>
70396
70397         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
70398         (supports_delete_on_close): New function.
70399         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
70400
70401 2007-02-14  Bruno Haible  <bruno@clisp.org>
70402
70403         * modules/mbspcasecmp-tests: New file.
70404         * tests/test-mbspcasecmp.sh: New file.
70405         * tests/test-mbspcasecmp.c: New file.
70406
70407         New module mbspcasecmp.
70408         * modules/mbspcasecmp: New file.
70409         * lib/mbspcasecmp.c: New file.
70410         * lib/string_.h (strncasecmp): Change warning message.
70411         (mbspcasecmp): New declaration.
70412         * m4/mbspcasecmp.m4: New file.
70413         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70414         GNULIB_MBSPCASECMP.
70415         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
70416         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
70417
70418 2007-02-14  Bruno Haible  <bruno@clisp.org>
70419
70420         * modules/mbsncasecmp-tests: New file.
70421         * tests/test-mbsncasecmp.sh: New file.
70422         * tests/test-mbsncasecmp.c: New file.
70423
70424         New module mbsncasecmp.
70425         * modules/mbsncasecmp: New file.
70426         * lib/mbsncasecmp.c: New file.
70427         * lib/string_.h (mbsncasecmp): New declaration.
70428         * m4/mbsncasecmp.m4: New file.
70429         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70430         GNULIB_MBSNCASECMP.
70431         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
70432         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
70433
70434 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
70435
70436         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
70437         Verify that it doesn't overlap with our flags.
70438         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
70439         do not have the desired effect in multibyte locales; instead, use
70440         mbscasecmp.
70441         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
70442         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
70443         we don't require GNU fnmatch ourselves (if our users require it, they
70444         should do so explicitly).
70445
70446         Fix regex code so it doesn't rely on strcasecmp.
70447         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
70448         Otherwise, include gnulib's langinfo.h.
70449         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
70450         undesirable behavior in non-C locales.  Instead, rely on localecharset.
70451         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
70452         * modules/regex (FILES): Remove m4/codeset.m4.
70453         (Depends-on): Add localcharset.  Remove strcase.
70454
70455 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70456
70457         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
70458         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
70459
70460 2007-02-13  Bruno Haible  <bruno@clisp.org>
70461
70462         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
70463         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70464
70465 2007-02-12  Bruno Haible  <bruno@clisp.org>
70466
70467         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70468         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
70469         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
70470         time warning rather than a link error.
70471
70472 2007-02-12  Bruno Haible  <bruno@clisp.org>
70473
70474         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
70475         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
70476         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70477
70478 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
70479
70480         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
70481         args, not 2.
70482
70483 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
70484
70485         New module 'time', so that apps can include <time.h> as per
70486         POSIX and GNU instead of separate include files like time_r.h
70487         and timegm.h.  This implementation tries out a simpler approach
70488         for replacing decls in standard include files (as compared to
70489         the string module), somewhat as an experiment.
70490
70491         * config/srclist.txt: Comment out mktime.c for now.
70492         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
70493         since it doesn't apply any more.  Use generic wording instead.
70494         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
70495         'time'.
70496         * lib/time_.h, m4/time_h.m4, modules/time: New files.
70497         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
70498         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
70499         Don't include <sys/types.h>; no longer needed since we assume C89.
70500         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
70501         * lib/strftime.c: Likewise.
70502         * lib/time_r.c: Likewise.
70503         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
70504         * lib/nanosleep.c: Include <time.h> first, to check interface.
70505         * lib/strptime.c: Likewise.
70506         * lib/time_r.c: Likewise.
70507         * lib/timegm.c: Likewise.
70508         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
70509         needed.
70510         * lib/timegm.c: Don't include timegm.h; no longer needed.
70511         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
70512         time.h now handles any problems in that area.
70513         (struct timespec, nanosleep): Remove; time.h now arranges for these.
70514         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
70515         that time.h defines struct timespec.
70516         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
70517         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
70518         handles that.
70519         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
70520         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
70521         needed.  Set REPLACE_LOCALTIME.
70522         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
70523         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
70524         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
70525         nanosleep; time_h.m4 now does that.  Don't require
70526         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
70527         module handles this now.
70528         * modules/getdate (Depends-on): Remove timespec.  Add time.
70529         * modules/nanosleep (Depends-on): Likewise.
70530         * modules/stat-time (Depends-on): Likewise.
70531         * modules/nanosleep (Include): Include time.h, not timespec.h.
70532         * modules/strptime (Files): Remove lib/strptime.h.
70533         (Depends-on): Add extensions, time.
70534         (Include): Include time.h, not strptime.h.
70535         * modules/time_r (Files): Remove lib/time_r.h.
70536         (Depends-on): Add time.
70537         (Include): Include time.h, not time_r.h.
70538         * modules/timegm: Likewise.
70539         * modules/timespec (Description): Now does timespec-related decls
70540         of our own, instead of struct timespec itself.
70541         (Depends-on): Add time; remove extensions.
70542         (Maintainer): Add self.
70543         * modules/utimecmp (Depends-on): Add time; remove timespec.
70544         * modules/utimens (Depends-on): Likewise.
70545         * modules/xnanosleep (Depends-on): Likewise.
70546
70547 2007-02-11  Bruno Haible  <bruno@clisp.org>
70548
70549         * lib/c-strstr.c: Include allocsa.h.
70550         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70551         * lib/c-strcasestr.c: Include allocsa.h.
70552         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70553         * lib/strcasestr.c: Include allocsa.h.
70554         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70555         * lib/mbsstr.c: Include allocsa.h.
70556         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
70557         allocsa/freesa instead of malloc/free.
70558         * lib/mbscasestr.c: Include allocsa.h.
70559         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
70560         allocsa/freesa instead of malloc/free.
70561         * modules/c-strstr (Depends-on): Add allocsa.
70562         * modules/c-strcasestr (Depends-on): Likewise.
70563         * modules/strcasestr (Depends-on): Likewise.
70564         * modules/mbsstr (Depends-on): Likewise.
70565         * modules/mbscasestr (Depends-on): Likewise.
70566
70567 2007-02-11  Bruno Haible  <bruno@clisp.org>
70568
70569         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
70570
70571         * modules/mbsspn-tests: New file.
70572         * tests/test-mbsspn.sh: New file.
70573         * tests/test-mbsspn.c: New file.
70574
70575 2007-02-11  Bruno Haible  <bruno@clisp.org>
70576
70577         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
70578
70579         * modules/mbspbrk-tests: New file.
70580         * tests/test-mbspbrk.sh: New file.
70581         * tests/test-mbspbrk.c: New file.
70582
70583 2007-02-11  Bruno Haible  <bruno@clisp.org>
70584
70585         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
70586         unneeded cast.
70587
70588         * modules/mbscspn-tests: New file.
70589         * tests/test-mbscspn.sh: New file.
70590         * tests/test-mbscspn.c: New file.
70591
70592 2007-02-11  Bruno Haible  <bruno@clisp.org>
70593
70594         * modules/mbscasecmp-tests: New file.
70595         * tests/test-mbscasecmp.sh: New file.
70596         * tests/test-mbscasecmp.c: New file.
70597
70598 2007-02-11  Bruno Haible  <bruno@clisp.org>
70599
70600         Ensure O(n) worst-case complexity of mbscasestr.
70601         * lib/mbscasestr.c: Include stdbool.h.
70602         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
70603         functions.
70604         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
70605         the bookkeeping indicates that it's worth it.
70606         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
70607
70608         * modules/mbscasestr-tests: New file.
70609         * tests/test-mbscasestr1.c: New file.
70610         * tests/test-mbscasestr2.sh: New file.
70611         * tests/test-mbscasestr2.c: New file.
70612         * tests/test-mbscasestr3.sh: New file.
70613         * tests/test-mbscasestr3.c: New file.
70614         * tests/test-mbscasestr4.sh: New file.
70615         * tests/test-mbscasestr4.c: New file.
70616         * m4/locale-tr.m4: New file.
70617
70618 2007-02-11  Bruno Haible  <bruno@clisp.org>
70619
70620         Ensure O(n) worst-case complexity of mbsstr.
70621         * lib/mbsstr.c: Include stdbool.h.
70622         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
70623         functions.
70624         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
70625         bookkeeping indicates that it's worth it.
70626         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
70627
70628         * modules/mbsstr-tests: New file.
70629         * tests/test-mbsstr1.c: New file.
70630         * tests/test-mbsstr2.sh: New file.
70631         * tests/test-mbsstr2.c: New file.
70632         * tests/test-mbsstr3.sh: New file.
70633         * tests/test-mbsstr3.c: New file.
70634         * m4/locale-fr.m4: New file.
70635
70636 2007-02-11  Bruno Haible  <bruno@clisp.org>
70637
70638         * lib/mbsrchr.c (mbsrchr): Fix bug.
70639
70640         * modules/mbsrchr-tests: New file.
70641         * tests/test-mbsrchr.sh: New file.
70642         * tests/test-mbsrchr.c: New file.
70643
70644 2007-02-11  Bruno Haible  <bruno@clisp.org>
70645
70646         * lib/mbschr.c (mbschr): Fix bug.
70647
70648         * modules/mbschr-tests: New file.
70649         * tests/test-mbschr.sh: New file.
70650         * tests/test-mbschr.c: New file.
70651         * m4/locale-zh.m4: New file.
70652
70653 2007-02-11  Bruno Haible  <bruno@clisp.org>
70654
70655         Support for copying multibyte string iterators.
70656         * lib/mbiter.h: Include <string.h>.
70657         (mbiter_multi_copy): New function.
70658         (mbi_copy): New macro.
70659         * lib/mbuiter.h: Include <string.h>.
70660         (mbuiter_multi_copy): New function.
70661         (mbui_copy): New macro.
70662
70663 2007-02-11  Bruno Haible  <bruno@clisp.org>
70664
70665         New module mbslen.
70666         * modules/mbslen: New file.
70667         * lib/mbslen.c: New file.
70668         * lib/string_.h (mbslen): New declaration.
70669         * m4/mbslen.m4: New file.
70670         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70671         GNULIB_MBSLEN.
70672         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
70673         * MODULES.html.sh (Internationalization functions): Add mbslen.
70674
70675 2007-02-11  Bruno Haible  <bruno@clisp.org>
70676
70677         Ensure O(n) worst-case complexity of strcasestr substitute.
70678         * lib/strcasestr.c: Include stdbool.h.
70679         (knuth_morris_pratt): New function.
70680         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70681         bookkeeping indicates that it's worth it.
70682         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
70683
70684         * modules/strcasestr-tests: New file.
70685         * tests/test-strcasestr.c: New file.
70686
70687 2007-02-11  Bruno Haible  <bruno@clisp.org>
70688
70689         Ensure O(n) worst-case complexity of c_strcasestr.
70690         * lib/c-strcasestr.c: Include stdbool.h, string.h.
70691         (knuth_morris_pratt): New function.
70692         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
70693         the bookkeeping indicates that it's worth it.
70694         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
70695
70696         * modules/c-strcasestr-tests: New file.
70697         * tests/test-c-strcasestr.c: New file.
70698
70699 2007-02-11  Bruno Haible  <bruno@clisp.org>
70700
70701         Ensure O(n) worst-case complexity of c_strstr.
70702         * lib/c-strstr.c: Include stdbool.h, string.h.
70703         (knuth_morris_pratt): New function.
70704         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70705         bookkeeping indicates that it's worth it.
70706         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
70707
70708         * lib/c-strstr.c: Complete rewrite for maintainability.
70709
70710         * modules/c-strstr-tests: New file.
70711         * tests/test-c-strstr.c: New file.
70712
70713 2007-02-11  Bruno Haible  <bruno@clisp.org>
70714
70715         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
70716         5.2.1 and earlier, whereby \055 was treated just like the range
70717         delimiter '-'.
70718         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
70719
70720 2007-02-08  Bruno Haible  <bruno@clisp.org>
70721
70722         * modules/regex (Depends-on): Add stdbool.
70723         Reported by Dalibor Topic <robilad@kaffe.org>.
70724
70725 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
70726
70727         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
70728         Prefer returning from main to exiting from it.
70729         Remove unnecessary parens after sizeof.
70730
70731 2007-02-05  Bruno Haible  <bruno@clisp.org>
70732
70733         New module mbssep.
70734         * modules/mbssep: New file.
70735         * lib/mbssep.c: New file.
70736         * lib/string_.h (strsep): Add a conditional link warning.
70737         (mbssep): New declaration.
70738         * m4/mbssep.m4: New file.
70739         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70740         GNULIB_MBSSEP.
70741         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
70742         * MODULES.html.sh (Internationalization functions): Add mbssep.
70743
70744 2007-02-05  Bruno Haible  <bruno@clisp.org>
70745
70746         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
70747         Optimize search in case of 1 delimiter.
70748
70749 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70750
70751         * lib/acl.h: Include sys/types.h before sys/acl.h.
70752
70753 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70754
70755         Merge upstream fix for glibc bugzilla #3957:
70756
70757         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
70758
70759         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
70760         bit for RE_HAT_LISTS_NOT_NEWLINE.
70761         (build_charclass_op): Remove bogus comment.
70762
70763 2007-02-05  Simon Josefsson  <simon@josefsson.org>
70764
70765         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
70766
70767 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70768
70769         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
70770         * lib/memmem.c [!defined _LIBC]: Include config.h.
70771
70772 2007-02-04  Bruno Haible  <bruno@clisp.org>
70773
70774         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
70775         warning message.
70776
70777 2007-02-04  Bruno Haible  <bruno@clisp.org>
70778
70779         New module mbstok_r.
70780         * modules/mbstok_r: New file.
70781         * lib/mbstok_r.c: New file.
70782         * lib/string_.h (strtok_r): Change argument names to match the
70783         comments. Add a conditional link warning.
70784         (mbstok_r): New declaration.
70785         * m4/mbstok_r.m4: New file.
70786         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70787         GNULIB_MBSTOK_R.
70788         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
70789         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
70790
70791 2007-02-04  Bruno Haible  <bruno@clisp.org>
70792
70793         New module mbsspn.
70794         * modules/mbsspn: New file.
70795         * lib/mbsspn.c: New file.
70796         * lib/string_.h (strspn): Add a conditional link warning.
70797         (mbsspn): New declaration.
70798         * m4/mbsspn.m4: New file.
70799         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70800         GNULIB_MBSSPN.
70801         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
70802         * MODULES.html.sh (Internationalization functions): Add mbsspn.
70803
70804 2007-02-04  Bruno Haible  <bruno@clisp.org>
70805
70806         New module mbspbrk.
70807         * modules/mbspbrk: New file.
70808         * lib/mbspbrk.c: New file.
70809         * lib/string_.h (strpbrk): Add a conditional link warning.
70810         (mbspbrk): New declaration.
70811         * m4/mbspbrk.m4: New file.
70812         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70813         GNULIB_MBSPBRK.
70814         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
70815         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
70816
70817 2007-02-04  Bruno Haible  <bruno@clisp.org>
70818
70819         New module mbscspn.
70820         * modules/mbscspn: New file.
70821         * lib/mbscspn.c: New file.
70822         * lib/string_.h (strcspn): Add a conditional link warning.
70823         (mbscspn): New declaration.
70824         * m4/mbscspn.m4: New file.
70825         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70826         GNULIB_MBSCSPN.
70827         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
70828         * MODULES.html.sh (Internationalization functions): Add mbscspn.
70829
70830 2007-02-04  Bruno Haible  <bruno@clisp.org>
70831
70832         New module mbscasestr, reduced goal of strcasestr.
70833         * modules/mbscasestr: New file.
70834         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
70835         (mbscasestr): Renamed from strcasestr.
70836         * lib/strcasestr.c: Don't include mbuiter.h.
70837         (strcasestr): Remove support for multibyte locales.
70838         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
70839         Change the conditional link warning.
70840         (mbscasestr): New declaration.
70841         * m4/mbscasestr.m4: New file.
70842         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
70843         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
70844         REPLACE_STRCASESTR.
70845         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
70846         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70847         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70848         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
70849         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
70850         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70851         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
70852         (Depends-on): Remove mbuiter.
70853         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
70854
70855 2007-02-04  Bruno Haible  <bruno@clisp.org>
70856
70857         Simplify handling of strncasecmp.
70858         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
70859         the conditional link warning.
70860         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70861         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
70862         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
70863         * modules/strcase (configure.ac): Don't invoke
70864         gl_STRING_MODULE_INDICATOR.
70865         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
70866
70867 2007-02-04  Bruno Haible  <bruno@clisp.org>
70868
70869         New module mbscasecmp, reduced goal of strcasecmp.
70870         * modules/mbscasecmp: New file.
70871         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
70872         (mbscasecmp): Renamed from strcasecmp.
70873         * lib/strcasecmp.c: Don't include mbuiter.h.
70874         (strcasecmp): Remove support for multibyte locales.
70875         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
70876         Change the conditional link warning.
70877         (mbscasecmp): New declaration.
70878         * m4/mbscasecmp.m4: New file.
70879         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
70880         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
70881         REPLACE_STRCASECMP.
70882         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
70883         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70884         GNULIB_MBSCASECMP.
70885         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
70886         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
70887         * modules/strcase (Files): Remove m4/mbrtowc.m4.
70888         (Depends-on): Remove mbuiter.
70889         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
70890
70891 2007-02-04  Bruno Haible  <bruno@clisp.org>
70892
70893         New module mbsstr. Remove module strstr.
70894         * modules/mbsstr: New file.
70895         * modules/strstr: Remove file.
70896         * lib/mbsstr.c: Renamed from lib/strstr.c.
70897         (mbsstr): Renamed from strstr.
70898         * lib/string_.h (strstr): Remove declaration. Change the conditional
70899         link warning.
70900         (mbsstr): New declaration.
70901         * m4/mbsstr.m4: New file.
70902         * m4/strstr.m4: Remove file.
70903         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
70904         REPLACE_STRSTR.
70905         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
70906         Don't initialize GNULIB_STRSTR.
70907         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
70908         substitute GNULIB_STRSTR and REPLACE_STRSTR.
70909         * MODULES.html.sh (Internationalization functions): Add mbsstr.
70910         (Support for systems lacking ANSI C 89): Remove strstr.
70911
70912 2007-02-04  Bruno Haible  <bruno@clisp.org>
70913
70914         New module mbsrchr.
70915         * modules/mbsrchr: New file.
70916         * lib/mbsrchr.c: New file.
70917         * lib/string_.h (strrchr): Add a conditional link warning.
70918         (mbsrchr): New declaration.
70919         * m4/mbsrchr.m4: New file.
70920         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70921         GNULIB_MBSRCHR.
70922         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
70923         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
70924
70925 2007-02-04  Bruno Haible  <bruno@clisp.org>
70926
70927         New module mbschr.
70928         * modules/mbschr: New file.
70929         * lib/mbschr.c: New file.
70930         * lib/string_.h (strchr): Add a conditional link warning.
70931         (mbschr): New declaration.
70932         * m4/mbschr.m4: New file.
70933         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70934         GNULIB_MBSCHR.
70935         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
70936         * MODULES.html.sh (Internationalization functions): Add mbschr.
70937
70938 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70939
70940         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
70941
70942         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
70943
70944 2007-02-04  Bruno Haible  <bruno@clisp.org>
70945
70946         New module description section 'configure.ac-early'.
70947         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
70948         (func_get_autoconf_early_snippet): New function.
70949         (func_import, func_create_testdir): Use it. Remove special cases for
70950         modules 'extensions' and 'lock'.
70951         * modules/extensions (configure.ac-early): Require
70952         gl_USE_SYSTEM_EXTENSIONS.
70953         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
70954
70955 2007-02-04  Bruno Haible  <bruno@clisp.org>
70956
70957         Make use of gcj-4.3's -fsource and -ftarget option.
70958         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
70959         and if so try the options -fsource and -ftarget.
70960         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
70961         source_version, ftarget_option, target_version arguments.
70962         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
70963         (is_envjavac_oldgcj_14_14_usable): Renamed from
70964         is_envjavac_gcj_14_14_usable.
70965         (is_envjavac_oldgcj_14_13_usable): Renamed from
70966         is_envjavac_gcj_14_13_usable.
70967         (is_gcj_present): Update.
70968         (is_gcj_43, is_gcj43_usable): New functions.
70969         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
70970         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
70971         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
70972         try the options -fsource and -ftarget.
70973
70974 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70975
70976         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
70977         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
70978         larger value.
70979
70980 2007-02-03  Jim Meyering  <jim@meyering.net>
70981
70982         Give tools a better chance to allocate space for very large buffers.
70983         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
70984
70985         Make pwd and readlink work also when run with an unreadable parent dir
70986         on systems with openat support.
70987         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
70988         provided getcwd function, even when we have openat support.
70989         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
70990
70991 2007-02-02  Bruno Haible  <bruno@clisp.org>
70992
70993         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70994         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
70995         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
70996         portability problems if one of these functions is only used on specific
70997         platforms.
70998         Reported by Paul Eggert.
70999
71000 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
71001
71002         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
71003         is causing more trouble than it's curing.
71004         * lib/regex_internal.h (__mempcpy): Remove.
71005         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
71006         (and make the code a tad smaller to boot).
71007         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
71008
71009 2007-02-02  Jim Meyering  <jim@meyering.net>
71010
71011         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
71012         section, not in the Makefile.am: one.
71013
71014 2007-02-02  Eric Blake  <ebb9@byu.net>
71015
71016         * lib/strchrnul.c: Always include config.h first.
71017
71018         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
71019         gnulib strstr is not necessary here.
71020
71021 2007-02-02  Simon Josefsson  <simon@josefsson.org>
71022
71023         * m4/socklen.m4: Fix typo.
71024
71025 2007-02-02  Eric Blake  <ebb9@byu.net>
71026
71027         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
71028         * modules/netinet_in (Makefile.am): Likewise.
71029
71030 2007-02-01  Bruno Haible  <bruno@clisp.org>
71031
71032         * lib/string_.h (GL_LINK_WARNING): New macro.
71033         (strcasecmp, strstr, strcasestr): If provided by the system,
71034         conditionally define as a macro that leads to a warning instead of to
71035         an error.
71036         (strncasecmp): Conditionally define as a macro that leads to a warning.
71037
71038 2007-02-01  Karl Berry  <karl@gnu.org>
71039
71040         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
71041
71042 2007-02-01  Bruno Haible  <bruno@clisp.org>
71043
71044         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
71045         renamings.
71046
71047 2007-02-01  Eric Blake  <ebb9@byu.net>
71048
71049         * modules/regex (Depends-on): Revert dependence on mempcpy.
71050         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
71051         module's definition of mempcpy.
71052         Reported by Paul Eggert.
71053
71054 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
71055
71056         * lib/string_.h: If the gnulib module XYZ is not present, undefine
71057         the symbol XYZ before redefining it.  This fixes a problem with
71058         programs that don't use XYZ, when compiled on systems that define
71059         XYZ to something else.
71060
71061 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
71062
71063         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
71064         occurs when "mkdir -m foo" creates a setgid directory that is (1)
71065         writeable to group or other and (2) is intended to have a special
71066         mode bit that is set or cleared.  In such a case, the directory
71067         should be neither group- nor other-writeable until the special
71068         mode bits are right.
71069
71070 2007-01-31  Eric Blake  <ebb9@byu.net>
71071
71072         * modules/mountlist (Depends-on): Add strstr.
71073
71074         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
71075         bug.
71076         * modules/string (Makefile.am): Remove redundant replacement.
71077         * modules/regex (Depends-on): Add mempcpy.
71078
71079 2007-01-31  Bruno Haible  <bruno@clisp.org>
71080
71081         New module description field 'Link'.
71082         * gnulib-tool (func_usage): Document --extract-link-directive.
71083         (sed_extract_prog): Recognize 'Link' directive.
71084         (func_get_link_directive): New function.
71085         (func_import): Show summary of link directives.
71086         Handle --extract-link-directive option.
71087         * modules/acl (Link): New section.
71088         * modules/clock-time (Link): New section.
71089         * modules/euidaccess (Link): New section.
71090         * modules/gettext (Link): New section.
71091         * modules/iconv (Link): New section.
71092         * modules/lock (Link): New section.
71093         * modules/nanosleep (Link): New section.
71094         * modules/readline (Link): New section.
71095
71096 2007-01-27  Bruno Haible  <bruno@clisp.org>
71097
71098         Enforce the use of gnulib modules for unportable <string.h> functions.
71099         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
71100         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
71101         (gl_HEADER_STRING_H_BODY): Require it.
71102         * lib/string_.h: If the gnulib module XYZ is not present, redefine
71103         the symbol XYZ to one that gives a link error.
71104         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
71105         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
71106         * modules/mempcpy (configure.ac): Likewise.
71107         * modules/memrchr (configure.ac): Likewise.
71108         * modules/stpcpy (configure.ac): Likewise.
71109         * modules/stpncpy (configure.ac): Likewise.
71110         * modules/strcase (configure.ac): Likewise.
71111         * modules/strcasestr (configure.ac): Likewise.
71112         * modules/strchrnul (configure.ac): Likewise.
71113         * modules/strdup (configure.ac): Likewise.
71114         * modules/strndup (configure.ac): Likewise.
71115         * modules/strnlen (configure.ac): Likewise.
71116         * modules/strpbrk (configure.ac): Likewise.
71117         * modules/strsep (configure.ac): Likewise.
71118         * modules/strstr (configure.ac): Likewise.
71119         * modules/strtok_r (configure.ac): Likewise.
71120
71121 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
71122
71123         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
71124
71125 2007-01-30  Jim Meyering  <jim@meyering.net>
71126
71127         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
71128
71129 2007-01-29  Bruno Haible  <bruno@clisp.org>
71130
71131         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
71132         * lib/execute.c: Likewise.
71133         * lib/pipe.c: Likewise.
71134         * lib/printf-args.h: Likewise.
71135         * lib/printf-args.c: Likewise.
71136         * lib/printf-parse.c: Likewise.
71137         * lib/vasnprintf.c: Likewise.
71138
71139 2007-01-29  Eric Blake  <ebb9@byu.net>
71140
71141         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
71142         declaration.
71143
71144 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
71145
71146         * lib/strptime.h (strptime): Use 'restrict' for args where
71147         POSIX requires this.
71148         * lib/strptime.c (strptime): Likewise.
71149         Change license notice from LGPL to GPL, since gnulib-tool will
71150         change this as needed.
71151         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
71152         defined.
71153         Include "strptime.h" first, to check interface.
71154         Do not #undef _LIBC and _NL_CURRENT.
71155         Do not include <stdlib.h>; no longer needed.
71156         Include "time_r.h" and declare ptime_locale_status
71157         only if _LIBC is not defined.
71158         (__P): Remove unused macro.
71159         (match_string): Bring back glibc version, but use it only if _LIBC
71160         is defined.
71161         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
71162         Remove unnecessary assertion and abort() call.
71163         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
71164         * m4/strptime.m4: Fix serial number comment.
71165         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
71166         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
71167         (Depends-on): Add time_r.
71168
71169 2007-01-29  Bruno Haible  <bruno@clisp.org>
71170
71171         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71172         strptime.
71173         * modules/strptime (Depends-on): Add stdbool.
71174         * lib/strptime.h: Include <time.h> always. Add comments.
71175
71176 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71177
71178         * modules/strptime: New file.
71179         * lib/strptime.h: New file.
71180         * lib/strptime.c: New file.
71181         * m4/strptime.m4: New file.
71182
71183 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71184
71185         * MODULES.html.sh: New module mpsort.
71186         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
71187
71188         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
71189         a circularity problem with HP-UX ia64 reported by Bob Proulx in
71190         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
71191         All uses changed.
71192         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
71193         All uses changed.
71194         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
71195         to _Restrict_.
71196         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
71197         the parameter matches the prototype.
71198
71199 2007-01-28  Jim Meyering  <jim@meyering.net>
71200
71201         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
71202         sys/time.h here, reverting that part of the previous patch:
71203         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
71204
71205 2007-01-28  Bruno Haible  <bruno@clisp.org>
71206
71207         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
71208         value of $(SYS_TIME_H).
71209         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
71210         remove it conditionally, too. [added by Jim Meyering]
71211         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
71212         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
71213         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
71214         GETTIMEOFDAY_REPLACEMENT to 1.
71215
71216 2007-01-28  Bruno Haible  <bruno@clisp.org>
71217
71218         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
71219         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
71220         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
71221         Set UNISTD_H instead of UNISTD_H2.
71222         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
71223
71224 2007-01-28  Bruno Haible  <bruno@clisp.org>
71225
71226         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
71227         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
71228
71229 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71230
71231         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
71232         (func_create_testdir): Ensure C locale for `grep' and `tr'
71233         character ranges.
71234         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
71235         ACLOCAL_AMFLAGS parsing state machine.
71236
71237 2007-01-27  Bruno Haible  <bruno@clisp.org>
71238
71239         * modules/unistr/base: Update.
71240
71241 2007-01-27  Bruno Haible  <bruno@clisp.org>
71242
71243         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
71244         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
71245         * modules/unistr/u32-mbtouc-unsafe: Renamed from
71246         modules/unistr/u32-mbtouc.
71247         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
71248         * lib/unistr.h: Update.
71249         * lib/linebreak.c: Update.
71250         * modules/unistr/u32-mbtouc: Renamed from
71251         modules/unistr/u32-mbtouc-safe.
71252         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
71253         * lib/unistr.h: Update.
71254         * lib/unistr/u32-to-u8.c: Update.
71255         * lib/unistr/u32-to-u16.c: Update.
71256
71257 2007-01-27  Bruno Haible  <bruno@clisp.org>
71258
71259         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
71260         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
71261         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
71262         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
71263         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
71264         * modules/unistr/u16-mbtouc-unsafe: Renamed from
71265         modules/unistr/u16-mbtouc.
71266         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
71267         * lib/unistr.h: Update.
71268         * lib/linebreak.c: Update.
71269         * modules/linebreak: Update.
71270         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
71271         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
71272         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
71273         * modules/unistr/u16-mbtouc: Renamed from
71274         modules/unistr/u16-mbtouc-safe.
71275         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
71276         * lib/unistr.h: Update.
71277         * lib/unistr/u16-to-u8.c: Update.
71278         * modules/unistr/u16-to-u8: Update.
71279         * lib/unistr/u16-to-u32.c: Update.
71280         * modules/unistr/u16-to-u32: Update.
71281
71282 2007-01-27  Bruno Haible  <bruno@clisp.org>
71283
71284         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
71285         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
71286         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
71287         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
71288         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
71289         * modules/unistr/u8-mbtouc-unsafe: Renamed from
71290         modules/unistr/u8-mbtouc.
71291         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
71292         * lib/unistr.h: Update.
71293         * lib/striconveh.c: Update.
71294         * modules/striconveh: Update.
71295         * lib/linebreak.c: Update.
71296         * modules/linebreak: Update.
71297         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
71298         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
71299         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
71300         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
71301         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
71302         * lib/unistr.h: Update.
71303         * lib/striconveh.c: Update.
71304         * modules/striconveh: Update.
71305         * lib/unistr/u8-to-u16.c: Update.
71306         * modules/unistr/u8-to-u16: Update.
71307         * lib/unistr/u8-to-u32.c: Update.
71308         * modules/unistr/u8-to-u32: Update.
71309
71310 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71311
71312         Sync from Libtool.
71313         * lib/argz.c: Do not include strings.h nor memory.h, include
71314         string.h unconditionally.  Patch by Simon Josefsson.
71315
71316 2007-01-27  Bruno Haible  <bruno@clisp.org>
71317
71318         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
71319         from gl_HEADER_STRING_H_BODY.
71320         (gl_HEADER_STRING_H_BODY): Require it.
71321         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
71322         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
71323         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
71324         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
71325         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
71326         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
71327         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
71328         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
71329         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
71330         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
71331         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
71332         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
71333         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
71334         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
71335         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
71336
71337 2007-01-27  Bruno Haible  <bruno@clisp.org>
71338
71339         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
71340         check_PROGRAMS into noinst_PROGRAMS.
71341         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
71342         check_PROGRAMS in this case.
71343         (func_import): Set for_test to false.
71344         (func_create_testdir): Set for_test to true.
71345
71346 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71347             Bruno Haible  <bruno@clisp.org>
71348
71349         * modules/strcasestr (Files): Remove lib/strcasestr.h.
71350         (Depends-on): Add string.
71351         (Includes): Use <string.h> instead of strcasestr.h.
71352         * modules/string (Makefile.am): Also substitute the value of
71353         REPLACE_STRCASESTR.
71354         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
71355         assume strcasestr is declared in <string.h> not <strings.h>. Also
71356         set REPLACE_STRCASESTR.
71357         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
71358         REPLACE_STRCASESTR.
71359         * lib/strcasestr.h: Remove file.
71360         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
71361         * lib/string_.h (strcasestr): New declaration.
71362
71363 2007-01-27  Bruno Haible  <bruno@clisp.org>
71364
71365         * lib/string_.h: Use 'extern'.
71366
71367 2007-01-27  Jim Meyering  <jim@meyering.net>
71368
71369         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
71370         of set-but-not-used local, "q".
71371
71372         * lib/mempcpy.c: Include <config.h> before <string.h>.
71373         This fixes a compilation error on HP-UX, due to the system's
71374         "restrict"-using mempcpy prototype.
71375
71376 2007-01-26  Bruno Haible  <bruno@clisp.org>
71377
71378         Small optimization.
71379         * lib/javacomp.c: Include c-strstr.h.
71380          (is_envjavac_gcj): Use c_strstr instead of strstr.
71381         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
71382
71383 2007-01-26  Bruno Haible  <bruno@clisp.org>
71384
71385         * MODULES.html.sh (Unicode string functions): Add the new modules.
71386
71387         * modules/uniconv/u32-strconv-to-locale: New file.
71388         * lib/uniconv/u32-strconv-to-locale.c: New file.
71389
71390         * modules/uniconv/u16-strconv-to-locale: New file.
71391         * lib/uniconv/u16-strconv-to-locale.c: New file.
71392
71393         * modules/uniconv/u8-strconv-to-locale: New file.
71394         * lib/uniconv/u8-strconv-to-locale.c: New file.
71395
71396         * modules/uniconv/u32-strconv-from-locale: New file.
71397         * lib/uniconv/u32-strconv-from-locale.c: New file.
71398
71399         * modules/uniconv/u16-strconv-from-locale: New file.
71400         * lib/uniconv/u16-strconv-from-locale.c: New file.
71401
71402         * modules/uniconv/u8-strconv-from-locale: New file.
71403         * lib/uniconv/u8-strconv-from-locale.c: New file.
71404
71405         * modules/uniconv/u32-strconv-to-enc: New file.
71406         * lib/uniconv/u32-strconv-to-enc.c: New file.
71407         * modules/uniconv/u32-strconv-to-enc-tests: New file.
71408         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
71409
71410         * modules/uniconv/u16-strconv-to-enc: New file.
71411         * lib/uniconv/u16-strconv-to-enc.c: New file.
71412         * lib/uniconv/u-strconv-to-enc.h: New file.
71413         * modules/uniconv/u16-strconv-to-enc-tests: New file.
71414         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
71415
71416         * modules/uniconv/u8-strconv-to-enc: New file.
71417         * lib/uniconv/u8-strconv-to-enc.c: New file.
71418         * modules/uniconv/u8-strconv-to-enc-tests: New file.
71419         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
71420
71421         * modules/uniconv/u32-strconv-from-enc: New file.
71422         * lib/uniconv/u32-strconv-from-enc.c: New file.
71423         * modules/uniconv/u32-strconv-from-enc-tests: New file.
71424         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
71425
71426         * modules/uniconv/u16-strconv-from-enc: New file.
71427         * lib/uniconv/u16-strconv-from-enc.c: New file.
71428         * modules/uniconv/u16-strconv-from-enc-tests: New file.
71429         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
71430
71431         * modules/uniconv/u8-strconv-from-enc: New file.
71432         * lib/uniconv/u8-strconv-from-enc.c: New file.
71433         * lib/uniconv/u-strconv-from-enc.h: New file.
71434         * modules/uniconv/u8-strconv-from-enc-tests: New file.
71435         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
71436
71437         * modules/uniconv/u32-conv-from-enc: New file.
71438         * lib/uniconv/u32-conv-from-enc.c: New file.
71439         * modules/uniconv/u32-conv-from-enc-tests: New file.
71440         * tests/uniconv/test-u32-conv-from-enc.c: New file.
71441
71442         * modules/uniconv/u16-conv-from-enc: New file.
71443         * lib/uniconv/u16-conv-from-enc.c: New file.
71444         * lib/uniconv/u-conv-from-enc.h: New file.
71445         * modules/uniconv/u16-conv-from-enc-tests: New file.
71446         * tests/uniconv/test-u16-conv-from-enc.c: New file.
71447
71448         * modules/uniconv/u8-conv-from-enc: New file.
71449         * lib/uniconv/u8-conv-from-enc.c: New file.
71450         * modules/uniconv/u8-conv-from-enc-tests: New file.
71451         * tests/uniconv/test-u8-conv-from-enc.c: New file.
71452
71453         * modules/uniconv/base: New file.
71454         * lib/uniconv.h: New file.
71455
71456 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
71457
71458         * doc/gnulib-tool.texi (Initial import): Update to match current
71459         behavior with strdup module.
71460         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
71461         * lib/memmem.h: Remove; all uses removed.  This is now done
71462         by <string.h>.
71463         * lib/mempcpy.h: Likewise.
71464         * lib/memrchr.h: Likewise.
71465         * lib/stpcpy.h: Likewise.
71466         * lib/stpncpy.h: Likewise.
71467         * lib/strcase.h: Likewise.
71468         * lib/strchrnul.h: Likewise.
71469         * lib/strdup.h: Likewise.
71470         * lib/strndup.h: Likewise.
71471         * lib/strnlen.h: Likewise.
71472         * lib/strpbrk.h: Likewise.
71473         * lib/strsep.h: Likewise.
71474         * lib/strstr.h: Likewise.
71475         * lib/strtok_r.h: Likewise.
71476         * lib/string_.h: New file.
71477         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
71478         Rely on <string.h> instead.
71479         * lib/canon-host.c: Likewise.
71480         * lib/chdir-long.c: Likewise.
71481         * lib/concatpath.c: Likewise.
71482         * lib/exclude.c: Likewise.
71483         * lib/fchdir.c: Likewise.
71484         * lib/getaddrinfo.c: Likewise.
71485         * lib/getcwd.c: Likewise.
71486         * lib/getsubopt.c: Likewise.
71487         * lib/glob.c: Likewise.
71488         * lib/hard-locale.c: Likewise.
71489         * lib/iconvme.c: Likewise.
71490         * lib/javacomp.c: Likewise.
71491         * lib/mempcpy.c: Likewise.
71492         * lib/memrchr.c: Likewise.
71493         * lib/regex_internal.h: Likewise.
71494         * lib/stpncpy.c: Likewise.
71495         * lib/strcasecmp.c: Likewise.
71496         * lib/strchrnul.c: Likewise.
71497         * lib/strdup.c: Likewise.
71498         * lib/striconv.c: Likewise.
71499         * lib/striconveh.c: Likewise.
71500         * lib/striconveha.c: Likewise.
71501         * lib/strncasecmp.c: Likewise.
71502         * lib/strndup.c: Likewise.
71503         * lib/strnlen.c: Likewise.
71504         * lib/strsep.c: Likewise.
71505         * lib/strstr.c: Likewise.
71506         * lib/strtok_r.c: Likewise.
71507         * lib/userspec.c: Likewise.
71508         * lib/w32spawn.h: Likewise.
71509         * lib/xstrndup.c: Likewise.
71510         * lib/mountlist.c (strstr): Remove decl.
71511         * m4/string_h.m4: New file.
71512         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
71513         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
71514         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
71515         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
71516         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
71517         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
71518         Set REPLACE_STRCASECMP if necessary.
71519         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
71520         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
71521         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
71522         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
71523         HAVE_DECL_STRDUP if necessary.
71524         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
71525         since gl_FUNC_STRNDUP does that now.
71526         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
71527         Check for decl here...
71528         (gl_PREREQ_STRNLEN): ... not here.
71529         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
71530         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
71531         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
71532         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
71533         necessary.
71534         * modules/string: New file.
71535         * modules/memmem (Files): Remove special-purpose include file.
71536         (Depends-on): Add string.
71537         (Include): Include <string.h>, not the removed file.
71538         * modules/mempcpy: Likewise.
71539         * modules/memrchr: Likewise.
71540         * modules/stpcpy: Likewise.
71541         * modules/stpncpy: Likewise.
71542         * modules/strcase: Likewise.
71543         * modules/strchrnul: Likewise.
71544         * modules/strdup: Likewise.
71545         * modules/strndup: Likewise.
71546         * modules/strnlen: Likewise.
71547         * modules/strpbrk: Likewise.
71548         * modules/strsep: Likewise.
71549         * modules/strstr: Likewise.
71550         * modules/strtok_r: Likewise.
71551         * tests/test-dirname.c: Don't include "strdup.h", since
71552         <string.h> now suffices.
71553         * tests/test-memmem.c: Don't include "memmem.h", since
71554         <string.h> now suffices.
71555
71556 2007-01-25  Bruno Haible  <bruno@clisp.org>
71557
71558         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
71559         *resultp is 0.
71560
71561         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
71562         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
71563         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
71564         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
71565
71566         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
71567         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
71568         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
71569         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
71570         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
71571         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
71572
71573 2007-01-24  Bruno Haible  <bruno@clisp.org>
71574
71575         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
71576         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
71577         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
71578         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
71579         gl_FUNC_FTS_CORE.
71580         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
71581         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
71582         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71583         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
71584         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
71585         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
71586         gl_FUNC_FCHOWNAT.
71587         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
71588         gl_FUNC_STRFTIME.
71589         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
71590         Reported by Ralf Wildenhues.
71591
71592 2007-01-24  Bruno Haible  <bruno@clisp.org>
71593
71594         Drop AC_REQUIRE calls that are redundant with the module dependencies.
71595         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
71596         gl_GETADDRINFO.
71597         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
71598         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
71599         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
71600
71601 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
71602
71603         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
71604         Don't use 'exit'; just return from 'main'.
71605         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
71606
71607         * lib/fnmatch_.h: Readjust white space and comments to match
71608         glibc, to avoid spurious diffs.
71609
71610 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71611
71612         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
71613         2004-12-01 change by Jakub Jelinek, since this code won't compile
71614         if !LIBC.  Problem reported by Bob Proulx.
71615
71616 2007-01-23  Bruno Haible  <bruno@clisp.org>
71617
71618         * lib/striconveh.c: Include c-strcaseeq.h.
71619         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
71620         * modules/striconveh (Depends-on): Add c-strcaseeq.
71621
71622 2007-01-23  Bruno Haible  <bruno@clisp.org>
71623
71624         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
71625
71626         * modules/c-strcaseeq: New file.
71627         * lib/c-strcaseeq.h: New file.
71628
71629         * modules/streq: New file.
71630         * lib/streq.h: New file.
71631
71632 2007-01-23  Bruno Haible  <bruno@clisp.org>
71633
71634         * modules/striconveha-tests: New file.
71635         * tests/test-striconveha.c: New file.
71636
71637         * lib/striconveha.h: Include <stdbool.h>.
71638         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
71639         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
71640         (mem_iconveha_notranslit): Renamed from mem_iconveha.
71641         (mem_iconveha): New function.
71642         (str_iconveha_notranslit): Renamed from str_iconveha.
71643         (str_iconveha): New function.
71644         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
71645         c-strcase.
71646
71647 2007-01-23  Bruno Haible  <bruno@clisp.org>
71648
71649         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
71650         encodings without forgiving before trying any encoding with handler.
71651         (str_iconveha): Try all encodings without forgiving before trying any
71652         encoding with handler.
71653
71654 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71655
71656         Import the following changes from libc.
71657
71658         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71659
71660         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
71661
71662         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71663
71664         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
71665         normal_bracket label.
71666
71667         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
71668
71669         [BZ #361]
71670         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
71671         to normal_bracket after fetching the next character.
71672
71673 2007-01-22  Bruno Haible  <bruno@clisp.org>
71674
71675         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
71676         argument.
71677         * lib/striconveh.c (iconv_carefully_1): New function.
71678         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
71679         argument.
71680         (str_cd_iconveh): Update.
71681         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
71682         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
71683         * tests/test-striconveh.c (MAGIC): New macro.
71684         (new_offsets): New function.
71685         (main): Test call with and without offsets.
71686
71687 2007-01-22  Bruno Haible  <bruno@clisp.org>
71688
71689         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
71690         * modules/sys_select (Makefile.am): Likewise.
71691         * modules/sys_socket (Makefile.am): Likewise.
71692         * modules/sys_time (Makefile.am): Likewise.
71693
71694 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
71695
71696         * modules/gettimeofday (License): Change from GPL to LGPL, since
71697         gettimeofday is a library function.
71698
71699 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71700
71701         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
71702
71703 2007-01-21  Bruno Haible  <bruno@clisp.org>
71704
71705         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
71706
71707 2007-01-21  Bruno Haible  <bruno@clisp.org>
71708
71709         * modules/striconveha: New file.
71710         * lib/striconveha.h: New file.
71711         * lib/striconveha.c: New file.
71712         * MODULES.html.sh (Internationalization functions): Add striconveha.
71713         * lib/striconv.c (str_iconv): Optimize the case of an empty input
71714         string.
71715         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
71716
71717 2007-01-21  Bruno Haible  <bruno@clisp.org>
71718
71719         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
71720         * lib/striconveh.c (str_iconveh): Likewise.
71721
71722 2007-01-21  Bruno Haible  <bruno@clisp.org>
71723
71724         * lib/striconveh.h (mem_iconveh): New declaration.
71725         * lib/striconveh.c (mem_iconveh): New function.
71726         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
71727
71728 2007-01-21  Bruno Haible  <bruno@clisp.org>
71729
71730         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
71731
71732         * lib/striconveh.h (mem_cd_iconveh): Change specification.
71733         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
71734         original result buffer.
71735         (str_cd_iconveh): Update.
71736         * tests/test-striconveh.c (main): Update.
71737
71738         * lib/striconv.h (mem_cd_iconv): Change specification.
71739         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
71740         result buffer.
71741         (str_cd_iconv): Update.
71742         * tests/test-striconv.c (main): Update.
71743
71744 2007-01-21  Bruno Haible  <bruno@clisp.org>
71745
71746         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
71747
71748 2007-01-20  Jim Meyering  <jim@meyering.net>
71749
71750         * lib/userspec.c (parse_with_separator): If a user or group string
71751         starts with "+", skip the corresponding name-to-ID look-up, since
71752         such a look-up must fail: user and group names may not include "+".
71753
71754 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
71755
71756         * lib/poll.c: Include sys/time.h and time.h unconditionally,
71757         since we now assume the sys_time module.
71758         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
71759         check for sys/time.h; no longer needed.
71760         * modules/poll (Depends-on): Depend on sys_time.
71761
71762 2007-01-18  Bruno Haible  <bruno@clisp.org>
71763
71764         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
71765         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71766
71767         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
71768         gettimeofday.
71769
71770         * tests/test-gettimeofday.c: Include <time.h>.
71771         (dummy): Remove variable.
71772
71773         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
71774         gl_HEADER_SYS_TIME_H.
71775         (gl_HEADER_SYS_TIME_H): New macro.
71776
71777         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
71778         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71779         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
71780         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
71781         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71782         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
71783         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
71784         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71785         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
71786         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
71787         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71788
71789         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
71790         last change; it caused a compilation error when cross-compiling to
71791         Cygwin.
71792
71793 2007-01-18  Jim Meyering  <jim@meyering.net>
71794
71795         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
71796         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
71797         than the race-prone "test -d sys || mkdir sys".
71798         (configure.ac): Use AC_PROG_MKDIR_P.
71799         * modules/sys_select: Likewise.
71800         * modules/sys_socket: Likewise.
71801         * modules/sys_time: Likewise.
71802
71803 2007-01-18  Eric Blake  <ebb9@byu.net>
71804
71805         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
71806         replace gettimeofday.
71807         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
71808         name, to avoid infinite recursion.
71809
71810 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
71811
71812         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
71813         module sys_time.
71814         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
71815         assume timespec.h defines struct timeval.
71816         * lib/settime.c: Likewise.
71817         * lib/utimens.c: Likewise.
71818         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
71819         since we now assume the gettimeofday module.
71820         * lib/tempname.c (__gen_tempname): Likewise.
71821         * lib/gettimeofday.h: Remove.
71822         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
71823         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
71824         Include <time.h>, for 'time()'.
71825         (localtime_buffer_addr): Also use this workaround if
71826         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
71827         to simplify the uses.  All uses changed.
71828         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
71829         that #undef is inside {}, and 'const' follows type name consistently.
71830         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
71831         (gettimeofday): Do not use the maximum possible value for
71832         tv->tv_usec, since that might break usages other than ls.c.
71833         Instead, we'll leave ls.c alone.  This undoes today's patch
71834         by Bruno.  Add a compile-time warning for 1s-clock resolution;
71835         we've never observed the problem but might as well keep the
71836         canary.
71837         * lib/nanosleep.c: Include timespec.h first, for interface check.
71838         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
71839         now assume the sys_time module.
71840         * lib/tempname.c: Likewise.
71841         * lib/timespec.h: Likewise.
71842         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
71843         needed.
71844         * lib/strftime.c: Likewise.
71845         * lib/timespec.h: Likewise.
71846         * lib/posixtm.c: Include posixtm.h first, for interface check.
71847         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
71848         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
71849         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
71850         * lib/sys_time_.h: New file.
71851         * lib/timespec.h (struct timespec): Use long int, not long.
71852         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
71853         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
71854         Remove obsolescent call to AC_HEADER_TIME.
71855         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
71856         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71857         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71858         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
71859         Likewise.
71860         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
71861         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
71862         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
71863         into the sys_time module.  Check for gettimeofday just once.
71864         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
71865         for gettimeofday signature to just check the signature.  Merely
71866         compile it, since linking doesn't test signature.  Improve test for
71867         whether gettimeofday.o is actually needed.
71868         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
71869         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
71870         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
71871         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71872         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
71873         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
71874         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
71875         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
71876         than worrying about sys/time.h.
71877         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71878         Don't bother worrying about TIME_WITH_SYS_TIME.
71879         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
71880         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
71881         * m4/sys_time_h.m4: New file.
71882         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
71883         Don't include sys/time.h.  Return from main rather than exiting.
71884         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
71885         all uses changed.
71886         * modules/gethrxtime (Depends-on): Add sys_time.
71887         * modules/gettime (Depends-on): Likewise.
71888         * modules/gettimeofday (Depends-on): Likewise.
71889         * modules/nanosleep (Depends-on): Likewise.
71890         * modules/settime (Depends-on): Likewise.
71891         * modules/tempname (Depends-on): Likewise.
71892         * modules/utimens (Depends-on): Likewise.
71893         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
71894         (Include): Change back to <sys/time.h>.
71895         (Maintainer): Add self.
71896         * modules/sys_time: New file.
71897         * modules/tempname (Depends-on): Add gettimeofday.
71898         * tests/test-gettimeofday.c: Include <sys/time.h>
71899         rather than gettimeofday.h.
71900
71901 2007-01-17  Bruno Haible  <bruno@clisp.org>
71902
71903         * gnulib-tool (func_get_license): Revert last patch. Instead, let
71904         the license default to GPL.
71905         (func_create_testdir): Don't complain if a module is LGPL and its
71906         tests module depends on GPLed modules.
71907
71908 2007-01-17  Bruno Haible  <bruno@clisp.org>
71909
71910         * lib/gettimeofday.c (gettimeofday): Add code for the case
71911         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
71912         maximum possible value for tv->tv_usec, rather than the minimum one.
71913
71914 2005-10-08  Martin Lambers  <marlam@marlam.de>
71915 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
71916 2007-01-16  Bruno Haible  <bruno@clisp.org>
71917
71918         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
71919         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
71920         gl_FUNC_GETTIMEOFDAY.
71921         (Include): Add gettimeofday.h.
71922         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
71923         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
71924         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
71925         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
71926         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
71927         * lib/gettimeofday.h: New file.
71928         * lib/gettimeofday.c: Include <sys/timeb.h>.
71929         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
71930         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71931         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
71932         fall back on time().
71933
71934         * tests/test-gettimeofday.c: New file.
71935         * modules/gettimeofday-tests: New file.
71936
71937 2007-01-16  Eric Blake  <ebb9@byu.net>
71938
71939         * modules/fnmatch (Depends-on): Depend on wchar.
71940         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
71941         * m4/fnmatch.m4: Likewise.
71942         * modules/mbchar (Makefile.am): Assume <wchar.h>.
71943         * m4/mbchar.m4: Likewise.
71944         * modules/mbswidth (Depends-on): Depend on wchar.
71945         * lib/mbswidth.c: Assume <wchar.h>.
71946         * m4/mbswidth.m4: Likewise.
71947         * modules/quotearg (Depends-on): Depend on wchar.
71948         * lib/quotearg.c: Assume <wchar.h>.
71949         * m4/quotearg.m4: Likewise.
71950         * modules/regex (Depends-on): Depend on wchar.
71951         * lib/regex_internal.h: Assume <wchar.h>.
71952         * m4/regex.m4: Likewise.
71953         * modules/stdint (Depends-on): Depend on wchar.
71954         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
71955         * m4/stdint.m4: Likewise.
71956         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
71957         * modules/strftime (Depends-on): Depend on wchar.
71958         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
71959         * modules/strtol (Depends-on): Depend on wchar.
71960         * lib/strtol.c: Assume <wchar.h>.
71961         * modules/wcwidth (Depends-on): Depend on wchar.
71962         * lib/wcwidth.h: Assume <wchar.h>.
71963         * m4/wcwidth.m4: Likewise.
71964
71965 2007-01-16  Bruno Haible  <bruno@clisp.org>
71966
71967         * modules/csharpexec-script: New, created from...
71968         * modules/csharpexec: ... this.
71969
71970 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
71971
71972         * modules/javaexec-script: New, created from...
71973         * modules/javaexec: ... this.
71974
71975 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71976
71977         * modules/poll (Dependencies): Add sys_select.
71978
71979 2007-01-15  Jim Meyering  <jim@meyering.net>
71980
71981         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
71982         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
71983         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
71984         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
71985
71986 2007-01-15  Bruno Haible  <bruno@clisp.org>
71987
71988         * modules/striconveh: New file.
71989         * lib/striconveh.h: New file.
71990         * lib/striconveh.c: New file.
71991         * MODULES.html.sh (Internationalization functions): Add striconveh.
71992
71993         * modules/striconveh-tests: New file.
71994         * tests/test-striconveh.c: New file.
71995
71996 2007-01-15  Bruno Haible  <bruno@clisp.org>
71997
71998         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
71999         not from GNU libiconv or GNU libc.
72000
72001 2007-01-15  Bruno Haible  <bruno@clisp.org>
72002
72003         * doc/gnulib-intro.texi (Copyright): Explain the different license
72004         terms for module descriptions, autoconf macros, tests, documentation.
72005
72006 2007-01-14  Bruno Haible  <bruno@clisp.org>
72007
72008         * modules/striconv-tests: New file.
72009         * tests/test-striconv.c: New file.
72010
72011 2007-01-14  Bruno Haible  <bruno@clisp.org>
72012
72013         * modules/iconv-tests: New file.
72014         * tests/test-iconv.c: New file.
72015
72016 2007-01-14  Bruno Haible  <bruno@clisp.org>
72017
72018         * gnulib-tool (func_get_license): For test modules, use the license of
72019         the main module.
72020
72021 2007-01-14  Bruno Haible  <bruno@clisp.org>
72022
72023         * modules/iconv (Include): Clarify that <iconv.h> can only be included
72024         if iconv is found to exist.
72025
72026 2007-01-14  Bruno Haible  <bruno@clisp.org>
72027
72028         * modules/c-ctype-tests: New file.
72029         * tests/test-c-ctype.c: New file.
72030
72031 2007-01-14  Bruno Haible  <bruno@clisp.org>
72032
72033         * modules/binary-io-tests: New file.
72034         * tests/test-binary-io.sh: New file.
72035         * tests/test-binary-io.c: New file.
72036
72037 2007-01-14  Bruno Haible  <bruno@clisp.org>
72038
72039         * modules/array-oset-tests: New file.
72040         * tests/test-array_oset.c: New file.
72041
72042 2007-01-14  Bruno Haible  <bruno@clisp.org>
72043
72044         * modules/array-list-tests: New file.
72045         * tests/test-array_list.c: New file.
72046
72047 2007-01-14  Bruno Haible  <bruno@clisp.org>
72048
72049         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
72050         and make.
72051         Reported by Simon Josefsson in
72052         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
72053
72054 2007-01-14  Bruno Haible  <bruno@clisp.org>
72055
72056         * modules/allocsa-tests: New file.
72057         * tests/test-allocsa.c: New file.
72058
72059 2007-01-14  Bruno Haible  <bruno@clisp.org>
72060
72061         * modules/fchdir (Depends-on): Add absolute-header.
72062         * modules/unistd (Depends-on): Likewise.
72063
72064 2006-12-30  Bruno Haible  <bruno@clisp.org>
72065
72066         * modules/fchdir: New file.
72067         * modules/unistd (Files): Add lib/unistd_.h.
72068         (Makefile.am): Generate unistd.h from unistd_.h.
72069         * lib/fchdir.c: New file.
72070         * lib/dirent_.h: New file.
72071         * lib/unistd_.h: New file.
72072         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
72073         * m4/fchdir.m4: New file.
72074         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
72075         (gl_HEADER_UNISTD): Invoke it.
72076         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
72077         function.
72078         * lib/backupfile.c (opendir, closedir): Undefine.
72079         * lib/chown.c (open, close): Undefine.
72080         * lib/clean-temp.c (open, close): Undefine.
72081         * lib/copy-file.c (open, close): Undefine.
72082         * lib/execute.c (open, close): Undefine.
72083         * lib/fsusage.c (open, close): Undefine.
72084         * lib/gc-gnulib.c (open, close): Undefine.
72085         * lib/getcwd.c (opendir, closedir): Undefine.
72086         * lib/glob.c (opendir, closedir): Undefine.
72087         * lib/javacomp.c (open, close): Undefine.
72088         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
72089         * lib/openat-proc.c (open, close): Undefine.
72090         * lib/pagealign_alloc.c (open, close): Undefine.
72091         * lib/pipe.c (open, close): Undefine.
72092         * lib/progreloc.c (open, close): Undefine.
72093         * lib/savedir.c (opendir, closedir): Undefine.
72094         * lib/utime.c (open, close): Undefine.
72095         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
72096
72097 2007-01-10  Bruno Haible  <bruno@clisp.org>
72098
72099         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
72100
72101 2007-01-12  Eric Blake  <ebb9@byu.net>
72102
72103         Provide a robust <wchar.h>.  Further simplifications are now
72104         possible in other modules, but not included here.
72105         * modules/wchar: New module.
72106         * m4/wchar.m4: New file.
72107         * lib/wchar_.h: Likewise.
72108         * modules/mbchar (Depends-on): Depend on wchar, as the first use
72109         of the new module.
72110         * MODULES.html.sh (Extended multibyte and wide character utilities):
72111         New section.
72112
72113 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
72114
72115         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
72116         to a reasonable default for memory allocation.
72117         (xreadlink): Don't allocate a huge buffer, to work around a buggy
72118         file system that reports garbage st_size values for symlinks.
72119         Problem reported by Liyang Hu.
72120
72121 2007-01-11  Simon Josefsson  <simon@josefsson.org>
72122
72123         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
72124         Emacs .#* auto-save files).
72125
72126 2007-01-11  Bruno Haible  <bruno@clisp.org>
72127
72128         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
72129         directory.
72130
72131 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72132
72133         Use @...@ consistently in lib/wctype_.h.
72134         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
72135         on it being set to 1 or 0.
72136         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
72137         go back to AC_SUBSTing it.
72138         * modules/wctype (Makefile.am): Undo previous change.
72139
72140 2007-01-10  Eric Blake  <ebb9@byu.net>
72141
72142         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
72143         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
72144         * modules/wctype (Makefile.am): Likewise.
72145         Reported by Chris McGuire.
72146
72147 2007-01-10  Jim Meyering  <jim@meyering.net>
72148
72149         fts.c: a small readability/maintainability improvement
72150         * lib/fts.c (fts_read): Make this code slightly more readable and
72151         maintainable by hoisting the "sp->fts_cur = p" assignments to
72152         immediately follow the statements that set P.  Derived from
72153         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
72154
72155 2007-01-10  Eric Blake  <ebb9@byu.net>
72156
72157         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
72158         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
72159         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
72160         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
72161         Reported by Chris McGuire.
72162
72163 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72164
72165         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
72166         in sed script.
72167
72168 2007-01-09  Bruno Haible  <bruno@clisp.org>
72169
72170         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
72171         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
72172         variables.
72173         (func_module): Use them.
72174
72175 2007-01-09  Bruno Haible  <bruno@clisp.org>
72176
72177         * modules/unistr/base: New file.
72178         * lib/unistr.h: New file.
72179
72180         * modules/unistr/u8-to-u16: New file.
72181         * lib/unistr/u8-to-u16.c: New file.
72182
72183         * modules/unistr/u8-to-u32: New file.
72184         * lib/unistr/u8-to-u32.c: New file.
72185
72186         * modules/unistr/u16-to-u8: New file.
72187         * lib/unistr/u16-to-u8.c: New file.
72188
72189         * modules/unistr/u16-to-u32: New file.
72190         * lib/unistr/u16-to-u32.c: New file.
72191
72192         * modules/unistr/u32-to-u8: New file.
72193         * lib/unistr/u32-to-u8.c: New file.
72194
72195         * modules/unistr/u32-to-u16: New file.
72196         * lib/unistr/u32-to-u16.c: New file.
72197
72198         * modules/unistr/u8-check: New file.
72199         * modules/unistr/u16-check: New file.
72200         * modules/unistr/u32-check: New file.
72201         * lib/unistr/u8-check.c: New file.
72202         * lib/unistr/u16-check.c: New file.
72203         * lib/unistr/u32-check.c: New file.
72204
72205         * modules/unistr/u8-chr: New file.
72206         * modules/unistr/u16-chr: New file.
72207         * modules/unistr/u32-chr: New file.
72208         * lib/unistr/u8-chr.c: New file.
72209         * lib/unistr/u16-chr.c: New file.
72210         * lib/unistr/u32-chr.c: New file.
72211
72212         * modules/unistr/u8-cmp: New file.
72213         * modules/unistr/u16-cmp: New file.
72214         * modules/unistr/u32-cmp: New file.
72215         * lib/unistr/u8-cmp.c: New file.
72216         * lib/unistr/u16-cmp.c: New file.
72217         * lib/unistr/u32-cmp.c: New file.
72218
72219         * modules/unistr/u8-cpy: New file.
72220         * modules/unistr/u16-cpy: New file.
72221         * modules/unistr/u32-cpy: New file.
72222         * lib/unistr/u8-cpy.c: New file.
72223         * lib/unistr/u16-cpy.c: New file.
72224         * lib/unistr/u32-cpy.c: New file.
72225         * lib/unistr/u-cpy.h: New file.
72226
72227         * modules/unistr/u8-cpy-alloc: New file.
72228         * modules/unistr/u16-cpy-alloc: New file.
72229         * modules/unistr/u32-cpy-alloc: New file.
72230         * lib/unistr/u8-cpy-alloc.c: New file.
72231         * lib/unistr/u16-cpy-alloc.c: New file.
72232         * lib/unistr/u32-cpy-alloc.c: New file.
72233         * lib/unistr/u-cpy-alloc.h: New file.
72234
72235         * modules/unistr/u8-endswith: New file.
72236         * modules/unistr/u16-endswith: New file.
72237         * modules/unistr/u32-endswith: New file.
72238         * lib/unistr/u8-endswith.c: New file.
72239         * lib/unistr/u16-endswith.c: New file.
72240         * lib/unistr/u32-endswith.c: New file.
72241         * lib/unistr/u-endswith.h: New file.
72242
72243         * modules/unistr/u8-mblen: New file.
72244         * modules/unistr/u16-mblen: New file.
72245         * modules/unistr/u32-mblen: New file.
72246         * lib/unistr/u8-mblen.c: New file.
72247         * lib/unistr/u16-mblen.c: New file.
72248         * lib/unistr/u32-mblen.c: New file.
72249
72250         * modules/unistr/u8-mbtouc: New file.
72251         * modules/unistr/u16-mbtouc: New file.
72252         * modules/unistr/u32-mbtouc: New file.
72253         * lib/unistr/u8-mbtouc.c: New file.
72254         * lib/unistr/u16-mbtouc.c: New file.
72255         * lib/unistr/u32-mbtouc.c: New file.
72256
72257         * modules/unistr/u8-mbtouc-safe: New file.
72258         * modules/unistr/u16-mbtouc-safe: New file.
72259         * modules/unistr/u32-mbtouc-safe: New file.
72260         * lib/unistr/u8-mbtouc-safe.c: New file.
72261         * lib/unistr/u16-mbtouc-safe.c: New file.
72262         * lib/unistr/u32-mbtouc-safe.c: New file.
72263
72264         * modules/unistr/u8-move: New file.
72265         * modules/unistr/u16-move: New file.
72266         * modules/unistr/u32-move: New file.
72267         * lib/unistr/u8-move.c: New file.
72268         * lib/unistr/u16-move.c: New file.
72269         * lib/unistr/u32-move.c: New file.
72270         * lib/unistr/u-move.h: New file.
72271
72272         * modules/unistr/u8-next: New file.
72273         * modules/unistr/u16-next: New file.
72274         * modules/unistr/u32-next: New file.
72275         * lib/unistr/u8-next.c: New file.
72276         * lib/unistr/u16-next.c: New file.
72277         * lib/unistr/u32-next.c: New file.
72278
72279         * modules/unistr/u8-prev: New file.
72280         * modules/unistr/u16-prev: New file.
72281         * modules/unistr/u32-prev: New file.
72282         * lib/unistr/u8-prev.c: New file.
72283         * lib/unistr/u16-prev.c: New file.
72284         * lib/unistr/u32-prev.c: New file.
72285
72286         * modules/unistr/u8-set: New file.
72287         * modules/unistr/u16-set: New file.
72288         * modules/unistr/u32-set: New file.
72289         * lib/unistr/u8-set.c: New file.
72290         * lib/unistr/u16-set.c: New file.
72291         * lib/unistr/u32-set.c: New file.
72292         * lib/unistr/u-set.h: New file.
72293
72294         * modules/unistr/u8-startswith: New file.
72295         * modules/unistr/u16-startswith: New file.
72296         * modules/unistr/u32-startswith: New file.
72297         * lib/unistr/u8-startswith.c: New file.
72298         * lib/unistr/u16-startswith.c: New file.
72299         * lib/unistr/u32-startswith.c: New file.
72300         * lib/unistr/u-startswith.h: New file.
72301
72302         * modules/unistr/u8-stpcpy: New file.
72303         * modules/unistr/u16-stpcpy: New file.
72304         * modules/unistr/u32-stpcpy: New file.
72305         * lib/unistr/u8-stpcpy.c: New file.
72306         * lib/unistr/u16-stpcpy.c: New file.
72307         * lib/unistr/u32-stpcpy.c: New file.
72308         * lib/unistr/u-stpcpy.h: New file.
72309
72310         * modules/unistr/u8-stpncpy: New file.
72311         * modules/unistr/u16-stpncpy: New file.
72312         * modules/unistr/u32-stpncpy: New file.
72313         * lib/unistr/u8-stpncpy.c: New file.
72314         * lib/unistr/u16-stpncpy.c: New file.
72315         * lib/unistr/u32-stpncpy.c: New file.
72316         * lib/unistr/u-stpncpy.h: New file.
72317
72318         * modules/unistr/u8-strcat: New file.
72319         * modules/unistr/u16-strcat: New file.
72320         * modules/unistr/u32-strcat: New file.
72321         * lib/unistr/u8-strcat.c: New file.
72322         * lib/unistr/u16-strcat.c: New file.
72323         * lib/unistr/u32-strcat.c: New file.
72324         * lib/unistr/u-strcat.h: New file.
72325
72326         * modules/unistr/u8-strchr: New file.
72327         * modules/unistr/u16-strchr: New file.
72328         * modules/unistr/u32-strchr: New file.
72329         * lib/unistr/u8-strchr.c: New file.
72330         * lib/unistr/u16-strchr.c: New file.
72331         * lib/unistr/u32-strchr.c: New file.
72332
72333         * modules/unistr/u8-strcmp: New file.
72334         * modules/unistr/u16-strcmp: New file.
72335         * modules/unistr/u32-strcmp: New file.
72336         * lib/unistr/u8-strcmp.c: New file.
72337         * lib/unistr/u16-strcmp.c: New file.
72338         * lib/unistr/u32-strcmp.c: New file.
72339
72340         * modules/unistr/u8-strcpy: New file.
72341         * modules/unistr/u16-strcpy: New file.
72342         * modules/unistr/u32-strcpy: New file.
72343         * lib/unistr/u8-strcpy.c: New file.
72344         * lib/unistr/u16-strcpy.c: New file.
72345         * lib/unistr/u32-strcpy.c: New file.
72346         * lib/unistr/u-strcpy.h: New file.
72347
72348         * modules/unistr/u8-strcspn: New file.
72349         * modules/unistr/u16-strcspn: New file.
72350         * modules/unistr/u32-strcspn: New file.
72351         * lib/unistr/u8-strcspn.c: New file.
72352         * lib/unistr/u16-strcspn.c: New file.
72353         * lib/unistr/u32-strcspn.c: New file.
72354         * lib/unistr/u-strcspn.h: New file.
72355
72356         * modules/unistr/u8-strdup: New file.
72357         * modules/unistr/u16-strdup: New file.
72358         * modules/unistr/u32-strdup: New file.
72359         * lib/unistr/u8-strdup.c: New file.
72360         * lib/unistr/u16-strdup.c: New file.
72361         * lib/unistr/u32-strdup.c: New file.
72362         * lib/unistr/u-strdup.h: New file.
72363
72364         * modules/unistr/u8-strlen: New file.
72365         * modules/unistr/u16-strlen: New file.
72366         * modules/unistr/u32-strlen: New file.
72367         * lib/unistr/u8-strlen.c: New file.
72368         * lib/unistr/u16-strlen.c: New file.
72369         * lib/unistr/u32-strlen.c: New file.
72370         * lib/unistr/u-strlen.h: New file.
72371
72372         * modules/unistr/u8-strmblen: New file.
72373         * modules/unistr/u16-strmblen: New file.
72374         * modules/unistr/u32-strmblen: New file.
72375         * lib/unistr/u8-strmblen.c: New file.
72376         * lib/unistr/u16-strmblen.c: New file.
72377         * lib/unistr/u32-strmblen.c: New file.
72378
72379         * modules/unistr/u8-strmbtouc: New file.
72380         * modules/unistr/u16-strmbtouc: New file.
72381         * modules/unistr/u32-strmbtouc: New file.
72382         * lib/unistr/u8-strmbtouc.c: New file.
72383         * lib/unistr/u16-strmbtouc.c: New file.
72384         * lib/unistr/u32-strmbtouc.c: New file.
72385
72386         * modules/unistr/u8-strncat: New file.
72387         * modules/unistr/u16-strncat: New file.
72388         * modules/unistr/u32-strncat: New file.
72389         * lib/unistr/u8-strncat.c: New file.
72390         * lib/unistr/u16-strncat.c: New file.
72391         * lib/unistr/u32-strncat.c: New file.
72392         * lib/unistr/u-strncat.h: New file.
72393
72394         * modules/unistr/u8-strncmp: New file.
72395         * modules/unistr/u16-strncmp: New file.
72396         * modules/unistr/u32-strncmp: New file.
72397         * lib/unistr/u8-strncmp.c: New file.
72398         * lib/unistr/u16-strncmp.c: New file.
72399         * lib/unistr/u32-strncmp.c: New file.
72400
72401         * modules/unistr/u8-strncpy: New file.
72402         * modules/unistr/u16-strncpy: New file.
72403         * modules/unistr/u32-strncpy: New file.
72404         * lib/unistr/u8-strncpy.c: New file.
72405         * lib/unistr/u16-strncpy.c: New file.
72406         * lib/unistr/u32-strncpy.c: New file.
72407         * lib/unistr/u-strncpy.h: New file.
72408
72409         * modules/unistr/u8-strnlen: New file.
72410         * modules/unistr/u16-strnlen: New file.
72411         * modules/unistr/u32-strnlen: New file.
72412         * lib/unistr/u8-strnlen.c: New file.
72413         * lib/unistr/u16-strnlen.c: New file.
72414         * lib/unistr/u32-strnlen.c: New file.
72415         * lib/unistr/u-strnlen.h: New file.
72416
72417         * modules/unistr/u8-strpbrk: New file.
72418         * modules/unistr/u16-strpbrk: New file.
72419         * modules/unistr/u32-strpbrk: New file.
72420         * lib/unistr/u8-strpbrk.c: New file.
72421         * lib/unistr/u16-strpbrk.c: New file.
72422         * lib/unistr/u32-strpbrk.c: New file.
72423         * lib/unistr/u-strpbrk.h: New file.
72424
72425         * modules/unistr/u8-strrchr: New file.
72426         * modules/unistr/u16-strrchr: New file.
72427         * modules/unistr/u32-strrchr: New file.
72428         * lib/unistr/u8-strrchr.c: New file.
72429         * lib/unistr/u16-strrchr.c: New file.
72430         * lib/unistr/u32-strrchr.c: New file.
72431
72432         * modules/unistr/u8-strspn: New file.
72433         * modules/unistr/u16-strspn: New file.
72434         * modules/unistr/u32-strspn: New file.
72435         * lib/unistr/u8-strspn.c: New file.
72436         * lib/unistr/u16-strspn.c: New file.
72437         * lib/unistr/u32-strspn.c: New file.
72438         * lib/unistr/u-strspn.h: New file.
72439
72440         * modules/unistr/u8-strstr: New file.
72441         * modules/unistr/u16-strstr: New file.
72442         * modules/unistr/u32-strstr: New file.
72443         * lib/unistr/u8-strstr.c: New file.
72444         * lib/unistr/u16-strstr.c: New file.
72445         * lib/unistr/u32-strstr.c: New file.
72446         * lib/unistr/u-strstr.h: New file.
72447
72448         * modules/unistr/u8-strtok: New file.
72449         * modules/unistr/u16-strtok: New file.
72450         * modules/unistr/u32-strtok: New file.
72451         * lib/unistr/u8-strtok.c: New file.
72452         * lib/unistr/u16-strtok.c: New file.
72453         * lib/unistr/u32-strtok.c: New file.
72454         * lib/unistr/u-strtok.h: New file.
72455
72456         * modules/unistr/u8-uctomb: New file.
72457         * modules/unistr/u16-uctomb: New file.
72458         * modules/unistr/u32-uctomb: New file.
72459         * lib/unistr/u8-uctomb.c: New file.
72460         * lib/unistr/u16-uctomb.c: New file.
72461         * lib/unistr/u32-uctomb.c: New file.
72462
72463         * MODULES.html.sh (Unicode string functions): Add the new modules.
72464
72465 2007-01-08  Bruno Haible  <bruno@clisp.org>
72466
72467         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
72468         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
72469         subdirectories.
72470
72471 2007-01-08  Karl Berry  <karl@gnu.org>
72472
72473         * doc/error.texi: mention that main() fns must set program_name
72474         when progname is used.
72475
72476 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
72477
72478         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
72479         WCTYPE_H is empty, for the benefit of builds from non-distclean
72480         directories.  Problem reported by Eric Blake in
72481         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
72482
72483 2007-01-08  Bruno Haible  <bruno@clisp.org>
72484
72485         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
72486         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
72487         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
72488         PROVIDE_CANONICALIZE_FILENAME_MODE.
72489         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
72490
72491 2007-01-08  Bruno Haible  <bruno@clisp.org>
72492
72493         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
72494         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
72495         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
72496         * lib/fts.c: Likewise.
72497         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
72498
72499 2006-12-25  Bruno Haible  <bruno@clisp.org>
72500
72501         * modules/utf8-ucs4-safe: New file.
72502         * lib/utf8-ucs4-safe.h: New file.
72503         * lib/unistr/utf8-ucs4-safe.c: New file.
72504
72505         * modules/utf16-ucs4-safe: New file.
72506         * lib/utf16-ucs4-safe.h: New file.
72507         * lib/unistr/utf16-ucs4-safe.c: New file.
72508
72509         * MODULES.html.sh (Unicode string functions): Add the new modules.
72510
72511 2007-01-08  Bruno Haible  <bruno@clisp.org>
72512
72513         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
72514         (Depends-on): Add unitypes.
72515         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
72516         (u8_mbtouc_aux): Move out to separate file.
72517         (u8_mbtouc): Use ucs4_t, uint8_t types.
72518         * lib/unistr/utf8-ucs4.c: New file.
72519
72520         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
72521         (Depends-on): Add unitypes.
72522         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
72523         (u16_mbtouc_aux): Move out to separate file.
72524         (u16_mbtouc): Use ucs4_t, uint16_t types.
72525         * lib/unistr/utf16-ucs4.c: New file.
72526
72527         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
72528         (Depends-on): Add unitypes.
72529         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
72530         (u8_uctomb_aux): Move out to separate file.
72531         (u8_uctomb): Use ucs4_t, uint8_t types.
72532         * lib/unistr/ucs4-utf8.c: New file.
72533
72534         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
72535         (Depends-on): Add unitypes.
72536         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
72537         (u16_uctomb_aux): Move out to separate file.
72538         (u16_uctomb): Use ucs4_t, uint16_t types.
72539         * lib/unistr/ucs4-utf16.c: New file.
72540
72541 2006-12-25  Bruno Haible  <bruno@clisp.org>
72542
72543         * modules/unitypes: New file.
72544         * lib/unitypes.h: New file.
72545         * MODULES.html.sh (func_all_modules): New section "Unicode string
72546         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
72547         this section. Add unitypes.
72548
72549 2007-01-08  Bruno Haible  <bruno@clisp.org>
72550
72551         Avoid variable names that conflict with those from libtool.
72552         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
72553         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
72554         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
72555         library_names_spec to acl_library_names_spec, hardcode_* to
72556         acl_hardcode_*.
72557         Reported by Ralf Wildenhues.
72558
72559 2007-01-08  Bruno Haible  <bruno@clisp.org>
72560
72561         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
72562         definition.
72563         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
72564         definition.
72565         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
72566         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
72567         definition.
72568         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
72569         definition.
72570         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
72571         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
72572         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
72573         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
72574         definition.
72575         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
72576         definition.
72577         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
72578         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
72579         GC_USE_<algorithm>.
72580         * lib/gc-libgcrypt.c: Likewise.
72581         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
72582         * modules/gc-arctwo (configure.ac): Likewise.
72583         * modules/gc-des (configure.ac): Likewise.
72584         * modules/gc-hmac-md5 (configure.ac): Likewise.
72585         * modules/gc-hmac-sha1 (configure.ac): Likewise.
72586         * modules/gc-md2 (configure.ac): Likewise.
72587         * modules/gc-md4 (configure.ac): Likewise.
72588         * modules/gc-md5 (configure.ac): Likewise.
72589         * modules/gc-random (configure.ac): Likewise.
72590         * modules/gc-rijndael (configure.ac): Likewise.
72591         * modules/gc-sha1 (configure.ac): Likewise.
72592
72593 2007-01-08  Bruno Haible  <bruno@clisp.org>
72594
72595         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
72596         macro definition.
72597         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
72598         definition.
72599         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
72600         definition.
72601         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
72602         * modules/fcntl-safer (configure.ac): Likewise.
72603         * modules/fopen-safer (configure.ac): Likewise.
72604         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
72605         GNULIB_FWRITEERROR macro definition.
72606
72607 2007-01-08  Bruno Haible  <bruno@clisp.org>
72608
72609         * m4/gnulib-common.m4: New file.
72610         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
72611         (func_get_filelist): Add m4/gnulib-common.m4.
72612
72613 2007-01-08  Bruno Haible  <bruno@clisp.org>
72614
72615         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
72616         command.
72617
72618 2007-01-08  Jim Meyering  <jim@meyering.net>
72619
72620         Use a more robust test for a "can't happen" condition.
72621         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
72622         narrowed the st_size value.  Presuming the "can't happen" condition
72623         is true, that narrowing could conceivably convert an invalid st_size
72624         value into a valid one.  Instead, use a change based on Matthew
72625         Woehlke's original patch.
72626
72627         Slight readability improvement: use an assert-like macro
72628         in place of literal "abort ()" uses.
72629         * lib/fts.c (fts_assert): Define.
72630         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
72631         Use this macro instead of a bare 'abort'.
72632
72633 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
72634
72635         Don't worry about using IRIX 5.3's wctype.h broken definitions;
72636         simply work around them.
72637         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
72638         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
72639         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
72640         declaring.
72641         Don't bother to define as macros, since the standard doesn't require it.
72642         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
72643         longer worry about IRIX 5.3.
72644         (HAVE_WCTYPE_CTMP_BUG): Remove.
72645
72646 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72647
72648         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
72649         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
72650         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
72651         Problems reported by Georg Schwarz for IRIX 5.3.
72652
72653         * gnulib-tool (autoconf_minversion): Take the maximum version number
72654         found, not the minimum.  Problem reported by James Youngman.
72655
72656 2007-01-03  Karl Berry  <karl@gnu.org>
72657
72658         * doc/error.texi: new file, explaining interaction with progname.
72659         * doc/gnulib.texi: include it.  Update copyright.
72660
72661 2007-01-03  Simon Josefsson  <simon@josefsson.org>
72662
72663         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
72664         AC_CANONICAL_HOST, to improve autobuild outputs.
72665
72666 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
72667             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72668
72669         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
72670         sockets, server sockets, and other file descriptors.  Count errors
72671         to compute the return value.  Reorder the code a bit to be easier
72672         to follow.  Don't set event bits that were not requested (except
72673         POLLERR and POLLHUP).
72674
72675 2007-01-01  Bruno Haible  <bruno@clisp.org>
72676
72677         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
72678
72679 2007-01-03  Jim Meyering  <jim@meyering.net>
72680
72681         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
72682
72683 2007-01-02  Bruno Haible  <bruno@clisp.org>
72684
72685         * modules/settime (Include): Require timespec.h.
72686         * modules/nanosleep (Include): Likewise.
72687
72688 2007-01-01  Bruno Haible  <bruno@clisp.org>
72689
72690         * gnulib-tool (func_emit_copyright_notice): Bump year.
72691         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
72692
72693 2007-01-01  Bruno Haible  <bruno@clisp.org>
72694
72695         Improve support for OpenBSD.
72696         * build-aux/config.rpath (libname_spec): Export.
72697         (library_names_spec): New variable. Export.
72698         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
72699         library_names_spec from the config.rpath output. Locate shared library
72700         through the name pattern in library_names_spec.
72701
72702 2007-01-01  Eric Blake  <ebb9@byu.net>
72703
72704         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
72705
72706 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
72707
72708         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
72709         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
72710         assume the C locale, and avoid an "eval" that could cause trouble.
72711         Problem with SORT reported by Bob Proulx.
72712
72713         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
72714         Define.  Trivial patch from Henning Nielsen Lund, originally
72715         sent to bug-grep@gnu.org today.
72716
72717 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
72718
72719         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
72720         struct stat.  Problem reported by Henning Nielsen Lund.
72721         * lib/acl.c: Include acl.h first, to check interface.  Don't
72722         bother to include sys/types.h and sys/stat.h again.
72723
72724 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72725
72726         Import the following change from libc; problem reported by
72727         Sven Verdoolaege.
72728
72729         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
72730
72731         [BZ #1373]
72732         * lib/argp.h: Remove __NTH for __argp_usage inline function.
72733
72734 2006-12-28  Jim Meyering  <jim@meyering.net>
72735
72736         * build-aux/announce-gen: Do not assume that the package
72737         builds any of tar.gz, tar.bz2, and .xdelta files.
72738         Suggestion from Simon Josefsson.
72739
72740 2006-12-28  Simon Josefsson  <simon@josefsson.org>
72741
72742         * modules/announce-gen: New file.
72743
72744 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
72745
72746         * lib/mbchar.h: Just include <wctype.h>; the wctype module
72747         handles its gotchas now.
72748         * lib/mbswidth.c: Likewise.
72749         * lib/wcwidth.h: Likewise.
72750         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
72751         and iswcntrl; the wctype module does this stuff now.
72752         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72753         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
72754         * modules/mbchar (Depends-on): Add wctype.
72755         * modules/mbswidth (Depends-on): Likewise.
72756         * modules/wcwidth (Depends-on): Likewise.
72757
72758 2006-12-27  Eric Blake  <ebb9@byu.net>
72759
72760         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
72761         module uses more than what <wctype.h> is required to provide.
72762
72763 2006-12-26  Eric Blake  <ebb9@byu.net>
72764
72765         * gnulib-tool (sed_extract_prog): Avoid space-tab.
72766
72767 2006-12-26  Eric Blake  <ebb9@byu.net>
72768
72769         * modules/absolute-header: New module.
72770         * modules/fcntl (Depends-on): Depend on it.
72771         * modules/inttypes (Depends-on): Likewise.
72772         * modules/stdint (Depends-on): Likewise.
72773         * modules/sys_stat (Depends-on): Likewise.
72774         * modules/wctype (Depends-on): Likewise.
72775         * MODULES.html.sh (Support for building libraries and
72776         executables): Document it.
72777
72778 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
72779
72780         * gnulib-tool (SED): Remove, undoing previous change.
72781         The problem was that it broke coreutils on Solaris, because
72782         "sed --posix" leaked into a makefile.
72783         (sed): New alias, if 'alias' and GNU sed.
72784
72785 2006-12-24  Jim Meyering  <jim@meyering.net>
72786
72787         Work around an fchownat bug in glibc-2.4:
72788         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
72789         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
72790         in spite of the -P option.
72791         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
72792         New macros.
72793         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
72794         * modules/openat (Files): Add lib/fchownat.c.
72795         * lib/openat.c (fchownat): Don't define here.  Move to...
72796         * lib/fchownat.c: ...this new file.
72797
72798 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72799
72800         Fix bug reported by Bruno Haible in
72801         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
72802         where quotearg.c didn't compile on Mac OS X 10.2 because it
72803         lacks <wchar.h> and wint_t.
72804         * lib/wctype_.h (__wctype_wint_t): New type.
72805         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
72806         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
72807         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
72808         Arg is now of type __wctype_wint_t, not wint_t.
72809         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
72810         substitute HAVE_WINT_T.
72811         * modules/wctype (Files): Add m4/wint_t.m4.
72812         (wctype.h): Substitute HAVE_WINT_T.
72813
72814 2006-12-23  Bruno Haible  <bruno@clisp.org>
72815
72816         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
72817
72818 2006-12-23  Bruno Haible  <bruno@clisp.org>
72819
72820         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
72821         S_ISLNK.
72822         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
72823         mingw.
72824
72825 2006-12-22  Bruno Haible  <bruno@clisp.org>
72826
72827         * lib/copy-file.c: Include acl.h.
72828         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
72829         Close the file descriptors only after being done with copy_acl.
72830         * modules/copy-file (Depends-on): Add acl.
72831
72832 2006-12-22  Bruno Haible  <bruno@clisp.org>
72833
72834         * gnulib-tool (SED): New variable.
72835         Use $SED instead of sed everywhere.
72836
72837 2006-12-22  Bruno Haible  <bruno@clisp.org>
72838
72839         * modules/no-c++: New file.
72840         * m4/no-c++.m4: New file.
72841         * MODULES.html.sh (Support for building libraries and executables):
72842         Add no-c++.
72843
72844 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
72845
72846         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
72847         Include <limits.h>, and use its INT_MAX to rewrite the
72848         j loop so that it does not overflow 'int'.  Problem reported by
72849         Ralf Wildenhues in
72850         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
72851         Play it safe by shifting left by 1 rather than multiplying by 2,
72852         as GCC is less likely to optimize this away when the value
72853         is signed (when it assumes overflow leads to undefined behavior).
72854         Also, don't assume time_t uses two's complement.
72855
72856 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
72857
72858         * MODULES.html.sh: New module wctype.
72859         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
72860         * lib/fnmatch.c: Don't bother to include <wchar.h> before
72861         <wctype.h>, since the new wctype module should fix this.
72862         * lib/quotearg.c: Include <wctype.h> unconditionally, since
72863         the wctype module should arrange for it.
72864         * lib/regex_internal.h: Likewise.
72865         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
72866         since the wctype module should handle this now.
72867         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
72868         * modules/fnmatch (Depends-on): Add wctype.
72869         * modules/quotearg (Depends-on): Likewise.
72870         * modules/regex (Depends-on): Likewise.
72871
72872 2006-12-19  Bruno Haible  <bruno@clisp.org>
72873
72874         * lib/strdup.h [C++]: Wrap definitions in extern "C".
72875         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
72876
72877 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72878
72879         * modules/savewd (Depends-on): Fix dependency on fcntl.
72880
72881 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72882
72883         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
72884         conforms to C99, rather than relying on the user's environment
72885         setting of STDINT_H.
72886
72887 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72888         and Eric Blake  <ebb9@byu.net>
72889
72890         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
72891         This is more consistent with the other defines here.
72892         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
72893         Port to z/OS.  Problem reported by Paul Gilmartin.
72894         Change local vars to use gl_ prefix rather than ac_.
72895         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
72896         with other defines.
72897         * modules/double-slash-root: New module.
72898         * modules/dirname (Files): Remove m4/double-slash-root.m4.
72899         (Depends-on): Add double-slash-root.
72900         * MODULES.html.sh (File system functions): Mention new module.
72901
72902 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
72903
72904         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
72905         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
72906         This is for the benefit of gzip, which doesn't do i18n.
72907
72908 2006-12-12  Jim Meyering  <jim@meyering.net>
72909
72910         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
72911         Reported by Andreas Schwab <schwab@suse.de>.
72912
72913 2006-12-12  Bruno Haible  <bruno@clisp.org>
72914
72915         Merge these changes.
72916         2006-09-05  Bruno Haible  <bruno@clisp.org>
72917         * lib/iconvme.c (iconv_string): No need to save and restore errno when
72918         iconv_alloc succeeded.
72919         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
72920         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
72921         test for " && dest " at the end - dest is always != NULL there. Call
72922         iconv with 4xNULL arguments initially, to reset the state. Call iconv
72923         with 2xNULL arguments, also to flush the state storage. Handle the
72924         IRIX iconv behaviour. Realloc the final result, to throw away unused
72925         memory.
72926
72927 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
72928
72929         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
72930         and fchmodat unconditionally, since glibc 2.4 has them.
72931         Problem reported by Arkadiusz Miskiewicz.
72932
72933 2006-12-10  Bruno Haible  <bruno@clisp.org>
72934
72935         * gnulib-tool (func_import): Show the include files only for those
72936         modules that are copied and specified.
72937         Reported by Karl Berry.
72938
72939 2006-12-08  Jim Meyering  <jim@meyering.net>
72940
72941         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
72942         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
72943
72944         * build-aux/announce-gen: Add two new options, both optional:
72945         --bootstrap-tools=TOOL_LIST
72946               a comma-separated list of tools, e.g.,
72947               autoconf,automake,bison,gnulib
72948         --gnulib-snapshot-date=DATE
72949               if gnulib is in the bootstrap tool list,
72950               then report this as the snapshot date.
72951               If not specified, use the current date/time.
72952               If you specify a date here, be sure it's UTC.
72953
72954 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72955
72956         * tests/test-argp-2.sh: Fix test to match actual output.
72957         (func_compare): Fix sed script to be portable.
72958
72959 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
72960
72961         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
72962         workaround for this case.  It is not autoconfigured now; offhand
72963         it's hard to see how to autoconfigure it.
72964
72965 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
72966
72967         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
72968         a directory that is about to be chowned.  Such a directory's
72969         initial file permissions should permit the owner only and this
72970         should not be changed until after the chown, since the group and
72971         other bits would be incorrect if they granted permission before
72972         the chown.
72973
72974         Fix porting problem for iswctype reported by Georg Schwarz in:
72975         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
72976         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
72977         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
72978         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
72979         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
72980
72981 2006-12-03  Jim Meyering  <jim@meyering.net>
72982
72983         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
72984         p->fts_statp may not yet be defined.
72985         (fts_read): Instead, set it in the caller, once p->fts_statp is
72986         sure to be defined, and corresponds to a top-level directory.
72987         This bug made du -x fail.  Here's the coreutils test case:
72988         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
72989         Reported by Mike Frysinger.
72990
72991 2006-12-01  Jim Meyering  <jim@meyering.net>
72992
72993         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
72994         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
72995         Reported by Simon Josefsson.
72996
72997 2006-11-30  Jim Meyering  <jim@meyering.net>
72998
72999         * m4/warning.m4: Use the all-permissive copyright notice
73000         recommended by RMS (rather than LGPL).
73001         * m4/vararrays.m4: Likewise.
73002         * m4/flexmember.m4: Likewise.
73003
73004 2006-11-29  Bruno Haible  <bruno@clisp.org>
73005
73006         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73007         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
73008         using +=.
73009         Reported by Simon Josefsson <simon@josefsson.org>.
73010
73011 2006-11-28  James Youngman <jay@gnu.org>
73012
73013         * README: Advise users that they might find the bug-gnulib@gnu.org
73014         and autotools-announce@gnu.org mailing lists useful.
73015
73016 2006-11-28  Bruno Haible  <bruno@clisp.org>
73017
73018         * m4/ptrdiff_max.m4: Remove file.
73019
73020 2006-11-21  Bruno Haible  <bruno@clisp.org>
73021
73022         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
73023         _AC_COMPUTE_INT.
73024         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73025         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
73026         _AC_COMPUTE_INT.
73027         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73028         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
73029         _AC_COMPUTE_INT.
73030         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73031
73032 2006-11-28  Jim Meyering  <jim@meyering.net>
73033
73034         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
73035         warning from "gcc -Wshadow" about shadowing the builtin.
73036
73037 2006-11-27  Bruno Haible  <bruno@clisp.org>
73038
73039         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
73040         _AC_COMPUTE_INT.
73041         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73042
73043 2006-11-27  Bruno Haible  <bruno@clisp.org>
73044             Paul Eggert  <eggert@cs.ucla.edu>
73045
73046         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
73047
73048 2006-11-26  Bruno Haible  <bruno@clisp.org>
73049
73050         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73051         noinst_LTLIBRARIES.
73052
73053 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
73054             Bruno Haible  <bruno@clisp.org>
73055
73056         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
73057         if compiling with "gcc -ansi".
73058
73059 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
73060
73061         Fix some incompatibilities with gcc -ansi -pedantic.
73062         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
73063         if compiling pedantically with GCC, unless it's C99 or later.
73064         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
73065         it mishandles gcc -ansi -pedantic as well.
73066         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
73067         if gcc -pedantic.
73068         * lib/regexec.c (check_node_accept_bytes): Don't use auto
73069         initializers for struct if -pedantic, unless it's C99 or later.
73070
73071 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
73072
73073         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
73074         Don't close an fd more than once. Identical atimes indicate
73075         success, not failure.
73076
73077 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
73078
73079         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
73080
73081 2006-11-23  Jim Meyering  <jim@meyering.net>
73082
73083         * build-aux/announce-gen: New file.  From coreutils.
73084
73085 2006-11-22  Jim Meyering  <jim@meyering.net>
73086
73087         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
73088         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
73089         (fts_read): Use a temporary to narrow the overused st_size member
73090         before using it in a switch statement.  Reported by Matthew Woehlke.
73091
73092         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
73093         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
73094
73095 2006-11-20  Bruno Haible  <bruno@clisp.org>
73096
73097         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
73098         changequote instead of pairs of brackets.
73099         Reported by Andreas Schwab <schwab@suse.de>.
73100
73101 2006-11-21  Jim Meyering  <jim@meyering.net>
73102
73103         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
73104         so as to remain compatible with older compilers.
73105         Patch from Michael Deutschmann.
73106
73107 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73108
73109         * MODULES.html.sh (File system functions): Add openat.
73110
73111         * lib/openat.h (rpl_fstatat): New macro, if
73112         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
73113         (fstatat): Define to rpl_fstatat under the same conditions,
73114         unless COMPILING_FSTATAT.
73115         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
73116         seems to have the bug.
73117         * lib/fstatat.c: New file.
73118         * modules/openat (Files): Add it.
73119
73120 2006-11-20  Bruno Haible  <bruno@clisp.org>
73121
73122         * Makefile: New file.
73123
73124 2006-11-20  Jim Meyering  <jim@meyering.net>
73125
73126         The beginnings of syntax-related checks for gnulib.
73127         * lib/Makefile: New file.
73128         * lib/t-idcache: New script.  Ensure that the two halves of
73129         idcache.c stay in sync.
73130
73131         * lib/idcache.c: Adjust comments in user- and group- portions to
73132         be more accurate, and to be consistent with one another.
73133
73134 2006-11-20  Jim Meyering  <jim@meyering.net>
73135
73136         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
73137         continue using the flexible array member (thus, this module performs
73138         half as many malloc calls), with the addition that...
73139         (getgroup, getuser): Consistently record a non-match via an empty
73140         "name" string, and map an empty string match to a NULL return value.
73141         * modules/idcache (Depends-on): Re-add flexmember.
73142
73143         * lib/idcache.c (getuser): Remove all uses of the register keyword.
73144         (getuidbyname, getgroup, getgidbyname): Likewise.
73145
73146         Use cleaner syntax: NULL rather than 0.
73147         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
73148
73149 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73150
73151         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
73152         It mishandled the case where the group was missing.
73153         Problem reported by Greg Schafer.
73154         * modules/idcache: Likewise.
73155
73156 2006-11-18  Jim Meyering  <jim@meyering.net>
73157
73158         * check-module (%exempt_header): Add exception for some
73159         conditionally-included headers.
73160
73161         * modules/i-ring (Depends-on): Add verify.
73162         (License): Change to LGPL.
73163
73164 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73165
73166         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
73167         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
73168         and inttostr.h.  Use snprintf rather than uinttostr, so that
73169         LGPLed code doesn't depend on GPLed.
73170
73171 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73172
73173         * modules/inline (License): Change from GPL to LGPL.
73174
73175 2006-11-17  Jim Meyering  <jim@meyering.net>
73176
73177         * modules/d-type (License): Switch to LGPL.
73178
73179 2006-11-15  Bruno Haible  <bruno@clisp.org>
73180
73181         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
73182
73183 2006-11-15  Eric Blake  <ebb9@byu.net>
73184
73185         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
73186         the module dependency.
73187
73188 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73189             Bruno Haible  <bruno@clisp.org>
73190
73191         * gnulib-tool (func_create_testdir): Add license consistency check.
73192
73193 2006-11-15  Eric Blake  <ebb9@byu.net>
73194
73195         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
73196         random "(cached)" in configure output.
73197
73198 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73199
73200         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
73201         test for conforming inttypes.h is both announced and cached.
73202
73203         * MODULES.html.sh (seen_modules, seen_files): New variables.
73204         (func_module): Rewrite to use a few less gnulib-tool and sed
73205         invocations.  Avoid a couple of quadratic algorithms for ...
73206         (missed_modules, missed_files): ... these, with ...
73207         (func_append, func_tmpdir): ... these new functions, from
73208         gnulib-tool.  Analogously, install traps for cleanup.
73209
73210         * tests/test-gc.c (main): Remove unused variables.
73211         * tests/test-read-file.c: Include stdlib.h, for 'free'.
73212
73213 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
73214
73215         * modules/inttostr (License): Change to LGPL.
73216
73217 2006-11-14  Eric Blake  <ebb9@byu.net>
73218
73219         * modules/tempname (License): Change to LGPL.
73220
73221 2006-11-14  Eric Blake  <ebb9@byu.net>
73222
73223         * doc/functions.texi (Function Portability): *printf functions on
73224         Cygwin now understand all POSIX size specifiers.
73225
73226 2006-11-14  Bruno Haible  <bruno@clisp.org>
73227
73228         * modules/c-ctype (License): Change to LGPL.
73229
73230 2006-11-12  Bruno Haible  <bruno@clisp.org>
73231
73232         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
73233         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
73234         for GNOME libraries, for which the include files are installed in
73235         subdirectories of $prefix/include.
73236
73237 2006-11-12  Bruno Haible  <bruno@clisp.org>
73238
73239         * m4/lib-link.m4: Require at least autoconf-2.54.
73240         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
73241         name to underscores for the --with option.
73242
73243 2006-11-13  Bruno Haible  <bruno@clisp.org>
73244
73245         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
73246         the tests directory.
73247         Reported by Ralf Wildenhues.
73248
73249 2006-11-13  Bruno Haible  <bruno@clisp.org>
73250
73251         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
73252         (func_emit_initmacro_end): Undo the override here.
73253         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
73254         Works around the famous automake error in coreutils.
73255
73256 2006-11-13  Eric Blake  <ebb9@byu.net>
73257
73258         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
73259         element, not its node.
73260
73261 2006-11-12  Bruno Haible  <bruno@clisp.org>
73262
73263         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
73264         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
73265
73266 2006-11-12  Bruno Haible  <bruno@clisp.org>
73267
73268         * gnulib-tool: New option --local-symlink.
73269         (func_usage): Document it.
73270         (lsymbolic): New variable.
73271         (func_import, func_create_testdir): If --symlink was not specified,
73272         test whether --local-symlink was specified and the file comes from
73273         the local_gnulib_dir.
73274
73275 2006-11-12  Bruno Haible  <bruno@clisp.org>
73276
73277         * gnulib-tool (func_ln): New function.
73278         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
73279
73280 2006-11-12  Bruno Haible  <bruno@clisp.org>
73281
73282         Finish support for source files in subdirectories.
73283         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
73284         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
73285         AUTOMAKE_OPTIONS.
73286         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
73287
73288 2006-11-12  Bruno Haible  <bruno@clisp.org>
73289
73290         * gnulib-tool (func_get_automake_snippet): Synthesize also an
73291         EXTRA_lib_SOURCES augmentation.
73292         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
73293
73294 2006-11-12  Jim Meyering  <jim@meyering.net>
73295
73296         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
73297         file descriptors.  This also averts a failure on systems with
73298         native openat support when a traversed directory lacks "x" access.
73299         * lib/fts_.h: Include "i-ring.h"
73300         (struct FTS) [fts_fd_ring]: New member.
73301         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
73302         (FCHDIR): Add parentheses.
73303         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
73304         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
73305         When descending, rather than simply closing the previous
73306         fts_cwd_fd value, push that file descriptor onto the ring.
73307         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
73308         (fts_open): Initialize the new fd_ring member.
73309         (fts_close): Clear the ring.
73310         (fts_safe_changedir): When possible, use our new fd_ring to skip
73311         the diropen and fstat and dev/ino comparison that would normally
73312         accompany a virtual `chdir ("..")'.
73313
73314         * modules/fts (Depends-on): Add i-ring.
73315         * modules/i-ring: New module.
73316         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
73317         * m4/i-ring.m4: New file.
73318
73319 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73320
73321         * gnulib-tool (func_create_testdir): Fix replacement of
73322         `build-aux' in configure.ac.  Run autotools in gltests
73323         subdirectory.
73324         (func_create_testdir, func_create_megatestdir, test): There is
73325         no need for '--force' in most autotool invocations in a new
73326         tree.  Actually fail the whole test if any of the tools, or the
73327         configure or make stages fail.
73328
73329         Sync from Automake.
73330         * build-aux/gnupload: Revert last change.  Add pointer to upload
73331         instructions of the GNU Maintenance Instructions.
73332         Suggestion by Karl Berry.
73333
73334 2006-11-10  Jim Meyering  <jim@meyering.net>
73335
73336         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
73337
73338 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73339
73340         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
73341         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
73342         (bind_textdomain_codeset) [! ENABLE_NLS]:
73343         Evaluate all the arguments.  That way, callers get compatible behavior
73344         if the arguments have side effects.  Also, it avoids some GCC
73345         diagnostics in some cases; Joel E. Denny reported problems when Bison
73346         was configured with --enable-gcc-warnigs.
73347
73348 2006-11-10  Jim Meyering  <jim@meyering.net>
73349
73350         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
73351         relevant options in CFLAGS (like -O, -fno-inline) are taken into
73352         account.
73353
73354 2006-11-10  Jim Meyering  <jim@meyering.net>
73355
73356         * modules/inline: New file/module.
73357         * modules/xalloc (Files): Remove m4/inline.m4.
73358         (Depends-on): Add inline, instead.
73359         * modules/oset: Likewise.
73360         * modules/list: Likewise.
73361
73362 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73363
73364         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
73365         Problem reported by Matthew Woehlke.
73366
73367 2006-11-09  Bruno Haible  <bruno@clisp.org>
73368
73369         * lib/tempname.c (gen_tempname): Remove variant that invokes
73370         __gen_tempname.
73371         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
73372         __gen_tempname.
73373
73374 2006-11-08  Bruno Haible  <bruno@clisp.org>
73375
73376         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
73377         to 'yes' instead of 'cross-compiling'.
73378
73379 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
73380
73381         * lib/quotearg.h (quotearg_free): New decl.
73382         * lib/quotearg.c (quotearg_free): New function.
73383         (slot0, nslots, slotvec0, slotvec):
73384         Now file-scope so that quotearg_free can get at them.
73385
73386 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73387
73388         Sync from Automake.
73389         * build-aux/gnupload: Add missing 'gnu' to example URL.
73390         Report by Karl Berry.
73391
73392 2006-11-08  Bruno Haible  <bruno@clisp.org>
73393
73394         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
73395         Suggested by Paul Eggert.
73396
73397 2006-11-08  Jim Meyering  <jim@meyering.net>
73398
73399         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
73400         It's already included if !_LIBC.
73401         (fts_safe_changedir): Add a comment.
73402
73403 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
73404
73405         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
73406         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
73407         Matthew Woehlke.
73408
73409         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
73410         definitions up, to avoid colliding with change below.
73411         (static_inline) [HAVE_INLINE]: New macro.
73412         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
73413         Provide extern decls when !HAVE_INLINE.  Do not define unless
73414         static_inline is defined, either by us or by xmalloc.c.  Use
73415         static_inline rather than static inline.
73416         (XCALLOC): Optimize sizeof(T) = 1 case.
73417         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
73418
73419 2006-11-07  Bruno Haible  <bruno@clisp.org>
73420
73421         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
73422         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
73423         AC_C_INLINE.
73424         * modules/xalloc (Files): Add m4/inline.m4.
73425
73426 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73427
73428         * README: Fix typo.
73429         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
73430         (Miscellanous Notes): ...from this.
73431
73432 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
73433
73434         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
73435         Mention that offsetof should be used instead of sizeof.
73436         From Bruno Haible.
73437
73438 2006-11-07  Bruno Haible  <bruno@clisp.org>
73439
73440         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
73441
73442 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
73443
73444         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
73445         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
73446         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
73447         (gl_tree_add_before, gl_tree_add_after):
73448         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
73449         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
73450         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
73451         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
73452         (gl_linked_add_after, gl_linked_add_at): Likewise.
73453         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
73454         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
73455         (gl_tree_add_before, gl_tree_add_after): Likewise.
73456         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
73457         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
73458         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
73459
73460 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73461
73462         * lib/gl_oset.h: Use C comment style, not C++ comment style.
73463
73464 2006-11-06  Bruno Haible  <bruno@clisp.org>
73465
73466         * m4/inline.m4: New file.
73467         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
73468         * modules/list (Files): Add m4/inline.m4.
73469         * modules/oset (Files): Likewise.
73470
73471 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
73472
73473         * lib/idcache.c: Include <stddef.h>, for offsetof.
73474         (struct userid.name): Change from char * to a flexible array member.
73475         All uses changed.
73476         * modules/idcache (Depends-on): Add flexmember.
73477
73478         * MODULES.html.sh (Core language properties): New module flexmember.
73479         * modules/flexmember, m4/flexmember.m4: New files.
73480
73481         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
73482         inline functions that are identical with the old xnmalloc_inline,
73483         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
73484         that we can avoid some unnecessary integer multiplications and
73485         divisions in the common case where the element size is known at
73486         compile time.
73487         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
73488         needed.
73489         (xnboundedmalloc): Remove.
73490         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
73491         arguments, for consistency with rest of this header.
73492         (xcharalloc): Rewrite using XNMALLOC.
73493         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
73494         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
73495         versions have been moved to lib/xalloc.h and renamed to be the
73496         non-*_inline versions.
73497         (xmalloc, xrealloc): Implement without reference to the xnmalloc
73498         and xnrealloc functions, since those functions are now inline and
73499         now call us.
73500         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
73501         renaming described above.
73502         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
73503         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
73504         captures the dependency in AC_C_INLINE.
73505
73506         New module canonicalize-lgpl, proposed by Charles Wilson in
73507         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
73508         with a few small changes afterwards.
73509         * MODULES.html.sh (File system functions): New module
73510         canonicalize-lgpl.
73511         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
73512         and canonicalize_file_name.
73513         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
73514         * modules/canonicalize-lgpl: New files.
73515
73516 2006-11-05  Bruno Haible  <bruno@clisp.org>
73517
73518         * gnulib-tool (func_import, func_create_testdir): Create directories
73519         also for files in subdirectories of lib/.
73520
73521 2006-11-05  Bruno Haible  <bruno@clisp.org>
73522
73523         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
73524         ANSI C compliant.
73525
73526 2006-11-03  Bruno Haible  <bruno@clisp.org>
73527
73528         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
73529         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
73530         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
73531         (xnboundedmalloc): New inline function.
73532         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
73533         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
73534         xmalloc.
73535         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
73536         xmalloc.
73537         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
73538         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
73539         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
73540         xmalloc.
73541         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
73542         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
73543         xmalloc.
73544         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
73545         gl_tree_add_after): Use XMALLOC instead of xmalloc.
73546         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
73547         xmalloc.
73548         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
73549         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
73550         gl_tree_add_after): Use XMALLOC instead of xmalloc.
73551         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
73552         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
73553         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
73554         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
73555
73556 2006-11-03  Bruno Haible  <bruno@clisp.org>
73557
73558         * lib/c-ctype.h [C++]: Define functions without name mangling.
73559         * lib/fwriteerror.h [C++]: Likewise.
73560         * lib/gcd.h [C++]: Likewise.
73561         * lib/linebreak.h [C++]: Likewise.
73562
73563 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73564
73565         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
73566         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
73567         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
73568         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
73569         Check for functions and headers just once.
73570         Check for declaration of canonicalize_file_name.
73571         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
73572
73573 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73574
73575         * gnulib-tool (func_import): Fix typo in actioncmd.
73576
73577 2006-11-02  Bruno Haible  <bruno@clisp.org>
73578
73579         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
73580         newline sequence in the Makefile.am snippet as a space, like "make"
73581         does.
73582         Reported by Roger Persson <perrog@gmail.com>.
73583
73584 2006-11-01  Bruno Haible  <bruno@clisp.org>
73585
73586         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
73587         already declared in <string.h>.
73588         * lib/strcase.h (strncasecmp): Don't declare it if yes.
73589
73590 2006-11-01  Bruno Haible  <bruno@clisp.org>
73591
73592         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
73593         * lib/strcase.h: Include <string.h>.
73594         (strcasecmp): Define to rpl_strcasecmp here.
73595
73596 2006-11-01  Bruno Haible  <bruno@clisp.org>
73597
73598         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
73599
73600 2006-11-01  Eric Blake  <ebb9@byu.net>
73601
73602         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
73603
73604         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
73605
73606 2006-10-29  Bruno Haible  <bruno@clisp.org>
73607
73608         Make it compile in C++ mode.
73609         * lib/full-write.c (full_rw): Add a cast.
73610
73611 2006-11-01  Bruno Haible  <bruno@clisp.org>
73612
73613         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
73614         be POSIX compliant.
73615         Reported by Roger Persson <perrog@gmail.com>.
73616
73617 2006-11-01  Eric Blake  <ebb9@byu.net>
73618
73619         * lib/getopt_.h: Fix comments.
73620
73621 2006-10-31  Eric Blake  <ebb9@byu.net>
73622
73623         * modules/tmpdir (Depends-on): Add sys_stat.
73624         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
73625         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
73626         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
73627         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
73628         tempname.
73629
73630 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
73631
73632         Avoid some C++ diagnostics reported by Bruno Haible.
73633         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
73634         xmalloc.
73635         (quotearg_alloc): Use xcharalloc rather than xmalloc.
73636         (struct slotvec): Move to top level.
73637         (quotearg_n_options): Rewrite to avoid xmalloc.
73638         * lib/xalloc.h (xcharalloc): New function.
73639         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
73640         [defined __cplusplus]: Add function template that provides result
73641         type propagation.  This part of the change is from Bruno Haible.
73642
73643 2006-10-29  Bruno Haible  <bruno@clisp.org>
73644
73645         Make it compile in C++ mode.
73646         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
73647         * lib/strnlen1.c (strnlen1): Cast memchr result.
73648         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
73649         * lib/clean-temp.c (string_equals, string_hash): Add casts.
73650         (create_temp_dir): Rename local variable 'template'.
73651         (compile_csharp_using_sscli): Add cast.
73652         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
73653         * lib/findprog.c (find_in_path): Likewise.
73654         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
73655         * lib/wait-process.c (register_slave_subprocess): Likewise.
73656
73657 2006-10-22  Bruno Haible  <bruno@clisp.org>
73658
73659         * modules/tsearch: New file.
73660         * lib/tsearch.h: New file.
73661         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
73662         * m4/tsearch.m4: New file.
73663         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
73664
73665 2006-10-29  Eric Blake  <ebb9@byu.net>
73666
73667         * lib/arcfour.c: Assume config.h.
73668         * lib/arctwo.c: Likewise.
73669         * lib/base64.c: Likewise.
73670         * lib/check-version.c: Likewise.
73671         * lib/crc.c: Likewise.
73672         * lib/des.c: Likewise.
73673         * lib/gc-gnulib.c: Likewise.
73674         * lib/gc-libgcrypt.c: Likewise.
73675         * lib/gc-pbkdf2-sha1.c: Likewise.
73676         * lib/getaddrinfo.c: Likewise.
73677         * lib/getdelim.c: Likewise.
73678         * lib/getline.c: Likewise.
73679         * lib/hmac-md5.c: Likewise.
73680         * lib/hmac-sha1.c: Likewise.
73681         * lib/iconvme.c: Likewise.
73682         * lib/md2.c: Likewise.
73683         * lib/md4.c: Likewise.
73684         * lib/memxor.c: Likewise.
73685         * lib/read-file.c: Likewise.
73686         * lib/readline.c: Likewise.
73687         * lib/rijndael-alg-fst.c: Likewise.
73688         * lib/rijndael-api-fst.c: Likewise.
73689         * lib/xgetdomainname.c: Likewise.
73690
73691 2006-10-28  Eric Blake  <ebb9@byu.net>
73692
73693         * lib/xstrndup.c: Assume config.h.
73694
73695 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73696
73697         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
73698         stat-macros.h is now for our own macros, whereas stat_h is for
73699         macros in the <sys/stat.h> name space.
73700         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
73701         (STAT_MACROS_H): Remove.
73702         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
73703         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
73704         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
73705         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
73706         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
73707         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
73708         Move these macros to ...
73709         * lib/stat_.h: here.  Don't include stat-macros.h.
73710         * lib/canonicalize.c: Don't include stat-macros.h.
73711         * lib/chown.c: Likewise.
73712         * lib/euidaccess.c: Likewise.
73713         * lib/file-type.c: Likewise.
73714         * lib/filemode.c: Likewise.
73715         * lib/glob.c: Likewise.
73716         * lib/isapipe.c: Likewise.
73717         * lib/lchown.c: Likewise.
73718         * lib/lstat.c: Likewise.
73719         * lib/mkdir-p.c: Likewise.
73720         * lib/rmdir.c: Likewise.
73721         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
73722         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
73723         unless mkdir isn't declared, to speed up 'configure'.
73724         Always create sys/stat.h, since it's unlikely any real sys/stat.h
73725         would define all the S_* symbols.
73726         * modules/canonicalize (Depends-on):
73727         Depend on sys_stat, not stat-macros.
73728         * modules/chown: Likewise.
73729         * modules/euidaccess: Likewise.
73730         * modules/filemode: Likewise.
73731         * modules/file-type: Likewise.
73732         * modules/glob: Likewise.
73733         * modules/isapipe: Likewise.
73734         * modules/lchown: Likewise.
73735         * modules/lstat: Likewise.
73736         * modules/mkancesdirs: Likewise.
73737         * modules/rmdir: Likewise.
73738         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
73739         * modules/modechange: Likewise.
73740         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
73741         (configure.ac): Remove gl_STAT_MACROS.
73742         * modules/sys_stat (Depends-on): Remove stat-macros.
73743
73744 2006-10-27  Bruno Haible  <bruno@clisp.org>
73745
73746         * m4/signed.m4: Remove file.
73747         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
73748         invocation.
73749         * modules/vasnprintf (Files): Remove m4/signed.m4.
73750
73751 2006-10-27  Bruno Haible  <bruno@clisp.org>
73752
73753         Update to GNU gettext 0.16.
73754         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
73755         m4/inttypes-h.m4, m4/signed.m4.
73756         * m4/gettext.m4: Update to GNU gettext 0.16.
73757         * m4/intl.m4: New file, from GNU gettext.
73758         * m4/intldir.m4: New file, from GNU gettext.
73759         * config/srclist.txt: Update
73760
73761 2006-10-27  Eric Blake  <ebb9@byu.net>
73762
73763         * MODULES.html.sh: Document tempname.
73764         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
73765         dependencies.
73766         (Files): Move lib/tempname.c...
73767         * modules/tempname: ...to this new module.
73768         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
73769         (gl_PREREQ_TEMPNAME): Move...
73770         * m4/tempname.m4: ...to this new file.
73771         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
73772         * modules/sys_stat (Depends-on): Add stat-macros.
73773         * lib/stat_.h (includes): Pick up stat macros.
73774         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
73775         if stat macros are broken.
73776         * lib/tempname.c (includes): No need to include "stat-macros.h".
73777         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
73778         (direxists, __path_search) [!_LIBC]: Don't compile these in
73779         gnulib; the tmpdir module covers that.
73780         * lib/tempname.h: New file.
73781
73782 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
73783
73784         * COPYING: Explain how gnulib-tool converts licence headers.
73785         Almost all wording by Eric Blake.
73786
73787 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
73788
73789         * lib/mbchar.h (is_basic_table): Make read-only.
73790         * lib/mbchar.c (is_basic_table): Likewise.
73791         Reported by John Darrington.
73792
73793 2006-10-25  Bruno Haible  <bruno@clisp.org>
73794
73795         * lib/progname.h (set_program_name): Undefine before defining.
73796
73797 2006-10-25  Bruno Haible  <bruno@clisp.org>
73798
73799         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
73800         false for non-gcc C++ compilers.
73801         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
73802
73803 2006-10-24  Bruno Haible  <bruno@clisp.org>
73804
73805         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
73806         iconv implementations like Irix iconv.
73807
73808 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73809
73810         * modules/vararrays: New file.
73811         * m4/vararrays.m4: New file, taken from diffutils.
73812         * MODULES.html.sh: New module vararrays.
73813
73814 2006-10-24  Karl Berry  <karl@gnu.org>
73815
73816         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
73817         Don't call GNU Unix.
73818
73819 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73820
73821         * users.txt: Add Libtool.
73822
73823         Sync from Libtool:
73824
73825         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73826
73827         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
73828         to gnulib's policy of including config.h unconditionally.
73829
73830 2006-10-24  Bruno Haible  <bruno@clisp.org>
73831
73832         * modules/wcwidth (Files): Add m4/wint_t.m4.
73833         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
73834         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
73835
73836 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73837
73838         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
73839         to pacify GCC with some -W flags enabled.  Problem reported by
73840         Bruno Haible.
73841
73842 2006-10-24  Jim Meyering  <jim@meyering.net>
73843
73844         * MODULES.html.sh: Remove uinttostr.  It's not a module.
73845         Reported by Karl Berry.
73846
73847 2006-10-23  Bruno Haible  <bruno@clisp.org>
73848
73849         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
73850
73851 2006-10-24  Bruno Haible  <bruno@clisp.org>
73852
73853         * lib/gl_list.h: Use C comment style, not C++ comment style.
73854
73855 2006-10-23  Eric Blake  <ebb9@byu.net>
73856
73857         * lib/getaddrinfo.c (includes): Add missing include.
73858
73859 2006-10-23  Bruno Haible  <bruno@clisp.org>
73860             Paul Eggert  <eggert@cs.ucla.edu>
73861
73862         Ability to rename obstack_free.
73863         * lib/obstack.h (__obstack_free): New macro. Declare instead of
73864         obstack_free.
73865         (obstack_free): Invoke the __obstack_free macro.
73866         * lib/obstack.c (obstack_free): Use __obstack_free macro.
73867
73868 2006-10-23  Bruno Haible  <bruno@clisp.org>
73869             Paul Eggert  <eggert@cs.ucla.edu>
73870
73871         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
73872         __argc, __argv from the declaration. (They are defined as macros on
73873         mingw.)
73874
73875 2006-10-22  Bruno Haible  <bruno@clisp.org>
73876
73877         * doc/gnulib-intro.texi: New file.
73878         * doc/gnulib.texi: Include it.
73879
73880 2006-10-21  Bruno Haible  <bruno@clisp.org>
73881
73882         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
73883         "Introduction", "Miscellanous Notes", "Particular Modules".
73884
73885 2006-10-21  Bruno Haible  <bruno@clisp.org>
73886
73887         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73888         Change mostlyclean-local rule to avoid sh syntax error from bash
73889         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
73890
73891 2006-10-23  Jim Meyering  <jim@meyering.net>
73892
73893         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
73894         in place of snprintf.
73895
73896         * modules/inttostr (Files): Add lib/uinttostr.c.
73897         * lib/uinttostr.c (inttostr): New file/function.
73898         * lib/inttostr.h (uinttostr): Declare.
73899         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
73900         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73901         Add uinttostr.
73902         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
73903
73904 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73905
73906         * lib/canonicalize.c (ELOOP): Define if not already defined.
73907         Problem reported by Bruno Haible in
73908         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
73909
73910 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73911
73912         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
73913         Problem reported by Perry Smith and Ville Laurikari.
73914
73915         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
73916         uses.
73917
73918 2006-10-19  Bruno Haible  <bruno@clisp.org>
73919
73920         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
73921         for mingw.
73922
73923 2006-10-19  Bruno Haible  <bruno@clisp.org>
73924
73925         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
73926         Needed for mingw.
73927
73928 2006-10-19  Bruno Haible  <bruno@clisp.org>
73929
73930         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
73931
73932 2006-10-19  Bruno Haible  <bruno@clisp.org>
73933
73934         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
73935         it.
73936
73937 2006-10-19  Bruno Haible  <bruno@clisp.org>
73938
73939         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
73940         invocation.
73941
73942 2006-10-19  Bruno Haible  <bruno@clisp.org>
73943
73944         * gnulib-tool (func_create_testdir): Don't include ftruncate and
73945         mountlist by default.
73946
73947 2006-10-16  Bruno Haible  <bruno@clisp.org>
73948
73949         * lib/c-strstr.c: Include c-strstr.h.
73950
73951 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73952
73953         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
73954         in a slash.
73955
73956 2006-10-18  Bruno Haible  <bruno@clisp.org>
73957
73958         * lib/lock.h [C++]: Wrap definitions in extern "C".
73959
73960 2006-10-18  Bruno Haible  <bruno@clisp.org>
73961
73962         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
73963         gl_LIBOBJS list.
73964
73965 2006-10-18  Bruno Haible  <bruno@clisp.org>
73966
73967         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
73968
73969 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
73970
73971         * lib/xstrtol.h: Include gettext.h.
73972         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
73973         Problem reported by Eric Blake.
73974         * modules/xstrtol (Depends-on): Add gettext-h.
73975
73976 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
73977
73978         * lib/strftime.c (advance): New macro.
73979         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
73980         incomplete type, so you can't add 0 to it.  Problem and patch
73981         reported by Eelco Dolstra for dietlibc.
73982
73983 2006-10-18  Jim Meyering  <jim@meyering.net>
73984
73985         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
73986         type for a local, and rename it: s/up/user_proc/.
73987
73988 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
73989
73990         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
73991         READ_UTMP_USER_PROCESS.
73992         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
73993
73994 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73995
73996         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
73997         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
73998
73999 2006-10-17  Eric Blake  <ebb9@byu.net>
74000
74001         * lib/sigprocmask.c (sigprocmask): Fix typo.
74002
74003         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
74004
74005         * modules/clean-temp (Makefile.am): Don't add to make output...
74006         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
74007         config.h.
74008
74009 2006-10-17  Bruno Haible  <bruno@clisp.org>
74010
74011         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
74012         differently if DEFAULT_TEXT_DOMAIN is set.
74013
74014 2006-10-16  Bruno Haible  <bruno@clisp.org>
74015
74016         * lib/clean-temp.c: Include fwriteerror.h.
74017
74018 2006-10-16  Bruno Haible  <bruno@clisp.org>
74019
74020         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
74021
74022 2006-10-16  Bruno Haible  <bruno@clisp.org>
74023
74024         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
74025         * lib/sigprocmask.h: Include <sys/types.h>.
74026         (sigset_t): Use the system's definition if present.
74027
74028 2006-10-17  Eric Blake  <ebb9@byu.net>
74029
74030         * lib/xvasprintf.c (includes): Assume config.h.
74031         * lib/xasprintf.c (includes): Likewise.
74032
74033 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
74034
74035         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
74036         at least as wide as intmax_t.
74037
74038 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
74039
74040         (Imported from Automake.)
74041         * build-aux/gnupload: Update to version 1.1 of directive file.
74042
74043 2006-10-16  Eric Blake  <ebb9@byu.net>
74044
74045         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
74046         match Automake 1.10a.
74047
74048 2006-10-14  Bruno Haible  <bruno@clisp.org>
74049
74050         * modules/sigprocmask: New file.
74051         * lib/sigprocmask.h: New file.
74052         * lib/sigprocmask.c: New file.
74053         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
74054         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
74055         request sigprocmask.o.
74056         (gl_PREREQ_SIGPROCMASK): New macro.
74057         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
74058         (Depends-on): Add sigprocmask.
74059         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
74060         gt_SIGNALBLOCKING. Test for 'raise' only once.
74061         * lib/fatal-signal.c: Include sigprocmask.h.
74062         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
74063         unblock_fatal_signals): Define always.
74064         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74065         sigprocmask.
74066
74067 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74068
74069         Sync from Automake.
74070         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
74071         which incorrectly sets the mode of an existing destination
74072         directory.  In some cases the unpatched install-sh could do the
74073         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
74074         system.  We hope this is rare in practice, but it's clearly worth
74075         fixing.  Problem reported by Alex Unleashed in
74076         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
74077         Also, don't bother to check for -m bugs unless we're using -m;
74078         suggested by Stepan Kasal.
74079
74080 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74081
74082         Sync from Automake.
74083         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
74084         `-c' flag, so they appear at the same position as in %FASTDEP%
74085         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
74086         which ignores unknown options only after the first non-option.
74087         Bug report against M4 by Nelson H. F. Beebe.
74088
74089 2006-10-13  Jim Meyering  <jim@meyering.net>
74090
74091         Fix a bug in yesterday's change.
74092         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
74093         p->fts_statp->st_dev would be used uninitialized.
74094         Ensures that we always call fts_stat on the very first entry.
74095         Miklos Szeredi reported that find -xdev stopped working.
74096
74097 2006-10-12  Bruno Haible  <bruno@clisp.org>
74098
74099         * gnulib-tool (func_get_automake_snippet): Append an automatically
74100         computed EXTRA_DIST augmentation.
74101         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
74102         * modules/alloca-opt (Makefile.am): Likewise.
74103         * modules/allocsa (Makefile.am): Likewise.
74104         * modules/arcfour (Makefile.am): Likewise.
74105         * modules/arctwo (Makefile.am): Likewise.
74106         * modules/argmatch (Makefile.am): Likewise.
74107         * modules/argz (Makefile.am): Likewise.
74108         * modules/atexit (Makefile.am): Likewise.
74109         * modules/backupfile (Makefile.am): Likewise.
74110         * modules/byteswap (Makefile.am): Likewise.
74111         * modules/c-strtod (Makefile.am): Likewise.
74112         * modules/c-strtold (Makefile.am): Likewise.
74113         * modules/calloc (Makefile.am): Likewise.
74114         * modules/canon-host (Makefile.am): Likewise.
74115         * modules/canonicalize (Makefile.am): Likewise.
74116         * modules/chdir-long (Makefile.am): Likewise.
74117         * modules/chdir-safer (Makefile.am): Likewise.
74118         * modules/check-version (Makefile.am): Likewise.
74119         * modules/chown (Makefile.am): Likewise.
74120         * modules/cloexec (Makefile.am): Likewise.
74121         * modules/close-stream (Makefile.am): Likewise.
74122         * modules/closeout (Makefile.am): Likewise.
74123         * modules/crc (Makefile.am): Likewise.
74124         * modules/csharpexec (Makefile.am): Likewise.
74125         * modules/cycle-check (Makefile.am): Likewise.
74126         * modules/des (Makefile.am): Likewise.
74127         * modules/dev-ino (Makefile.am): Likewise.
74128         * modules/dirfd (Makefile.am): Likewise.
74129         * modules/dirname (Makefile.am): Likewise.
74130         * modules/dup2 (Makefile.am): Likewise.
74131         * modules/eealloc (Makefile.am): Likewise.
74132         * modules/error (Makefile.am): Likewise.
74133         * modules/euidaccess (Makefile.am): Likewise.
74134         * modules/exclude (Makefile.am): Likewise.
74135         * modules/exitfail (Makefile.am): Likewise.
74136         * modules/fcntl-safer (Makefile.am): Likewise.
74137         * modules/fcntl (Makefile.am): Likewise.
74138         * modules/file-type (Makefile.am): Likewise.
74139         * modules/fileblocks (Makefile.am): Likewise.
74140         * modules/filemode (Makefile.am): Likewise.
74141         * modules/filenamecat (Makefile.am): Likewise.
74142         * modules/fnmatch (Makefile.am): Likewise.
74143         * modules/fopen-safer (Makefile.am): Likewise.
74144         * modules/fpending (Makefile.am): Likewise.
74145         * modules/fprintftime (Makefile.am): Likewise.
74146         * modules/free (Makefile.am): Likewise.
74147         * modules/fsusage (Makefile.am): Likewise.
74148         * modules/ftruncate (Makefile.am): Likewise.
74149         * modules/fts (Makefile.am): Likewise.
74150         * modules/gc-arcfour (Makefile.am): Likewise.
74151         * modules/gc-des (Makefile.am): Likewise.
74152         * modules/gc-hmac-md5 (Makefile.am): Likewise.
74153         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
74154         * modules/gc-md4 (Makefile.am): Likewise.
74155         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
74156         * modules/gc-sha1 (Makefile.am): Likewise.
74157         * modules/gc (Makefile.am): Likewise.
74158         * modules/getaddrinfo (Makefile.am): Likewise.
74159         * modules/getcwd (Makefile.am): Likewise.
74160         * modules/getdelim (Makefile.am): Likewise.
74161         * modules/getdomainname (Makefile.am): Likewise.
74162         * modules/getgroups (Makefile.am): Likewise.
74163         * modules/gethostname (Makefile.am): Likewise.
74164         * modules/gethrxtime (Makefile.am): Likewise.
74165         * modules/getline (Makefile.am): Likewise.
74166         * modules/getloadavg (Makefile.am): Likewise.
74167         * modules/getlogin_r (Makefile.am): Likewise.
74168         * modules/getndelim2 (Makefile.am): Likewise.
74169         * modules/getopt (Makefile.am): Likewise.
74170         * modules/getpagesize (Makefile.am): Likewise.
74171         * modules/getpass-gnu (Makefile.am): Likewise.
74172         * modules/getpass (Makefile.am): Likewise.
74173         * modules/getsubopt (Makefile.am): Likewise.
74174         * modules/gettime (Makefile.am): Likewise.
74175         * modules/gettimeofday (Makefile.am): Likewise.
74176         * modules/getugroups (Makefile.am): Likewise.
74177         * modules/getusershell (Makefile.am): Likewise.
74178         * modules/glob (Makefile.am): Likewise.
74179         * modules/group-member (Makefile.am): Likewise.
74180         * modules/hard-locale (Makefile.am): Likewise.
74181         * modules/hash (Makefile.am): Likewise.
74182         * modules/hmac-md5 (Makefile.am): Likewise.
74183         * modules/hmac-sha1 (Makefile.am): Likewise.
74184         * modules/human (Makefile.am): Likewise.
74185         * modules/idcache (Makefile.am): Likewise.
74186         * modules/imaxabs (Makefile.am): Likewise.
74187         * modules/imaxdiv (Makefile.am): Likewise.
74188         * modules/inet_ntop (Makefile.am): Likewise.
74189         * modules/inet_pton (Makefile.am): Likewise.
74190         * modules/intprops (Makefile.am): Likewise.
74191         * modules/inttostr (Makefile.am): Likewise.
74192         * modules/inttypes (Makefile.am): Likewise.
74193         * modules/isapipe (Makefile.am): Likewise.
74194         * modules/javaversion (Makefile.am): Likewise.
74195         * modules/lchmod (Makefile.am): Likewise.
74196         * modules/lchown (Makefile.am): Likewise.
74197         * modules/localcharset (Makefile.am): Likewise.
74198         * modules/long-options (Makefile.am): Likewise.
74199         * modules/lstat (Makefile.am): Likewise.
74200         * modules/malloc (Makefile.am): Likewise.
74201         * modules/mathl (Makefile.am): Likewise.
74202         * modules/mbchar (Makefile.am): Likewise.
74203         * modules/md2 (Makefile.am): Likewise.
74204         * modules/md4 (Makefile.am): Likewise.
74205         * modules/md5 (Makefile.am): Likewise.
74206         * modules/memcasecmp (Makefile.am): Likewise.
74207         * modules/memchr (Makefile.am): Likewise.
74208         * modules/memcmp (Makefile.am): Likewise.
74209         * modules/memcoll (Makefile.am): Likewise.
74210         * modules/memcpy (Makefile.am): Likewise.
74211         * modules/memmem (Makefile.am): Likewise.
74212         * modules/memmove (Makefile.am): Likewise.
74213         * modules/mempcpy (Makefile.am): Likewise.
74214         * modules/memrchr (Makefile.am): Likewise.
74215         * modules/memset (Makefile.am): Likewise.
74216         * modules/memxor (Makefile.am): Likewise.
74217         * modules/mkancesdirs (Makefile.am): Likewise.
74218         * modules/mkdir-p (Makefile.am): Likewise.
74219         * modules/mkdir (Makefile.am): Likewise.
74220         * modules/mkdtemp (Makefile.am): Likewise.
74221         * modules/mkstemp (Makefile.am): Likewise.
74222         * modules/mktime (Makefile.am): Likewise.
74223         * modules/modechange (Makefile.am): Likewise.
74224         * modules/mountlist (Makefile.am): Likewise.
74225         * modules/nanosleep (Makefile.am): Likewise.
74226         * modules/obstack (Makefile.am): Likewise.
74227         * modules/openat (Makefile.am): Likewise.
74228         * modules/pagealign_alloc (Makefile.am): Likewise.
74229         * modules/pathmax (Makefile.am): Likewise.
74230         * modules/physmem (Makefile.am): Likewise.
74231         * modules/poll (Makefile.am): Likewise.
74232         * modules/posixtm (Makefile.am): Likewise.
74233         * modules/posixver (Makefile.am): Likewise.
74234         * modules/putenv (Makefile.am): Likewise.
74235         * modules/quote (Makefile.am): Likewise.
74236         * modules/quotearg (Makefile.am): Likewise.
74237         * modules/raise (Makefile.am): Likewise.
74238         * modules/read-file (Makefile.am): Likewise.
74239         * modules/readline (Makefile.am): Likewise.
74240         * modules/readlink (Makefile.am): Likewise.
74241         * modules/readtokens (Makefile.am): Likewise.
74242         * modules/readutmp (Makefile.am): Likewise.
74243         * modules/realloc (Makefile.am): Likewise.
74244         * modules/regex (Makefile.am): Likewise.
74245         * modules/rename-dest-slash (Makefile.am): Likewise.
74246         * modules/rename (Makefile.am): Likewise.
74247         * modules/rijndael (Makefile.am): Likewise.
74248         * modules/rmdir (Makefile.am): Likewise.
74249         * modules/rpmatch (Makefile.am): Likewise.
74250         * modules/safe-read (Makefile.am): Likewise.
74251         * modules/safe-write (Makefile.am): Likewise.
74252         * modules/same-inode (Makefile.am): Likewise.
74253         * modules/same (Makefile.am): Likewise.
74254         * modules/save-cwd (Makefile.am): Likewise.
74255         * modules/savedir (Makefile.am): Likewise.
74256         * modules/setenv (Makefile.am): Likewise.
74257         * modules/settime (Makefile.am): Likewise.
74258         * modules/sha1 (Makefile.am): Likewise.
74259         * modules/sig2str (Makefile.am): Likewise.
74260         * modules/snprintf (Makefile.am): Likewise.
74261         * modules/stat-macros (Makefile.am): Likewise.
74262         * modules/stat-time (Makefile.am): Likewise.
74263         * modules/stdbool (Makefile.am): Likewise.
74264         * modules/stdint (Makefile.am): Likewise.
74265         * modules/stdlib-safer (Makefile.am): Likewise.
74266         * modules/stpcpy (Makefile.am): Likewise.
74267         * modules/stpncpy (Makefile.am): Likewise.
74268         * modules/strcase (Makefile.am): Likewise.
74269         * modules/strcasestr (Makefile.am): Likewise.
74270         * modules/strchrnul (Makefile.am): Likewise.
74271         * modules/strcspn (Makefile.am): Likewise.
74272         * modules/strdup (Makefile.am): Likewise.
74273         * modules/strerror (Makefile.am): Likewise.
74274         * modules/strftime (Makefile.am): Likewise.
74275         * modules/strndup (Makefile.am): Likewise.
74276         * modules/strnlen (Makefile.am): Likewise.
74277         * modules/strpbrk (Makefile.am): Likewise.
74278         * modules/strsep (Makefile.am): Likewise.
74279         * modules/strstr (Makefile.am): Likewise.
74280         * modules/strtod (Makefile.am): Likewise.
74281         * modules/strtoimax (Makefile.am): Likewise.
74282         * modules/strtok_r (Makefile.am): Likewise.
74283         * modules/strtol (Makefile.am): Likewise.
74284         * modules/strtoll (Makefile.am): Likewise.
74285         * modules/strtoul (Makefile.am): Likewise.
74286         * modules/strtoull (Makefile.am): Likewise.
74287         * modules/strtoumax (Makefile.am): Likewise.
74288         * modules/strverscmp (Makefile.am): Likewise.
74289         * modules/sys_socket (Makefile.am): Likewise.
74290         * modules/sys_stat (Makefile.am): Likewise.
74291         * modules/sysexits (Makefile.am): Likewise.
74292         * modules/time_r (Makefile.am): Likewise.
74293         * modules/timegm (Makefile.am): Likewise.
74294         * modules/timespec (Makefile.am): Likewise.
74295         * modules/tmpfile-safer (Makefile.am): Likewise.
74296         * modules/trim (Makefile.am): Likewise.
74297         * modules/unistd-safer (Makefile.am): Likewise.
74298         * modules/unlinkdir (Makefile.am): Likewise.
74299         * modules/unlocked-io (Makefile.am): Likewise.
74300         * modules/userspec (Makefile.am): Likewise.
74301         * modules/utime (Makefile.am): Likewise.
74302         * modules/utimecmp (Makefile.am): Likewise.
74303         * modules/utimens (Makefile.am): Likewise.
74304         * modules/vasnprintf (Makefile.am): Likewise.
74305         * modules/vasprintf (Makefile.am): Likewise.
74306         * modules/vsnprintf (Makefile.am): Likewise.
74307         * modules/xalloc (Makefile.am): Likewise.
74308         * modules/xgetcwd (Makefile.am): Likewise.
74309         * modules/xnanosleep (Makefile.am): Likewise.
74310         * modules/xreadlink (Makefile.am): Likewise.
74311         * modules/xstrtod (Makefile.am): Likewise.
74312         * modules/xstrtol (Makefile.am): Likewise.
74313         * modules/xstrtold (Makefile.am): Likewise.
74314         * modules/yesno (Makefile.am): Likewise.
74315         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
74316
74317 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
74318
74319         * modules/error (Makefile.am): Distribute files through
74320         EXTRA_DIST, not lib_SOURCES.
74321
74322 2006-10-12  Eric Blake  <ebb9@byu.net>
74323
74324         * modules/error (Makefile.am): Distribute files in /lib.
74325         * modules/obstack (Makefile.am): Likewise.
74326
74327 2006-10-12  Bruno Haible  <bruno@clisp.org>
74328
74329         * modules/acl (Makefile.am): Distribute all files in lib/ through
74330         EXTRA_DIST.
74331         * modules/arcfour (Makefile.am): Likewise.
74332         * modules/arctwo (Makefile.am): Likewise.
74333         * modules/argmatch (Makefile.am): Likewise.
74334         * modules/argz (Makefile.am): Likewise.
74335         * modules/atexit (Makefile.am): Likewise.
74336         * modules/backupfile (Makefile.am): Likewise.
74337         * modules/c-strtod (Makefile.am): Likewise.
74338         * modules/c-strtold (Makefile.am): Likewise.
74339         * modules/calloc (Makefile.am): Likewise.
74340         * modules/canon-host (Makefile.am): Likewise.
74341         * modules/canonicalize (Makefile.am): Likewise.
74342         * modules/chdir-long (Makefile.am): Likewise.
74343         * modules/chdir-safer (Makefile.am): Likewise.
74344         * modules/check-version (Makefile.am): Likewise.
74345         * modules/chown (Makefile.am): Likewise.
74346         * modules/cloexec (Makefile.am): Likewise.
74347         * modules/close-stream (Makefile.am): Likewise.
74348         * modules/closeout (Makefile.am): Likewise.
74349         * modules/crc (Makefile.am): Likewise.
74350         * modules/cycle-check (Makefile.am): Likewise.
74351         * modules/des (Makefile.am): Likewise.
74352         * modules/dirfd (Makefile.am): Likewise.
74353         * modules/dirname (Makefile.am): Likewise.
74354         * modules/dup2 (Makefile.am): Likewise.
74355         * modules/euidaccess (Makefile.am): Likewise.
74356         * modules/exclude (Makefile.am): Likewise.
74357         * modules/exitfail (Makefile.am): Likewise.
74358         * modules/fcntl-safer (Makefile.am): Likewise.
74359         * modules/file-type (Makefile.am): Likewise.
74360         * modules/fileblocks (Makefile.am): Likewise.
74361         * modules/filemode (Makefile.am): Likewise.
74362         * modules/filenamecat (Makefile.am): Likewise.
74363         * modules/fnmatch (Makefile.am): Likewise.
74364         * modules/fopen-safer (Makefile.am): Likewise.
74365         * modules/fpending (Makefile.am): Likewise.
74366         * modules/fprintftime (Makefile.am): Likewise.
74367         * modules/free (Makefile.am): Likewise.
74368         * modules/fsusage (Makefile.am): Likewise.
74369         * modules/ftruncate (Makefile.am): Likewise.
74370         * modules/fts (Makefile.am): Likewise.
74371         * modules/gc (Makefile.am): Likewise.
74372         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
74373         * modules/getaddrinfo (Makefile.am): Likewise.
74374         * modules/getcwd (Makefile.am): Likewise.
74375         * modules/getdelim (Makefile.am): Likewise.
74376         * modules/getdomainname (Makefile.am): Likewise.
74377         * modules/getgroups (Makefile.am): Likewise.
74378         * modules/gethostname (Makefile.am): Likewise.
74379         * modules/gethrxtime (Makefile.am): Likewise.
74380         * modules/getline (Makefile.am): Likewise.
74381         * modules/getloadavg (Makefile.am): Likewise.
74382         * modules/getlogin_r (Makefile.am): Likewise.
74383         * modules/getopt (Makefile.am): Likewise.
74384         * modules/getpass (Makefile.am): Likewise.
74385         * modules/getpass-gnu (Makefile.am): Likewise.
74386         * modules/getsubopt (Makefile.am): Likewise.
74387         * modules/gettime (Makefile.am): Likewise.
74388         * modules/gettimeofday (Makefile.am): Likewise.
74389         * modules/getugroups (Makefile.am): Likewise.
74390         * modules/getusershell (Makefile.am): Likewise.
74391         * modules/glob (Makefile.am): Likewise.
74392         * modules/group-member (Makefile.am): Likewise.
74393         * modules/hard-locale (Makefile.am): Likewise.
74394         * modules/hash (Makefile.am): Likewise.
74395         * modules/hmac-md5 (Makefile.am): Likewise.
74396         * modules/hmac-sha1 (Makefile.am): Likewise.
74397         * modules/human (Makefile.am): Likewise.
74398         * modules/idcache (Makefile.am): Likewise.
74399         * modules/imaxabs (Makefile.am): Likewise.
74400         * modules/imaxdiv (Makefile.am): Likewise.
74401         * modules/inet_ntop (Makefile.am): Likewise.
74402         * modules/inet_pton (Makefile.am): Likewise.
74403         * modules/inttostr (Makefile.am): Likewise.
74404         * modules/isapipe (Makefile.am): Likewise.
74405         * modules/lchown (Makefile.am): Likewise.
74406         * modules/long-options (Makefile.am): Likewise.
74407         * modules/lstat (Makefile.am): Likewise.
74408         * modules/malloc (Makefile.am): Likewise.
74409         * modules/mathl (Makefile.am): Likewise.
74410         * modules/mbchar (Makefile.am): Likewise.
74411         * modules/md2 (Makefile.am): Likewise.
74412         * modules/md4 (Makefile.am): Likewise.
74413         * modules/md5 (Makefile.am): Likewise.
74414         * modules/memcasecmp (Makefile.am): Likewise.
74415         * modules/memchr (Makefile.am): Likewise.
74416         * modules/memcmp (Makefile.am): Likewise.
74417         * modules/memcoll (Makefile.am): Likewise.
74418         * modules/memcpy (Makefile.am): Likewise.
74419         * modules/memmem (Makefile.am): Likewise.
74420         * modules/memmove (Makefile.am): Likewise.
74421         * modules/mempcpy (Makefile.am): Likewise.
74422         * modules/memrchr (Makefile.am): Likewise.
74423         * modules/memset (Makefile.am): Likewise.
74424         * modules/memxor (Makefile.am): Likewise.
74425         * modules/mkancesdirs (Makefile.am): Likewise.
74426         * modules/mkdir (Makefile.am): Likewise.
74427         * modules/mkdir-p (Makefile.am): Likewise.
74428         * modules/mkdtemp (Makefile.am): Likewise.
74429         * modules/mkstemp (Makefile.am): Likewise.
74430         * modules/mktime (Makefile.am): Likewise.
74431         * modules/modechange (Makefile.am): Likewise.
74432         * modules/mountlist (Makefile.am): Likewise.
74433         * modules/nanosleep (Makefile.am): Likewise.
74434         * modules/openat (Makefile.am): Likewise.
74435         * modules/pagealign_alloc (Makefile.am): Likewise.
74436         * modules/physmem (Makefile.am): Likewise.
74437         * modules/poll (Makefile.am): Likewise.
74438         * modules/posixtm (Makefile.am): Likewise.
74439         * modules/posixver (Makefile.am): Likewise.
74440         * modules/putenv (Makefile.am): Likewise.
74441         * modules/quote (Makefile.am): Likewise.
74442         * modules/quotearg (Makefile.am): Likewise.
74443         * modules/raise (Makefile.am): Likewise.
74444         * modules/read-file (Makefile.am): Likewise.
74445         * modules/readline (Makefile.am): Likewise.
74446         * modules/readlink (Makefile.am): Likewise.
74447         * modules/readtokens (Makefile.am): Likewise.
74448         * modules/readutmp (Makefile.am): Likewise.
74449         * modules/realloc (Makefile.am): Likewise.
74450         * modules/regex (Makefile.am): Likewise.
74451         * modules/rename (Makefile.am): Likewise.
74452         * modules/rename-dest-slash (Makefile.am): Likewise.
74453         * modules/rijndael (Makefile.am): Likewise.
74454         * modules/rmdir (Makefile.am): Likewise.
74455         * modules/rpmatch (Makefile.am): Likewise.
74456         * modules/safe-read (Makefile.am): Likewise.
74457         * modules/safe-write (Makefile.am): Likewise.
74458         * modules/same (Makefile.am): Likewise.
74459         * modules/save-cwd (Makefile.am): Likewise.
74460         * modules/savedir (Makefile.am): Likewise.
74461         * modules/setenv (Makefile.am): Likewise.
74462         * modules/settime (Makefile.am): Likewise.
74463         * modules/sha1 (Makefile.am): Likewise.
74464         * modules/sig2str (Makefile.am): Likewise.
74465         * modules/snprintf (Makefile.am): Likewise.
74466         * modules/stdlib-safer (Makefile.am): Likewise.
74467         * modules/stpcpy (Makefile.am): Likewise.
74468         * modules/stpncpy (Makefile.am): Likewise.
74469         * modules/strcase (Makefile.am): Likewise.
74470         * modules/strcasestr (Makefile.am): Likewise.
74471         * modules/strchrnul (Makefile.am): Likewise.
74472         * modules/strcspn (Makefile.am): Likewise.
74473         * modules/strdup (Makefile.am): Likewise.
74474         * modules/strerror (Makefile.am): Likewise.
74475         * modules/strftime (Makefile.am): Likewise.
74476         * modules/strndup (Makefile.am): Likewise.
74477         * modules/strnlen (Makefile.am): Likewise.
74478         * modules/strpbrk (Makefile.am): Likewise.
74479         * modules/strsep (Makefile.am): Likewise.
74480         * modules/strstr (Makefile.am): Likewise.
74481         * modules/strtod (Makefile.am): Likewise.
74482         * modules/strtoimax (Makefile.am): Likewise.
74483         * modules/strtok_r (Makefile.am): Likewise.
74484         * modules/strtol (Makefile.am): Likewise.
74485         * modules/strtoll (Makefile.am): Likewise.
74486         * modules/strtoul (Makefile.am): Likewise.
74487         * modules/strtoull (Makefile.am): Likewise.
74488         * modules/strtoumax (Makefile.am): Likewise.
74489         * modules/strverscmp (Makefile.am): Likewise.
74490         * modules/time_r (Makefile.am): Likewise.
74491         * modules/timegm (Makefile.am): Likewise.
74492         * modules/tmpfile-safer (Makefile.am): Likewise.
74493         * modules/unistd-safer (Makefile.am): Likewise.
74494         * modules/unlinkdir (Makefile.am): Likewise.
74495         * modules/userspec (Makefile.am): Likewise.
74496         * modules/utime (Makefile.am): Likewise.
74497         * modules/utimecmp (Makefile.am): Likewise.
74498         * modules/utimens (Makefile.am): Likewise.
74499         * modules/vasnprintf (Makefile.am): Likewise.
74500         * modules/vasprintf (Makefile.am): Likewise.
74501         * modules/vsnprintf (Makefile.am): Likewise.
74502         * modules/xalloc (Makefile.am): Likewise.
74503         * modules/xgetcwd (Makefile.am): Likewise.
74504         * modules/xnanosleep (Makefile.am): Likewise.
74505         * modules/xreadlink (Makefile.am): Likewise.
74506         * modules/xstrtod (Makefile.am): Likewise.
74507         * modules/xstrtol (Makefile.am): Likewise.
74508         * modules/xstrtold (Makefile.am): Likewise.
74509         * modules/yesno (Makefile.am): Likewise.
74510
74511 2006-10-12  Jim Meyering  <jim@meyering.net>
74512
74513         * m4/getloadavg.m4: Revert the change below.
74514
74515         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
74516         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
74517         fail with a symlink, which is what coreutils' ./bootstrap now
74518         creates by default.
74519
74520 2006-10-12  Bruno Haible  <bruno@clisp.org>
74521
74522         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
74523         mingw.
74524         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
74525         MSVC and mingw explicitly.
74526
74527 2006-10-11  Simon Josefsson  <jas@extundo.com>
74528             Bruno Haible  <bruno@clisp.org>
74529
74530         Add support for multiple gnulib-tool invocations in the scope of a
74531         single configure.ac file.
74532         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
74533         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
74534         with the same contents as the _LIBADD variable.
74535         (func_emit_initmacro_start, func_emit_initmacro_end,
74536         func_emit_initmacro_done): New functions.
74537         (func_import, func_create_testdir): Invoke them. Allow the identifiers
74538         gl_LIBOBJS and gl_LTLIBOBJS.
74539
74540 2006-10-11  Bruno Haible  <bruno@clisp.org>
74541
74542         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
74543         (func_create_testdir): Don't create po/Makefile.am, don't invoke
74544         autoreconf. Instead, invoke autopoint explicitly but move back the
74545         *.m4 files from gnulib.
74546
74547 2006-10-11  Bruno Haible  <bruno@clisp.org>
74548
74549         * gnulib-tool (func_usage): Make module names after --create-testdir
74550         optional.
74551         (func_create_testdir): If no module was specified, use nearly all
74552         modules.
74553
74554 2006-10-12  Jim Meyering  <jim@meyering.net>
74555
74556         Big performance improvement for fts-based tools that use FTS_NOSTAT.
74557         Avoid spurious inode-mismatch problems on non-POSIX file systems.
74558         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
74559         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
74560         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
74561         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
74562         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
74563         (fts_set_stat_required): New function.
74564         (fts_open): Defer the calls to fts_stat, if possible or requested.
74565         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
74566         into fts_stat itself.
74567         (fts_read): Perform any required (deferred) fts_stat call.
74568         (fts_build): Likewise, for the directory we're about to open and read.
74569         In the readdir loop, carefully decide whether each entry will require
74570         an eventual call to fts_stat, using dirent.d_type info if available.
74571         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
74572         a command line argument into this function.  Update all callers.
74573         Map a return value of FTS_DOT to FTS_D for a command line argument.
74574         * modules/fts (Depends-on): Add d-type.  Alphabetize.
74575         Thanks to Miklos Szeredi for his tenacity and for the initial
74576         bug report about "find" failing on a FUSE-based file system.
74577
74578         * lib/fts.c (fts_open): Use consistent indentation.
74579
74580 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
74581
74582         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
74583         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
74584         reported by Jim Meyering.  All uses of cache variables renamed
74585         to match Autoconf's.
74586         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
74587         the other one.
74588
74589         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
74590         Fix misspelling in diagnostic.
74591
74592 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
74593
74594         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
74595         defined.  Problem reported by Matthew Woehlke.
74596
74597         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
74598         Add support for Tandem NonStop R series.
74599         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
74600         Use new macro.
74601
74602         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
74603         (has_trailing_slash): Omit size arg; all callers changed.
74604         Omit 'inline', since it doesn't help performance and we'd
74605         need to configure it.
74606         Don't count //, ///, etc. as having a trailing slash.
74607         As a side effect, this removes a C99ism reported by Matthew Woehlke.
74608         (rpl_rename_dest_slash): On failure, use rename's errno rather
74609         than (in some cases) an incorrect or junk errno.
74610         Simplify code by removing need to compute length; this does
74611         cause it to make two passes instead of one over the file name,
74612         but it's worth it.
74613
74614         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
74615         change, since Autoconf's version may no longer be appropriate now
74616         that we are using CVS Autoconf's version.  Add support for Tandem.
74617
74618 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
74619             Bruno Haible  <bruno@clisp.org>
74620
74621         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
74622         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
74623         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
74624         gl_AC_TYPE_LONG_LONG.
74625
74626         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
74627         instead of HAVE_LONG_LONG.
74628         * lib/printf-args.c (printf_fetchargs): Likewise.
74629         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
74630         * lib/vasnprintf.c (VASNPRINTF): Likewise.
74631         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
74632         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
74633         gl_AC_TYPE_LONG_LONG.
74634
74635 2006-10-11  Bruno Haible  <bruno@clisp.org>
74636
74637         * m4/longlong.m4: Add comments.
74638         * m4/ulonglong.m4: Likewise.
74639
74640 2006-10-10  Bruno Haible  <bruno@clisp.org>
74641
74642         Make it possible to #define stpcpy, strdup to aliases.
74643         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
74644         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
74645
74646 2006-10-10  Bruno Haible  <bruno@clisp.org>
74647
74648         Make it possible to #define gcd to an alias.
74649         * lib/gcd.c: Include config.h.
74650
74651 2006-10-10  Bruno Haible  <bruno@clisp.org>
74652
74653         Make it possible to #define c_isascii to an alias.
74654         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
74655         defined. Undefine the macros before defining them, to avoid gcc
74656         warnings.
74657         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
74658         define NO_C_CTYPE_MACROS early.
74659
74660 2006-10-10  Bruno Haible  <bruno@clisp.org>
74661
74662         Make it possible to #define set_program_name to an alias.
74663         * lib/progname.c: Don't undefine set_program_name; instead, undefine
74664         ENABLE_RELOCATABLE early.
74665
74666 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74667
74668         Port to Tandem NSK OSS, which has 64-bit signed int but at most
74669         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
74670         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
74671         More generally, don't assume that 64-bit signed int is available
74672         if unsigned int is, and vice versa.
74673         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
74674         unsigned symbols, not on their signed counterparts.
74675         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
74676         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
74677         (UINT64_C, UINTMAX_C):
74678         Likewise.
74679         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
74680         unsigned counterparts.
74681         (Have_long_long, Unsigned): New macros.
74682         (Int): Renamed from INT.
74683         (strtoimax): Use the new macros.
74684         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
74685         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
74686         * modules/inttypes (inttypes.h): Substitute
74687         HAVE_UNSIGNED_LONG_LONG_INT.
74688         * modules/stdint (stdint.h): Likewise.
74689         (Files): Add m4/ulonglong.m4.
74690
74691 2006-10-10  Bruno Haible  <bruno@clisp.org>
74692
74693         Fix a gcc -Wshadow warning.
74694         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
74695         to 'bucket'.
74696         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
74697         gl_linked_indexof_from_to): Likewise.
74698         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
74699         Likewise.
74700         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
74701         Likewise.
74702         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
74703         Reported by Eric Blake.
74704
74705 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
74706
74707         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
74708         for NetBSD.  Problem reported by Bruno Haible.
74709
74710 2006-10-09  Jim Meyering  <jim@meyering.net>
74711
74712         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
74713         Patch from Bruno Haible.
74714
74715 2006-10-09  Jim Meyering  <jim@meyering.net>
74716
74717         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
74718         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
74719         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
74720
74721 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74722
74723         Don't include <config.h> twice; this doesn't work in some cases,
74724         e.g., when config.h has "#define intmax_t long long int" and
74725         we include <config.h>, <inttypes.h>, <config.h> in that order.
74726         Problem reported by Matthew Woehlke in:
74727         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
74728         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
74729         * lib/fts-cycle.c: Don't include config.h.
74730         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
74731         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
74732         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
74733         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
74734         inttypes.h.
74735         * lib/xstrtoumax.c: Likewise.
74736         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
74737         __strtol and the like, so that this module is more like its siblings.
74738         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
74739         Remove; no longer needed now that we assume gnulib inttypes.h.
74740
74741 2006-10-08  Bruno Haible  <bruno@clisp.org>
74742
74743         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
74744         option.
74745
74746 2006-10-07  Jim Meyering  <jim@meyering.net>
74747
74748         * modules/inttypes (inttypes.h): Revert what seems to have been
74749         an inadvertent part of today's change: use "|", not "/" in the
74750         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
74751
74752 2006-10-07  Bruno Haible  <bruno@clisp.org>
74753
74754         * modules/sublist: New file.
74755
74756 2006-10-07  Bruno Haible  <bruno@clisp.org>
74757
74758         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
74759         * modules/argz (argz.h): Likewise.
74760         * modules/arpa_inet (arpa/inet.h): Likewise.
74761         * modules/byteswap (byteswap.h): Likewise.
74762         * modules/configmake (configmake.h): Likewise.
74763         * modules/fcntl (fcntl.h): Likewise.
74764         * modules/fnmatch (fnmatch.h): Likewise.
74765         * modules/getopt (getopt.h): Likewise.
74766         * modules/glob (glob.h): Likewise.
74767         * modules/inttypes (inttypes.h): Likewise.
74768         * modules/netinet_in (netinet/in.h): Likewise.
74769         * modules/poll (poll.h): Likewise.
74770         * modules/stdbool (stdbool.h): Likewise.
74771         * modules/stdint (stdint.h): Likewise.
74772         * modules/sys_select (sys/select.h): Likewise.
74773         * modules/sys_socket (sys/socket.h): Likewise.
74774         * modules/sys_stat (sys/stat.h): Likewise.
74775         * modules/sysexits (sysexits.h): Likewise.
74776         * modules/unistd (unistd.h): Likewise.
74777         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74778         Add a "DO NOT EDIT" comment to the generated file.
74779         (func_import): Likewise for gnulib-comp.m4.
74780
74781 2006-10-07  Bruno Haible  <bruno@clisp.org>
74782
74783         * lib/gl_sublist.h: New file.
74784         * lib/gl_sublist.c: New file.
74785
74786 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74787
74788         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
74789         name (relative to the original working directory) and the file
74790         name component (relative to the temporary working directory).  All
74791         callers changed.
74792         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
74793         * lib/mkdir-p.c (make_dir_parents): Likewise.
74794         * lib/mkdir-p.h (make_dir_parents): Likewise.
74795
74796 2006-10-06  Eric Blake  <ebb9@byu.net>
74797
74798         Define several macros for use by the clean-temp module.
74799         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
74800         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
74801         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
74802
74803         * lib/clean-temp.h (close_stream_temp): New declaration.
74804         * lib/clean-temp.c (includes): Pull in headers according to what
74805         other modules are in use.
74806         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
74807
74808 2006-10-06  Bruno Haible  <bruno@clisp.org>
74809
74810         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
74811         instead of fopen, fwriteerror.
74812
74813 2006-10-06  Bruno Haible  <bruno@clisp.org>
74814
74815         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
74816         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
74817         int.
74818         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
74819         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
74820         Return an error indicator.
74821         Suggested by Eric Blake.
74822
74823 2006-10-06  Bruno Haible  <bruno@clisp.org>
74824
74825         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
74826         Reported by Eric Blake.
74827
74828 2006-10-06  Bruno Haible  <bruno@clisp.org>
74829
74830         * modules/closeout (Description): Mention stderr too.
74831
74832 2006-10-06  Bruno Haible  <bruno@clisp.org>
74833         and Paul Eggert  <eggert@cs.ucla.edu>
74834
74835         * lib/closeout.c (close_stdout): Also close stderr.
74836         * lib/closeout.h: Update comment.
74837
74838 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74839
74840         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
74841         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
74842         * lib/dirchownmod.c: Include lchown.h.
74843         * lib/lchown.c: Don't include files that lchown.h now includes.
74844         Don't declare chown, since lchown.h now does that.
74845         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
74846         (lchown): Define to rpl_chown if lchown is declared but
74847         does not exist.  Declare using a prototype if lchown is not
74848         declared.  Add a copyright notice.
74849         * lib/mkstemp.h: Include <unistd.h>.
74850         * lib/openat.c: Include lchown.h.
74851
74852         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
74853         we now test for that separately.
74854         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
74855         rather than O_NOFOLLOW, when testing whether it's possible to
74856         avoid a race condition reliably.
74857         * lib/savewd.c (savewd_chdir): Likewise.
74858
74859         Remove macros that are no longer needed now that stdint.h is
74860         reliable.
74861         * lib/fsusage.c (UINTMAX_MAX): Remove.
74862         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
74863         * lib/utimecmp.c (SIZE_MAX): Remove.
74864
74865         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
74866
74867         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
74868         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
74869         O_NOATIME works.
74870
74871 2006-10-05  Bruno Haible  <bruno@clisp.org>
74872
74873         * lib/gl_list.h (gl_sortedlist_search_from_to,
74874         gl_sortedlist_indexof_from_to): New declarations.
74875         (gl_list_implementation): New fields sortedlist_search_from_to,
74876         sortedlist_indexof_from_to.
74877         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
74878         inline functions.
74879         * lib/gl_list.c (gl_sortedlist_search_from_to,
74880         gl_sortedlist_indexof_from_to): New functions.
74881         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
74882         function.
74883         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
74884         (gl_array_sortedlist_search_from_to): New function.
74885         (gl_array_list_implementation): Update.
74886         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
74887         function.
74888         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
74889         (gl_carray_sortedlist_search_from_to): New function.
74890         (gl_carray_list_implementation): Update.
74891         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
74892         gl_linked_sortedlist_indexof_from_to): New functions.
74893         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74894         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74895         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
74896         gl_tree_sortedlist_indexof_from_to): New functions.
74897         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74898         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74899         Update.
74900         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74901         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
74902         Update.
74903
74904 2006-10-05  Bruno Haible  <bruno@clisp.org>
74905
74906         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
74907         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
74908         (struct gl_list_implementation): Add fields search_from_to,
74909         indexof_from_to. Remove fields search, indexof.
74910         (gl_list_search): Use the search_from_to method.
74911         (gl_list_search_from, gl_list_search_from_to): New functions.
74912         (gl_list_indexof): Use the indexof_from_to method.
74913         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74914         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
74915         (gl_list_search_from, gl_list_search_from_to): New functions.
74916         (gl_list_indexof): Use the indexof_from_to method.
74917         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74918         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
74919         gl_array_indexof. Add start_index, end_index arguments.
74920         (gl_array_search_from_to): Renamed from gl_array_search. Add
74921         start_index, end_index arguments.
74922         (gl_array_remove, gl_array_list_implementation): Update.
74923         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
74924         gl_carray_indexof. Add start_index, end_index arguments.
74925         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
74926         start_index, end_index arguments.
74927         (gl_carray_remove, gl_carray_list_implementation): Update.
74928         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
74929         gl_linked_search. Add start_index, end_index arguments.
74930         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
74931         start_index, end_index arguments.
74932         (gl_linked_remove): Update.
74933         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74934         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74935         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
74936         field to 'size_t'.
74937         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
74938         gl_tree_search. Add start_index, end_index arguments.
74939         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74940         start_index, end_index arguments.
74941         (gl_tree_remove): Update.
74942         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74943         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74944         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
74945         function.
74946         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
74947         gl_tree_search. Add start_index, end_index arguments.
74948         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74949         start_index, end_index arguments.
74950         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74951         Update.
74952         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
74953
74954 2006-10-05  Bruno Haible  <bruno@clisp.org>
74955
74956         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
74957
74958         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
74959         fwriteerror_temp): New declarations.
74960         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
74961         (descriptors): New variable.
74962         (cleanup): First, close the descriptors.
74963         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
74964         fclose_temp, fwriteerror_temp): New functions.
74965
74966 2006-10-04  Jim Meyering  <jim@meyering.net>
74967
74968         * lib/fts.c (fts_open): Tiny comment change.
74969
74970 2006-10-04  Bruno Haible  <bruno@clisp.org>
74971
74972         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
74973         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
74974         gl_LOCK_BODY.
74975         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
74976         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
74977         gl_LOCK_EARLY_BODY.
74978         (gl_LOCK): Require gl_LOCK_BODY.
74979
74980 2006-10-04  Bruno Haible  <bruno@clisp.org>
74981
74982         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
74983         (gl_oset_search_atleast): New declaration.
74984         (struct gl_oset_implementation): Add field 'search_atleast'.
74985         (gl_oset_search_atleast): New inline function.
74986         * lib/gl_oset.c (gl_oset_search_atleast): New function.
74987         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
74988         (gl_array_oset_implementation): Update.
74989         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
74990         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
74991         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
74992
74993 2006-10-04  Bruno Haible  <bruno@clisp.org>
74994
74995         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
74996
74997 2006-10-03  Bruno Haible  <bruno@clisp.org>
74998
74999         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
75000         from gl_avltreehash_list_implementation.
75001
75002 2006-10-03  Bruno Haible  <bruno@clisp.org>
75003
75004         * lib/gl_oset.c (gl_oset_add): Fix return type.
75005
75006 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
75007
75008         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
75009
75010 2006-10-02  Eric Blake  <ebb9@byu.net>
75011
75012         * modules/strnlen (Depends-on): Add extensions.
75013
75014 2006-10-02  Eric Blake  <ebb9@byu.net>
75015
75016         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
75017         definition in 2.60+.
75018
75019 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
75020
75021         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
75022         checks.
75023
75024 2006-10-02  Bruno Haible  <bruno@clisp.org>
75025
75026         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
75027         to the AUTOMAKE_OPTIONS.
75028         Reported by Jim Meyering.
75029
75030 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
75031
75032         Work around bug in Solaris 10 /proc file system:
75033         /proc/self/fd/NNN/.. isn't the parent directory of
75034         the directory whose file descriptor is NNN.  This needs to
75035         be worked around at run time, not compile time, since a
75036         program might be built on Solaris 8, where things work, and
75037         run on Solaris 10.
75038         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
75039         to use the following interface instead:
75040         (OPENAT_BUFFER_SIZE): New macro.
75041         (openat_proc_name): New function.
75042         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
75043         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
75044         Likewise.
75045         * lib/openat-proc.c: New file.
75046         * modules/openat (Files): Add lib/openat-proc.c.
75047         (Depends-on): Add same-inode, stdbool.
75048         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
75049
75050 2006-09-29  Bruno Haible  <bruno@clisp.org>
75051
75052         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
75053         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
75054         argument. Set stdout_closed before testing for ferror, not after.
75055         (fwriteerror, fwriteerror_no_ebadf): New functions.
75056
75057 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75058
75059         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
75060
75061 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
75062
75063         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
75064         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
75065
75066 2006-09-28  Jim Meyering  <jim@meyering.net>
75067
75068         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
75069         Include <unistd.h>.
75070
75071 2006-09-28  Bruno Haible  <bruno@clisp.org>
75072
75073         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
75074         * modules/linkedhash-list (Depends-on): Likewise.
75075         * modules/rbtreehash-list (Depends-on): Likewise.
75076
75077 2006-09-28  Bruno Haible  <bruno@clisp.org>
75078
75079         * lib/strndup.h: Simplify the redefinition of strndup.
75080         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
75081         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
75082
75083 2006-09-28  Bruno Haible  <bruno@clisp.org>
75084
75085         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
75086         * lib/gl_linkedhash_list.c: Likewise.
75087         * lib/gl_rbtreehash_list.c: Likewise.
75088
75089 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
75090
75091         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
75092         getaddrinfo.
75093
75094         * lib/__fpending.h: Don't include <stdio_ext.h> unless
75095         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
75096         it causes <stdio_ext.h> to cause a compile-time error.
75097         Problem reported by Nelson H. F. Beebe.
75098         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
75099         of HAVE_DECL___PENDING.
75100
75101         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
75102         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
75103         declaration.
75104
75105 2006-09-27  Jim Meyering  <jim@meyering.net>
75106
75107         This file could end up with a definition for a function
75108         named __strndup, rather than rpl_strndup on a system with
75109         incomplete weak_alias support.
75110         * lib/strndup.c (strndup): Rename from __strndup.
75111         Remove #defines that used to map __strndup to strndup.
75112         Don't use K&R prototypes.
75113         Remove LIBC-related code, since this file is not sync'd with glibc.
75114         * lib/strndup.h: Revamp, accordingly.
75115         * m4/strndup.m4: Modernize.
75116
75117 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
75118
75119         * modules/savewd (Depends-on): Add 'raise'.
75120         * lib/savewd.c: Include <signal.h>, for 'raise'.
75121
75122 2006-09-26  Jim Meyering  <jim@meyering.net>
75123
75124         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
75125         when we detect Darwin 8.7.0's acl_get_file bug.
75126         Rearrange to perform the new (below) run-test while $LIBS
75127         contains any acl-related library.  Set USE_ACL at the end.
75128         (gl_ACL_GET_FILE): New function.
75129
75130 2006-09-26  Eric Blake  <ebb9@byu.net>
75131
75132         * lib/verror.c: Include <config.h> unconditionally.
75133
75134 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
75135
75136         * modules/clock-time (Maintainer): Add self.
75137         * modules/getlogin_r (Depends-on): Add extensions.
75138
75139 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75140
75141         * modules/clock-time: New module.
75142         * modules/nanosleep (Depends-on): Add clock-time.
75143         * modules/gethrxtime (Depends-on): Likewise.
75144         * modules/gettime (Depends-on): Likewise.
75145         * modules/settime (Depends-on): Likewise.
75146
75147         * modules/fts-lgpl: Depend on openat.
75148         * modules/mkancesdirs: Depend on savewd.
75149         * modules/mkdir-p: Likewise.
75150
75151 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75152
75153         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
75154
75155         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
75156         `gl_have_arbitrary_file_name_length_limit' to
75157         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
75158         actually works between configure runs.
75159
75160 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75161             Bruno Haible  <bruno@clisp.org>
75162
75163         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
75164
75165 2006-09-25  Jim Meyering  <jim@meyering.net>
75166
75167         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
75168         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
75169
75170 2006-09-25  Eric Blake  <ebb9@byu.net>
75171
75172         * gnulib-tool (func_import, func_create_testdir): Fix typos in
75173         exec's in 2006-09-18 patch when shuffling fds.
75174
75175 2006-09-25  Bruno Haible  <bruno@clisp.org>
75176
75177         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
75178         Reported by Jim Meyering.
75179
75180 2006-09-24  Jim Meyering  <jim@meyering.net>
75181
75182         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
75183         compare a pointer against a literal "0".  That caused failures with
75184         at least HP-UX's hpcc.
75185
75186 2006-09-22  Simon Josefsson  <jas@extundo.com>
75187
75188         * modules/gc-sha1:
75189         * modules/gc-md4:
75190         * modules/gc-hmac-sha1:
75191         * modules/gc-hmac-md5:
75192         * modules/gc-des:
75193         * modules/gc-arcfour: Distribute more files.
75194
75195 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75196
75197         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
75198         (gl_linked_iterator_from_to): Initialize struct completely.
75199         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
75200         (gl_tree_iterator_from_to): Likewise
75201         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
75202         * lib/gl_array_list.c [lint] (gl_array_iterator)
75203         (gl_array_iterator_from_to): Likewise.
75204         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
75205         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
75206         (gl_carray_iterator_from_to): Likewise.
75207
75208         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
75209         * lib/md4.c (md4_process_block): Remove unused variable.
75210         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
75211         parentheses for clarity.
75212
75213 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75214
75215         * modules/bison-i18n (Depends-on): Add gettext.
75216
75217 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75218
75219         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
75220         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
75221         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
75222         also add missing comma that caused broken test.
75223         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
75224         stdlib.h, for `abort'.
75225         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
75226         variables.
75227         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
75228         include unistd.h if present, for `rmdir'.
75229         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
75230         variables.
75231         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
75232         in the process include standard headers for prototypes.
75233         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
75234         gets declared on GNU/Linux.
75235         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
75236         unistd.h, for `rmdir'.
75237         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
75238
75239         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
75240         always true.
75241         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
75242
75243         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
75244
75245 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75246
75247         * gnulib-tool (func_version): Create output all at once.  This
75248         may help avoid triggering unnecessary SIGPIPEs, and at any
75249         rate it doesn't hurt.
75250
75251 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75252             Bruno Haible  <bruno@clisp.org>
75253
75254         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
75255         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
75256         * m4/signed.m4 (bh_C_SIGNED): Likewise.
75257
75258         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
75259         (gl_FUNC_VASPRINTF): Invoke it.
75260
75261 2006-09-22  Bruno Haible  <bruno@clisp.org>
75262
75263         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
75264         getloadavg.c as first argument.
75265
75266 2006-09-22  Bruno Haible  <bruno@clisp.org>
75267
75268         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
75269         at the beginning of the gl_INIT macro.
75270         * modules/getloadavg (configure.ac): Pass $gl_source_base to
75271         gl_GETLOADAVG.
75272
75273 2006-09-22  Bruno Haible  <bruno@clisp.org>
75274
75275         * gnulib-tool (func_create_megatestdir): Don't include the config-h
75276         module.
75277         Suggested by Ralf Wildenhues.
75278
75279 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75280
75281         Import this patch from libc:
75282
75283         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
75284
75285         * lib/regex_internal.c (re_string_reconstruct): Handle
75286         offset < pstr->valid_raw_len && pstr->offsets_needed case.
75287         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
75288         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
75289         re_string_context_at.
75290
75291         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
75292         now requires it.
75293         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
75294         gl_REGEX now does it for us.
75295         (gl_REGEX): Add test taken from
75296         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
75297
75298         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
75299         Check that large offsets work.  Modernize Autoconf usages.
75300         Prefer "yes" to mean a good thing rather than a bad.
75301         Don't put "#define mkstemp" in config.h, as this might interfere
75302         with standard system headers that "#define mkstemp mkstemp64".
75303
75304         * modules/mkstemp (Depends-on): Add extensions, so that
75305         mkstemp is visible on some platforms.
75306         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
75307         (Include): Change to "mkstemp.h" from <stdlib.h>.
75308         (Files): Add mkstemp.h.
75309
75310         * lib/mkstemp.h: New file, since some standard headers
75311         #define mkstemp.
75312         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
75313         Include "mkstemp.h".
75314         Make the _LIBC code resemble glibc original more,
75315         e.g., use K&R style.
75316         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
75317         (mkstemp): Remove, since mkstemp.h does this for us.
75318         * lib/stdlib--.h: Include mkstemp.h.
75319
75320         Import this patch from libc:
75321
75322         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
75323
75324         * lib/tempname.c (__gen_tempname): Change attempts_min
75325         into a macro.  Use preprocessor to decide how to initialize
75326         attempts [Coverity CID 67].
75327
75328 2006-09-20  Bruno Haible  <bruno@clisp.org>
75329
75330         * lib/mkdtemp.c: Import from libc.
75331         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
75332                 * sysdeps/posix/tempname.c (__gen_tempname): Change
75333                 attempts_min into a macro.  Use preprocessor to decide how to
75334                 initialize attempts [Coverity CID 67].
75335         2001-11-27  Paul Eggert  <eggert@twinsun.com>
75336                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
75337                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
75338
75339 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75340
75341         * gnulib-tool (func_exit): New function, to allow to pass the
75342         exit status portably through the trap.  Use everywhere.
75343         (--help, --version): Signal a write error.
75344         (trap): catch SIGPIPE, for write errors.
75345         Exit at the end of the trap, with the correct exit status.
75346
75347 2006-09-19  Karl Berry  <karl@gnu.org>
75348
75349         * doc/gnulib.texi: note about the license texinfo files.
75350
75351 2006-09-19  Eric Blake  <ebb9@byu.net>
75352
75353         * gnulib-tool: Avoid space-tab.
75354
75355 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
75356
75357         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
75358         that prevented coreutils 6.1 from building.  Problem reported
75359         by Petter Reinholdtsen.
75360
75361 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
75362
75363         * gnulib-tool (avoidlist): Fix typo that broke options like
75364         --avoid=lock that are used by coreutils bootstrap.
75365
75366 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
75367
75368         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
75369         more systematically.
75370
75371 2006-09-18  Jim Meyering  <jim@meyering.net>
75372
75373         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
75374
75375 2006-09-18  Bruno Haible  <bruno@clisp.org>
75376
75377         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
75378
75379 2006-09-18  Bruno Haible  <bruno@clisp.org>
75380
75381         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
75382         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
75383         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
75384         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
75385         * m4/gettext.m4: Require autoconf >= 2.52.
75386         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
75387         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
75388         of gl_cv_header_inttypes_h.
75389
75390 2006-09-18  Bruno Haible  <bruno@clisp.org>
75391
75392         * lib/javaversion.c: Include configmake.h.
75393
75394 2006-09-18  Bruno Haible  <bruno@clisp.org>
75395
75396         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
75397         avoid that the while loops be executed in a subshell.
75398
75399 2006-09-18  Bruno Haible  <bruno@clisp.org>
75400
75401         * MODULES.html.sh (func_module): Break long lines.
75402         Suggested by Bruce Korb <bkorb@gnu.org>.
75403
75404 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75405
75406         Speed up by a factor of 1.12.
75407         * gnulib-tool (nl): New variable.
75408         (func_import): Rewrite include directive extraction to only read each
75409         directive once.
75410
75411 2006-09-17  Bruno Haible  <bruno@clisp.org>
75412
75413         * modules/javaversion (Makefile.am): Remove DEFS setting.
75414         (Depends-on): Add configmake, for PKGDATADIR definition.
75415
75416 2006-09-17  Bruno Haible  <bruno@clisp.org>
75417
75418         * gnulib-tool (func_create_testdir): Rewrite all files at once.
75419
75420 2006-09-17  Bruno Haible  <bruno@clisp.org>
75421
75422         * gnulib-tool (func_append): New function, stolen from libtool.m4.
75423         (func_modules_transitive_closure, func_modules_add_dummy,
75424         func_modules_to_filelist, func_import, func_create_testdir,
75425         func_create_megatestdir, ...): Use it wherever possible.
75426         Suggested by Ralf Wildenhues.
75427
75428 2006-09-16  Karl Berry  <karl@gnu.org>
75429
75430         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
75431         to avoid sectioning errors.
75432         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
75433         [ifinfo]: blank line after @center-ed titles.
75434         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
75435         Spell FSF address consistently with others.
75436         (These changes approved by rms.)
75437
75438 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75439
75440         Speed up by a factor of 1.61.
75441         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
75442         already checked module names again.
75443
75444 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75445
75446         Speed up by a factor of 1.13.
75447         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
75448         for new_files, and the input to func_add_or_update.
75449
75450 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75451
75452         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
75453         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
75454
75455 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75456
75457         * modules/mkancesdirs (Depends-on): Add fcntl.
75458         * modules/savewd: New file.
75459         * MODULES.html.sh (File system functions): Add savewd.
75460
75461         * modules/configmake (Makefile.am): Add support for the
75462         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
75463
75464 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75465
75466         * m4/savewd.m4: New file.
75467
75468 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75469
75470         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
75471         (dirchownmod): New arg FD.  All callers changed.
75472         Use FD rather than opening the directory ourself, as opening is
75473         now the caller's responsibility.
75474         * lib/dirchownmod.h: Likewise.
75475         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
75476         hosts that require <sys/types.h> before <sys/stat.h>.  Include
75477         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
75478         (test_dir): Remove.
75479         (mkancesdirs): Return length of prefix of FILE that has already
75480         been made, or -2 if there is a child doing the work.  Redo
75481         algorithm so that it is O(N) rather than O(N**2).  Optimize away
75482         ".", and treat ".." specially since it might stray back into
75483         already-created areas.  Use a subprocess if necessary.  New arg
75484         WD; all users changed.  MAKE_DIR function should now return 1
75485         if it creates a directory that is not readable.  Return -2 if
75486         a child process is spun off.
75487         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
75488         Adjust signature to match code.
75489         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
75490         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
75491         all users changed.
75492         * lib/savewd.c, lib/savewd.h: New files.
75493
75494 2006-09-15  Jim Meyering  <jim@meyering.net>
75495
75496         * modules/rename-dest-slash: New module.
75497         * MODULES.html.sh (posix_compat): Add it here.
75498
75499         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
75500
75501 2006-09-15  Jim Meyering  <jim@meyering.net>
75502
75503         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
75504         file.
75505
75506         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
75507
75508 2006-09-15  Jim Meyering  <jim@meyering.net>
75509
75510         * lib/rename-dest-slash.c (has_trailing_slash): Use
75511         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
75512         (rpl_rename_dest_slash): Perform the cheaper trailing slash
75513         test before testing whether SRC is a directory.
75514         Suggestions from Bruno Haible.
75515
75516         Avoid a warning about an unused variable.
75517         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
75518         into the #ifdef block where it's used.
75519
75520         * lib/rename-dest-slash.c: New file.
75521
75522 2006-09-14  Bruno Haible  <bruno@clisp.org>
75523
75524         * lib/allocsa.c: Include <config.h> unconditionally.
75525         * lib/asnprintf.c: Likewise.
75526         * lib/asprintf.c: Likewise.
75527         * lib/c-strcasecmp.c: Likewise.
75528         * lib/c-strcasestr.c: Likewise.
75529         * lib/c-strncasecmp.c: Likewise.
75530         * lib/c-strstr.c: Likewise.
75531         * lib/classpath.c: Likewise.
75532         * lib/clean-temp.c: Likewise.
75533         * lib/concatpath.c: Likewise.
75534         * lib/copy-file.c: Likewise.
75535         * lib/csharpcomp.c: Likewise.
75536         * lib/csharpexec.c: Likewise.
75537         * lib/execute.c: Likewise.
75538         * lib/fatal-signal.c: Likewise.
75539         * lib/findprog.c: Likewise.
75540         * lib/fwriteerror.c: Likewise.
75541         * lib/gl_array_list.c: Likewise.
75542         * lib/gl_array_oset.c: Likewise.
75543         * lib/gl_avltree_list.c: Likewise.
75544         * lib/gl_avltree_oset.c: Likewise.
75545         * lib/gl_avltreehash_list.c: Likewise.
75546         * lib/gl_carray_list.c: Likewise.
75547         * lib/gl_linked_list.c: Likewise.
75548         * lib/gl_linkedhash_list.c: Likewise.
75549         * lib/gl_list.c: Likewise.
75550         * lib/gl_oset.c: Likewise.
75551         * lib/gl_rbtree_list.c: Likewise.
75552         * lib/gl_rbtree_oset.c: Likewise.
75553         * lib/gl_rbtreehash_list.c: Likewise.
75554         * lib/imaxabs.c: Likewise.
75555         * lib/imaxdiv.c: Likewise.
75556         * lib/javacomp.c: Likewise.
75557         * lib/javaexec.c: Likewise.
75558         * lib/javaversion.c: Likewise.
75559         * lib/linebreak.c: Likewise.
75560         * lib/localcharset.c: Likewise.
75561         * lib/lock.c: Likewise.
75562         * lib/mbchar.c: Likewise.
75563         * lib/mbswidth.c: Likewise.
75564         * lib/mkdtemp.c: Likewise.
75565         * lib/pipe.c: Likewise.
75566         * lib/printf-args.c: Likewise.
75567         * lib/printf-parse.c: Likewise.
75568         * lib/progname.c: Likewise.
75569         * lib/progreloc.c: Likewise.
75570         * lib/readlink.c: Likewise.
75571         * lib/sh-quote.c: Likewise.
75572         * lib/stpcpy.c: Likewise.
75573         * lib/stpncpy.c: Likewise.
75574         * lib/strcasecmp.c: Likewise.
75575         * lib/strcasestr.c: Likewise.
75576         * lib/strcspn.c: Likewise.
75577         * lib/striconv.c: Likewise.
75578         * lib/strncasecmp.c: Likewise.
75579         * lib/strnlen1.c: Likewise.
75580         * lib/strstr.c: Likewise.
75581         * lib/strtok_r.c: Likewise.
75582         * lib/tls.c: Likewise.
75583         * lib/tmpdir.c: Likewise.
75584         * lib/unicodeio.c: Likewise.
75585         * lib/unsetenv.c: Likewise.
75586         * lib/vasnprintf.c: Likewise.
75587         * lib/vasprintf.c: Likewise.
75588         * lib/wait-process.c: Likewise.
75589         * lib/xallocsa.c: Likewise.
75590         * lib/xsetenv.c: Likewise.
75591         * lib/xstriconv.c: Likewise.
75592
75593 2006-09-13  Simon Josefsson  <jas@extundo.com>
75594
75595         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
75596         that internally, suggested by Ralf Wildenhues
75597         <Ralf.Wildenhues@gmx.de>.
75598
75599 2006-09-13  Simon Josefsson  <jas@extundo.com>
75600
75601         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
75602         @LIBOBJS@.
75603         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75604
75605 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75606
75607         * lib/_fpending.c: Include <config.h> unconditionally, since we no
75608         longer worry about uses that don't define HAVE_CONFIG_H.
75609         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
75610         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
75611         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
75612         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
75613         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
75614         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
75615         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
75616         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
75617         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
75618         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
75619         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
75620         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
75621         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
75622         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
75623         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
75624         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
75625         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
75626         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
75627         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
75628         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
75629         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
75630         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
75631         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
75632         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
75633         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
75634         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
75635         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
75636         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
75637         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
75638         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
75639         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
75640         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
75641         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
75642         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
75643         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
75644         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
75645         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
75646         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
75647         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
75648         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
75649         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
75650         Likewise.
75651
75652 2006-09-13  Eric Blake  <ebb9@byu.net>
75653
75654         * lib/getopt.c: Fix typo in last commit.
75655
75656 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
75657
75658         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
75659         dgettext.
75660
75661 2006-09-12  Jim Meyering  <jim@meyering.net>
75662
75663         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
75664         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
75665         Reported by Nelson H. F. Beebe.
75666
75667 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75668
75669         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
75670         program_invocation_name and program_invocation_short_name are
75671         initialized.
75672         * lib/argp-namefrob.h: Move declarations of program_invocation_name
75673         and program_invocation_short_name to argp.h, so they are visible
75674         to user programs.
75675         * lib/argp.h: Likewise
75676
75677 2006-09-10  Bruno Haible  <bruno@clisp.org>
75678
75679         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75680         m4/inttypes_h.m4, m4/uintmax_t.m4.
75681
75682 2006-09-10  Bruno Haible  <bruno@clisp.org>
75683
75684         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
75685         gl_AC_TYPE_UINTMAX_T.
75686
75687 2006-09-10  Bruno Haible  <bruno@clisp.org>
75688
75689         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
75690
75691 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75692
75693         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
75694         convention.  Text proposed by Bruno Haible.
75695         (struct argp_option): Document the use of N_() wrappers.
75696
75697         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
75698         '\v', and translate the two parts separately, instead of feeding
75699         the whole string to gettext.  This allows to exclude
75700         '\v' from the strings visible to the translator by writing doc
75701         strings as N_("..") "\v" N_("..").
75702
75703 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
75704
75705         * config/srclist.txt: Undo latest change; the bug was fixed.
75706
75707 2006-09-09  Bruno Haible  <bruno@clisp.org>
75708
75709         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
75710         assignments if building a library without libtool.
75711         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
75712         in func_emit_lib_Makefile_am.
75713         (func_import): When building a static library libfoo.a, arrange to
75714         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
75715         (func_create_testdir): Likewise.
75716         * modules/gc (configure.ac, Makefile.am): If building statically,
75717         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
75718         * modules/iconvme (configure.ac, Makefile.am): Likewise.
75719         * modules/striconv (configure.ac, Makefile.am): Likewise.
75720         Based on a suggestion by Ralf Wildenhues.
75721
75722 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75723
75724         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75725         Check for unistd.h too, since Autoconf doesn't assume POSIX.
75726         Also:
75727
75728         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75729         Add year_2050_test to catch glibc bug 2821
75730         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75731
75732         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75733         Prefer #ifdef to #if.
75734
75735         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
75736         Return from 'main' instead of calling 'exit'.
75737
75738 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75739
75740         * lib/mktime.c (guess_time_tm): Fix bug where mktime
75741         returned the maximum time_t value rather than (time_t) -1.
75742         Problem originally reported by William Bardwell
75743         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75744
75745         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75746         Moved to here ...
75747         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75748         ... from here.
75749
75750 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75751
75752         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
75753         2821 is fixed.
75754
75755 2006-09-08  Jim Meyering  <jim@meyering.net>
75756
75757         Don't make generated files read-only.  That would bother too many
75758         people.  However, do retain the ability to work when targets are
75759         read-only: remove the destination and temporary files before writing
75760         them (when generated via sed or echo), or by using the -f option for
75761         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
75762         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75763         * modules/byteswap, modules/configmake, modules/fcntl:
75764         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75765         * modules/localcharset, modules/netinet_in, modules/poll:
75766         * modules/stdbool, modules/stdint, modules/sys_select:
75767         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75768
75769 2006-09-08  Jim Meyering  <jim@meyering.net>
75770
75771         Avoid new build failure on FreeBSD 6.0.
75772         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
75773         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
75774         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
75775
75776 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75777
75778         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
75779
75780 2006-09-07  Jim Meyering  <jim@meyering.net>
75781
75782         Fix global typo in last change: use chmod u-w, not chmod u-x.
75783         Spotted by Paul Eggert and Bruce Korb.
75784         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75785         * modules/byteswap, modules/configmake, modules/fcntl:
75786         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75787         * modules/localcharset, modules/netinet_in, modules/poll:
75788         * modules/stdbool, modules/stdint, modules/sys_select:
75789         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75790
75791 2006-09-06  Jim Meyering  <jim@meyering.net>
75792
75793         Make generated files be read-only.
75794         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
75795         Ensure that each generated file is now read-only.
75796         * modules/argz: Likewise.
75797         * modules/arpa_inet: Likewise.
75798         * modules/byteswap: Likewise.
75799         * modules/configmake: Likewise.
75800         * modules/fcntl: Likewise.
75801         * modules/fnmatch: Likewise.
75802         * modules/getopt: Likewise.
75803         * modules/glob: Likewise.
75804         * modules/inttypes: Likewise.
75805         * modules/netinet_in: Likewise.
75806         * modules/poll: Likewise.
75807         * modules/stdbool: Likewise.
75808         * modules/stdint: Likewise.
75809         * modules/sys_select: Likewise.
75810         * modules/sys_socket: Likewise.
75811         * modules/sys_stat: Likewise.
75812         * modules/sysexits: Likewise.
75813         * modules/localcharset: Same as above, but continue using temporary
75814         file named "t-$@" (why different?) rather than the "$@-t" used
75815         everywhere else.
75816
75817         * modules/sysexits (Makefile.am): Replace literal occurrences
75818         of "sysexit.h" more readable, and more consistent, "$@".
75819
75820 2006-09-06  Bruno Haible  <bruno@clisp.org>
75821
75822         * modules/striconv: New file.
75823         * modules/xstriconv: New file.
75824         * MODULES.html.sh (Internationalization functions): Add striconv,
75825         xstriconv.
75826
75827 2006-09-06  Bruno Haible  <bruno@clisp.org>
75828
75829         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
75830         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
75831         not using libtool correctly.
75832
75833 2006-09-06  Bruno Haible  <bruno@clisp.org>
75834
75835         * lib/striconv.h: New file.
75836         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
75837         iconvstring.c.
75838         * lib/xstriconv.h: New file.
75839         * lib/xstriconv.c: New file.
75840
75841 2006-09-06  Bruno Haible  <bruno@clisp.org>
75842
75843         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75844         lib_..._LDFLAGS.
75845
75846 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75847
75848         * lib/argz_.h: Sync from Libtool.
75849
75850         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
75851                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75852
75853         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
75854
75855 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75856
75857         * modules/trim: New file.
75858
75859 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75860
75861         * lib/trim.h: New file.
75862         * lib/trim.c: New file.
75863
75864 2006-09-05  Bruno Haible  <bruno@clisp.org>
75865
75866         * MODULES.html.sh (String handling): Add trim.
75867
75868 2006-09-04  Karl Berry  <karl@gnu.org>
75869
75870         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
75871         until next release.
75872
75873 2006-09-03  Bruno Haible  <bruno@clisp.org>
75874
75875         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
75876         correctly.
75877
75878 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75879
75880         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
75881         not gl_GETLOADAVG.  Omit unneeded semicolons.
75882         Problems reported by Ralf Wildenhues in
75883         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75884         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
75885         at the end, which is the usual gnulib style.
75886
75887         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
75888         of doing all the work ourselves.
75889         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
75890         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
75891
75892 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75893
75894         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
75895         Problem reported by Ralf Wildenhues in
75896         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75897
75898         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
75899         HAVE_STRUCT_STATFS_F_FSTYPENAME.
75900
75901 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75902
75903         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
75904         yesterday's patch by changing test -n to test -z.
75905
75906 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75907
75908         * modules/getloadavg (Files): Add m4/getloadavg.m4.
75909         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
75910         the former is now obsolescent.
75911
75912         * modules/chdir-long (Depends-on): Add fcntl.
75913
75914 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75915
75916         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
75917         obsolescent, and programs should use gnulib instead.
75918         * m4/getloadavg.m4: New file, with contents taken from Autoconf
75919         but with prefixes changed.
75920
75921 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75922
75923         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
75924         or stdbool.h, because they might not exist while configuring.
75925
75926         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
75927         Don't include unistd.h or limits.h; not needed, since chdir-long.h
75928         does that for us.
75929         (O_DIRECTORY): Remove.
75930
75931 2006-08-31  Eric Blake  <ebb9@byu.net>
75932
75933         * gnulib-tool: Don't let emacs change spaces to TAB.
75934
75935 2006-08-31  Bruno Haible  <bruno@clisp.org>
75936
75937         * gnulib-tool: When calling func_import more than once, do it in a
75938         subshell.
75939         Reported by Eric Blake <ebb9@byu.net>.
75940
75941 2006-08-31  Bruno Haible  <bruno@clisp.org>
75942
75943         * gnulib-tool (nl): Remove variable.
75944         (sed_transform_lib_file): Use more robust test for config-h module.
75945         (func_import): Fix typo in 2006-08-25 patch.
75946
75947 2006-08-31  Bruno Haible  <bruno@clisp.org>
75948
75949         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
75950         specified, augment Makefile.am variables instead of assigning them.
75951
75952 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75953
75954         Work around a bug in both the Linux and SunOS 64-bit kernels:
75955         nanosleep mishandles sleeps for longer than 2**31 seconds.
75956         Problem reported by Frank v Waveren in
75957         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75958         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
75959         Check for nanosleep bug.
75960         (LIB_NANOSLEEP): Append clock_gettime library if needed.
75961
75962 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75963
75964         Work around a bug in both the Linux and SunOS 64-bit kernels:
75965         nanosleep mishandles sleeps for longer than 2**31 seconds.
75966         Problem reported by Frank v Waveren in
75967         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75968         * lib/nanosleep.c (BILLION): New constant.
75969         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
75970         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
75971         implementation.
75972
75973 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75974
75975         * modules/nanosleep (Depends-on): Add gettime.
75976
75977 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75978         and Simon Josefsson  <jas@extundo.com>
75979         and Oskar Liljeblad  <oskar@osk.mine.nu>
75980
75981         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
75982         * gnulib-tool (func_import): New license type 'unmodifiable license
75983         text'.
75984         * modules/fdl: Use it.  Longer description.
75985         * module/gpl, module/lgpl: New files.
75986
75987 2006-08-30  Jim Meyering  <jim@meyering.net>
75988
75989         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
75990         shadowing the parameter.
75991
75992 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75993
75994         Sync from Libtool:
75995
75996         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75997
75998         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
75999         sharing with gnulib.  Report by Eric Blake.
76000
76001 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76002
76003         * modules/isapipe: New file.
76004         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
76005
76006 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76007
76008         * modules/configmake (Makefile.am): Add a comment, and omit
76009         the CONFIGMAKE_ prefix from generated macro names.  Suggested
76010         by Bruno Haible.
76011
76012 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76013
76014         * m4/isapipe.m4: New file.
76015
76016 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76017
76018         * lib/isapipe.c, lib/isapipe.h: New files.
76019
76020 2006-08-29  Jim Meyering  <jim@meyering.net>
76021
76022         * modules/configmake (Makefile.am): Make configmake.h depend on
76023         Makefile.  Otherwise, a stale configmake.h could hang around.
76024
76025 2006-08-29  Eric Blake  <ebb9@byu.net>
76026
76027         * lib/error.c (error_at_line, print_errno_message): Match libc, after
76028         resolution of upstream bug 3044.
76029
76030 2006-08-29  Bruno Haible  <bruno@clisp.org>
76031
76032         * modules/localcharset (Depends-on): Add configmake.
76033         (Makefile.am): Remove setting of LIBDIR through DEFS.
76034
76035 2006-08-29  Bruno Haible  <bruno@clisp.org>
76036
76037         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
76038         defined.
76039
76040 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76041
76042         * modules/fcntl: New file.
76043         * modules/chdir-safer (Depends-on): Add fcntl.
76044         * modules/fts: Likewise.
76045         * modules/mkdir-p: Likewise.
76046
76047         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
76048         This undoes the most recent change, since we're now addressing the
76049         problem in a different way.
76050
76051         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
76052         into output, since the output might be called Makefile.am even
76053         if $makefile_name is something different.
76054         (func_import): Use $makefile_am rather than
76055         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
76056         empty.
76057
76058         * modules/inttypes (Files): Add m4/inttypes-h.m4.
76059
76060 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76061
76062         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
76063         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
76064         recent change to stdint.m4, since we're now addressing the problem in a
76065         different way.
76066
76067 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76068
76069         * m4/fcntl_h.m4: New file.
76070
76071 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76072
76073         * lib/fcntl_.h: New file.
76074         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
76075         the fcntl module.
76076         * lib/dirchownmod.c: Likewise.
76077         * lib/fts.c: Likewise.
76078
76079         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
76080         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
76081         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
76082         just before including <inttypes.h>, to avoid circular inclusion.
76083
76084 2006-08-28  Jim Meyering  <jim@meyering.net>
76085
76086         * doc/visibility.texi: Actually read and correct the grammar of the
76087         sentence affected by yesterday's change.
76088
76089 2006-08-28  Eric Blake  <ebb9@byu.net>
76090
76091         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
76092         needs wrapper.
76093
76094 2006-08-28  Eric Blake  <ebb9@byu.net>
76095
76096         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
76097
76098 2006-08-28  Eric Blake  <ebb9@byu.net>
76099
76100         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
76101
76102 2006-08-28  Bruno Haible  <bruno@clisp.org>
76103
76104         * modules/c-strstr: New file, from GNU gettext.
76105         * MODULES.html.sh (String handling): Add c-strstr.
76106
76107 2006-08-28  Bruno Haible  <bruno@clisp.org>
76108
76109         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
76110         macros.
76111         Reported by Eric Blake.
76112
76113 2006-08-28  Bruno Haible  <bruno@clisp.org>
76114
76115         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
76116         (VASNPRINTF): Return a string of length > INT_MAX without failing.
76117         * lib/vasprintf.c: Include errno.h, limits.h.
76118         (EOVERFLOW): New fallback definition.
76119         (vasprintf): Test here whether the string length is > INT_MAX.
76120         * lib/vsnprintf.c: Include errno.h, limits.h.
76121         (EOVERFLOW): New fallback definition.
76122         (vsnprintf): Fix bug when generated string was too long for the buffer.
76123         Test here whether the string length is > INT_MAX.
76124
76125 2006-08-28  Bruno Haible  <bruno@clisp.org>
76126
76127         * lib/inttypes_.h (SCNX*): Remove definitions.
76128         Reported by Eric Blake.
76129
76130 2006-08-28  Bruno Haible  <bruno@clisp.org>
76131
76132         * lib/c-strstr.h: New file, from GNU gettext.
76133         * lib/c-strstr.c: New file, from GNU gettext.
76134
76135 2006-08-28  Bruno Haible  <bruno@clisp.org>
76136
76137         * gnulib-tool: Reorder some statements.
76138
76139 2006-08-28  Bruno Haible  <bruno@clisp.org>
76140
76141         * gnulib-tool: New option --makefile-name.
76142         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
76143         $makefile_name.
76144         (func_import): Write $makefile_name to the cache file, and read it from
76145         there unless explicitly specified. Use $makefile_name as file name
76146         instead of Makefile.am. Adjust the recommendations accordingly.
76147
76148 2006-08-28  Bruno Haible  <bruno@clisp.org>
76149
76150         * gnulib-tool (func_verify_module): Check against misapplying patch.
76151
76152 2006-08-28  Bruno Haible  <bruno@clisp.org>
76153
76154         * gnulib-tool (func_relativize, func_relconcat): New functions.
76155         Give an error if --local-dir is given with --update.
76156         Remove trailing slashes from $local_gnulib_dir.
76157         (func_import): Store the relativized $local_gnulib_dir in
76158         gnulib-cache.m4, and read it from there if not specified explicitly.
76159
76160 2006-08-28  Bruno Haible  <bruno@clisp.org>
76161
76162         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
76163         is the current directory. Respect also $local_gnulib_dir.
76164
76165 2006-08-28  Bruno Haible  <bruno@clisp.org>
76166             Simon Josefsson  <jas@extundo.com>
76167
76168         BeOS portability.
76169         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
76170
76171 2006-08-27  Jim Meyering  <jim@meyering.net>
76172
76173         * doc/visibility.texi: Remove duplicate word: "pointer".
76174
76175 2006-08-26  Bruno Haible  <bruno@clisp.org>
76176
76177         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
76178         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
76179         (Makefile.am): Create inttypes.h from inttypes_.h.
76180         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
76181
76182         * modules/imaxabs: New file.
76183
76184         * modules/imaxdiv: New file.
76185
76186 2006-08-26  Bruno Haible  <bruno@clisp.org>
76187
76188         * m4/inttypes.m4: New file.
76189         * m4/_inttypes_h.m4: Remove file.
76190         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
76191         PRI_MACROS_BROKEN.
76192         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
76193
76194         * m4/imaxabs.m4: New file.
76195
76196         * m4/imaxdiv.m4: New file.
76197
76198 2006-08-26  Bruno Haible  <bruno@clisp.org>
76199
76200         * lib/inttypes_.h: New file.
76201         * lib/inttypes.h: Remove file.
76202         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
76203
76204         * lib/imaxabs.c: New file.
76205
76206         * lib/imaxdiv.c: New file.
76207
76208 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76209
76210         New config-h module, so that "make" output needn't be cluttered
76211         by -DHAVE_CONFIG_H.
76212         * MODULES.html.sh (Support for building libraries and executables):
76213         Add config-h.
76214         * modules/config-h: New file.
76215         * gnulib-tool (nl, sed_transform_lib_file): New vars.
76216         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
76217         the config-h module is used.
76218
76219         New configmake module, so that "make" output needn't be cluttered
76220         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
76221         * MODULES.html.sh (Support for building libraries and executables):
76222         Add configmake.
76223         * modules/configmake: New file.
76224
76225 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76226
76227         * m4/config-h.m4: New file.
76228
76229 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76230
76231         * config/srclist.txt: Add elisp-comp.
76232
76233 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76234
76235         * MODULES.html.sh (Support for building libraries and executables):
76236         Add elisp-comp.
76237         * build-aux/elisp-comp: New file.
76238         * modules/elisp-comp: New file.
76239
76240 2006-08-24  Bruno Haible  <bruno@clisp.org>
76241
76242         * gnulib-tool (func_create_testdir): Use non-default values of
76243         sourcebase and m4base.
76244
76245 2006-08-24  Bruno Haible  <bruno@clisp.org>
76246
76247         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
76248         HTML structure.
76249
76250 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76251
76252         * modules/openat (Depends-on): Add lchown.
76253
76254 2006-08-23  Bruno Haible  <bruno@clisp.org>
76255
76256         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
76257         of gl_LOCK_EARLY instead of gl_LOCK.
76258
76259 2006-08-23  Bruno Haible  <bruno@clisp.org>
76260
76261         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
76262         on OSF/1 to no.
76263         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
76264
76265 2006-08-23  Bruno Haible  <bruno@clisp.org>
76266
76267         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
76268         as unusable.
76269
76270         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
76271         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
76272         (gl_LOCK): New macro.
76273
76274 2006-08-22  Simon Josefsson  <jas@extundo.com>
76275
76276         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
76277         to md5 module.
76278
76279 2006-08-22  Simon Josefsson  <jas@extundo.com>
76280
76281         * MODULES.html.sh: Add "Support for maintaining and release
76282         projects".
76283
76284         * build-aux/gnupload: New file, from coreutils.
76285
76286 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76287
76288         Avoid the need for AC_LIBSOURCES in m4 macros.
76289         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
76290         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
76291         * modules/check-version (EXTRA_DIST): Add check-version.h.
76292         * modules/crc (EXTRA_DIST): Add crc.h.
76293         * modules/des (EXTRA_DIST): Add des.h.
76294         * modules/gc (EXTRA_DIST): Add gc.h.
76295         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
76296         * modules/getline (EXTRA_DIST): Add getline.h.
76297         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
76298         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
76299         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
76300         * modules/md2 (EXTRA_DIST): Add md2.h.
76301         * modules/md4 (EXTRA_DIST): Add md4.h.
76302         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
76303         * modules/read-file (EXTRA_DIST): Add read-file.h.
76304         * modules/readline (EXTRA_DIST): Add readline.h.
76305         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
76306         rijndael-api-fst.h.
76307
76308 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76309
76310         * m4/rijndael.m4 (gl_ARCFOUR):
76311         * m4/arctwo.m4 (gl_ARCTWO):
76312         * m4/check-version.m4 (gl_CHECK_VERSION):
76313         * m4/crc.m4 (gl_CRC):
76314         * m4/des.m4 (gl_DES):
76315         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
76316         * m4/gc.m4 (gl_GC):
76317         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
76318         * m4/getline.m4 (gl_FUNC_GETLINE):
76319         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
76320         * m4/hmac-md5.m4 (gl_HMAC_MD5):
76321         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
76322         * m4/md2.m4 (gl_MD2):
76323         * m4/md4.m4 (gl_MD4):
76324         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
76325         * m4/read-file.m4 (gl_FUNC_READ_FILE):
76326         * m4/readline.m4 (gl_FUNC_READLINE):
76327         * m4/rijndael.m4 (gl_RIJNDAEL):
76328         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
76329         to get the necessary .h files and whatnot.
76330
76331 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76332
76333         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
76334         gnulib rather than the other way around.
76335         * config/srclistvars.sh (COREUTILS): Remove.
76336
76337 2006-08-22  Jim Meyering  <jim@meyering.net>
76338
76339         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
76340
76341         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
76342
76343 2006-08-22  Eric Blake  <ebb9@byu.net>
76344
76345         * modules/regexprops-generic: New file.
76346         * MODULES.html.sh (Support for building documentation): List it.
76347
76348 2006-08-22  Eric Blake  <ebb9@byu.net>
76349
76350         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
76351         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
76352         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
76353         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
76354
76355 2006-08-22  Bruno Haible  <bruno@clisp.org>
76356
76357         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
76358         and lib_LTLIBRARIES like the other lib_* variables.
76359
76360 2006-08-22  Bruno Haible  <bruno@clisp.org>
76361
76362         * build-aux/x-to-1.in: New file, from GNU gettext.
76363
76364 2006-08-22  Bruno Haible  <bruno@clisp.org>
76365
76366         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
76367         <utmpx.h> exists.
76368
76369 2006-08-22  Bruno Haible  <bruno@clisp.org>
76370
76371         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
76372         <utmpx.h> exists.
76373
76374 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76375
76376         BeOS portability.
76377         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
76378         exist.
76379         Problem reported by Bruno Haible.
76380
76381 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76382
76383         Avoid the need for AC_LIBSOURCES in m4 macros.
76384         * modules/acl (EXTRA_DIST): Add acl.h.
76385         * modules/argmatch (Files): Add m4/argmatch.m4.
76386         (configure.ac): Add gl_ARGMATCH.
76387         (EXTRA_DIST): Renamed from lib_SOURCES, for
76388         consistency with the other modules.  Remove argmatch.c.
76389         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
76390         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
76391         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
76392         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
76393         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
76394         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
76395         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
76396         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
76397         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
76398         * modules/closeout (EXTRA_DIST): Add closeout.h.
76399         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
76400         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
76401         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
76402         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
76403         dirname.h; remove basename.c and stripslash.c.
76404         * modules/exclude (EXTRA_DIST): Add exclude.h.
76405         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
76406         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
76407         * modules/file-type (EXTRA_DIST): Add file-type.h.
76408         * modules/filemode (EXTRA_DIST): Add filemode.h.
76409         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
76410         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
76411         * modules/fpending (EXTRA_DIST): Add __fpending.h.
76412         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
76413         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
76414         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
76415         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
76416         * modules/getdate (EXTRA_DIST): Add getdate.c.
76417         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
76418         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
76419         * modules/getpass (EXTRA_DIST): Add getpass.h.
76420         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
76421         * modules/group-member (EXTRA_DIST): Add group-member.h.
76422         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
76423         * modules/hash (EXTRA_DIST): Add hash.h.
76424         * modules/human (EXTRA_DIST): Add human.h.
76425         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
76426         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
76427         * modules/lchown (EXTRA_DIST): Add lchown.h.
76428         * modules/long-options (EXTRA_DIST): Add long-options.h.
76429         * modules/lstat (EXTRA_DIST): Add lstat.h.
76430         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
76431         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
76432         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
76433         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
76434         * modules/memxor (EXTRA_DIST): Add memxor.h.
76435         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
76436         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
76437         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
76438         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
76439         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
76440         * modules/physmem (EXTRA_DIST): Add physmem.h.
76441         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
76442         * modules/posixver (EXTRA_DIST): Add posixver.h.
76443         * modules/quote (EXTRA_DIST): Add quote.h.
76444         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
76445         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
76446         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
76447         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
76448         regex_internal.h regexec.c.
76449         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
76450         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
76451         * modules/same (EXTRA_DIST): Add same.h.
76452         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
76453         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
76454         * modules/savedir (EXTRA_DIST): Add savedir.h.
76455         * modules/sha1 (EXTRA_DIST): Add sha1.h.
76456         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
76457         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
76458         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
76459         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
76460         * modules/strdup (EXTRA_DIST): Add strdup.h.
76461         * modules/strftime (EXTRA_DIST): Add strftime.h.
76462         * modules/strndup (EXTRA_DIST): Add strndup.h.
76463         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
76464         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
76465         * modules/time_r (EXTRA_DIST): Add time_r.h.
76466         * modules/timespec (EXTRA_DIST): Add timespec.h.
76467         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
76468         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
76469         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
76470         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
76471         * modules/userspec (EXTRA_DIST): Add userspec.h.
76472         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
76473         * modules/utimens (EXTRA_DIST): Add utimens.h.
76474         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
76475         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
76476         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
76477         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
76478         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
76479         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
76480         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
76481         * modules/yesno (EXTRA_DIST): Add yesno.h.
76482
76483 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76484
76485         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
76486
76487         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
76488         * m4/dev-ino.m4, same-inode.m4: Remove.
76489
76490         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
76491         * m4/acl.m4 (AC_FUNC_ACL):
76492         * m4/backupfile.m4 (gl_BACKUPFILE):
76493         * m4/c-strtod.m4 (gl_C99_STRTOLD):
76494         * m4/canon-host.m4 (gl_CANON_HOST):
76495         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
76496         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
76497         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
76498         * m4/cloexec.m4 (gl_CLOEXEC):
76499         * m4/close-stream.m4 (gl_CLOSE_STREAM):
76500         * m4/closeout.m4 (gl_CLOSEOUT):
76501         * m4/dirfd.m4 (gl_FUNC_DIRFD):
76502         * m4/dirname.m4 (gl_DIRNAME):
76503         * m4/exclude.m4 (gl_EXCLUDE):
76504         * m4/exitfail.m4 (gl_EXITFAIL):
76505         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
76506         * m4/file-type.m4 (gl_FILE_TYPE):
76507         * m4/filemode.m4 (gl_FILEMODE):
76508         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
76509         * m4/fpending.m4 (gl_FUNC_FPENDING):
76510         * m4/fprintftime.m4 (gl_FPRINTFTIME):
76511         * m4/fts.m4 (gl_FUNC_FTS):
76512         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
76513         * m4/getdate.m4 (gl_GETDATE):
76514         * m4/gethrxtime.m4 (gl_GETHRXTIME):
76515         * m4/getpagesize.m4 (gl_GETPAGESIZE):
76516         * m4/getpass.m4 (gl_FUNC_GETPASS):
76517         * m4/gettime.m4 (gl_GETTIME):
76518         * m4/getugroups.m4 (gl_GETUGROUPS):
76519         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
76520         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
76521         * m4/hard-locale.m4 (gl_HARD_LOCALE):
76522         * m4/hash.m4 (gl_HASH):
76523         * m4/idcache.m4 (gl_IDCACHE):
76524         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
76525         * m4/lchown.m4 (gl_FUNC_LCHOWN):
76526         * m4/long-options.m4 (gl_LONG_OPTIONS):
76527         * m4/lstat.m4 (gl_FUNC_LSTAT):
76528         * m4/md5.m4 (gl_MD5):
76529         * m4/memcasecmp.m4 (gl_MEMCASECMP):
76530         * m4/memcoll.m4 (gl_MEMCOLL):
76531         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
76532         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
76533         * m4/memxor.m4 (gl_MEMXOR):
76534         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
76535         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
76536         * m4/modechange.m4 (gl_MODECHANGE):
76537         * m4/mountlist.m4 (gl_MOUNTLIST):
76538         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
76539         * m4/openat.m4 (gl_FUNC_OPENAT):
76540         * m4/pathmax.m4 (gl_PATHMAX):
76541         * m4/physmem.m4 (gl_PHYSMEM):
76542         * m4/posixtm.m4 (gl_POSIXTM):
76543         * m4/posixver.m4 (gl_POSIXVER):
76544         * m4/quote.m4 (gl_QUOTE):
76545         * m4/quotearg.m4 (gl_QUOTEARG):
76546         * m4/readtokens.m4 (gl_READTOKENS):
76547         * m4/readutmp.m4 (gl_READUTMP):
76548         * m4/regex.m4 (gl_REGEX):
76549         * m4/safe-read.m4 (gl_SAFE_READ):
76550         * m4/safe-write.m4 (gl_SAFE_WRITE):
76551         * m4/same.m4 (gl_SAME):
76552         * m4/save-cwd.m4 (gl_SAVE_CWD):
76553         * m4/savedir.m4 (gl_SAVEDIR):
76554         * m4/settime.m4 (gl_SETTIME):
76555         * m4/sha1.m4 (gl_SHA1):
76556         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
76557         * m4/stat-macros.m4 (gl_STAT_MACROS):
76558         * m4/stat-time.m4 (gl_STAT_TIME):
76559         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
76560         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
76561         * m4/strdup.m4 (gl_FUNC_STRDUP):
76562         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
76563         * m4/strndup.m4 (gl_FUNC_STRNDUP):
76564         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
76565         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
76566         * m4/time_r.m4 (gl_TIME_R):
76567         * m4/timespec.m4 (gl_TIMESPEC):
76568         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
76569         * m4/unlinkdir.m4 (gl_UNLINKDIR):
76570         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
76571         * m4/userspec.m4 (gl_USERSPEC):
76572         * m4/utimecmp.m4 (gl_UTIMECMP):
76573         * m4/utimens.m4 (gl_UTIMENS):
76574         * m4/xalloc.m4 (gl_XALLOC):
76575         * m4/xgetcwd.m4 (gl_XGETCWD):
76576         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
76577         * m4/xreadlink.m4 (gl_XREADLINK):
76578         * m4/xstrtod.m4 (gl_XSTRTOD):
76579         * m4/yesno.m4 (gl_YESNO):
76580         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
76581         to get the necessary .h files and whatnot.
76582
76583 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
76584             Bruno Haible  <bruno@clisp.org>
76585
76586         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
76587         /bin/sh understanding of '!' conditional negation.
76588
76589 2006-08-21  Jim Meyering  <jim@meyering.net>
76590
76591         * modules/openat (Depends-on): Really alphabetize.
76592
76593         * modules/acl (Depends-on): Add error and quote.
76594
76595         * check-module (find_included_lib_files): Add at-func.c to the
76596         ok-to-include-more-than-once white list.
76597
76598         * modules/openat (Depends-on): Add lstat.  Alphabetize.
76599
76600 2006-08-21  Bruno Haible  <bruno@clisp.org>
76601
76602         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76603         Emit a pkgdata_DATA variable only if some snippets add contents to it.
76604         Reported by Martin Lambers <marlam@marlam.de>.
76605
76606 2006-08-21  Bruno Haible  <bruno@clisp.org>
76607
76608         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
76609         specify an installation location, don't emit a noinst_LIBRARIES or
76610         noinst_LTLIBRARIES assignment.
76611
76612 2006-08-21  Bruno Haible  <bruno@clisp.org>
76613
76614         BeOS portability.
76615         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
76616         BeOS has mbrtowc() but no <wctype.h>.
76617
76618 2006-08-21  Bruno Haible  <bruno@clisp.org>
76619
76620         BeOS portability.
76621         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
76622         exist.
76623
76624 2006-08-21  Bruno Haible  <bruno@clisp.org>
76625
76626         BeOS portability.
76627         * lib/mbchar.h: Include <wctype.h> only if it exists.
76628
76629 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76630
76631         Remove files that are no longer needed by their respective modules.
76632         * m4/obstack.m4: Remove.
76633         * m4/strerror_r.m4: Remove.
76634         * m4/uint32_t.m4: Remove.
76635         * m4/uintptr_t.m4: Remove.
76636         * m4/ullong_max.m4: Remove.
76637         * m4/xstrtoimax.m4: Remove.
76638         * m4/xstrtoumax.m4: Remove.
76639
76640         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
76641         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
76642         dependencies now capture this.
76643
76644         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
76645         Do not use AC_LIBSOURCES, since gnulib modules now do this.
76646         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
76647         * m4/human.m4 (gl_HUMAN): Likewise.
76648         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
76649         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
76650
76651         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
76652
76653         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
76654         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
76655         stdint.
76656         * m4/human.m4 (gl_HUMAN): Likewise.
76657         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
76658         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
76659         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76660         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76661         * m4/xstrtol (gl_XSTRTOL): Likewise.
76662
76663         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
76664         AC_TYPE_LONG_LONG_INT.
76665         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76666         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
76667         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
76668         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76669
76670         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
76671         on stdbool.
76672
76673         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
76674         (gl_PREREQ_XSTRTOUL): Remove.
76675
76676         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
76677
76678         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
76679         mode.
76680
76681 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76682
76683         Add and change modules to make it easier for coreutils to use
76684         gnulib-tool.
76685         * modules/backupfile (Files): Remove m4/d-ino.m4.
76686         (Depends-on): Add d-ino.
76687         * modules/cycle-check (Depends-on): Add stdint.
76688         (lib_SOURCES): Add cycle-check.h.
76689         * modules/d-ino: New module.
76690         * modules/d-type: New module.
76691         * modules/error (Files): Remove m4/strerror_r.m4.
76692         * modules/filemode (Files): Add m4/st_dm_mode.m4.
76693         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
76694         m4/inttypes_h.m4, m4/uintmax_t.m4.
76695         (Depends-on): Add stdint.
76696         (lib_SOURCES): Add fsusage.h.
76697         * modules/getcwd (Files): Remove d-ino.m4.
76698         (Depends-on): Add d-ino.
76699         * modules/getndelim2 (Depends-on): Add stdint.
76700         * modules/glob (Files): Remove m4/d-type.m4.
76701         (Depends-on): Add d-type.
76702         * modules/host-os: New module.
76703         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
76704         m4/inttypes_h.m4, m4/uintmax_t.m4.
76705         * Depends-on: Add stdint.
76706         (lib_SOURCES): Add human.h.
76707         * modules/inttostr (Files): Remove m4/intmax_t.m4,
76708         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
76709         m4/uintmax_t.m4, m4/ulonglong.m4.
76710         (Depends-on): Add stdint.
76711         (EXTRA_DIST): Add inttostr.h.
76712         * modules/lchmod: New module.
76713         * modules/link-follow: New module.
76714         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
76715         (Depends-on): Add lchmod.
76716         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
76717         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
76718         (Depends-on): Add stdint.
76719         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
76720         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
76721         (Depends-on): Add stdint.
76722         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
76723         * modules/perl: New module.
76724         * modules/regex (Depends-on): Add stdint.
76725         * modules/rmdir-errno: New module.
76726         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76727         m4/intmax_t.m4.
76728         (Depends-on): Add stdint.
76729         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76730         m4/uintmax_t.m4.
76731         (Depends-on): Add stdint.
76732         * modules/unlink-busy: New module.
76733         * modules/utimecmp (Depends-on): Add stdint.
76734         * modules/uptime: New module.
76735         * modules/winsz-ioctl: New module.
76736         * modules/winsz-termios: New module.
76737         * modules/xnanosleep (Depends-on): Add nanosleep.
76738         * modules/ullong_max: Remove.
76739         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
76740         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
76741         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
76742         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
76743         (Depends-on): Add inttypes.
76744         (lib_SOURCES): Add xstrtol.h.
76745         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
76746         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
76747         * MODULES.html.sh: Move 'assert' into the assert section.
76748         Move 'dummy' into the linking section.
76749         Remove ullong_max.
76750         Add section for compatibility checks for POSIX:2001 functions,
76751         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
76752         winsz-ioctl, and winsz-termios into it.
76753         Add lchmod.
76754         Add top-level Misc section and put host-os, perl, and uptime
76755         into it.
76756
76757 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76758
76759         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
76760         now assume the stdint module.  Do not include inttypes.h.
76761         * lib/fsusage.h: Likewise.
76762         * lib/getndelim2.c: Likewise.
76763         * lib/human.h: Likewise.
76764         * lib/inttostr.h: Likewise.
76765         * lib/obstack.c: Likewise.
76766         * lib/regex_internal.h: Likewise.
76767         * lib/tempname.c: Likewise.
76768         * lib/utimecmp.c: Likewise.
76769         * lib/xstrtol.h: Likewise.
76770
76771         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
76772
76773         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
76774         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
76775         * lib/xtime.h: Likewise.
76776
76777 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76778
76779         * modules/openat (Files): Add lib/fchmodat.c.
76780         Fixes problem reported by Jay Youngman.
76781
76782 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76783
76784         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
76785         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
76786
76787 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
76788             Bruno Haible  <bruno@clisp.org>
76789
76790         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
76791         and is a script that invokes bison. Tighten the code. Add comments.
76792
76793 2006-08-18  Jim Meyering  <jim@meyering.net>
76794
76795         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
76796         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
76797         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
76798         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
76799
76800 2006-08-18  Bruno Haible  <bruno@clisp.org>
76801
76802         * modules/bison-i18n: New file.
76803         * MODULES.html.sh (Internationalization functions): Add it.
76804
76805 2006-08-18  Bruno Haible  <bruno@clisp.org>
76806
76807         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
76808         sys/statvfs.h. When getmntinfo was found, check its declaration and
76809         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
76810
76811 2006-08-18  Bruno Haible  <bruno@clisp.org>
76812
76813         * m4/bison-i18n.m4: New file, from bison.
76814
76815 2006-08-18  Bruno Haible  <bruno@clisp.org>
76816
76817         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
76818         (ME_DUMMY): Treat "kernfs" as a dummy.
76819         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
76820
76821 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76822
76823         Update from coreutils.
76824
76825         2006-08-15  Jim Meyering  <jim@meyering.net>
76826
76827         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
76828
76829         2006-01-17  Jim Meyering  <jim@meyering.net>
76830
76831         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
76832
76833         2006-01-11  Jim Meyering  <jim@meyering.net>
76834
76835         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
76836         Check for the lchmod function.
76837
76838 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76839
76840         Update from coreutils.
76841
76842         * lib/__fpending.h: Add copyright notice.
76843         * lib/fprintftime.h: Likewise.
76844         * lib/savedir.c: Use (C) in copyright notice.
76845         * lib/savedir.h: Likewise.
76846
76847         2006-08-15  Jim Meyering  <jim@meyering.net>
76848
76849         * lib/at-func.c: New file, with the logic of all emulated at-functions.
76850         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
76851         in support of the EXPECTED_ERRNO macro.
76852         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
76853         definitions.  Instead, define the appropriate symbols and include
76854         "at-func.c".
76855         * lib/mkdirat.c (mkdirat): Likewise.
76856         * lib/fchmodat.c (fchmodat): Likewise.
76857         (ENOSYS): Remove definition.
76858         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
76859         it.  Don't include "unistd--.h" -- it wasn't ever used.
76860
76861         2006-01-17  Jim Meyering  <jim@meyering.net>
76862
76863         Rewrite fts.c not to change the current working directory,
76864         by using openat, fstatat, fdopendir, etc..
76865
76866         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
76867         (HAVE_OPENAT_SUPPORT): Define.
76868         [_LIBC] (fchdir): Don't undef or define; no longer used.
76869         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
76870         Now, this `function' always succeeds, and consumes its file descriptor
76871         parameter -- so callers must not close such FDs.  Update callers.
76872         (diropen_fd, opendirat, cwd_advance_fd): New functions.
76873         (diropen): Add parameter, SP.  Adjust all callers.
76874         Implement using diropen_fd, rather than open.
76875         (fts_open): Initialize new member, fts_cwd_fd.
76876         Remove fts_rft-setting code.
76877         (fts_close): Close fts_cwd_fd, if necessary.
76878         (__opendir2): Define in terms of opendir or opendirat,
76879         depending on whether the FST_NOCHDIR flag is set.
76880         (fts_build): Since fts_safe_changedir consumes its FD, and since
76881         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
76882         and close the dup'd file descriptor upon failure.
76883         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
76884         (fts_safe_changedir): Tweak semantics to reflect that this function
76885         now calls cwd_advance_fd and hence consumes its FD argument.
76886         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
76887         [struct FTS] (fts_rft): Remove now-unused member.
76888         [struct FTS] (fts_cycle.state): Improve comment.
76889
76890         * lib/openat.c (openat_needs_fchdir): New function.
76891         * lib/openat.h (openat_needs_fchdir): Declare it.
76892
76893 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76894
76895         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
76896         Problem and fix reported by Pádraig Brady in
76897         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
76898
76899 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76900
76901         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
76902
76903 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76904
76905         * lib/memcoll.c (memcoll): Optimize for the common case where the
76906         arguments are bytewise equal.
76907
76908 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76909
76910         * doc/regexprops-generic.texi: Add a copyright notice.
76911
76912 2006-08-15  Bruno Haible  <bruno@clisp.org>
76913
76914         * modules/tmpdir (License): Change to LGPL.
76915
76916 2006-08-15  Bruno Haible  <bruno@clisp.org>
76917
76918         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
76919         module.
76920
76921 2006-08-14  Simon Josefsson  <jas@extundo.com>
76922
76923         * config/srclist.txt: Add gnupload.
76924
76925 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76926
76927         Change copyright notice from LGPL 2 to GPL 2, since that's the
76928         standard form used in the gnulib repository.
76929         * tests/test-lock.c: Likewise.
76930         * tests/test-stdint.c: Likewise.
76931         * tests/test-tls.c: Likewise.
76932
76933         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
76934         prelude-manager.  User shorter URLs for GNU projects, without '?'.
76935         Add copyright notice.
76936
76937         * check-module: Add copyright notice.  Output a copyright
76938         notice if "--version" is specified.
76939         * modules/COPYING: New file.
76940         * tests/test-getaddrinfo.c: Add copyright notice.
76941         * tests/test-verify.c: Likewise.
76942
76943 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76944
76945         Change copyright notice from LGPL 2 to GPL 2, since that's the
76946         standard form used in the gnulib repository.
76947         * lib/lock.c: LGPL -> GPL.
76948         * lib/lock.h: Likewise.
76949         * lib/strnlen1.c: Likewise.
76950         * lib/strnlen1.h: Likewise.
76951         * lib/tls.c: Likewise.
76952         * lib/tls.h: Likewise.
76953         * lib/tmpdir.c: Likewise.
76954
76955         * lib/TODO: Remove; this belongs only in coreutils.
76956
76957 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76958
76959         Add copyright notices to long-enough files that lack them, since
76960         otherwise the files aren't clearly free.  Use the same notice that
76961         getdate.texi already uses.
76962         * doc/alloca-opt.texi: Add copyright notice.
76963         * doc/alloca.texi: Likewise.
76964         * doc/ctime.texi: Likewise.
76965         * doc/functions.texi: Likewise.
76966         * doc/gcd.texi: Likewise.
76967         * doc/gnulib-tool.texi: Likewise.
76968         * doc/inet_ntoa.texi: Likewise.
76969         * doc/visibility.texi: Likewise.
76970
76971         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
76972         * doc/quote.texi: Add copyright notice.
76973
76974         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
76975         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
76976         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
76977         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
76978         is now obsolete, and give a pointer to the Sun list.
76979         Add copyright notice.
76980
76981 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76982
76983         * config/srclistvars.sh: Add copyright notice.
76984
76985 2006-08-14  Eric Blake  <ebb9@byu.net>
76986
76987         Import the following change from libc:
76988
76989         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
76990
76991         Upstream bug 2997.
76992         * lib/misc/error.c: Add space between program name and message if file
76993         name is missing.
76994
76995 2006-08-12  Karl Berry  <karl@gnu.org>
76996
76997         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
76998         remove, these originate in gnulib now.
76999
77000 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77001
77002         * doc/Makefile (standards.info standards.html standards.dvi):
77003         Also depend on make-stds.texi.
77004
77005 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77006
77007         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
77008         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
77009
77010         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
77011         in wchar_t.  Problem reported by Eric Blake.
77012
77013         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
77014         LEN is smaller than SIZE.  Suggested by Bruno Haible.
77015         Also, help the compiler to keep LEN in a register.
77016
77017 2006-08-11  Eric Blake  <ebb9@byu.net>
77018
77019         * users.txt: Sort.  Add tar.
77020
77021 2006-08-11  Bruno Haible  <bruno@clisp.org>
77022
77023         * users.txt: New file.
77024
77025 2006-08-11  Bruno Haible  <bruno@clisp.org>
77026
77027         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
77028         before <wchar.h>. Needed for OSF/1 and BSD/OS.
77029
77030 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
77031
77032         * modules/snprintf (Depends-on): Remove minmax.
77033         (Maintainer): Add self and Bruno.
77034
77035 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
77036
77037         * lib/.cppi-disable: Add snprintf.h, socket_.h.
77038         * lib/snprintf.c: Include <errno.h> and <limits.h>.
77039         (EOVERFLOW): Define if the system does not.
77040         Do not include "minmax.h"; it wasn't used.
77041         (snprintf): Don't assume size_t promotes to an unsigned type.
77042         Fix bug when generated string was too long for the buffer: the
77043         buffer's contents are supposed to be the initial prefix of the
77044         output.  Don't assume vasnprintf returns EOVERFLOW if the size
77045         exceeds INT_MAX; do the check ourselves.
77046
77047         Import the following changes from libc:
77048
77049         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
77050
77051         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
77052         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
77053         set wc to the byte which couldn't be converted.
77054         (re_string_reconstruct): Don't clear valid_raw_len before calling
77055         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
77056         tip_context using re_string_context_at.
77057
77058         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
77059
77060         * lib/posix/regex.h: g++ still cannot handled [restrict].
77061
77062         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
77063
77064         * lib/posix/regex.h: Remove special handling for VMS.
77065
77066 2006-08-10  Jim Meyering  <jim@meyering.net>
77067
77068         * modules/same-inode: New module.
77069         * modules/dev-ino: New module.
77070         * modules/cycle-check: Depend on these modules, rather than simply
77071         including their .h files.
77072         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
77073         required via m4/cycle-check.m4.
77074         * modules/same: Depend on new same-inode module, rather than
77075         including same-inode.h.
77076         * modules/chdir-safer: New file.
77077
77078         * modules/chown (Depends-on): Add stat-macros.
77079
77080 2006-08-10  Jim Meyering  <jim@meyering.net>
77081
77082         * m4/cycle-check.m4: New file.
77083         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
77084         * m4/dev-ino.m4, m4/same-inode.m4: New files.
77085
77086 2006-08-10  Eric Blake  <ebb9@byu.net>
77087
77088         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
77089         in from original proposal.
77090
77091 2006-08-10  Eric Blake  <ebb9@byu.net>
77092         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
77093
77094         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
77095         namespace.
77096
77097 2006-08-10  Bruno Haible  <bruno@clisp.org>
77098
77099         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
77100         as well.
77101
77102 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77103
77104         Sync from coreutils.
77105
77106         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
77107
77108         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
77109         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
77110
77111 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77112
77113         * modules/restrict: Remove; no longer needed now that we assume
77114         Autoconf 2.59 or later.
77115         * MODULES.html.sh: Remove 'restrict'.
77116         * modules/argp (Depends-on): Remove 'restrict'.
77117         * modules/base64 (Depends-on): Likewise.
77118         * modules/gc (Depends-on): Likewise.
77119         * modules/getaddrinfo (Depends-on): Likewise.
77120         * modules/glob (Depends-on): Likewise.
77121         * modules/inet_ntop (Depends-on): Likewise.
77122         * modules/inet_pton (Depends-on): Likewise.
77123         * modules/memxor (Depends-on): Likewise.
77124         * modules/regex (Depends-on): Likewise.
77125         * modules/strtok_r (Depends-on): Likewise.
77126         * modules/time_r (Depends-on): Likewise.
77127
77128 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77129
77130         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
77131         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
77132         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
77133         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
77134         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
77135         * m4/memxor.m4 (gl_MEMXOR): Likewise.
77136         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
77137         gl_C_RESTRICT replaced by AC_C_RESTRICT.
77138
77139         Merge from coreutils.
77140         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
77141         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
77142         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
77143         * m4/time_r.m4 (gl_TIME_R): Likewise.
77144
77145 2006-08-09  Karl Berry  <karl@gnu.org>
77146
77147         * config/srclist.txt: no more gettext-tools, per Bruno.
77148
77149 2006-08-08  Eric Blake  <ebb9@byu.net>
77150
77151         * modules/verror: New module.
77152         * MODULES.html.sh: Document it.
77153
77154 2006-08-08  Eric Blake  <ebb9@byu.net>
77155
77156         * lib/verror.h, lib/verror.c: New files.
77157
77158 2006-08-08  Eric Blake  <ebb9@byu.net>
77159
77160         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
77161         verror_at_line output complies with GNU Coding Standards even when
77162         file is NULL.
77163
77164 2006-08-07  Bruno Haible  <bruno@clisp.org>
77165
77166         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
77167         versions of AIX.
77168         Reported by Ralf Wildenhues.
77169
77170 2006-08-07  Bruno Haible  <bruno@clisp.org>
77171
77172         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
77173         in an AC_DEFUN. Needed so that the autoconf snippets can use
77174         AC_REQUIRE.
77175
77176 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77177
77178         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77179         Initialize pkgdata_DATA.
77180         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
77181         overriding it.
77182
77183 2006-08-06  Eric Blake  <ebb9@byu.net>
77184
77185         * lib/error.h: Fold in some upstream changes from glibc.
77186         * lib/error.c: Likewise.
77187
77188 2006-08-04  Bruno Haible  <bruno@clisp.org>
77189
77190         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77191         Make the mostlyclean-local rule depend on mostlyclean-generic.
77192         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
77193
77194 2006-07-31  Bruno Haible  <bruno@clisp.org>
77195
77196         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
77197         <stdlib.h>, <string.h>.
77198
77199 2006-07-30  Bruno Haible  <bruno@clisp.org>
77200
77201         * modules/readlink (License): Change to LGPL.
77202
77203 2006-07-30  Bruno Haible  <bruno@clisp.org>
77204
77205         * modules/javaversion (Makefile.am): Distribute javaversion.java and
77206         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
77207         set PKGDATADIR to point to it.
77208
77209 2006-07-30  Bruno Haible  <bruno@clisp.org>
77210
77211         * modules/csharpexec (configure.ac): Comment out macro invocation.
77212         * modules/javaexec (configure.ac): Likewise.
77213         * modules/javacomp-script (configure.ac): Likewise.
77214
77215         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
77216
77217 2006-07-30  Bruno Haible  <bruno@clisp.org>
77218
77219         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
77220         linked-list.
77221
77222 2006-07-30  Bruno Haible  <bruno@clisp.org>
77223
77224         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
77225
77226 2006-07-30  Bruno Haible  <bruno@clisp.org>
77227
77228         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77229         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
77230         get removed.
77231
77232 2006-07-29  Bruno Haible  <bruno@clisp.org>
77233
77234         Make it possible for gnulib-tool to work with locally modified or
77235         augmented gnulib repositories.
77236         * gnulib-tool (func_usage): Document --local-dir option.
77237         (local_gnulib_dir): New variable.
77238         Handle --local-dir option.
77239         (func_lookup_file): New function.
77240         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
77241         (func_get_description, func_get_filelist, func_get_description,
77242         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
77243         func_get_automake_snippet, func_get_include_directive,
77244         func_get_license, func_get_maintainer): Use func_lookup_file.
77245         (func_import, func_create_testdir): Use func_lookup_file.
77246
77247 2006-07-29  Bruno Haible  <bruno@clisp.org>
77248
77249         * modules/setenv (Depends-on): Add unistd.
77250
77251 2006-07-29  Bruno Haible  <bruno@clisp.org>
77252
77253         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
77254
77255 2006-07-29  Bruno Haible  <bruno@clisp.org>
77256
77257         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
77258
77259 2006-07-29  Bruno Haible  <bruno@clisp.org>
77260
77261         * gnulib-tool (import, update): If there is no Makefile.am, look at
77262         aclocal.m4, instead of bailing out.
77263
77264 2006-07-29  Bruno Haible  <bruno@clisp.org>
77265
77266         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
77267         Categorize the options by when they are useful.
77268
77269 2006-07-29  Bruno Haible  <bruno@clisp.org>
77270
77271         * gnulib-tool (func_usage): Document option --no-libtool.
77272         Handle option --no-libtool.
77273         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
77274         for changed semantics of $libtool variable.
77275         (func_import): Likewise. If libtool is not used, show this through
77276         an option --no-libtool.
77277         (func_create_testdir): Update.
77278
77279 2006-07-29  Bruno Haible  <bruno@clisp.org>
77280
77281         * gnulib-tool (func_import): Extend error message about missing
77282         --doc-base.
77283
77284 2006-07-29  Bruno Haible  <bruno@clisp.org>
77285
77286         * gnulib-tool (func_import): Don't create the $docbase directory if
77287         there is no file to store there.
77288
77289 2006-07-29  Bruno Haible  <bruno@clisp.org>
77290
77291         * gnulib-tool (autoconf_minversion): If a --dir option is given and
77292         relevant, look for configure.ac there, not in the current directory.
77293         Also use a simple search for AC_PREREQ, not "autoconf --trace".
77294
77295 2006-07-29  Bruno Haible  <bruno@clisp.org>
77296
77297         * gnulib-tool (SORT): New variable.
77298         (func_usage): Undocument --assume-autoconf option.
77299         Remove --assume-autoconf option handling.
77300         (autoconf_minversion): Determine from the contents of configure.ac.
77301         (func_import): Remove autoconf_minversion handling.
77302         Suggested by Eric Blake.
77303
77304 2006-07-29  Bruno Haible  <bruno@clisp.org>
77305
77306         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
77307
77308 2006-07-29  Bruno Haible  <bruno@clisp.org>
77309
77310         * config/srclist.txt (*setenv.[ch]): Remove rules.
77311
77312 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77313
77314         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
77315
77316 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77317
77318         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
77319         arpa/inet.h.
77320
77321 2006-07-28  Simon Josefsson  <jas@extundo.com>
77322
77323         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
77324         * modules/inet_pton (Depends-on): Likewise.
77325
77326 2006-07-28  Simon Josefsson  <jas@extundo.com>
77327
77328         * m4/netinet_in_h.m4: New file.
77329
77330 2006-07-28  Simon Josefsson  <jas@extundo.com>
77331
77332         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
77333         #include's.
77334
77335 2006-07-28  Simon Josefsson  <jas@extundo.com>
77336
77337         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
77338         #include's.
77339
77340 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
77341
77342         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
77343         setgid on directories only if they set these bits.
77344         * lib/modechange.h: Remove obsolete comment about masks.
77345
77346 2006-07-28  Eric Blake  <ebb9@byu.net>
77347
77348         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
77349         macro expansion.
77350
77351 2006-07-28  Bruno Haible  <bruno@clisp.org>
77352
77353         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
77354
77355 2006-07-28  Bruno Haible  <bruno@clisp.org>
77356
77357         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
77358
77359 2006-07-28  Bruno Haible  <bruno@clisp.org>
77360
77361         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
77362         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
77363         Define fallbacks.
77364         Avoids link error on FreeBSD 4.x.
77365         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77366
77367         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
77368         encoding.
77369         * lib/mbswidth.c (iswcntrl): Likewise.
77370
77371 2006-07-27  Bruno Haible  <bruno@clisp.org>
77372
77373         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
77374         test.
77375
77376 2006-07-27  Bruno Haible  <bruno@clisp.org>
77377
77378         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
77379         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
77380         defined.
77381
77382 2006-07-26  Eric Blake  <ebb9@byu.net>
77383
77384         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
77385
77386 2006-07-26  Eric Blake  <ebb9@byu.net>
77387
77388         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
77389         like mingw that lack mkstemp.
77390         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
77391         avoid compilation warning on mingw.
77392
77393 2006-07-26  Bruno Haible  <bruno@clisp.org>
77394
77395         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
77396         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
77397         INT_FAST*_MIN, INTPTR_MIN.
77398
77399 2006-07-25  Bruno Haible  <bruno@clisp.org>
77400
77401         * modules/version-etc (Depends-on): Add stdarg.
77402
77403 2006-07-25  Bruno Haible  <bruno@clisp.org>
77404
77405         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
77406         complex commands.
77407
77408 2006-07-25  Bruno Haible  <bruno@clisp.org>
77409
77410         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
77411         defined in <stdarg.h> or config.h.
77412
77413 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
77414
77415         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
77416         (gl_STDIO_SAFER): Remove.
77417
77418 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
77419
77420         * MODULES.html.sh (File stream based Input/Output):
77421         Add fopen-safer, tmpfile-safer; remove stdio-safer.
77422         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
77423         * modules/fopen-safer, modules/tmpfile-safer: New files.
77424         * modules/stdio-safer: Remove.
77425
77426 2006-07-24  Bruno Haible  <bruno@clisp.org>
77427
77428         * modules/tmpdir: New file.
77429         * MODULES.html.sh (File system functions): Add it.
77430
77431 2006-07-24  Bruno Haible  <bruno@clisp.org>
77432
77433         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
77434         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
77435
77436 2006-07-24  Bruno Haible  <bruno@clisp.org>
77437
77438         * modules/clean-temp: New file.
77439
77440 2006-07-24  Bruno Haible  <bruno@clisp.org>
77441
77442         * m4/tmpdir.m4: New file, from GNU gettext.
77443
77444 2006-07-24  Bruno Haible  <bruno@clisp.org>
77445
77446         * lib/tmpdir.h: New file, from GNU gettext.
77447         * lib/tmpdir.c: New file, from GNU gettext.
77448
77449 2006-07-24  Bruno Haible  <bruno@clisp.org>
77450
77451         * lib/clean-temp.h: New file, from GNU gettext.
77452         * lib/clean-temp.c: New file, from GNU gettext.
77453
77454 2006-07-23  Eric Blake  <ebb9@byu.net>
77455
77456         * modules/stdio-safer (Files): Add tmpfile-safer.c.
77457         (Depends-on): Add binary-io.
77458
77459 2006-07-23  Eric Blake  <ebb9@byu.net>
77460
77461         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
77462
77463 2006-07-23  Eric Blake  <ebb9@byu.net>
77464
77465         * lib/tmpfile-safer.c: New file.
77466         * lib/stdio-safer.h (fopen_safer): Add prototype.
77467         * lib/stdio--.h (tmpfile): Make safer.
77468
77469 2006-07-23  Bruno Haible  <bruno@clisp.org>
77470
77471         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
77472         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
77473         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
77474         gl_linked_remove_at): Use it.
77475
77476 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77477         and Simon Josefsson <jas@extundo.com>
77478
77479         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
77480
77481         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
77482
77483 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77484
77485         * modules/close-stream: New file.
77486         * modules/closeout (Description): Make it clear that it exits
77487         with a diagnostic on error.
77488         (Depends-on): Add close-stream.  Remove fpending, stdbool.
77489         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
77490
77491 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77492
77493         * m4/close-stream.m4: New file.
77494
77495 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77496
77497         * lib/close-stream.c, lib/close-stream.h: New files.
77498
77499 2006-07-22  Bruno Haible  <bruno@clisp.org>
77500
77501         Merge from GNU gettext 0.15.
77502
77503         2006-05-01  Bruno Haible  <bruno@clisp.org>
77504
77505                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
77506
77507         2006-07-22  Bruno Haible  <bruno@clisp.org>
77508
77509                 * modules/javaversion: New file.
77510                 * MODULES.html.sh (Java): Add javaversion.
77511
77512         2006-03-12  Bruno Haible  <bruno@clisp.org>
77513
77514                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
77515
77516         2005-12-04  Bruno Haible  <bruno@clisp.org>
77517
77518                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
77519                 (untested).
77520
77521         2006-06-21  Bruno Haible  <bruno@clisp.org>
77522
77523                 Avoid warnings from recent versions of mcs.
77524                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
77525                 -o, -L, -r any more. Use options documented since mcs-1.0
77526                 instead. Similarly for -g.
77527
77528         2005-12-04  Bruno Haible  <bruno@clisp.org>
77529
77530                 * build-aux/csharpcomp.sh.in: Suffix for resources is
77531                 .resources, not .resource.
77532
77533         2005-07-09  Bruno Haible  <bruno@clisp.org>
77534
77535                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
77536                 add a .dll suffix.
77537                 Reported by Mark Junker <mjscod@gmx.de>.
77538
77539         2006-07-22  Bruno Haible  <bruno@clisp.org>
77540
77541                 * modules/gettext: Upgrade to gettext-0.15.
77542                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
77543                 m4/visibility.m4.
77544                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
77545
77546 2006-07-22  Bruno Haible  <bruno@clisp.org>
77547
77548         Merge from GNU gettext 0.15.
77549
77550         2006-03-25  Bruno Haible  <bruno@clisp.org>
77551
77552                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
77553
77554         2006-07-21  Bruno Haible  <bruno@clisp.org>
77555
77556                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
77557                 "1.1".
77558
77559         2006-05-09  Bruno Haible  <bruno@clisp.org>
77560
77561                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
77562                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
77563                 for the conftestver execution.
77564
77565         2006-05-01  Bruno Haible  <bruno@clisp.org>
77566
77567                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
77568                 optional target-version argument. Verify that the compiler
77569                 groks source of the specified source-version, or add -source
77570                 option as necessary. Verify that the compiler produces
77571                 bytecode in the specified target-version, or add -target and
77572                 -source options as necessary. Make the result of the test
77573                 available as variable CONF_JAVAC. Also log error output in
77574                 config.log.
77575
77576         2006-03-11  Bruno Haible  <bruno@clisp.org>
77577
77578                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
77579
77580         2006-05-09  Bruno Haible  <bruno@clisp.org>
77581
77582                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
77583                 CLASSPATH_SEPARATOR to a semicolon.
77584
77585         2006-03-12  Bruno Haible  <bruno@clisp.org>
77586
77587                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
77588                 available as variable CONF_JAVA, for subsequent autoconf
77589                 tests. Also log error output in config.log.
77590
77591         2006-07-19  Bruno Haible  <bruno@clisp.org>
77592
77593                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
77594                 that getline works on glibc2 systems. Needed to avoid trouble
77595                 in relocatable.c.
77596                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
77597
77598         2005-12-04  Bruno Haible  <bruno@clisp.org>
77599
77600                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
77601                 launcher (untested).
77602
77603         2005-12-04  Bruno Haible  <bruno@clisp.org>
77604
77605                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
77606
77607         2006-07-22  Bruno Haible  <bruno@clisp.org>
77608
77609                 * gettext.m4: Update from GNU gettext-0.15.
77610                 * nls.m4: Likewise.
77611                 * po.m4: Likewise.
77612                 * inttypes-pri.m4: Likewise.
77613                 * inttypes-h.m4: Renamed from inttypes.m4.
77614                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
77615
77616 2006-07-22  Bruno Haible  <bruno@clisp.org>
77617
77618         Merge from GNU gettext 0.15.
77619
77620         2005-07-05  Bruno Haible  <bruno@clisp.org>
77621
77622                 * printf-args.c (printf_fetchargs): Work around broken
77623                 definition of wint_t on mingw.
77624
77625         2005-02-12  Bruno Haible  <bruno@clisp.org>
77626
77627                 * xallocsa.h: Add extern "C" for C++.
77628
77629         2006-05-17  Bruno Haible  <bruno@clisp.org>
77630
77631                 Cygwin portability.
77632                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
77633
77634         2006-04-30  Bruno Haible  <bruno@clisp.org>
77635
77636                 * progreloc.c: Include <mach-o/dyld.h> if available.
77637                 (find_executable): Use _NSGetExecutablePath when possible.
77638
77639         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77640
77641                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
77642                 function.
77643
77644         2005-12-29  Bruno Haible  <bruno@clisp.org>
77645
77646                 * progreloc.c (set_program_name_and_installdir): Fix
77647                 compilation error.
77648
77649         2005-12-04  Bruno Haible  <bruno@clisp.org>
77650
77651                 Cygwin portability.
77652                 * progreloc.c: Include <windows.h> also on Cygwin.
77653                 (find_executable): Add support for Cygwin.
77654                 (set_program_name_and_installdir): Handle also platforms with
77655                 nonempty EXEEXT.
77656
77657         2006-07-11  Bruno Haible  <bruno@clisp.org>
77658
77659                 * javacomp.c: Fix a comment.
77660                 Reported by Jim Meyering.
77661
77662         2006-04-30  Bruno Haible  <bruno@clisp.org>
77663
77664                 * javacomp.h (compile_java_class): Add source_version,
77665                 target_version arguments.
77666                 * javacomp.c: Rewritten to choose only a compiler that
77667                 respects the specified source_version and target_version.
77668
77669         2006-06-27  Bruno Haible  <bruno@clisp.org>
77670
77671                 Assume correct S_ISDIR macro.
77672                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
77673
77674         2006-07-22  Bruno Haible  <bruno@clisp.org>
77675
77676                 * javaversion.h: New file, from GNU gettext.
77677                 * javaversion.c: New file, from GNU gettext.
77678                 * javaversion.java: New file, from GNU gettext.
77679                 * javaversion.class: New file, from GNU gettext.
77680
77681         2006-05-17  Bruno Haible  <bruno@clisp.org>
77682
77683                 Cygwin portability.
77684                 * javaexec.c (execute_java_class): Test for jview program
77685                 also on Cygwin.
77686
77687         2006-04-09  Bruno Haible  <bruno@clisp.org>
77688
77689                 * fatal-signal.c: Don't include string.h.
77690                 (at_fatal_signal): Use a copying loop instead of memcpy.
77691
77692         2005-12-04  Bruno Haible  <bruno@clisp.org>
77693
77694                 * csharpexec.c: Add support for 'clix' launcher (untested).
77695                 (execute_csharp_using_sscli): New function.
77696                 (execute_csharp_program): Call it.
77697
77698         2006-06-21  Bruno Haible  <bruno@clisp.org>
77699
77700                 Avoid warnings from recent versions of mcs.
77701                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
77702                 -o, -L, -r any more. Use options documented since mcs-1.0
77703                 instead. Similarly for -g.
77704
77705         2005-07-09  Bruno Haible  <bruno@clisp.org>
77706
77707                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
77708                 add a .dll suffix.
77709                 Reported by Mark Junker <mjscod@gmx.de>.
77710
77711         2006-06-17  Bruno Haible  <bruno@clisp.org>
77712
77713                 * config.charset: Update for NetBSD 3.0.
77714
77715         2006-05-17  Bruno Haible  <bruno@clisp.org>
77716
77717                 Cygwin portability.
77718                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
77719
77720         2006-05-16  Bruno Haible  <bruno@clisp.org>
77721
77722                 * localcharset.c [CYGWIN]: Include <windows.h>.
77723                 (get_charset_aliases): For Cygwin, return the same CPxxx
77724                 aliases list as under WIN32.
77725                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
77726                 the environment variables. Fall back to GetACP().
77727
77728         2006-04-05  Bruno Haible  <bruno@clisp.org>
77729
77730                 * config.charset: Update Juan Manuel Guerrero's address.
77731
77732         2005-02-12  Bruno Haible  <bruno@clisp.org>
77733
77734                 * allocsa.h: Add extern "C" for C++.
77735
77736         2005-02-10  Bruno Haible  <bruno@clisp.org>
77737
77738                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
77739                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
77740
77741         2006-07-22  Bruno Haible  <bruno@clisp.org>
77742
77743                 * gettext.h: Update to GNU gettext-0.15.
77744
77745 2006-07-22  Bruno Haible  <bruno@clisp.org>
77746
77747         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
77748         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
77749         lib-prefix.m4, longdouble.m4, ssize_t.m4.
77750
77751 2006-07-21  Eric Blake  <ebb9@byu.net>
77752
77753         * modules/stdlib-safer: New file.
77754         * MODULES.html.sh (File stream based Input/Output): Add
77755         stdlib-safer.
77756
77757 2006-07-21  Eric Blake  <ebb9@byu.net>
77758
77759         * lib/stdlib-safer.h: New file from coreutils, required by
77760         stdlib--.h.
77761
77762 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
77763
77764         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
77765
77766 2006-07-20  Bruno Haible  <bruno@clisp.org>
77767
77768         * gnulib-tool: Recognize new option --assume-autoconf.
77769         (autoconf_minversion): New variable.
77770         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
77771
77772 2006-07-20  Bruno Haible  <bruno@clisp.org>
77773
77774         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
77775
77776 2006-07-19  Derek R. Price  <derek@ximbiot.com>
77777
77778         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
77779         Reindent and repaginate.
77780
77781 2006-07-19  Derek Price  <derek@ximbiot.com>
77782
77783         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
77784         Correct grammar.
77785
77786 2006-07-17  Bruno Haible  <bruno@clisp.org>
77787
77788         * modules/list: New file.
77789         * modules/array-list: New file.
77790         * modules/carray-list, modules/carray-list-tests: New files.
77791         * modules/linked-list, modules/linked-list-tests: New files.
77792         * modules/avltree-list, modules/avltree-list-tests: New files.
77793         * modules/rbtree-list, modules/rbtree-list-tests: New files.
77794         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
77795         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
77796         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
77797         * modules/oset: New file.
77798         * modules/array-oset: New file.
77799         * modules/avltree-oset, modules/avltree-oset-tests: New files.
77800         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
77801         * tests/test-carray_list.c: New file.
77802         * tests/test-linked_list.c: New file.
77803         * tests/test-avltree_list.c: New file.
77804         * tests/test-rbtree_list.c: New file.
77805         * tests/test-linkedhash_list.c: New file.
77806         * tests/test-avltreehash_list.c: New file.
77807         * tests/test-rbtreehash_list.c: New file.
77808         * tests/test-avltree_oset.c: New file.
77809         * tests/test-rbtree_oset.c: New file.
77810         * MODULES.html.sh (Container data structures): New section.
77811
77812 2006-07-17  Bruno Haible  <bruno@clisp.org>
77813
77814         * m4/gl_list.m4: New file.
77815
77816 2006-07-17  Bruno Haible  <bruno@clisp.org>
77817
77818         * lib/gl_list.h: New file.
77819         * lib/gl_list.c: New file.
77820         * lib/gl_array_list.h: New file.
77821         * lib/gl_array_list.c: New file.
77822         * lib/gl_carray_list.h: New file.
77823         * lib/gl_carray_list.c: New file.
77824         * lib/gl_linked_list.h: New file.
77825         * lib/gl_linked_list.c: New file.
77826         * lib/gl_anylinked_list1.h: New file.
77827         * lib/gl_anylinked_list2.h: New file.
77828         * lib/gl_avltree_list.h: New file.
77829         * lib/gl_avltree_list.c: New file.
77830         * lib/gl_anyavltree_list1.h: New file.
77831         * lib/gl_anyavltree_list2.h: New file.
77832         * lib/gl_rbtree_list.h: New file.
77833         * lib/gl_rbtree_list.c: New file.
77834         * lib/gl_anyrbtree_list1.h: New file.
77835         * lib/gl_anyrbtree_list2.h: New file.
77836         * lib/gl_anytree_list1.h: New file.
77837         * lib/gl_anytree_list2.h: New file.
77838         * lib/gl_linkedhash_list.h: New file.
77839         * lib/gl_linkedhash_list.c: New file.
77840         * lib/gl_anyhash_list1.h: New file.
77841         * lib/gl_anyhash_list2.h: New file.
77842         * lib/gl_avltreehash_list.h: New file.
77843         * lib/gl_avltreehash_list.c: New file.
77844         * lib/gl_rbtreehash_list.h: New file.
77845         * lib/gl_rbtreehash_list.c: New file.
77846         * lib/gl_anytreehash_list1.h: New file.
77847         * lib/gl_anytreehash_list2.h: New file.
77848
77849         * lib/gl_oset.h: New file.
77850         * lib/gl_oset.c: New file.
77851         * lib/gl_array_oset.h: New file.
77852         * lib/gl_array_oset.c: New file.
77853         * lib/gl_avltree_oset.h: New file.
77854         * lib/gl_avltree_oset.c: New file.
77855         * lib/gl_rbtree_oset.h: New file.
77856         * lib/gl_rbtree_oset.c: New file.
77857         * lib/gl_anytree_oset.h: New file.
77858
77859 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77860
77861         * m4/mkancesdirs.m4: New file.
77862         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
77863         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
77864         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
77865         it.
77866
77867 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77868
77869         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
77870         * lib/mkancesdirs.h: New files.
77871         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
77872         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
77873         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
77874         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
77875         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
77876         callers changed.  Revamp internals significantly, by not
77877         attempting to create directories that are temporarily more
77878         permissive than the final results.  Do not attempt to use
77879         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
77880         This removes some race conditions, fixes some bugs, and simplifies
77881         things.  Use new dirchownmod function to do owner and mode changes.
77882         * lib/mkdir-p.h: Likewise.
77883         * lib/modechange.c (octal_to_mode): New function.
77884         (struct mode_change): New member mentioned.
77885         (make_node_op_equals): New arg mentioned.  All callers changed.
77886         (mode_compile): Keep track of which mode bits the user has explicitly
77887         mentioned.
77888         (mode_adjust): New arg DIR, so that we implement the X op correctly.
77889         New arg PMODE_BITS, to keep track of which mode bits the user
77890         mentioned; it treats S_ISUID and S_ISGID speciall.
77891         All callers changed.
77892         * lib/modechange.h: Likewise.
77893
77894 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77895
77896         * MODULES.html.sh: Add mkancestors.
77897         * modules/mkancesdirs: New module.
77898         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
77899         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
77900         The chdir-safer and afs files are now orphans; I'll remove them
77901         unless someone speaks up.
77902         Add lib/dirchownmod.c, lib/dirchownmod.h.
77903         (Depends-on): Remove alloca, chown, save-cwd, dirname.
77904         Add lchown, mkancesdirs.
77905         (Maintainer): Add self.
77906
77907 2006-07-15  Karl Berry  <karl@gnu.org>
77908
77909         * gnulib-tool: help message wording/arrangement.
77910
77911 2006-07-14  Simon Josefsson  <jas@extundo.com>
77912
77913         * doc/gnulib.texi (Libtool and Windows): New section.
77914
77915 2006-07-12  Simon Josefsson  <jas@extundo.com>
77916
77917         * modules/gendocs (License): Fix license, approved by Karl.
77918
77919 2006-07-12  Eric Blake  <ebb9@byu.net>
77920
77921         * MODULES.html.sh: Add gendocs.
77922
77923 2006-07-11  Eric Blake  <ebb9@byu.net>
77924
77925         * modules/fdl: New module, to install doc/fdl.texi.
77926         * MODULES.html.sh: Add new section for documentation modules.
77927         * gnulib-tool: Avoid space-tab.
77928         (--doc-base): New option, to manage files from doc.
77929
77930 2006-07-11  Eric Blake  <ebb9@byu.net>
77931
77932         * m4/absolute-header.m4: Fix comments to match recent change.
77933
77934 2006-07-11  Eric Blake  <ebb9@byu.net>
77935
77936         * gnulib-tool: List --doc-base before --tests-base.
77937
77938 2006-07-11  Derek R. Price  <derek@ximbiot.com>
77939
77940         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
77941
77942 2006-07-11  Bruno Haible  <bruno@clisp.org>
77943
77944         * README: Mention where to put documentation.
77945
77946 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77947
77948         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
77949
77950 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77951
77952         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
77953         to stdint.m4.
77954
77955 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77956
77957         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
77958         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
77959         "no/such/file/stdint.h" when there is no such file, so that
77960         the resulting C code can be parsed by dodgy compilers.
77961         Problems reported by Bob Proulx.
77962
77963 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77964
77965         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
77966         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77967         macros into the GNU _D_EXACT_NAMLEN.
77968         * lib/savedir.c:  Likewise.
77969         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
77970
77971 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77972         and Paul Eggert  <eggert@cs.ucla.edu>
77973
77974         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
77975         * m4/savedir.m4:
77976         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77977         macros into the GNU _D_EXACT_NAMLEN.
77978
77979 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77980
77981         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
77982         around the absolute name, to work around a problem with the HP-UX
77983         11.23 native C compiler, reported by Bob Proulx.
77984
77985 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77986
77987         * doc/maintain.texi, make-stds.texi: Sync from
77988         <http://savannah.gnu.org/projects/gnustandards>.
77989
77990 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77991
77992         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
77993
77994 2006-07-09  Jim Meyering  <jim@meyering.net>
77995
77996         * m4/glob.m4: Remove a doubled word in a comment.
77997
77998 2006-07-09  Jim Meyering  <jim@meyering.net>
77999
78000         * lib/argp-pv.c: Remove a doubled word in a comment.
78001         * lib/check-version.c (check_version): Likewise.
78002         * lib/javacomp.c (compile_java_class): Likewise.
78003
78004 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
78005
78006         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
78007         for the benefit of people using Autoconf 2.60.  If you want to
78008         support older Autoconf versions you can copy m4/onceonly_2_57.m4
78009         (or m4/onceonly.m4, if pre-2.57) manually.
78010
78011 2006-07-08  Jim Meyering  <jim@meyering.net>
78012
78013         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
78014         comment.
78015         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
78016         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
78017         comment.
78018
78019 2006-07-08  Jim Meyering  <jim@meyering.net>
78020
78021         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
78022
78023 2006-07-07  Simon Josefsson  <jas@extundo.com>
78024
78025         * tests/test-crc.c: Change expected crc value, the test vector
78026         were probably computed using the old broken crc.c?
78027
78028 2006-07-06  Simon Josefsson  <jas@extundo.com>
78029
78030         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
78031         now the canonical place for the M4 file).
78032
78033         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
78034         from the sys_socket dependency now.
78035
78036         * modules/inet_pton (Files): Ditto.
78037
78038         * modules/inet_ntop (Files): Ditto.
78039
78040 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78041
78042         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
78043         not gl_PREREQ_GETUSERSHELL.
78044
78045 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78046
78047         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
78048         with only one argument, for Autoconf 2.60.
78049         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
78050         expand to nothing, so add a shell command to avoid syntax error.
78051         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
78052
78053 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78054
78055         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
78056
78057 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78058
78059         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
78060         no longer needed.  Check for isblank decl.
78061         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
78062         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
78063         of existence.
78064
78065 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78066
78067         * lib/getloadavg.c: Use __VMS, not VMS.
78068         * lib/getopt.c: Likewise.
78069         * lib/getpagesize.h: Likewise.
78070         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
78071         and probably does not work.
78072
78073 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78074
78075         * lib/.cppi-disable: Add wcwidth.
78076         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
78077         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
78078         (ISGRAPH): Remove.  All uses changed to isgraph.
78079         (FOLD) [!defined _LIBC]: Remove special case.
78080         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
78081         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
78082         HAVE_ISBLANK.
78083         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
78084         case.
78085
78086 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
78087
78088         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
78089         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
78090         brackets.  Other minor changes to suppress some compiler
78091         warnings.
78092
78093 2006-07-06  Derek R. Price  <derek@ximbiot.com>
78094         and Paul Eggert  <eggert@cs.ucla.edu>
78095
78096         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
78097         of invoking obsolescent AC_HEADER_DIRENT macro.
78098         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
78099         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
78100         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
78101         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
78102         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
78103         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
78104         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
78105         * m4/readdir.m4: Remove; no longer needed.
78106
78107 2006-07-06  Derek R. Price  <derek@ximbiot.com>
78108         and Paul Eggert  <eggert@cs.ucla.edu>
78109
78110         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
78111         Don't worry about this obsolete case any more.
78112         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
78113         directories.
78114         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
78115         worry about this obsolete case any more.
78116         * lib/fts.c: Likewise.
78117         * lib/getcwd.c: Likewise.
78118         * lib/glob.h: Likewise.
78119         * lib/savedir.c: Likewise.
78120
78121 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78122
78123         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
78124         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
78125         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
78126         needed.
78127         All uses removed.
78128         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78129         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
78130         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
78131         needed.
78132         * m4/getdate.m4 (gl_GETDATE): Likewise.
78133         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
78134         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
78135         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
78136         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78137         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
78138         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78139         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
78140         needed.
78141
78142 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78143
78144         * lib/memcasecmp.c: Include <limits.h>.
78145         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
78146         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
78147         Don't assume isdigit succeeds only on '0' through '9'.
78148
78149 2006-07-05  Eric Blake  <ebb9@byu.net>
78150
78151         * modules/getaddrinfo (Depends-on): Add snprintf.
78152
78153 2006-07-05  Eric Blake  <ebb9@byu.net>
78154
78155         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
78156         to avoid 'header present but could not be compiled' on cygwin.
78157
78158 2006-07-05  Eric Blake  <ebb9@byu.net>
78159
78160         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
78161         missing from netdb.h.
78162         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
78163
78164 2006-07-05  Derek R. Price  <derek@ximbiot.com>
78165
78166         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
78167         no longer needed.
78168         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
78169         * m4/getdate.m4 (gl_GETDATE): Likewise.
78170         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
78171         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
78172         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
78173         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78174         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78175
78176 2006-07-05  Derek R. Price  <derek@ximbiot.com>
78177
78178         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
78179         All uses of is_space replaced by isspace.
78180         * lib/exit.h: Don't talk about STDC_HEADERS.
78181         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
78182         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
78183         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
78184         replaced by isprint etc.
78185         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
78186         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
78187         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
78188         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
78189         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
78190         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
78191
78192 2006-07-05  Bruno Haible  <bruno@clisp.org>
78193
78194         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
78195         the function exists, before testing against AIX.
78196         Reported by Martin Lambers <marlam@marlam.de>.
78197
78198 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
78199
78200         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
78201         From Mark D. Baushke.
78202
78203 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
78204
78205         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
78206         to the absolute name, not just one, to bypass Sun C 5.8's
78207         "warning: #include of /usr/include/... may be non-portable".
78208
78209 2006-07-04  Eric Blake  <ebb9@byu.net>
78210
78211         * modules/dirname-tests: New test module.
78212         * tests/test-dirname.c: New file, replacing dirname.c
78213         TEST_DIRNAME section that was recently deleted.
78214
78215 2006-07-04  Bruno Haible  <bruno@clisp.org>
78216
78217         Assume ANSI C header files and <ctype.h> functions.
78218         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
78219         (mbsnwidth): Use isprint, iscntrl instead.
78220
78221 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78222
78223         Merge from coreutils.
78224         * MODULES.html.sh: Add xstrtold.
78225         * modules/xstrtold: New file.
78226         * modules/cycle-check (Files): Add lib/same-inode.h.
78227         * modules/dirname (Files): Add m4/double-slash-root.m4.
78228         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
78229         * modules/mkdir-p (Files): Add lib/same-inode.h.
78230         * modules/same (Files): Add lib/same-inode.h.
78231
78232 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78233
78234         * m4/absolute-header.m4: Renamed from full-header-path.m4.
78235         This is to keep the terminology clean; POSIX talks about
78236         "absolute pathnames", not "full pathnames", but the GNU
78237         Coding Standards say to use "path" for something else;
78238         so use "absolute" to keep both sides happy.
78239         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
78240         Set gl_absolute_header, not gl_full_header_path.
78241         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
78242         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
78243         All uses changed.
78244
78245         Merge from coreutils.
78246
78247         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
78248
78249         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
78250         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
78251         want to require the building of c-strtod.o.
78252         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
78253         needs -lm directly.
78254         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
78255
78256         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
78257
78258         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
78259         --as-needed option if available.  Problem reported by Albert Chin in
78260         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
78261         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
78262         cc merely issues a bunch of annoying warnings for --as-needed
78263         (this problem was reported by Bob Proulx).  Also, try linking with
78264         -lm to detect a bug in binutils 2.16 (this problem was reported
78265         by Ralf Wildenhues).
78266
78267         2006-06-18  Jim Meyering  <jim@meyering.net>
78268
78269         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
78270         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
78271         macro.
78272         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
78273         also check for glibc-2.4's abort-inducing bug.
78274
78275         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
78276         Low-probability clean-up should be to use rmdir to get rid of
78277         the just-created directory, not unlink.
78278
78279         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
78280         configure fail, and request a bug report to inform us about it.
78281         Add a comment that, barring reports to the contrary, in 2007 we'll
78282         assume ftruncate is universally available.
78283
78284         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
78285
78286         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
78287
78288         2006-03-12  Jim Meyering  <jim@meyering.net>
78289
78290         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
78291         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
78292         * m4/same.m4 (gl_SAME): Likewise.
78293         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
78294
78295         2006-03-11  Eric Blake  <ebb9@byu.net>
78296
78297         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
78298         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
78299         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
78300         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
78301
78302 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78303
78304         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
78305         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
78306         reported by Mark D. Baushke, one in
78307         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
78308
78309         Merge from coreutils.
78310
78311         * lib/.cppi-disable: Add stdint_.h.
78312         * lib/.cvsignore: Add stdint.h.
78313
78314         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
78315
78316         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
78317         both double and long double versions.
78318         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
78319         * lib/xstrtold.c: New file.
78320         * lib/xstrtod.h (xstrtold): New decl.
78321
78322         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
78323
78324         * lib/filemode.c (setst): Remove.
78325         (strmode): Rewrite to avoid setst.  This makes the code shorter,
78326         (arguably) clearer, and the generated code is a bit smaller on my
78327         Debian GNU/Linux stable x86 host.
78328
78329         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
78330
78331         * lib/filemode.c: Include "filemode.h" first, to test the interface.
78332         Assume that filemode.h includes sys/types.h and sys/stat.h.
78333         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
78334         (ftypelet): Reorder to put common cases first, for efficiency.
78335         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
78336         to do 'M'.
78337         (strmode): Renamed from mode_string, and now stores 12 bytes instead
78338         of 10, for compatibility with FreeBSD.  All callers changed.
78339         (filemodestring): Now stores 12 bytes instead of 10, and sets file
78340         types that can't be deduced solely from st_mode.  First arg is now a
78341         const pointer.
78342         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
78343         (strmode): Renamed from mode_string.
78344         (filemodestring): New decl.
78345         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
78346         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
78347         needed.
78348         (S_ISPORT, S_ISWHT): New macros, if not already defined.
78349
78350         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78351
78352         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
78353         fsusage.h now does that.  Include fsusage.h first, to test interface.
78354         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
78355         at most one method (the old code could have generated decls that
78356         didn't conform to C89, not that this was ever exercised).
78357         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
78358
78359         2006-03-19  Jim Meyering  <jim@meyering.net>
78360
78361         Work even in a chroot where d_ino values for entries in "/"
78362         don't match the stat.st_ino values for the same names.
78363         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
78364         number, iterate through all entries again, using lstat instead.
78365         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
78366         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
78367
78368         * lib/getcwd.c (__getcwd): Clarify a comment.
78369         Use memcpy in place of a call to strcpy.
78370
78371         2006-03-12  Jim Meyering  <jim@meyering.net>
78372
78373         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
78374         matches that of the current directory (which we're about to chdir ".."
78375         out of), then save the dev-ino of the parent, instead.
78376
78377         * lib/same-inode.h (SAME_INODE): New file/macro.
78378         * lib/chdir-safer.c (SAME_INODE): Remove definition.
78379         Include "same-inode.h", instead.
78380         * lib/same.c: Likewise.
78381         * lib/cycle-check.h: Include "same-inode.h".
78382         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
78383         * lib/cycle-check.c (SAME_INODE): Remove definition.
78384         * lib/root-dev-ino.h: Include "same-inode.h".
78385
78386         2006-03-11  Eric Blake  <ebb9@byu.net>
78387
78388         * lib/same.c (same_name): s/base_name/last_component/
78389         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
78390         * lib/filenamecat.c (file_name_concat): Likewise.
78391
78392         2006-03-11  Eric Blake  <ebb9@byu.net>,
78393                     Paul Eggert  <eggert@cs.ucla.edu>
78394
78395         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
78396         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
78397         drive prefix.
78398         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
78399         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
78400         (last_component): New method.
78401         * lib/dirname.c (dir_len): Determine when drive letters need a
78402         subsequent slash.  Preserve // when it is special.
78403         (dir_name): Don't append dot when drive letter is absolute.
78404         [TEST_DIRNAME]: Move into a full-blown gnulib test.
78405         * lib/basename.c (base_name): New semantics - malloc the result.
78406         Preserve // when it is special.  Preserve relative files that look
78407         like drive letters.
78408         (base_len): Preserve // when it is special.
78409         (last_component): New method, similar to old base_name semantics.
78410         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
78411         base_name.  Strip redundant slashes from ///.
78412
78413 2006-07-03  Jim Meyering  <jim@meyering.net>
78414
78415         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
78416         macro is used before the first cycle_check call.
78417
78418 2006-07-03  Eric Blake  <ebb9@byu.net>
78419
78420         * modules/dirname (Depends-on): Add xstrndup.
78421
78422 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78423
78424         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
78425         test cases, so that config.log is a bit easier to follow.
78426
78427 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78428
78429         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
78430         both are 64 bits, since this seems to be the tradition, and this
78431         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
78432         we ever run into a host that prefers long long to long in this
78433         case, we'll need another configure-time test.  Problem reported by
78434         Jim Meyering.
78435
78436 2006-07-02  Eric Blake  <ebb9@byu.net>
78437
78438         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
78439
78440 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78441
78442         * modules/inttypes (Depends-on): No longer depends on stdint.
78443         * modules/stdint (Description): Say more about assumptions.
78444         Say that the fast types might differ.  Say macros are used.
78445         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
78446         (Makefile.am): Revise list of substituted symbols to match
78447         new stdint.m4.
78448         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
78449         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
78450         * tests/test-stdint.c (verify_same_types)
78451         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
78452         the code conforms to C99/C89.
78453         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
78454         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
78455
78456 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78457
78458         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
78459         but fix a bug, by requiring at least 64 bits.
78460         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
78461         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
78462         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
78463         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
78464
78465         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
78466         changes.  Make 2.59 a prerequisite.  Check and substitute for
78467         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
78468         inttypes.h.  Do not use special include files; just use the
78469         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
78470         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
78471         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
78472         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
78473         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
78474         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
78475         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
78476         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
78477         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
78478         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
78479         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
78480         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
78481         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
78482         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
78483         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
78484         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
78485         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
78486         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
78487         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
78488         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
78489         WINT_MAX.  Check for C99 conformance more strictly, by detecting
78490         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
78491         not check for things that C99 does not require, e.g., int8_t.  If
78492         a test isn't needed unless <stdint.h> isn't working, and is
78493         unlikely to be needed for any other reason, then don't do it
78494         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
78495         size_t, since we assume C89 freestanding at least.  Do not check
78496         for sig_atomic_t, wchar_t, or wint_t, since the code now does
78497         the right thing even if the types are not defined.  Instead use:
78498         (gl_STDINT_TYPE_PROPERTIES): New macro.
78499         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
78500         testing whether <sys/types.h> clashes, as Autoconf does this for
78501         us now.  All uses removed.
78502         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
78503         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
78504         (gl_CHECK_TYPE_SAME):
78505         Remove; no longer needed.
78506         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
78507         exists, since we'll return 0 anyway in that case.
78508         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
78509
78510 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78511
78512         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
78513         possible collision with system files.
78514         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
78515         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
78516         WCHAR_MIN and WCHAR_MAX in this case.
78517         (<stddef.h>): Do not include; no longer needed.
78518         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
78519         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
78520         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
78521         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
78522         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
78523         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
78524         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
78525         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
78526         !defined(__c99))]: Include in this case too, since it's harmless
78527         now.
78528         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
78529         dangerous to do so.
78530         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
78531         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
78532         (_STDINT_MIN, _STDINT_MAX): New macros.
78533         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
78534         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
78535         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
78536         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
78537         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
78538         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
78539         macros, not typedefs; this simplifies things quite a bit.
78540         Use long int for all types narrower than int64_t.
78541         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
78542         Define in terms of long long int or int64_t or long int,
78543         not int64_t or int32_t.  This saves some compile-time testing.
78544         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
78545         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
78546         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
78547         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
78548         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
78549         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
78550         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
78551         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
78552         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
78553         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
78554         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
78555         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
78556         undef any previous version and define our own version, for
78557         simplicity and consistency with the new macros for types.
78558         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
78559         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
78560         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
78561         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
78562         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
78563         @WINT_T_SUFFIX@ to keep things simple here.
78564         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
78565         Simplify by assuming typical 8/16/32/64 host, since we're
78566         already doing that elsewhere anyway.
78567         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
78568         and assume long long int is 64 bits if available.  This
78569         speeds up 'configure'.
78570
78571 2006-07-01  Eric Blake  <ebb9@byu.net>
78572
78573         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
78574         Reported by Andreas Buening.
78575
78576 2006-07-01  Eric Blake  <ebb9@byu.net>
78577
78578         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
78579
78580 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
78581
78582         * lib/getaddrinfo.c: fixed typo
78583
78584 2006-06-29  Jim Meyering  <jim@meyering.net>
78585
78586         * modules/strftime (Maintainer): Add my name, since with the
78587         FPRINTFTIME changes strftime.c has forked from glibc.
78588
78589 2006-06-29  Eric Blake  <ebb9@byu.net>
78590
78591         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
78592
78593 2006-06-29  Eric Blake  <ebb9@byu.net>
78594
78595         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
78596
78597 2006-06-29  Eric Blake  <ebb9@byu.net>
78598
78599         * lib/stat_.h: New file.
78600
78601 2006-06-29  Eric Blake  <ebb9@byu.net>
78602
78603         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
78604         unused static function.
78605
78606 2006-06-29  Eric Blake  <ebb9@byu.net>
78607
78608         * doc/functions.texi (Function Portability): Document missing lstat
78609         on mingw.
78610
78611 2006-06-29  Eric Blake  <ebb9@byu.net>
78612
78613         * MODULES.html.sh: Add sys_stat.
78614         * modules/sys_stat: New module.
78615         * modules/mkstemp (Depends-on): Add sys_stat.
78616
78617 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78618
78619         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
78620
78621 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78622
78623         * m4/c-bs-a.m4: Removed.
78624
78625 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78626
78627         * lib/strftime.c: Assume strftime() exists.
78628
78629 2006-06-29  Derek Price  <derek@ximbiot.com>
78630
78631         * modules/c-bs-a: Removed - \a is C89.
78632         * MODULES.html.sh: Remove c-bs-a.
78633
78634 2006-06-29  Bruno Haible  <bruno@clisp.org>
78635
78636         * modules/wcwidth (License): Change to LGPL.
78637
78638 2006-06-28  Simon Josefsson  <jas@extundo.com>
78639
78640         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
78641         on _WIN32.
78642
78643         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
78644         getnameinfo.
78645
78646 2006-06-28  Simon Josefsson  <jas@extundo.com>
78647
78648         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
78649
78650 2006-06-28  Simon Josefsson  <jas@extundo.com>
78651
78652         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
78653         functions there.  It will succeed on Windows XP, but on Windows
78654         2000 and (presumably) earlier, it will fail, and use the internal
78655         re-implementation.
78656         (use_win32_p): New function.
78657         (getaddrinfo): Use strtoul on servname, to support numeric ports.
78658         Support AI_NUMERICSERV to disable getservbyname.
78659         (getnameinfo): New function, only supports
78660         NI_NUMERICHOST|NI_NUMERICSERV for now.
78661
78662         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
78663         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
78664         getnameinfo.
78665
78666 2006-06-28  Eric Blake  <ebb9@byu.net>
78667
78668         * modules/wcwidth: New file.
78669         * modules/mbchar (Depends-on): Add wcwidth.
78670         * modules/mbswidth (Depends-on): Add wcwidth.
78671         * MODULES.html.sh: Add wcwidth.
78672
78673 2006-06-28  Eric Blake  <ebb9@byu.net>
78674
78675         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
78676         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
78677
78678 2006-06-28  Eric Blake  <ebb9@byu.net>
78679
78680         * lib/xvasprintf.h: Fix comments.
78681
78682 2006-06-28  Eric Blake  <ebb9@byu.net>
78683
78684         * lib/mbchar.h (wcwidth): Include wcwidth.h.
78685         * lib/mbswidth.c (wcwidth): Move from here...
78686         * lib/wcwidth.h: ...to this new file.
78687
78688 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78689
78690         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
78691
78692         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
78693         it's obsolete.
78694         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
78695
78696 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78697
78698         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
78699         Autoconf 2.60 says this stuff was obsolete.
78700
78701 2006-06-28  Bruno Haible  <bruno@clisp.org>
78702
78703         * modules/wcwidth (Files): Add m4/wchar_t.m4.
78704
78705 2006-06-28  Bruno Haible  <bruno@clisp.org>
78706
78707         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
78708         gt_TYPE_WCHAR_T.
78709
78710 2006-06-28  Bruno Haible  <bruno@clisp.org>
78711
78712         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
78713         declaration for wcwidth.
78714         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
78715
78716 2006-06-28  Bruno Haible  <bruno@clisp.org>
78717
78718         * lib/mkdtemp.c [MINGW]: Include <io.h>.
78719         (mkdir): Define using _mkdir.
78720
78721 2006-06-28  Bruno Haible  <bruno@clisp.org>
78722
78723         * lib/getaddrinfo.h: Fix POSIX URL.
78724         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
78725         _WIN32.
78726         (use_win32_p): Make static.
78727         (getaddrinfo): Reject service name if it is empty or does not consist
78728         solely of decimal digits, or if its value is > 65535.
78729         (getnameinfo): Remove useless casts.
78730
78731 2006-06-27  Simon Josefsson  <jas@extundo.com>
78732
78733         * modules/sys_select: New file, suggested by Bruno Haible, Paul
78734         Eggert and Martin Lambers.
78735
78736 2006-06-27  Simon Josefsson  <jas@extundo.com>
78737
78738         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
78739         Eggert and Martin Lambers.
78740
78741 2006-06-27  Bruno Haible  <bruno@clisp.org>
78742
78743         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
78744         result to 0, not to empty.
78745         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
78746
78747 2006-06-27  Bruno Haible  <bruno@clisp.org>
78748
78749         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
78750
78751 2006-06-26  Simon Josefsson  <jas@extundo.com>
78752
78753         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
78754         present.
78755
78756 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
78757
78758         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
78759         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
78760         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
78761
78762 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
78763
78764         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
78765
78766 2006-06-26  Bruno Haible  <bruno@clisp.org>
78767
78768         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
78769
78770 2006-06-26  Bruno Haible  <bruno@clisp.org>
78771
78772         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
78773
78774 2006-06-26  Bruno Haible  <bruno@clisp.org>
78775
78776         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
78777         SGI C compiler in pre-C99 mode.
78778         Suggested by Mark D. Baushke and Larry Jones.
78779
78780 2006-06-26  Bruno Haible  <bruno@clisp.org>
78781
78782         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
78783         WCHAR_MAX.
78784         Reported by Mark D. Baushke and Larry Jones.
78785
78786 2006-06-26  Bruno Haible  <bruno@clisp.org>
78787
78788         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
78789         in pre-C99 mode.
78790         Suggested by Mark D. Baushke and Larry Jones.
78791
78792 2006-06-23  Simon Josefsson  <jas@extundo.com>
78793             Bruno Haible  <bruno@clisp.org>
78794
78795         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
78796         Emit mostlyclean-local rule.
78797         (func_emit_tests_Makefile_am): Likewise.
78798         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
78799
78800 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
78801
78802         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
78803
78804 2006-06-23  Bruno Haible  <bruno@clisp.org>
78805
78806         * tests/test-stdint.c: Update to match ISO C 99 Technical
78807         Corrigendum 1.
78808
78809 2006-06-23  Bruno Haible  <bruno@clisp.org>
78810
78811         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
78812
78813 2006-06-23  Bruno Haible  <bruno@clisp.org>
78814
78815         * lib/stdint_.h: Treat IRIX like OpenBSD.
78816
78817 2006-06-23  Bruno Haible  <bruno@clisp.org>
78818
78819         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
78820         ISO C 99 Technical Corrigendum 1.
78821
78822 2006-06-22  Simon Josefsson  <jas@extundo.com>
78823
78824         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
78825         MinGW.
78826
78827 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78828
78829         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
78830         needed.  Some compiler complained about some of them.  Problem reported
78831         by Larry Jones in
78832         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
78833
78834 2006-06-21  Simon Josefsson  <jas@extundo.com>
78835
78836         * tests/test-getaddrinfo.c: New file.
78837
78838         * modules/getaddrinfo-tests: New file.
78839
78840         * MODULES.html.sh: Add inet_pton.
78841
78842         * modules/inet_pton: New file.
78843
78844 2006-06-21  Simon Josefsson  <jas@extundo.com>
78845
78846         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
78847         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
78848         of using the (limited) gnulib implementation on Windows XP.
78849
78850         * m4/inet_pton.m4: New file.
78851
78852 2006-06-21  Simon Josefsson  <jas@extundo.com>
78853
78854         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
78855         variable.
78856
78857         * lib/socket_.h: Don't define WINVER.
78858
78859         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
78860         slightly modified to work in gnulib.
78861
78862 2006-06-21  Simon Josefsson  <jas@extundo.com>
78863
78864         * doc/gnulib.texi (Windows sockets): Add.
78865
78866 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
78867
78868         * lib/read-file.c (fread_file): Start with buffer allocation of
78869         0 bytes rather than 1 byte; this simplifies the code.
78870         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
78871         code to free buffer and save/restore errno.
78872         (internal_read_file): Remove unused local.
78873
78874 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
78875
78876         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
78877         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
78878         Problem reported by Denis Excoffier in
78879         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
78880
78881 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78882
78883         * modules/sys_socket, modules/socklen: Include sys/types since
78884         FreeBSD 4.x's sys/socket.h needs it.
78885
78886 2006-06-19  Simon Josefsson  <jas@extundo.com>
78887
78888         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
78889
78890 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
78891
78892         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
78893
78894 2006-06-19  Bruno Haible  <bruno@clisp.org>
78895
78896         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
78897         and FULL_PATH_INTTYPES_H in angle brackets.
78898         Reported by Mark D. Baushke <mdb@gnu.org>.
78899
78900 2006-06-17  Eric Blake  <ebb9@byu.net>
78901
78902         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
78903         errno.
78904
78905 2006-06-17  Bruno Haible  <bruno@clisp.org>
78906
78907         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
78908         <sys/inttypes.h>.
78909
78910 2006-06-17  Bruno Haible  <bruno@clisp.org>
78911
78912         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
78913         whether errno is declared. Assume <errno.h> declares errno.
78914
78915 2006-06-17  Bruno Haible  <bruno@clisp.org>
78916
78917         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
78918
78919 2006-06-17  Bruno Haible  <bruno@clisp.org>
78920
78921         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
78922         problem on Solaris 2.5.1.
78923
78924 2006-06-16  Eric Blake  <ebb9@byu.net>
78925
78926         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
78927         * lib/unicodeio.c [!defined errno]: Likewise.
78928         * lib/strtol.c [!defined errno]: Likewise.
78929         * lib/strtod.c [!defined errno]: Likewise.
78930
78931 2006-06-15  Eric Blake  <ebb9@byu.net>
78932
78933         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
78934
78935 2006-06-15  Eric Blake  <ebb9@byu.net>
78936
78937         * config/srclist.txt (ssize_t.m4): Lose sync.
78938
78939 2006-06-15  Bruno Haible  <bruno@clisp.org>
78940
78941         * modules/stdint (Files): Include m4/full-header-path.m4,
78942         m4/size_max.m4, m4/wchar_t.m4.
78943         (Makefile.am): Many more substitutions.
78944         * modules/stdint-tests: New file.
78945         * tests/test-stdint.c: New file.
78946
78947 2006-06-15  Bruno Haible  <bruno@clisp.org>
78948
78949         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
78950         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
78951         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
78952         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
78953         gl_CHECK_TYPE_SAME): New macros.
78954
78955 2006-06-15  Bruno Haible  <bruno@clisp.org>
78956
78957         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
78958
78959 2006-06-15  Bruno Haible  <bruno@clisp.org>
78960
78961         * lib/stdint_.h: Rewritten to be fully auto-configured.
78962         Fixes bug on HP-UX/IA64.
78963
78964 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
78965
78966         * lib/getdate.y (__attribute__): Don't define if already defined.
78967         Problem reported by Larry Jones.
78968         * lib/utimens.c (__attribute__): Likewise.
78969
78970 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
78971
78972         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
78973         reported by Andreas Schwab.
78974
78975 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78976             Bruno Haible  <bruno@clisp.org>
78977
78978         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
78979         check for the declaration of strnlen and a run test that exposes the
78980         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
78981         rpl_strndup.
78982
78983 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78984             Bruno Haible  <bruno@clisp.org>
78985
78986         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
78987
78988 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78989
78990         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
78991         compile test, for Tru64 4.0D.
78992
78993 2006-05-28  Karl Berry  <karl@gnu.org>
78994
78995         * config/srclist.txt (printf-args.c): lose sync.
78996
78997 2006-05-26  Martin Lambers  <marlam@marlam.de>
78998
78999         * lib/getpass.c: Updates the test for the native W32 API, and adds
79000         missing includes, thus fixing compilation warnings.
79001
79002 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79003
79004         * lib/exclude.c (exclude_fnmatch): New function.
79005         (excluded_file_name): Call exclude_fnmatch.
79006         * lib/exclude.h (excluded_file_name): New prototype
79007
79008 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
79009
79010         * lib/tempname.c (small_open, large_open): New macros.
79011         (__open, __open64) [!_LIBC]: Remove.
79012         (__gen_tempname): Use small_open and large_open instead of __open
79013         and __open64.  This fixes a portability bug on HP-UX 11.11i
79014         reported by Simon Wing-Tang in
79015         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
79016
79017 2006-05-24  Bruno Haible  <bruno@clisp.org>
79018
79019         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
79020         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
79021         Reported by Thorsten Maerz <torte@netztorte.de> via
79022         Aaron Stone <aaron@serendipity.cx>.
79023
79024 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79025
79026         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
79027         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
79028         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
79029         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
79030         not really conditional on the cache.
79031         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
79032
79033 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79034
79035         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
79036         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
79037         (my_usleep): Don't mishandle maximum value.
79038
79039 2006-05-19  Jim Meyering  <jim@meyering.net>
79040
79041         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
79042
79043 2006-05-17  Bruno Haible  <bruno@clisp.org>
79044
79045         Cygwin portability.
79046         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
79047
79048 2006-05-17  Bruno Haible  <bruno@clisp.org>
79049
79050         * lib/stdint_.h: Fix recognition of Cygwin.
79051
79052 2006-05-15  Bruno Haible  <bruno@clisp.org>
79053
79054         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
79055         on libtool patch by Ralf Wildenhues.
79056
79057 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79058
79059         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
79060         test for C99 conformance; (bool) 0.5 is an integer constant
79061         expression, but (bool) -0.5 is not.  Problem reported by Fedor
79062         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
79063
79064 2006-05-11  Simon Josefsson  <jas@extundo.com>
79065
79066         * m4/xvasprintf.m4: Fix obvious typo.
79067
79068 2006-05-11  Jim Meyering  <jim@meyering.net>
79069
79070         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
79071         James Lemley.
79072
79073 2006-05-10  Simon Josefsson  <jas@extundo.com>
79074
79075         * lib/md4.c: Typo fix, update copyright years.
79076         (K1, K2): Don't use L because it turn computations into 64-bit on
79077         64-bit platforms.
79078
79079 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
79080
79081         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
79082         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
79083         unwanted sign propagation, e.g., on hosts with 64-bit int.
79084         There still are some problems with reeelly weird theoretical hosts
79085         (e.g., 33-bit int) but it's not worth worrying about now.
79086         * lib/sha1.c (rol): Likewise.
79087         (K1, K2, K3, K4): Remove unnecessary L suffix.
79088
79089 2006-05-10  Bruno Haible  <bruno@clisp.org>
79090
79091         * lib/des.c: Cast to avoid warnings.
79092
79093 2006-05-09  Bruno Haible  <bruno@clisp.org>
79094
79095         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
79096         (Depends-on): Depend also on xsize, stdarg.
79097         (configure.ac): Add gl_XVASPRINTF.
79098
79099 2006-05-09  Bruno Haible  <bruno@clisp.org>
79100
79101         * m4/xvasprintf.m4: New file.
79102
79103 2006-05-09  Bruno Haible  <bruno@clisp.org>
79104
79105         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
79106         (EOVERFLOW): Define fallback value.
79107         (xstrcat): New function.
79108         (xvasprintf): Recognize the special case of a string concatenation.
79109
79110 2006-05-08  Eric Blake  <ebb9@byu.net>
79111
79112         * gnulib-tool (func_version): Base copyright year on CVS date.
79113         (func_emit_copyright_notice): New function.
79114         (func_emit_lib_Makefile_am): Use it.
79115         (func_emit_tests_Makefile_am): Likewise.
79116         (func_import): Likewise.
79117
79118 2006-05-08  Bruno Haible  <bruno@clisp.org>
79119
79120         * modules/stdarg: New file.
79121         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
79122
79123 2006-05-08  Bruno Haible  <bruno@clisp.org>
79124
79125         * m4/stdarg.m4: New file, from GNU gettext.
79126
79127 2006-05-08  Bruno Haible  <bruno@clisp.org>
79128
79129         * config/srclist.txt (build-aux/config.rpath): different from latest
79130         release.
79131
79132 2006-05-08  Bruno Haible  <bruno@clisp.org>
79133
79134         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
79135
79136 2006-05-05  Jim Meyering  <jim@meyering.net>
79137
79138         * m4/warning.m4: New file, derived from bison's file by the same name.
79139
79140 2006-05-03  Bruno Haible  <bruno@clisp.org>
79141
79142         * lib/stdint_.h: Shorter URL.
79143         * lib/inttypes.h: Likewise.
79144
79145 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79146
79147         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
79148
79149 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79150
79151         * lib/verify.h: Document the internals better.  Most of this change
79152         was written by Bruno Haible.
79153
79154 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79155
79156         * doc/verify.texi: New file, partly based on a proposal by
79157         Bruno Haible.
79158
79159 2006-05-02  Bruno Haible  <bruno@clisp.org>
79160
79161         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
79162         test from here...
79163         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
79164
79165 2006-04-29  Bruno Haible  <bruno@clisp.org>
79166
79167         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
79168         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
79169
79170 2006-04-29  Bruno Haible  <bruno@clisp.org>
79171
79172         * gnulib-tool: Make --update option actually work.
79173
79174 2006-04-29  Bruno Haible  <bruno@clisp.org>
79175
79176         * doc/gcd.texi: New file.
79177         * doc/gnulib.texi: Include it.
79178
79179 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
79180
79181         * lib/getdate.y (get_date): When adding relative date, start with the
79182         initial time, not with the result of the first mktime call.
79183
79184 2006-04-25  Bruno Haible  <bruno@clisp.org>
79185
79186         * gnulib-tool (func_import): Output the include directives in three
79187         blocks, sorted separately.
79188         Reported by Ben Pfaff <blp@cs.stanford.edu>.
79189
79190 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
79191
79192         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
79193         to define main with arguments, for C++.  Reported by Eric Blake.
79194         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
79195         Prefer 'int main ()' to 'int main (void)', for C++.
79196         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
79197         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
79198         for 'main', for C99 and C++.
79199
79200 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
79201
79202         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
79203         Don't assume that exit status -1 is valid.
79204         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79205         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
79206         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
79207         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
79208         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
79209         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
79210         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
79211         functions can be used without declaring them, or that you can
79212         exit with status -1.
79213         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
79214
79215 2006-04-24  Karl Berry  <karl@gnu.org>
79216
79217         * config/srclist.txt (longdouble.m4): sync lost.
79218
79219 2006-04-24  Eric Blake  <ebb9@byu.net>
79220
79221         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
79222
79223 2006-04-24  Bruno Haible  <bruno@clisp.org>
79224
79225         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
79226         poll() implementation in AIX.
79227         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79228
79229 2006-04-24  Bruno Haible  <bruno@clisp.org>
79230
79231         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
79232         assigned exactly once.
79233
79234 2006-04-23  Claudio Fontana  <claudio@gnu.org>
79235             Bruno Haible  <bruno@clisp.org>
79236
79237         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
79238         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
79239         for AM_CPPFLAGS.
79240
79241 2006-04-23  Bruno Haible  <bruno@clisp.org>
79242
79243         * modules/copy-file: Depend on unistd.
79244         * modules/execute: Likewise.
79245         * modules/fatal-signal: Likewise.
79246         * modules/findprog: Likewise.
79247         * modules/mkdtemp : Likewise.
79248         * modules/pipe: Likewise.
79249         * modules/wait-process: Likewise.
79250
79251 2006-04-23  Bruno Haible  <bruno@clisp.org>
79252
79253         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
79254         condition was already detected.
79255         Reported by Ben Pfaff <blp@cs.stanford.edu>.
79256
79257 2006-04-23  Bruno Haible  <bruno@clisp.org>
79258
79259         * lib/copy-file.c: Include <unistd.h> unconditionally.
79260         * lib/execute.c: Likewise.
79261         * lib/fatal-signal.c: Likewise.
79262         * lib/findprog.c: Likewise.
79263         * lib/mkdtemp.c: Likewise.
79264         * lib/pipe.h: Likewise.
79265         * lib/pipe.c: Likewise.
79266         * lib/wait-process.h: Likewise.
79267
79268 2006-04-23  Bruno Haible  <bruno@clisp.org>
79269
79270         * gnulib-tool (func_usage): Fix --import description. Document
79271         --update.
79272         (func_import): Create temporary file in a temporary directory, if
79273         --dry-run is specified. Silence errors from 'grep' when there are no
79274         m4 files in $m4dir.
79275         (func_create_testdir): Silence errors from 'grep' when there are no
79276         m4 files in $m4dir.
79277         Reported by Karl Berry <karl@freefriends.org>.
79278
79279 2006-04-20  Bruno Haible  <bruno@clisp.org>
79280
79281         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
79282         one argument, so that the code will be portable to Autoconf 2.60.
79283         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
79284         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
79285         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
79286
79287 2006-04-19  Derek Price  <derek@ximbiot.com>
79288             Eric Blake  <ebb9@byu.net>
79289
79290         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
79291         rather than "/full/path.h".  Update comment to match.  Shorten &
79292         generalize m4_translit call via AS_TR_CPP.
79293
79294 2006-04-19  Derek Price  <derek@ximbiot.com>
79295             Eric Blake  <ebb9@byu.net>
79296
79297         * lib/inttypes.h: Correct grammar in comment.
79298
79299 2006-04-18  Derek Price  <derek@ximbiot.com>
79300             Paul Eggert  <eggert@cs.ucla.edu>
79301
79302         * modules/inttypes: New file.
79303         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
79304
79305 2006-04-18  Derek Price  <derek@ximbiot.com>
79306             Paul Eggert  <eggert@cs.ucla.edu>
79307
79308         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
79309         New files.
79310
79311 2006-04-18  Derek Price  <derek@ximbiot.com>
79312             Paul Eggert  <eggert@cs.ucla.edu>
79313
79314         * lib/inttypes.h: New file.
79315         * lib/strtoimax.c: Assume <inttypes.h>.
79316
79317 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
79318
79319         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
79320         isn't mounted.  Problem reported by Kir Kolyshkin.
79321
79322 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
79323
79324         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
79325         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
79326         Derek R. Price.
79327         * lib/regex.h (RE_DUP_MAX): Update comment to match current
79328         implementation.
79329
79330 2006-04-12  Eric Blake  <ebb9@byu.net>
79331
79332         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
79333         is now done automatically by the corresponding Autoconf macro.
79334
79335 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
79336
79337         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
79338         time_r.h.
79339
79340 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79341
79342         Merge regex changes from libc, removing some of our
79343         POSIX-conformance changes that were rejected and redoing them in a
79344         less-intrusive way.
79345
79346         * lib/regcomp.c (re_compile_internal, init_dfa):
79347         Length arg is now size_t, not Idx.  All uses changed.
79348         (peek_token): Forward decl now says internal_function.
79349         (__re_error_msgid, __re_error_msgid_idx):
79350         Now static rather than extern with attribute_hidden.
79351         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
79352         For some reason libc prefers K&R style defns for external functions.
79353         (regerror) [!defined _LIBC]: Likewise.
79354         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
79355         (seek_collating_symbol_entry, lookup_collation_sequence_value):
79356         (build_range_exp, build_collating_symbol):
79357         Use K&R-style defn.
79358         (re_compile_fastmap): Use '\0' to memset, not 0.
79359         (utf8_sb_map): Make the calculations more obvious.
79360         (init_dfa, parse_bracket_exp, build_charclass_op):
79361         Call calloc and cast result, as glibc does.
79362         (init_word_char, fetch_token, peek_token, peek_token_bracket):
79363         (build_range_exp, build_collating_symbol):
79364         Now internal functions.
79365
79366         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
79367
79368         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
79369         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
79370         Don't depend on VMS; depend on __VMS instead, for POSIX
79371         namespace cleanness.
79372         (regoff_t): Define to ssize_t, not long int.
79373
79374         Remove the REG_ macros named below.  Instead, make the old names
79375         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
79376         __USE_GNU_REGEX.
79377         (REG_BACKSLASH_ESCAPE_IN_LISTS):
79378         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
79379         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
79380         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
79381         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
79382         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
79383         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
79384         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
79385         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
79386         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
79387         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
79388         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
79389         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
79390         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
79391         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
79392         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
79393         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
79394         (REG_NREGS):
79395         Remove.  All uses replaced by the old RE_* names.
79396         (RE_BACKSLASH_ESCAPE_IN_LISTS):
79397         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
79398         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
79399         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
79400         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
79401         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
79402         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
79403         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
79404         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
79405         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
79406         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
79407         Don't bother having these macros be independent of each others'
79408         values, since they no longer exist in the POSIX name space.
79409
79410         Rename the following member names back to their old names,
79411         unless !__USE_GNU_REGEX.  All uses changed back.
79412         (buffer): Renamed from re_buffer.
79413         (allocated): Renamed from re_allocated.
79414         (used): Renamed from re_used.
79415         (syntax): Renamed from re_syntax.
79416         (fastmap): Renamed from re_fastmap.
79417         (translate): Renamed from re_translate.
79418         (can_be_null): Renamed from re_can_be_null.
79419         (regs_allocated): Renamed from re_regs_allocated.
79420         (fastmap_accurate): Renamed from re_fastmap_accurate.
79421         (no_sub): Renamed from re_no_sub.
79422         (not_bol): Renamed from re_not_bol.
79423         (not_eol): Renamed from re_not_eol.
79424         (newline_anchor): Renamed from re_newline_anchor.
79425         (num_regs): Renamed from rm_num_regs.
79426         (start): Renamed from rm_start.
79427         (end): Renamed from rm_end.
79428
79429         (free_state): Move up a bit.
79430
79431         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
79432         #define to be empty.
79433         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
79434         when that is what is intended.
79435         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
79436         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
79437         (MAX): New macro.
79438         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
79439         All uses changed back to re_malloc, etc.  It's now the caller's
79440         responsibility to check for overflow; all callers changed.
79441         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
79442         (re_x2nrealloc): Remove.
79443         (free_state): Remove decl.
79444
79445         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
79446         (re_set_registers, re_exec):
79447         Use K&R-style defn.
79448
79449         2006-01-31  Roland McGrath  <roland@redhat.com>
79450
79451         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
79452         Reported by Mike Frysinger <vapier@gentoo.org>.
79453
79454         2006-01-15  Andreas Jaeger  <aj@suse.de>
79455
79456         [BZ #1950]
79457         * lib/regex_internal.c (re_string_reconstruct): Adjust for
79458         build_wcs_upper_buffer change.
79459         (build_wcs_upper_buffer): Change return type.
79460
79461         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
79462
79463         * lib/regex_internal.h: Include <stdint.h> if available.
79464
79465         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
79466
79467         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
79468
79469         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
79470
79471         * lib/regcomp.c: Adjust for changed secondary hash function.
79472
79473         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
79474
79475         * lib/regex.h: Pretty printing.
79476         Clean up namespace a bit.
79477
79478         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
79479
79480         * lib/regexec.c (update_cur_sifted_state, check_arrival,
79481         check_arrival_add_next_nodes): Avoid using uninitialized variable.
79482
79483         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79484                     Ulrich Drepper  <drepper@redhat.com>
79485
79486         [BZ #1302]
79487         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
79488         changed.
79489         (bitset_word_t): Renamed from bitset_word.  All uses changed.
79490
79491         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
79492
79493         [BZ #281]
79494         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
79495         * lib/regcomp.c: Remove unnecessary uses of
79496         unsigned RE_TRANSLATE_TYPE.
79497         * lib/regex_internal.h: Likewise.
79498         * lib/regex_internal.c: Likewise.
79499         * lib/regexec.c: Likewise.
79500         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
79501
79502         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
79503
79504         * lib/regexec.c (find_recover_state): Remove unnecessary
79505         initialization.
79506         (transit_state_bkref): Make DFA a const pointer.
79507         (get_subexp): Likewise.
79508         (check_arrival): Likewise.
79509         (update_cur_sifted_state): Likewise.
79510         (re_search_internal): Likewise.
79511         (prune_impossible_nodes): Likewise.
79512         (acquire_init_state_context): Likewise.
79513         (proceed_next_node): Likewise.
79514         (set_regs): Likewise.
79515         (free_fail_stack_return): Likewise.
79516         (check_arrival_expand_ecl): Mark DFA parameter as const.
79517         (check_arrival_expand_ecl_sub): Likewise.
79518         (check_subexp_limits): Likewise.
79519         (sub_epsilon_src_nodes):  Likewise.
79520         (add_epsilon_src_nodes):  Likewise.
79521         (merge_state_array): Likewise.
79522         (update_regs): Likewise.
79523         (build_trtable): Likewise.
79524         (sift_states_backward): Mark MCTX parameter as const.
79525         (build_sifted_states): Likewise.
79526         (update_cur_sifted_state): Likewise.
79527         (sift_states_mkref): Likewise.
79528         (check_arrival_expand_ecl): Mark eclosure as const.
79529         (check_dst_limits_calc_pos_1): Likewise.
79530         * lib/regex_internal.h (re_match_context_t): Make dfa a const
79531         pointer.
79532
79533         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
79534
79535         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
79536         (transit_state_sb): Likewise.
79537         (transit_state_mb): Likewise.
79538         (sift_states_iter_mb): Likewise.
79539         (check_arrival_add_next_nodes): Likewise.
79540         (check_node_accept_bytes): Change first parameter to pointer-to-const.
79541         [_LIBC] (re_search_2_stub): Use mempcpy.
79542
79543         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
79544         mbrtowc for very simple UTF-8 case.
79545
79546         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
79547         a pointer-to-const.
79548         (re_acquire_state_context): Likewise.
79549         * lib/regex_internal.h: Adjust prototypes.
79550
79551         * lib/regex.c: Prevent using C++ compilers.
79552
79553         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
79554         (re_acquire_state_context): Likewise.
79555
79556 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79557
79558         * modules/regex (Depends-on): Add ssize_t.
79559
79560 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79561
79562         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
79563         translation table.
79564
79565 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79566
79567         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
79568
79569 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
79570             Bruno Haible  <bruno@clisp.org>
79571
79572         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
79573         <sys/types.h> and <inttypes.h>.
79574
79575 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79576
79577         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
79578         `__error_t_defined', so argp.h will not typedef the former.
79579
79580 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
79581
79582         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
79583         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
79584         glibc names.  Even if glibc is changed to conform to POSIX, the
79585         traditional names will be available anyway, since regex depends on
79586         the extensions module.  Also, fix a longstanding typo in the
79587         implementation of Spencer ERE test #75 from grep 2.3.  Problems
79588         reported by Emanuele Giaquinta.  Also, change sense of cached
79589         variable, so that the message makes sense.
79590
79591 2006-03-24  Simon Josefsson  <jas@extundo.com>
79592
79593         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
79594         including some doc fixes.
79595         (base64_encode_alloc): Fix +1 bug on allocation failures.
79596
79597 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79598
79599         * lib/base64.c (base64_encode): Do not read past end of array with
79600         unsanitized input on systems with CHAR_BIT > 8.
79601
79602 2006-03-24  Eric Blake  <ebb9@byu.net>
79603
79604         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
79605
79606 2006-03-22  Karl Berry  <karl@gnu.org>
79607
79608         * config/srclist.txt (*setenv.[ch]): get from coreutils.
79609         * config/srclistvars.sh (COREUTILS): new var.
79610
79611 2006-03-17  Jim Meyering  <jim@meyering.net>
79612
79613         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
79614         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
79615
79616 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
79617
79618         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
79619         no longer needs it.  Instead, check that regoff_t is as least
79620         as wide as ptrdiff_t.
79621
79622         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
79623         so that our regex.h stays compatible with the installed regex.
79624         This is helpful for installers who configure --without-included-regex.
79625         Problem reported by Emanuele Giaquinta.
79626
79627 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
79628
79629         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
79630         Typedef to long int, not to off_, as POSIX will likely change
79631         in that direction.
79632
79633 2006-03-15  Eric Blake  <ebb9@byu.net>
79634
79635         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
79636
79637 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79638
79639         * lib/argp-help.c (validate_uparams): Fix typo
79640         * lib/argp-parse.c (argp_default_options): Consistently begin help
79641         messages with a lowercase letter.
79642
79643 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
79644
79645         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
79646         overrun buffers and shouldn't be used (much as gets shouldn't be
79647         used).
79648         * lib/time_r.c (asctime_r, ctime_r): Likewise.
79649
79650 2006-03-08  Simon Josefsson  <jas@extundo.com>
79651
79652         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
79653         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79654
79655 2006-03-08  Simon Josefsson  <jas@extundo.com>
79656
79657         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
79658         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79659
79660 2006-03-08  Simon Josefsson  <jas@extundo.com>
79661
79662         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
79663         signal that configure disabled the device.
79664
79665 2006-03-08  Simon Josefsson  <jas@extundo.com>
79666
79667         * build-aux/maint.mk: Fix refresh-po, to handle no translated
79668         languages.
79669
79670 2006-03-07  Simon Josefsson  <jas@extundo.com>
79671
79672         * modules/getopt (Depends-on): Add unistd.
79673
79674         * modules/unistd: New file.
79675
79676 2006-03-07  Simon Josefsson  <jas@extundo.com>
79677
79678         * modules/gc-random: New file.
79679
79680 2006-03-07  Simon Josefsson  <jas@extundo.com>
79681
79682         * m4/unistd_h.m4: New file.
79683
79684 2006-03-07  Simon Josefsson  <jas@extundo.com>
79685
79686         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
79687         test to be side-effect free by storing the result in the cache
79688         variable gl_cv_lib_readline, and moving the assignment of
79689         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
79690         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79691
79692 2006-03-07  Simon Josefsson  <jas@extundo.com>
79693
79694         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
79695         error on missing devices (the functions will return an error).
79696
79697         * m4/gc.m4: Move random stuff to gc-random.m4
79698
79699 2006-03-07  Simon Josefsson  <jas@extundo.com>
79700
79701         * lib/unistd_.h: New file.
79702
79703 2006-03-07  Simon Josefsson  <jas@extundo.com>
79704
79705         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
79706
79707 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79708
79709         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
79710         Problem reported by Juan Manuel Guerrero.
79711
79712 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79713
79714         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
79715         the unistd module.
79716         * lib/getlogin_r.c: Likewise.
79717         * lib/getlogin_r.h: Likewise.
79718         * lib/glob.c: Likewise.
79719         * lib/pagealign_alloc.c: Likewise.
79720         * lib/unistd_.h: Remove; no longer needed.
79721
79722 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79723
79724         * MODULES.html.sh (Support for systems lacking POSIX:2001):
79725         Add unistd.
79726         * modules/c-stack (Depends-on): Add unistd.
79727         * modules/getlogin_r: Likewise.
79728         * modules/glob: Likewise.
79729         * modules/pagealign_alloc: Likewise.
79730         * modules/unistd (Files): Remove lib/unistd_.h.
79731         (EXTRA_DIST): Remove.
79732         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
79733         need unistd_.h.
79734         (MOSTLYCLEANFILES): Remove unistd.h-t.
79735
79736 2006-03-03  Simon Josefsson  <jas@extundo.com>
79737
79738         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
79739
79740 2006-03-03  Simon Josefsson  <jas@extundo.com>
79741
79742         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
79743         libidn and bison.
79744
79745 2006-03-03  Simon Josefsson  <jas@extundo.com>
79746
79747         * build-aux/maint.mk: Add indent target.
79748
79749 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
79750
79751         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
79752         our replacement poll.h in any case, to avoid a differing
79753         declaration from a system header.  Seen on AIX.
79754
79755 2006-03-01  Simon Josefsson  <jas@extundo.com>
79756
79757         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
79758         <kasal@ucw.cz>.
79759
79760 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79761
79762         * modules/gettime (Depends-on): Add extensions module.
79763         * modules/nanosleep (Depends-on): Likewise.
79764         * modules/settime (Depends-on): Likewise.
79765
79766 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79767
79768         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
79769         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
79770         pedantically.
79771         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79772         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
79773
79774         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
79775         not "==".  Reported by Ralf Wildenhues.
79776
79777 2006-03-01  Karl Berry  <karl@gnu.org>
79778
79779         * doc/Copyright/request-*: new files, synced from gnuorg.
79780
79781 2006-03-01  Karl Berry  <karl@gnu.org>
79782
79783         * config/srclist.txt (Copyright/*): new entries.
79784
79785 2006-02-28  Simon Josefsson  <jas@extundo.com>
79786
79787         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
79788
79789 2006-02-27  Simon Josefsson  <jas@extundo.com>
79790
79791         * lib/base64.h: Indent #define's.  From Jim Meyering
79792         <jim@meyering.net>.
79793
79794 2006-02-27  Jim Meyering  <jim@meyering.net>
79795
79796         Revert the change of 2006-02-24, so these files can continue
79797         to be sync'd from gettext.
79798         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
79799         of `config.h'.
79800
79801 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79802
79803         * modules/intprops: New file.
79804         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
79805         Add intprops.
79806         * modules/getloadavg (Files): Remove lib/intprops.h.
79807         (Depends-on): Add intprops.
79808         * modules/human: Likewise.
79809         * modules/inttostr: Likewise.
79810         * modules/openat: Likewise.
79811         * modules/sig2str: Likewise.
79812         * modules/userspec: Likewise.
79813         * modules/utimecmp: Likewise.
79814         * modules/xnanosleep: Likewise.
79815         * modules/xstrtol: Likewise.
79816
79817 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
79818
79819         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
79820         * modules/lock-tests (TESTS): Use $(EXEEXT).
79821         * modules/tls-tests: Likewise.
79822         * modules/argp-tests: Likewise.
79823         (check_PROGRAMS): New var, replacing...
79824         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
79825
79826 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79827
79828         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
79829         `config.h'.
79830
79831 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
79832
79833         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
79834
79835 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79836
79837         Sync from coreutils.
79838         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
79839         gl_CHDIR_SAFER.
79840
79841 2006-02-22  Jim Meyering  <jim@meyering.net>
79842
79843         Sync from coreutils.
79844         * m4/chdir-safer.m4: New file.
79845
79846 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
79847
79848         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
79849         AT_FDCWD exceeds INT_MAX.
79850         * lib/openat.h (AT_FDCWD): Likewise.
79851
79852 2006-02-17  Eric Blake  <address@hidden>
79853
79854         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
79855
79856 2006-02-16  Simon Josefsson  <jas@extundo.com>
79857
79858         * modules/getaddrinfo (Depends-on): Add sys_socket.
79859
79860 2006-02-15  Simon Josefsson  <jas@extundo.com>
79861
79862         * build-aux/maint.mk: Add dsyntax-check rule.
79863
79864 2006-02-15  Eric Blake  <ebb9@byu.net>
79865
79866         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
79867         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
79868         'present but cannot compile' warnings on cygwin.
79869         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
79870         use ws2tcpip.h if sys/socket.h works.
79871         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
79872         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
79873
79874 2006-02-14  Simon Josefsson  <jas@extundo.com>
79875
79876         * modules/maintainer-makefile (Files): Rename.
79877
79878         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
79879         and (the local) Makefile.cfg to maint-cfg.mk.
79880
79881         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
79882         to the latter.
79883
79884         * modules/maintainer-makefile: New module.
79885
79886         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
79887         severaly stripped to make it possible to build it up from scratch
79888         with reliable tests.
79889
79890         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
79891         fixes to permit overriding the default actions when configure and
79892         makefile are not available.
79893
79894 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
79895
79896         Sync from coreutils.
79897         * modules/lstat (Depends-on): Don't depend on xalloc.
79898         (License): Change from GPL to LGPL, since this is now simply a
79899         replacement for a libc function.
79900
79901 2006-02-14  Jim Meyering  <jim@meyering.net>
79902
79903         Sync from coreutils.
79904
79905         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
79906         failure on deficient systems, and simplify gnulib lgpl dependencies.
79907         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
79908         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
79909
79910         * lib/xalloc-die.c: Remove unused definition of N_.
79911
79912 2006-02-14  Jim Meyering  <jim@meyering.net>
79913
79914         Sync from coreutils.
79915         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
79916         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
79917         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
79918         double-quote uses of that variable, to accommodate the rare case in
79919         which getmntent is available in none of the libraries checked.  This
79920         happens at least on FreeBSD 5.0.
79921
79922 2006-02-13  Simon Josefsson  <jas@extundo.com>
79923
79924         * gnulib-tool (Usage): Fix --import, from
79925         karl@freefriends.org (Karl Berry).
79926
79927 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79928
79929         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
79930
79931 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
79932
79933         * lib/argp-namefrob.h: Restore changes accidentally lost during the
79934         "autoupdate" on 2005-12-12.
79935
79936 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79937
79938         * modules/closeout (Depends-on): Remove atexit.
79939
79940 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79941
79942         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
79943         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
79944
79945 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
79946
79947         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
79948         __EXTENSIONS__ if this causes compilation to fail.  Problem
79949         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
79950         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
79951
79952 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
79953
79954         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
79955         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
79956         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
79957         All uses changed.
79958
79959 2006-01-26  Simon Josefsson  <jas@extundo.com>
79960
79961         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
79962         prototype is visible on mingw32.
79963
79964         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
79965         for mingw32.
79966
79967         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
79968         mingw32).
79969
79970 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
79971
79972         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
79973         attempt to open for write; this always fails, at least on POSIX
79974         hosts.  This reinstates the 2006-01-09 change, which was
79975         inadvertently removed.
79976
79977 2006-01-26  Bruno Haible  <bruno@clisp.org>
79978
79979         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
79980         Reported by Paul Eggert.
79981
79982 2006-01-26  Bruno Haible  <bruno@clisp.org>
79983             Paul Eggert  <eggert@cs.ucla.edu>
79984
79985         * lib/stdbool_.h (_Bool)
79986         [(! (defined __cplusplus || defined __BEOS__)
79987           && !defined __GNUC__
79988           && !(defined __HP_cc || defined __xlc__
79989                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
79990                || defined __sgi))]:
79991         #define to signed char in these cases too; this simplifies
79992         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
79993         etc., separately) and makes it more conservative.
79994
79995 2006-01-25  Simon Josefsson  <jas@extundo.com>
79996
79997         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
79998         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
79999         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
80000
80001 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80002
80003         * lib/argp-namefrob.h: Bugfix. Remove stray #
80004
80005 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
80006
80007         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
80008         so that we test the test.
80009         Check for yet another HP-UX cc bug involving *bool |= bool.
80010
80011 2006-01-25  Karl Berry  <karl@gnu.org>
80012
80013         * config/srclist.txt (vasnprintf.c): sync lost.
80014
80015 2006-01-25  Jim Meyering  <jim@meyering.net>
80016
80017         Sync from the stable (b5) branch of coreutils:
80018
80019         * lib/fts.c (fts_children): Don't let close() clobber errno from
80020         failed fchdir().
80021
80022         * lib/fts.c (fts_stat): When following a symlink-to-directory,
80023         don't necessarily interpret stat-fails+lstat-succeeds as indicating
80024         a dangling symlink.  That can also happen at least for ELOOP.
80025         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
80026         FYI, this bug predates the inclusion of fts.c in coreutils.
80027
80028         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
80029         in their own block, so pre-c99 compilers don't object.
80030
80031         Avoid the double-free (first in fts_read, second in fts_close) that
80032         would occur when an `active' directory is made inaccessible (e.g.,
80033         via chmod a-x) during a traversal.
80034         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
80035         before returning.  Reproduce this failure by
80036         mkdir -p a/b; cd a; chmod a-x . b
80037         Reported by Stavros Passas.
80038
80039 2006-01-25  Jim Meyering  <jim@meyering.net>
80040
80041         * lib/fileblocks.c: Remove more useless parentheses.
80042         * lib/readutmp.h: Likewise.
80043
80044 2006-01-25  Bruno Haible  <bruno@clisp.org>
80045
80046         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
80047         warnings.
80048         Reported by Paul Eggert.
80049
80050 2006-01-25  Bruno Haible  <bruno@clisp.org>
80051
80052         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
80053         rid of a trap command. For Solaris sh.
80054         Reported by Mark D. Baushke <mdb@gnu.org>.
80055
80056 2006-01-24  Simon Josefsson  <jas@extundo.com>
80057
80058         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
80059         Bruno.
80060
80061 2006-01-24  Karl Berry  <karl@gnu.org>
80062
80063         * config/srclist.txt (argp-namefrob.h): sync lost.
80064
80065 2006-01-24  Jim Meyering  <jim@meyering.net>
80066
80067         * modules/openat (Files): Add lib/intprops.h.
80068         From Mark D. Baushke.
80069
80070 2006-01-24  Jim Meyering  <jim@meyering.net>
80071
80072         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
80073         Reported by Mark D. Baushke.
80074
80075 2006-01-24  Jim Meyering  <jim@meyering.net>
80076
80077         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
80078
80079 2006-01-24  Bruno Haible  <bruno@clisp.org>
80080
80081         * modules/strnlen (Maintainer): Change from glibc to all.
80082
80083 2006-01-24  Bruno Haible  <bruno@clisp.org>
80084
80085         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
80086         Patch by Paul Eggert.
80087
80088 2006-01-24  Bruno Haible  <bruno@clisp.org>
80089
80090         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
80091         already has it.
80092         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
80093         2005-11-26.
80094
80095         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
80096         'signed char' to avoid problems with the built-in _Bool type.
80097         Reported by Paul Eggert on 2005-11-26.
80098
80099 2006-01-24  Bruno Haible  <bruno@clisp.org>
80100
80101         * gnulib-tool (func_import): Avoid constructing complicated sed
80102         expressions inside backquote.
80103         Report and solution by Mark D. Baushke <mdb@gnu.org>.
80104
80105 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
80106
80107         These changes imported from libc.
80108         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
80109         test and two separate function calls.
80110         * lib/strndup.c (__strndup): Add libc_hidden_def.
80111
80112 2006-01-23  Simon Josefsson  <jas@extundo.com>
80113
80114         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
80115         Remove the test_*_SOURCES variable: automake infers it by default.
80116         * modules/tls-tests: Likewise.
80117
80118 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80119
80120         Work around porting bugs reported by Dieter in
80121         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
80122         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
80123         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
80124         Include "getopt.h" first, to check interface.
80125         (getenv): Declare only if defined HAVE_DECL_GETENV &&
80126         !HAVE_DECL_GETENV.
80127         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
80128         (__strndup): Revert to K&R-style function dfns, the glibc style.
80129         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
80130         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
80131         Include strnlen.h first, to get prototype properly.
80132         (strnlen): Renamed from __strnlen.
80133         Remove weak alias.
80134
80135 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80136
80137         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
80138
80139 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80140
80141         * config/srclist.txt: Adjust to reflect glibc reorganization.
80142         This affects only comments.
80143
80144 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80145
80146          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
80147          Reported by Bruce Korb <bkorb@gnu.org>.
80148
80149 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
80150
80151         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
80152         to pacify gcc -Wswitch-default.
80153
80154 2006-01-22  Bruno Haible  <bruno@clisp.org>
80155
80156         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
80157         temporary buffer for sprintf, take into account the precision also
80158         for 'd', 'i', 'u', 'o', 'x', 'X'.
80159
80160 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
80161
80162         * modules/argp-tests: New module
80163         * tests/test-argp.c: New file
80164         * tests/test-argp-2.sh: New file
80165
80166 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
80167
80168         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
80169         (__argp_base_name): Removed
80170         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
80171         typo.
80172         (__argp_base_name): Provide macro definition or extern declaration
80173         depending on the configuration
80174
80175 2006-01-20  Simon Josefsson  <jas@extundo.com>
80176
80177         * modules/inet_ntop (Depends-on): Depend on sys_socket.
80178
80179 2006-01-20  Simon Josefsson  <jas@extundo.com>
80180
80181         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
80182
80183 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80184
80185         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
80186         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
80187         Suggested by Bruno Haible.
80188
80189 2006-01-20  Karl Berry  <karl@gnu.org>
80190
80191         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
80192         until changes propagate, I guess.
80193
80194 2006-01-19  Simon Josefsson  <jas@extundo.com>
80195
80196         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
80197
80198 2006-01-19  Simon Josefsson  <jas@extundo.com>
80199
80200         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
80201
80202 2006-01-19  Simon Josefsson  <jas@extundo.com>
80203
80204         * gnulib-tool: Set check_PROGRAMS.
80205
80206         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
80207         modules/des-tests, modules/gc-arcfour-tests,
80208         modules/gc-arctwo-tests, modules/gc-des-tests,
80209         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
80210         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
80211         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
80212         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
80213         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
80214         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
80215         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
80216         test_*_SOURCES.
80217
80218 2006-01-18  Simon Josefsson  <jas@extundo.com>
80219
80220         * modules/socklen (Depends-on): Depend on sys_socket.
80221
80222 2006-01-18  Simon Josefsson  <jas@extundo.com>
80223
80224         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
80225         modules/des-tests, modules/gc-arcfour-tests,
80226         modules/gc-arctwo-tests, modules/gc-des-tests,
80227         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
80228         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
80229         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
80230         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
80231         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
80232         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
80233         $(EXEEXT) to automake TESTS variable, for mingw32.
80234
80235 2006-01-17  Simon Josefsson  <jas@extundo.com>
80236
80237         * modules/socklen (Include): Need sys/socket.h.
80238
80239 2006-01-17  Bruno Haible  <bruno@clisp.org>
80240
80241         * modules/ssize_t (Include): Add <sys/types.h>.
80242
80243 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
80244
80245         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
80246         it's not portable and it doesn't work with cross-compiles.
80247         Problem reported by Bruno Haible.  Fix missing-$ typo in
80248         'test "gl_cv_ignore_unused_libraries" ...' that prevented
80249         -zignore from being used with Sun's C compiler.
80250
80251 2006-01-12  Simon Josefsson  <jas@extundo.com>
80252
80253         * lib/base64.c: Fix warning, reported by Bruno Haible
80254         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
80255
80256 2006-01-12  Bruno Haible  <bruno@clisp.org>
80257
80258         * modules/ldd: New file.
80259         * build-aux/ldd.sh.in: New file.
80260         * MODULES.html.sh (Support for building libraries and executables): Add
80261         ldd.
80262
80263 2006-01-12  Bruno Haible  <bruno@clisp.org>
80264
80265         * m4/ldd.m4: New file.
80266
80267 2006-01-12  Bruno Haible  <bruno@clisp.org>
80268
80269         * gnulib-tool (func_import, func_create_testdir): Don't go into an
80270         endless loop while replacing $auxdir with build-aux.
80271
80272 2006-01-11  Simon Josefsson  <jas@extundo.com>
80273
80274         * lib/stdint_.h (SIZE_MAX): Add missing (.
80275
80276 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
80277
80278         Sync from coreutils.
80279         * lib/md5.c: Fix commentary typos.
80280         (alignof, UNALIGNED_P): No need for a GCC-specific version.
80281         * lib/md5.h (__attribute__): Remove; unused.
80282         * lib/sha1.c: Fix commentary to match md5 better.
80283         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
80284         so that we don't need to worry about alignment.  All uses changed.
80285         This merges the 2005-10-28 md5 change into sha1.
80286
80287 2006-01-11  Jim Meyering  <jim@meyering.net>
80288
80289         Sync from coreutils.
80290         * lib/md5.c (OP): Fix spacing.
80291
80292 2006-01-11  Bruno Haible  <bruno@clisp.org>
80293
80294         Ensure automatic ordering between gl_LOCK and gl_ARGP.
80295         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
80296         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
80297
80298 2006-01-11  Bruno Haible  <bruno@clisp.org>
80299
80300         Ensure automatic ordering between gl_LOCK and gl_ARGP.
80301         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
80302         the "early" section as well.
80303
80304 2006-01-11  Bruno Haible  <bruno@clisp.org>
80305
80306         Avoid "ar: no archive members specified" error on MacOS X.
80307         * gnulib-tool (func_modules_add_dummy): New function.
80308         (func_import, func_create_testdir): Invoke it.
80309
80310 2006-01-11  Bruno Haible  <bruno@clisp.org>
80311
80312         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
80313         with $auxdir in AC_CONFIG_FILES statements.
80314
80315 2006-01-11  Bruno Haible  <bruno@clisp.org>
80316
80317         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80318         Initialize also noinst_HEADERS to empty.
80319
80320 2006-01-11  Bruno Haible  <bruno@clisp.org>
80321
80322         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
80323         variables.
80324         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
80325         autoreconf.
80326
80327 2006-01-11  Bruno Haible  <bruno@clisp.org>
80328
80329         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
80330         overridable by the user.
80331         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80332
80333 2006-01-10  Simon Josefsson  <jas@extundo.com>
80334
80335         * modules/sys_socket: New file.
80336
80337 2006-01-10  Simon Josefsson  <jas@extundo.com>
80338
80339         * m4/sys_socket_h.m4: New file.
80340
80341 2006-01-10  Simon Josefsson  <jas@extundo.com>
80342
80343         * lib/socket_.h: New file.
80344
80345 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80346
80347         * modules/readutmp (Maintainer): Add myself.
80348
80349 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80350
80351         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
80352         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
80353         People who are still concerned with buggy memcmp implementations
80354         can invoke gl_FUNC_MEMCMP themselves.
80355
80356 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80357
80358         * lib/regex_internal.h (BITSET_WORD_BITS):
80359         Work around a bug in 64-bit PGC (before version 6.1-2), where the
80360         preprocessor mishandles large unsigned values as if they were signed.
80361         Problem reported by Claudio Fontana in
80362         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
80363
80364 2006-01-10  Jim Meyering  <jim@meyering.net>
80365
80366         Avoid the double-free (first in fts_read, second in fts_close) that
80367         would occur when an `active' directory is made inaccessible (e.g.,
80368         via chmod a-x) during a traversal.
80369         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
80370         before returning.  Reproduce this failure by
80371         mkdir -p a/b; cd a; chmod a-x . b
80372         Reported by Stavros Passas.
80373
80374         Sync from coreutils.
80375         * lib/sha1.c: Tweak grammar in a comment.
80376
80377 2006-01-10  Jim Meyering  <jim@meyering.net>
80378
80379         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
80380         Patch by Joerg Sonnenberger.
80381
80382 2006-01-10  Bruno Haible  <bruno@clisp.org>
80383
80384         * modules/readutmp: Depend on module free.
80385         * modules/strtok_r: Depend on module restrict.
80386
80387 2006-01-10  Bruno Haible  <bruno@clisp.org>
80388
80389         * modules/gettext (configure.ac): Add an invocation of
80390         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
80391
80392 2006-01-10  Bruno Haible  <bruno@clisp.org>
80393
80394         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
80395         Reported by Werner Lemberg <wl@gnu.org>.
80396
80397 2006-01-10  Bruno Haible  <bruno@clisp.org>
80398
80399         * lib/localcharset.c: Update from GNU gettext.
80400
80401 2006-01-10  Bruno Haible  <bruno@clisp.org>
80402
80403         * lib/argp.h (__const): Remove macro. Use const instead.
80404         * lib/argp-fmtstream.h (__const): Likewise.
80405         * lib/glob_.h (__const): Remove macro.
80406         * lib/glob-libc.h: Use const instead of __const.
80407
80408 2006-01-10  Bruno Haible  <bruno@clisp.org>
80409
80410         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
80411         variable.
80412         Needed to avoid an automake error regarding the 'gettext' module.
80413
80414 2006-01-09  Simon Josefsson  <jas@extundo.com>
80415
80416         * modules/inet_ntop (Depends-on): Add restrict.
80417
80418 2006-01-09  Simon Josefsson  <jas@extundo.com>
80419
80420         * modules/gc-rijndael-tests (License): Put under LGPL.
80421
80422         * modules/gc-des-tests (License): Likewise.
80423
80424         * modules/gc-arcfour-tests (License): Likewise.
80425
80426         * modules/gc-arctwo-tests (License): Likewise.
80427
80428         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
80429
80430         * modules/gc-hmac-sha1-tests (Files): Likewise.
80431
80432         * modules/gc-hmac-md5-tests (License): Likewise.
80433
80434         * modules/gc-sha1-tests (License): Likewise.
80435
80436         * modules/gc-md5-tests (License): Likewise.
80437
80438         * modules/gc-md4-tests (License): Likewise.
80439
80440         * modules/gc-md2-tests (License): Likewise.
80441
80442         * modules/gc-tests (License): Likewise.
80443
80444         * modules/des-tests (License): Likewise.
80445
80446         * modules/md4-tests (License): Likewise.
80447
80448         * modules/md2-tests (License): Likewise.
80449
80450 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80451
80452         Sync from coreutils:
80453
80454         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
80455         * modules/lib-ignore: New file.
80456         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
80457         chdir-safer.m4, lchmod.m4.
80458         * modules/openat: Add mkdirat.c, openat-priv.h.
80459
80460 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80461
80462         Sync from coreutils.
80463         * m4/lib-ignore.m4: New file.
80464         * m4/lchmod.m4: New file.
80465
80466 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80467
80468         Sync from coreutils.
80469         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
80470         for write access: POSIX says that must fail.
80471         * lib/fts.c (diropen): Likewise.
80472         * lib/save-cwd.c (save_cwd): Likewise.
80473         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
80474         well, for minor improvements on hosts that lack O_DIRECTORY.
80475         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
80476         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
80477         Fall back on chown if open failed with EACCES.
80478
80479         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
80480         Report an error at compile-time if only a 1-second nominal clock
80481         resolution is found.
80482
80483         * lib/lchmod.h: New file.
80484         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
80485         (make_dir_parents): Use lchown rather than chown, and
80486         lchmod rather than chmod.
80487
80488         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
80489         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
80490         "proc" reported by n0dalus.
80491
80492         * lib/mountlist.c: Include <limits.h>.
80493         (dev_from_mount_options)
80494         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
80495         New function.  It no longer assumes "dev=" has the System V meaning
80496         on Linux (since it doesn't).  It also parses "dev=" more carefully.
80497         (read_file_system_list)
80498         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
80499         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
80500         dev= in that case.
80501
80502         * lib/posixtm.h (PDS_PRE_2000): New macro.
80503         * lib/posixtm.c (year): Arg is now syntax_bits rather than
80504         allow_century.  All usages changed.  Reject dates outside the range
80505         1969-1999 if PDS_PRE_2000 is used.
80506
80507 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80508
80509         Sync from coreutils.
80510         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
80511         (Time of day items): Mention the possibility of leap seconds.
80512         Problem reported by Dr. David Alan Gilbert.
80513
80514 2006-01-09  Jim Meyering  <jim@meyering.net>
80515
80516         Sync from coreutils.
80517
80518         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
80519
80520         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
80521
80522         * lib/modechange.c (mode_compile): Reject an invalid mode string
80523         that starts with an octal digit.  From Andreas Gruenbacher.
80524
80525         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
80526         and dup to open_safer and dup_safer, respectively.
80527         (openat_permissive): Fix typo in comment.
80528
80529         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
80530         "gettext.h"; either no longer needed or are guaranteed by openat.h.
80531         (_): Remove; no longer needed.
80532         (openat): Renamed from rpl_openat; no need for rpl_openat
80533         since openat.h renames openat for us.
80534         Replace most of the body with a call to openat_permissive,
80535         to avoid duplicate code.
80536         Port to (probably hypothetical) environments were mode_t is
80537         wider than int.
80538         (openat_permissive): Require mode arg, so that we can check
80539         types better.  Put it just after flags.  Change cwd failure
80540         indicator from pointer-to-bool to pointer-to-errno-value.
80541         All callers changed.
80542         Invoke openat_save_fail and/or openat_restore_fail if
80543         cwd_errno is null, so that openat can call us.
80544         (openat_permissive, fdopendir, fstatat, unlinkat):
80545         Simplify errno handling to avoid some duplicate code,
80546         as it's OK to set errno on success.
80547         * lib/openat.h: Revamp code so that function macros depend on
80548         __OPENAT_PREFIX only, not also on AT_FDCWD.
80549         (openat_ro): Remove.  Caller changed to use openat_permissive.
80550         (openat_permissive): Now a macro, if not a function.
80551         (openat_restore_fail, openat_save_fail): Now always functions,
80552         since mkdirat needs them even if __OPENAT_PREFIX is defined.
80553
80554         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
80555         and openat.c.
80556         * lib/mkdirat.c: Include openat-priv.h.
80557         Remove definitions of macros defined therein.
80558         * lib/openat.c: Likewise.
80559
80560         * lib/mkdirat.c (mkdirat): New file and function.
80561         * lib/openat.h (mkdirat): Declare.
80562
80563         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
80564
80565         * lib/openat.h (openat_permissive): Declare.
80566         (openat_ro): Define.
80567
80568         * lib/openat.c (EXPECTED_ERRNO): New macro.
80569         (openat_permissive): New function -- used in remove.c rewrite.
80570         (all functions): Set errno just before returning, only if there
80571         was an actual failure.
80572         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
80573
80574         Emulate openat-family functions using Linux's procfs, if possible.
80575         Idea and some code based on Ulrich Drepper's glibc changes.
80576
80577         * lib/openat.c: (BUILD_PROC_NAME): New macro.
80578         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
80579         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
80580         before falling back on save_cwd and restore_cwd.
80581         (fdopendir, fstatat, unlinkat): Likewise.
80582
80583         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
80584         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
80585
80586         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
80587         as second argument to va_arg.  Otherwise, some versions of gcc
80588         warn that `if this code is reached, the program will abort'.
80589
80590 2006-01-09  Jim Meyering  <jim@meyering.net>
80591
80592         Sync from coreutils.
80593         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
80594         Require openat-priv.h.
80595
80596 2006-01-09  Bruno Haible  <bruno@clisp.org>
80597
80598         * modules/strnlen (Include): Use strnlen.h.
80599
80600 2006-01-09  Bruno Haible  <bruno@clisp.org>
80601
80602         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
80603
80604 2006-01-09  Bruno Haible  <bruno@clisp.org>
80605
80606         * lib/sysexit_.h (EX_OK): New macro.
80607         Suggested by Martin Lambers <marlam@marlam.de>.
80608
80609 2006-01-09  Bruno Haible  <bruno@clisp.org>
80610
80611         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
80612         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
80613
80614 2006-01-09  Bruno Haible  <bruno@clisp.org>
80615
80616         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
80617         numbers.
80618
80619 2006-01-09  Bruno Haible  <bruno@clisp.org>
80620
80621         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
80622         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
80623         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
80624         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
80625
80626 2006-01-09  Bruno Haible  <bruno@clisp.org>
80627
80628         * build-aux/javacomp.sh.in: New file, moved from lib/.
80629         * modules/javacomp-script (Files): Update.
80630         (configure.ac): Add AC_CONFIG_FILES invocation.
80631         (EXTRA_DIST): Remove variable.
80632
80633         * build-aux/javaexec.sh.in: New file, moved from lib/.
80634         * modules/javaexec (Files): Update.
80635         (configure.ac): Add AC_CONFIG_FILES invocation.
80636         (EXTRA_DIST): Remove javaexec.sh.in.
80637
80638         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
80639         * modules/csharpcomp-script (Files): Update.
80640         (configure.ac): Add AC_CONFIG_FILES invocation.
80641         (EXTRA_DIST): Remove variable.
80642
80643         * build-aux/csharpexec.sh.in: New file, moved from lib/.
80644         * modules/csharpexec (Files): Update.
80645         (configure.ac): Add AC_CONFIG_FILES invocation.
80646         (EXTRA_DIST): Remove csharpexec.sh.in.
80647
80648 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80649
80650         Sync from coreutils.
80651
80652         Add POSIX ACL support
80653         * lib/acl.h (copy_acl, set_acl): Add declarations.
80654         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
80655         systems other than Linux.
80656         (chmod_or_fchmod): New function: use fchmod when possible,
80657         and chmod otherwise.
80658         (file_has_acl): Add a POSIX ACL implementation, with a
80659         Linux-specific subcase.
80660         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
80661         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
80662         acls are unsupported.
80663         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
80664         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
80665         are unsupported.
80666
80667 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80668
80669         Sync from coreutils.
80670         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
80671
80672 2006-01-07  Bruno Haible  <bruno@clisp.org>
80673
80674         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
80675         gl_EARLY.
80676
80677 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80678
80679         * lib/strftime.c (tzname): Don't declare if it is already #defined.
80680         Problem reported for Mingw by Mark Junker.
80681
80682 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80683
80684         * README: Gnulib normally doesn't generate a tarball.
80685
80686 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
80687
80688         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
80689         long int, not int, for nanosecond counts, so that people who are
80690         used to POSIX struct timespec won't be surprised.  Reported by Jim
80691         Meyering.
80692
80693 2005-12-28  Bruno Haible  <bruno@clisp.org>
80694
80695         * build-aux/config.rpath: Update from GNU gettext.
80696
80697 2005-12-16  Jim Meyering  <jim@meyering.net>
80698
80699         * modules/fprintftime: New module.
80700         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
80701
80702 2005-12-16  Jim Meyering  <jim@meyering.net>
80703
80704         * m4/fprintftime.m4: New file.
80705
80706 2005-12-16  Jim Meyering  <jim@meyering.net>
80707
80708         * lib/fprintftime.c, lib/fprintftime.h: New files.
80709
80710 2005-12-15  Simon Josefsson  <jas@extundo.com>
80711
80712         * modules/socklen (configure.ac): Fix M4 macro name, to align with
80713         new m4/socklen.m4.
80714
80715 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80716
80717         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
80718         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
80719
80720 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80721
80722         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
80723         * lib/argp-help.c (fill_in_uparams): Check if the constructed
80724         struct uparams is valid. Fall back to the default values if it is
80725         not.
80726
80727 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80728
80729         * modules/argp (Files): Add argp-pin.c
80730         (Depends-on): dirname
80731         (lib_SOURCES): Add argp-pin.c
80732
80733 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80734
80735         * m4/argp.m4:  Check if program_invocation_name and
80736         program_invocation_short_name are declared and define appropriate
80737         macros if they are not.
80738
80739 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80740
80741         * lib/argp-help.c (__argp_base_name): New function
80742         (__argp_short_program_name): Rewrite using __argp_base_name
80743         * lib/argp-namefrob.h: Define program_invocation_name and
80744         program_invocation_short_name if requested
80745         (__argp_base_name): Add prototype
80746         * lib/argp-parse.c (argp_def): Use gettext wrappers
80747         (argp_default_parser): Use __argp_base_name
80748         * lib/argp-pin.c: New file. Defines program_invocation_name and
80749         program_invocation_short_name on systems that lack them.
80750
80751 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80752
80753         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
80754         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80755         porting problem reported by Georg Schwarz in
80756         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80757
80758 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80759
80760         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
80761         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80762         porting problem reported by Georg Schwarz in
80763         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80764
80765 2005-12-05  Bruno Haible  <bruno@clisp.org>
80766
80767         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
80768         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
80769         Reported by Mark Junker <mjscod@gmx.de>.
80770
80771 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
80772
80773         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
80774         Use implementation from Albert Chin, with some
80775         comments/corrections by Stepan Kasal and myself.
80776
80777 2005-12-02  Bruno Haible  <bruno@clisp.org>
80778
80779         * gnulib-tool (func_import): Accept GPLed build tool modules when
80780         --lgpl is given.
80781         * modules/csharpcomp-script: New file.
80782         * modules/csharpcomp: Depend on it.
80783         * modules/javacomp-script: New file.
80784         * modules/javacomp: Depend on it.
80785         Suggested by Simon Josefsson.
80786
80787 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
80788
80789         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
80790         statement, to work around an HP-UX 10.20 compiler bug reported by
80791         Peter O'Gorman.
80792
80793 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80794
80795         * modules/savedir (Depends-on): Add openat.
80796
80797 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80798
80799         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
80800         (uintmax_t) [defined uintmax_t]: Do not declare.
80801         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
80802         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
80803         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
80804         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
80805         sake of portability to weird hosts that C allows (though we don't
80806         know of any practical examples).
80807
80808         * lib/savedir.h (fdsavedir): New decl.
80809         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
80810         contains most of the former guts of savedir.
80811         (savedir): Use savedirstream.
80812         Include "openat.h".
80813
80814 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80815
80816         * modules/obstack (Files): Add m4/ulonglong.m4.
80817         Problem reported by Davide Angelocola.
80818
80819 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
80820
80821         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
80822         coreutils no longer futzes with rounding modes.
80823
80824 2005-11-14  Jim Meyering  <jim@meyering.net>
80825
80826         * lib/mkstemp-safer.c: Include <config.h>, required for possible
80827         replacement of mkstemp.
80828
80829 2005-11-10  Simon Josefsson  <jas@extundo.com>
80830
80831         * lib/readline.c: Remove EOL.
80832
80833 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80834
80835         * modules/gethrxtime (Depends-on): Add gettime.
80836
80837 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80838
80839         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
80840         or gettimeofday; no longer needed.
80841
80842 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80843
80844         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
80845         time business.
80846         (gethrxtime) [! (HAVE_NANOUPTIME
80847         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
80848         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
80849         our own approximation.
80850
80851 2005-11-08  Eric Blake  <ebb9@byu.net>
80852
80853         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80854
80855 2005-11-08  Eric Blake  <ebb9@byu.net>
80856
80857         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80858
80859 2005-11-04  Bruno Haible  <bruno@clisp.org>
80860
80861         * gnulib-tool: Implement --update mode.
80862
80863 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80864
80865         Fix porting problem reported by Theodoros V. Kalamatianos.
80866         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
80867         Don't assume that futimes failing means we must fail.
80868
80869 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80870
80871         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
80872         variables to suggest the intended function of the PATH_MAX check.
80873
80874 2005-10-30  Kean Johnston  <jkj@sco.com>
80875
80876         Trivial changes to support SCO systems.
80877         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
80878         as PATH_MAX.
80879         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
80880         where __ptr is null when no I/O is pending.
80881
80882 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80883
80884         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
80885         leave errno alone.  Problem reported by Dmitry V. Levin.
80886
80887 2005-10-28  Simon Josefsson  <jas@extundo.com>
80888
80889         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
80890         Test more.
80891
80892         * tests/test-gc-md2.c, tests/test-md2.c: New files.
80893
80894         * modules/md2, modules/md2-tests: New files.
80895
80896 2005-10-28  Simon Josefsson  <jas@extundo.com>
80897
80898         * m4/inet_ntop.m4: More tests.
80899
80900         * m4/gc-md2.m4, md2.m4: New file.
80901
80902 2005-10-28  Simon Josefsson  <jas@extundo.com>
80903
80904         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
80905         "restrict" keywords, as per POSIX.  Protect the function
80906         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
80907         Don't use K&R prototypes.  Check the sprintf return values.
80908         Re-define EAFNOSUPPORT if not present.  Indent.
80909
80910         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
80911         suggested by Bruno Haible <bruno@clisp.org>.
80912
80913         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
80914
80915         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
80916
80917         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
80918         libgcrypt).
80919
80920         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
80921
80922         * lib/md2.h, lib/md2.c: New files.
80923
80924 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
80925
80926         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
80927         errno alone.  Problem reported by Frederic Jolliton.
80928
80929 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
80930
80931         * modules/verify (License): Change from GPL to LGPL.  This is a
80932         tiny module and there are apparently near-equivalents that are
80933         under the BSD license.
80934
80935 2005-10-24  Simon Josefsson  <jas@extundo.com>
80936
80937         * modules/sha1: Relicense to LGPL.
80938
80939 2005-10-24  Simon Josefsson  <jas@extundo.com>
80940
80941         * lib/md4.h: Shrink buffer size, now that we changed the type.
80942
80943 2005-10-23  Simon Josefsson  <jas@extundo.com>
80944
80945         * gnulib-tool (func_import): Fix --tests-base.
80946
80947 2005-10-22  Simon Josefsson  <jas@extundo.com>
80948
80949         * modules/arcfour (Depends-on): Need stdint.
80950
80951 2005-10-22  Simon Josefsson  <jas@extundo.com>
80952
80953         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
80954         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
80955
80956 2005-10-22  Simon Josefsson  <jas@extundo.com>
80957
80958         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
80959         suggested by Bruno Haible <bruno@clisp.org>.
80960
80961 2005-10-22  Simon Josefsson  <jas@extundo.com>
80962
80963         * lib/crc.h: Include stddef.h, for size_t.
80964
80965 2005-10-22  Simon Josefsson  <jas@extundo.com>
80966
80967         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
80968         arcfour_context struct (simplify test vector testing in GNU
80969         Shishi).
80970
80971 2005-10-21  Simon Josefsson  <jas@extundo.com>
80972
80973         * modules/des, modules/des-tests: New files.
80974
80975         * modules/gc-des, modules/gc-des-tests: New files.
80976
80977         * tests/test-des.c, tests/test-gc-des.c: New file.
80978
80979 2005-10-21  Simon Josefsson  <jas@extundo.com>
80980
80981         * modules/arctwo, modules/arctwo-tests: New files.
80982
80983         * tests/test-arctwo.c: New file.
80984
80985         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
80986
80987         * tests/test-gc-arctwo.c: New file.
80988
80989 2005-10-21  Simon Josefsson  <jas@extundo.com>
80990
80991         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
80992         Bruno Haible <bruno@clisp.org>.
80993
80994         * m4/gc-des.m4: New file.
80995
80996 2005-10-21  Simon Josefsson  <jas@extundo.com>
80997
80998         * m4/arctwo.m4: New file.
80999
81000         * m4/gc-arctwo.m4: New file.
81001
81002 2005-10-21  Simon Josefsson  <jas@extundo.com>
81003
81004         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
81005         block.
81006
81007 2005-10-21  Simon Josefsson  <jas@extundo.com>
81008
81009         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
81010         <bruno@clisp.org>.
81011
81012         * lib/hmac-sha1.c (hmac_sha1): Likewise.
81013
81014         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
81015         Bruno Haible <bruno@clisp.org>.
81016
81017         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
81018         <bruno@clisp.org>.
81019
81020 2005-10-21  Simon Josefsson  <jas@extundo.com>
81021
81022         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
81023
81024 2005-10-21  Simon Josefsson  <jas@extundo.com>
81025
81026         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
81027
81028 2005-10-21  Simon Josefsson  <jas@extundo.com>
81029
81030         * lib/des.h, lib/des.c: New files.
81031
81032         * lib/gc-gnulib.c: Support DES.c
81033
81034 2005-10-21  Simon Josefsson  <jas@extundo.com>
81035
81036         * lib/arctwo.h, lib/arctwo.c: New files.
81037
81038         * lib/gc-gnulib.c: Support ARCTWO.
81039
81040 2005-10-21  Simon Josefsson  <jas@extundo.com>
81041
81042         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
81043         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81044
81045 2005-10-21  Simon Josefsson  <jas@extundo.com>
81046
81047         * gnulib-tool (func_import, func_create_testdir): Define automake
81048         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
81049         Makefile.am snippet),
81050         suggested by Bruno Haible <bruno@clisp.org>.
81051
81052         * modules/gc (Makefile.am): Use it.
81053
81054 2005-10-21  Bruno Haible  <bruno@clisp.org>
81055
81056         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
81057         patch.
81058
81059 2005-10-19  Simon Josefsson  <jas@extundo.com>
81060
81061         * tests/test-gc-rijndael.c: New file.
81062
81063         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
81064
81065 2005-10-19  Simon Josefsson  <jas@extundo.com>
81066
81067         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
81068         interface too.
81069
81070 2005-10-19  Simon Josefsson  <jas@extundo.com>
81071
81072         * tests/test-gc-arcfour.c: New file.
81073
81074         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
81075
81076 2005-10-19  Simon Josefsson  <jas@extundo.com>
81077
81078         * modules/gc-md4, modules/gc-md4-tests: New file.
81079
81080         * tests/test-gc-md4.c: New file.
81081
81082 2005-10-19  Simon Josefsson  <jas@extundo.com>
81083
81084         * m4/gc-md4.m4: New file.
81085
81086 2005-10-19  Simon Josefsson  <jas@extundo.com>
81087
81088         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
81089         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
81090         <kasal@ucw.cz>.
81091
81092 2005-10-19  Simon Josefsson  <jas@extundo.com>
81093
81094         * m4/gc-arcfour.m4: New file.
81095
81096         * m4/gc-rijndael.m4: New file.
81097
81098 2005-10-19  Simon Josefsson  <jas@extundo.com>
81099
81100         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
81101
81102 2005-10-19  Simon Josefsson  <jas@extundo.com>
81103
81104         * lib/gc-gnulib.c: Support ARCFOUR.
81105
81106 2005-10-19  Simon Josefsson  <jas@extundo.com>
81107
81108         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
81109         support.
81110
81111         * lib/gc.h: Add ECB enum type.
81112
81113         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
81114
81115 2005-10-18  Simon Josefsson  <jas@extundo.com>
81116
81117         * tests/test-md5.c: New file.
81118
81119         * modules/md5-tests: New file.
81120
81121 2005-10-18  Simon Josefsson  <jas@extundo.com>
81122
81123         * tests/test-md4.c: New file.
81124
81125         * modules/md4, modules/md4-tests: New files.
81126
81127 2005-10-18  Simon Josefsson  <jas@extundo.com>
81128
81129         * m4/md4.m4: New file.
81130
81131 2005-10-18  Simon Josefsson  <jas@extundo.com>
81132
81133         * lib/md4.h, lib/md4.c: New files, based on md5.?.
81134
81135 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
81136
81137         * gnulib-tool (func_create_testdir): Omit the second check whether
81138         BUILT_SOURCES in nonempty.
81139
81140 2005-10-17  Simon Josefsson  <jas@extundo.com>
81141
81142         * tests/test-rijndael.c: New file.
81143
81144 2005-10-17  Simon Josefsson  <jas@extundo.com>
81145
81146         * modules/sha1: Depend on stdint instead of md5.
81147
81148         * modules/md5: Depend on stdint, remove uint32_t.
81149
81150 2005-10-17  Simon Josefsson  <jas@extundo.com>
81151
81152         * modules/gc-sha1-tests: New file.
81153
81154         * tests/test-gc-sha1.c: New file.
81155
81156 2005-10-17  Simon Josefsson  <jas@extundo.com>
81157
81158         * m4/md5.m4: Remove call to uint32_t.m4.
81159
81160 2005-10-17  Simon Josefsson  <jas@extundo.com>
81161
81162         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
81163
81164         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
81165         md5.h.
81166
81167         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
81168
81169         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
81170
81171 2005-10-17  Simon Josefsson  <jas@extundo.com>
81172
81173         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
81174
81175 2005-10-17  Simon Josefsson  <jas@extundo.com>
81176
81177         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
81178
81179 2005-10-17  Simon Josefsson  <jas@extundo.com>
81180
81181         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
81182
81183         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
81184
81185 2005-10-17  Bruno Haible  <bruno@clisp.org>
81186
81187         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
81188         that it can also be used in a test.
81189
81190 2005-10-16  Bruno Haible  <bruno@clisp.org>
81191
81192         * gnulib-tool (func_emit_tests_Makefile_am): Also define
81193         TESTS_ENVIRONMENT, so that individual tests can augment it.
81194
81195         * gnulib-tool (func_create_testdir): Use an intermediate target for
81196         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
81197         macros, like $(ALLOCA_H), which cannot be passed through the command
81198         line.
81199
81200 2005-10-15  Simon Josefsson  <jas@extundo.com>
81201
81202         * modules/rijndael-tests: New file.
81203
81204         * modules/rijndael: New file.
81205
81206 2005-10-15  Simon Josefsson  <jas@extundo.com>
81207
81208         * m4/rijndael.m4: New file.
81209
81210 2005-10-15  Simon Josefsson  <jas@extundo.com>
81211
81212         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
81213
81214         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
81215
81216 2005-10-14  Simon Josefsson  <jas@extundo.com>
81217
81218         * tests/test-arcfour.c: New file.
81219
81220         * modules/arcfour, modules/arcfour-tests: New files.
81221
81222 2005-10-14  Simon Josefsson  <jas@extundo.com>
81223
81224         * m4/arcfour.m4: New file.
81225
81226 2005-10-14  Simon Josefsson  <jas@extundo.com>
81227
81228         * lib/arcfour.h, lib/arcfour.c: New files.
81229
81230 2005-10-14  Roland McGrath  <roland@redhat.com>
81231
81232         Import from libc.  [BZ #1331]
81233         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
81234         macro argument.
81235         Reported by Matej Vela <vela@debian.org>.
81236
81237 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
81238
81239         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
81240         include <wchar.h>; no longer needed.
81241
81242 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
81243
81244         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
81245
81246 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
81247         and  Ulrich Drepper  <drepper@redhat.com>
81248
81249         Import from libc.
81250         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
81251         instead of inline stream orientation test and two separate
81252         function calls.  Pay no attention to USE_IN_LIBIO.
81253
81254 2005-10-13  Simon Josefsson  <jas@extundo.com>
81255
81256         * modules/gc-hmac-md5-tests: New file.
81257
81258         * tests/test-gc-hmac-sha1.c: New file.
81259
81260         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
81261
81262         * modules/gc-hmac-md5-tests: New file.
81263
81264         * tests/test-gc-md5.c: New file.
81265
81266         * modules/gc-md5-tests: New file.
81267
81268 2005-10-13  Simon Josefsson  <jas@extundo.com>
81269
81270         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
81271         Move memory allocation outside of loop.
81272
81273 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
81274
81275         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
81276         intermediate directory is in a read-only file system.  Problem
81277         reported by Eric Blake.
81278
81279 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
81280
81281         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
81282
81283 2005-10-12  Simon Josefsson  <jas@extundo.com>
81284
81285         * tests/test-hmac-sha1.c: New file.
81286
81287         * modules/hmac-sha1-tests: New file.
81288
81289         * modules/hmac-sha1: New file.
81290
81291 2005-10-12  Simon Josefsson  <jas@extundo.com>
81292
81293         * modules/gc-sha1: New file.
81294
81295 2005-10-12  Simon Josefsson  <jas@extundo.com>
81296
81297         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
81298
81299         * tests/test-gc-pbkdf2-sha1.c: New file.
81300
81301 2005-10-12  Simon Josefsson  <jas@extundo.com>
81302
81303         * modules/gc-md5, modules/gc-hmac-md5: New files.
81304
81305         * modules/gc (Files): Remove md5, memxor and hmac files.
81306
81307 2005-10-12  Simon Josefsson  <jas@extundo.com>
81308
81309         * m4/gc-pbkdf2-sha1.m4: New file.
81310
81311         * m4/gc-hmac-sha1.m4: New file.
81312
81313         * m4/gc-sha1: New file.
81314
81315         * m4/hmac-sha1.m4: New file.
81316
81317 2005-10-12  Simon Josefsson  <jas@extundo.com>
81318
81319         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
81320
81321         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
81322
81323 2005-10-12  Simon Josefsson  <jas@extundo.com>
81324
81325         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
81326         suggested by Bruno Haible <bruno@clisp.org>.
81327
81328 2005-10-12  Simon Josefsson  <jas@extundo.com>
81329
81330         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
81331
81332 2005-10-12  Simon Josefsson  <jas@extundo.com>
81333
81334         * lib/gc-pbkdf2-sha1.c: New file.
81335
81336         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
81337
81338 2005-10-12  Simon Josefsson  <jas@extundo.com>
81339
81340         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
81341
81342         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
81343
81344 2005-10-12  Simon Josefsson  <jas@extundo.com>
81345
81346         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
81347         GC_USE_HMAC_MD5, respectively.
81348
81349         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
81350         (gc_md5): Fix typo.
81351
81352         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
81353
81354         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
81355
81356         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
81357
81358 2005-10-12  Bruno Haible  <bruno@clisp.org>
81359
81360         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
81361         Reported by Stepan Kasal <kasal@ucw.cz>.
81362
81363 2005-10-11  Simon Josefsson  <jas@extundo.com>
81364
81365         * tests/test-crc.c: New file.
81366
81367         * modules/crc, modules/crc-tests: New files.
81368
81369 2005-10-11  Simon Josefsson  <jas@extundo.com>
81370
81371         * m4/crc.m4: New file.
81372
81373 2005-10-11  Simon Josefsson  <jas@extundo.com>
81374
81375         * lib/gc.h: Add gc_hash and gc_hash_buffer.
81376
81377         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
81378
81379         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
81380
81381 2005-10-11  Simon Josefsson  <jas@extundo.com>
81382
81383         * lib/crc.h, lib/crc.c: New files.
81384
81385         * lib/gc.h (gc_hash_buffer): Add doc.
81386
81387 2005-10-11  Bruno Haible  <bruno@clisp.org>
81388
81389         * modules/c-strcasestr: New file.
81390         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
81391
81392 2005-10-11  Bruno Haible  <bruno@clisp.org>
81393
81394         * modules/c-strcase: New file.
81395         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
81396
81397 2005-10-11  Bruno Haible  <bruno@clisp.org>
81398
81399         * lib/strcasecmp.c: Include limits.h.
81400         (strcasecmp): Avoid integer overflow on exotic platforms.
81401         * lib/strncasecmp.c: Include limits.h.
81402         (strncasecmp): Avoid integer overflow on exotic platforms.
81403         Reported by Paul Eggert.
81404
81405 2005-10-11  Bruno Haible  <bruno@clisp.org>
81406
81407         * lib/c-strcasestr.h: New file, from GNU gettext.
81408         * lib/c-strcasestr.c: New file, from GNU gettext.
81409
81410 2005-10-11  Bruno Haible  <bruno@clisp.org>
81411
81412         * lib/c-strcase.h: New file, from GNU gettext.
81413         * lib/c-strcasecmp.c: New file, from GNU gettext.
81414         * lib/c-strncasecmp.c: New file, from GNU gettext.
81415
81416 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
81417
81418         * modules/mempcpy (License): GPL -> LGPL.
81419         * modules/strchrnul (License): Likewise.
81420         * modules/sysexits (License): Likewise.
81421
81422 2005-10-08  Simon Josefsson  <jas@extundo.com>
81423
81424         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
81425
81426 2005-10-07  Simon Josefsson  <jas@extundo.com>
81427
81428         * m4/memxor.m4: Remove gl_C_RESTRICT call.
81429
81430 2005-10-06  Simon Josefsson  <jas@extundo.com>
81431
81432         * tests/test-hmac-md5.c: New file.
81433
81434         * modules/hmac-md5-tests: New file.
81435
81436         * modules/hmac-md5: New file.
81437
81438 2005-10-06  Simon Josefsson  <jas@extundo.com>
81439
81440         * m4/hmac-md5.m4: New file.
81441
81442         * m4/memxor.m4: Require gl_C_RESTRICT.
81443
81444 2005-10-06  Simon Josefsson  <jas@extundo.com>
81445
81446         * lib/memxor.c (memxor): Avoid casts and warnings.
81447
81448 2005-10-06  Simon Josefsson  <jas@extundo.com>
81449
81450         * lib/hmac-md5.c: New file.
81451
81452         * lib/hmac.h: New file.
81453
81454 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
81455
81456         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
81457         promotes to int, not unsigned int, to catch the AIX 5.3
81458         compiler bug.
81459
81460 2005-10-05  Simon Josefsson  <jas@extundo.com>
81461
81462         * modules/memxor: New file.
81463
81464         * modules/iconv (Files): Move config.rpath to havelib, it is used
81465         there.
81466
81467         * modules/havelib (Files): Add config.rpath.
81468
81469 2005-10-05  Simon Josefsson  <jas@extundo.com>
81470
81471         * m4/memxor.m4: New file.
81472
81473 2005-10-05  Simon Josefsson  <jas@extundo.com>
81474
81475         * lib/memxor.c (memxor): Fix compiler error.
81476
81477         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
81478         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
81479
81480         * lib/memxor.h, lib/memxor.c: New files.
81481
81482         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
81483         we assume all systems have it, suggested by Jim Meyering
81484         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
81485         any systems lack sys/socket.h; mingw32 is known to lack it, but we
81486         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
81487         same reasons.
81488
81489 2005-10-05  Simon Josefsson  <jas@extundo.com>
81490
81491         * config/srclist.txt: Add glibc bug 1423 for md5.h.
81492
81493 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
81494
81495         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
81496         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
81497         needed, since the source code now assumes these .h files.
81498
81499 2005-10-05  Derek Price  <derek@ximbiot.com>
81500
81501         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
81502
81503 2005-10-05  Bruno Haible  <bruno@clisp.org>
81504
81505         * modules/stdint (License): Change to LGPL.
81506
81507 2005-10-04  Simon Josefsson  <jas@extundo.com>
81508
81509         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
81510         D. Baushke" <mdb@gnu.org>.
81511
81512 2005-10-04  Bruno Haible  <bruno@clisp.org>
81513
81514         * lib/verify.h (verify_true): Provide alternative definition for C++.
81515
81516 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
81517
81518         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
81519         (SSIZE_MAX): New macro, if not already defined.
81520         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
81521         than 2 GiB.
81522
81523 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81524
81525         Sync from coreutils.
81526         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
81527         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
81528         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
81529         ULLONG_MAX doesn't work with 2.7.2.1.
81530
81531 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81532
81533         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
81534         From Ben Pfaff.
81535
81536         * modules/exclude (Depends-on): Depend on verify.
81537         * modules/strtoimax (Depends-on): Likewise.
81538         * modules/utimecmp (Depends-on): Likewise.
81539
81540 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81541
81542         * lib/exclude.c: Include verify.h.
81543         (verify): Remove.  All callers changed to use verify.h's version.
81544         * lib/strtoimax.c: Likewise.
81545         * lib/utimecmp.c: Likewis.e
81546
81547         Sync from coreutils.
81548         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
81549         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
81550         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
81551         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
81552         bother returning ENOSYS if settimeofday or stime fails; just let
81553         them return whatever errno they want to return.
81554         * lib/utimens.c: Include unistd.h, for dup2.
81555         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
81556         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
81557
81558 2005-10-02  Jim Meyering  <jim@meyering.net>
81559
81560         Sync from coreutils.
81561         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
81562         from glibc-2.2.5 that fails for read-only files.
81563
81564 2005-10-02  Jim Meyering  <jim@meyering.net>
81565
81566         Sync from coreutils.
81567         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
81568         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
81569         `#if HAVE_CONFIG_H'.
81570         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
81571         Remove AT_FDCWD test.
81572         Do not consume the fd unless successful.
81573         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
81574         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
81575         block, so that we don't even try to compile it if settimeofday is
81576         available.  This works around a compilation failure on OSF1 V5.1,
81577         due to stime requiring a `long int*' while tv_sec is `int'.
81578
81579 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
81580
81581         Sync from coreutils.
81582         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
81583         against `yes', rather than just testing for nonempty.
81584
81585 2005-10-01  Simon Josefsson  <jas@extundo.com>
81586
81587         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
81588         and Darwin.
81589
81590         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
81591         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
81592         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
81593         freeaddrinfo and gai_strerror are declared by the POSIX headers.
81594         Check if struct addrinfo is declared.
81595
81596 2005-10-01  Simon Josefsson  <jas@extundo.com>
81597
81598         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
81599         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
81600         AI_* and EAI_* definitions.  Protect function declarations.
81601
81602 2005-10-01  Jim Meyering  <jim@meyering.net>
81603
81604         Sync from coreutils.
81605
81606         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
81607         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
81608         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
81609         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
81610         in the inet and nsl libraries.  Required on Solaris 5.7.
81611
81612 2005-10-01  Jim Meyering  <jim@meyering.net>
81613
81614         Sync from coreutils.
81615         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
81616         in the inet and nsl libraries.  Required on Solaris 5.7.
81617
81618 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
81619
81620         * lib/getdelim.c (getdelim): Remove unused variables.
81621
81622 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
81623
81624         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
81625         so that the code works even with ancient cpp.  Portability problem
81626         with GCC 2.7.2.1 reported by Thomas M.Ott.
81627
81628 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
81629
81630         * modules/regex (Depends-on): Add strcase.
81631
81632         * modules/gethostname (Licence): Change from GPL to LGPL, since
81633         gethostname.c is a trivial implementation of a standard library
81634         function.
81635         * modules/poll (License): Change from GPL to LGPL, since it's
81636         derived from LGPL code.
81637
81638 2005-09-27  Jim Meyering  <jim@meyering.net>
81639
81640         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
81641         HAVE_CONFIG_H.
81642
81643         * lib/intprops.h (signed_type_or_expr__): Define.
81644         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
81645         for unsigned types.
81646
81647 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
81648
81649         * lib/verify.h (verify_expr): Remove, replacing with:
81650         (verify_true): New macro that returns true instead of void.
81651         (verify_type__): Remove.
81652         (verify): Use verify_true rather than verify_type__.
81653
81654 2005-09-26  Bruno Haible  <bruno@clisp.org>
81655
81656         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
81657         is necessary.
81658         (lib_SOURCES): Remove mbchar.c.
81659         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
81660         (Files): Add m4/mbrtowc.m4.
81661         * modules/mbiter: Likewise.
81662         * modules/mbuiter: Likewise.
81663
81664 2005-09-26  Bruno Haible  <bruno@clisp.org>
81665
81666         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
81667         compile mbchar.c if they are not both present.
81668         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
81669         * m4/mbiter.m4 (gl_MBITER): Likewise.
81670         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
81671         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
81672         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
81673
81674 2005-09-25  Jim Meyering  <jim@meyering.net>
81675
81676         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
81677         also uses socklen_t.
81678
81679 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
81680
81681         * lib/utimens.c (ENOSYS): Define if not already defined.
81682         (futimens): Support having a null PATH if the file descriptor
81683         is nonnegative.
81684
81685         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
81686         Remove.
81687         (__attribute): Define to empty unless GCC 3.1 or later.
81688         This works around a core dump on OpenBSD 3.4, which has GCC
81689         2.95.3, which dumps core when given __attribute__(()).  It also
81690         simplifies other tests, since we really don't want to bother with
81691         worrying about which ancient version of GCC supported what.
81692         Original problem reported by Yoann Vandoorselaere, with part of
81693         the fix suggested by Derek Price.
81694
81695 2005-09-24  Jim Meyering  <jim@meyering.net>
81696
81697         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
81698         so we can once again use a positive bitfield width of 1 -- now we
81699         don't have to explain why we were using a bitfield width of 2.
81700
81701 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81702
81703         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
81704         and similarly for the other external symbols.  Problem reported
81705         by James Gallager.
81706
81707         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
81708         bug reported by Jim Meyering.
81709
81710         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
81711         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
81712         not needed, since socklen is a prerequisite module.
81713
81714 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81715
81716         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
81717         Problem reported by Eric Blake.
81718         (getaddrinfo): Initialize se so that it's not garbage.
81719         Redo internal storage allocation so that it doesn't make unportable
81720         assumptions about alignment.
81721         Fix a memory leak.
81722
81723         * lib/utimens.c (futimens): Use futimesat if available.
81724         Prefer it to futimes since it doesn't have the futimes bug.
81725
81726         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
81727         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
81728         Instead, declare a function that returns a pointer to an array,
81729         and use verify_type__ to declare the size of the array.
81730         Problem and germ of a solution reported by Bruno Haible.
81731         (verify_type__): Use 2, not 1, for bitfield size, to avoid
81732         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
81733
81734 2005-09-23  Jim Meyering  <jim@meyering.net>
81735
81736         Sync from coreutils.
81737         Correct build failure (socklen_t not defined) on at least
81738         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
81739         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
81740
81741 2005-09-23  Jim Meyering  <jim@meyering.net>
81742
81743         * modules/getaddrinfo (Depends-on): Add socklen.
81744
81745 2005-09-23  Bruno Haible  <bruno@clisp.org>
81746
81747         * tests/test-verify.c: New file.
81748
81749 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81750
81751         Sync from coreutils.
81752
81753         * modules/argmatch (Depends-on): Add verify.
81754         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
81755         unistd-safer.
81756         * modules/save-cwd (Depends-on): Likewise.
81757
81758         * modules/openat (Files): Add lib/openat-die.c.
81759         (Depends-on): Remove error, exitfail.
81760         Add dirname.
81761
81762         * modules/verify: New file.
81763         * MODULES.html.sh (Diagnostics <assert.h>): New section,
81764         with "verify" module.
81765
81766 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81767
81768         Sync from coreutils.
81769
81770         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
81771         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
81772         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
81773         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
81774         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
81775         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
81776         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
81777         Don't bother checking for string.h, stdlib.h, unistd.h.
81778         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
81779         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
81780         module's job.
81781         * m4/jm-macros.m4 (gl_MACROS): Likewise.
81782         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
81783
81784         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
81785         (gl_GETDATE): Use it.
81786
81787         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
81788
81789 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81790
81791         Sync from coreutils.
81792
81793         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
81794         stat-time.h.
81795         * lib/argmatch.h: Include verify.h
81796         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
81797         (ARGMATCH_ASSERT): Remove; unused.
81798         * lib/canonicalize.c: Assume STDC_HEADERS.
81799         * lib/exclude.c: Include "strcase.h".
81800         * lib/regex_internal.h [!defined _LIBC]: Likewise.
81801         * lib/getusershell.c: Include stdio--.h rather than stdio.h
81802         and stdio-safer.h.
81803         (getusershell): Call fopen, not fopen_safer.
81804         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
81805         Do not include unistd-safer.h.
81806         (save_cwd): Don't call fd_safer; no longer needed
81807         now that we include fcntl--.h.
81808
81809         * lib/getdate.y (relative_time): New type.
81810         (RELATIVE_TIME_0): New constant.
81811         (parser_control): Use relative_time instead of doing it ourselves.
81812         (%union): Add new relative_time rel member.
81813         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
81814         Now typeless.
81815         (relunit, relunit_snumber): Now of type rel.
81816         (zone, rel, relunit, get_date): Adjust to above changes.
81817
81818         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
81819         Do not include unistd-safer.h.
81820         (getloadavg): Don't call fd_safer; no longer needed
81821         now that we include fcntl--.h.
81822
81823         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
81824         (make_dir_parents): Treat ENOSYS like EEXIST.
81825
81826         Improve quality of diagnostics on restore_cwd failure.
81827         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
81828         (make_dir_parents): Last arg is now int * (for errno), not bool *.
81829         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
81830         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
81831         each time through the loop.  Do not diagnose restore_cwd failure;
81832         that is the caller's job (and perhaps the caller does not care).
81833
81834         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
81835         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
81836         If the file already exists but is not a directory, don't bother
81837         to try to make its parents.
81838         Close potential file descriptor leak if we can't chdir("/") (!).
81839         Don't always return true if chdir($PWD) fails; return true only
81840         if the requested action was done successfully (except for the
81841         chdir($PWD)).
81842         Don't log final directory unless we actually made it.
81843         Refactor to avoid duplicate code to fix up permissions.
81844         Don't attempt to fix up parent permissions if chdir($PWD) fails.
81845
81846         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
81847         to make it a bit faster and (I hope) clearer.
81848         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
81849         Fix bug in formats like %2N.
81850
81851         * lib/verify.h: New file.
81852
81853 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81854
81855         Sync from coreutils.
81856         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
81857
81858 2005-09-22  Jim Meyering  <jim@meyering.net>
81859
81860         Sync from coreutils.
81861
81862         * m4/lstat.m4 (gl_FUNC_LSTAT):
81863         Use AC_LIBSOURCES to require lstat.c and lstat.h.
81864         Remove obsolete comment.
81865         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
81866         * m4/xstrtod.m4: Likewise.
81867
81868         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
81869
81870 2005-09-22  Jim Meyering  <jim@meyering.net>
81871
81872         Sync from coreutils.
81873
81874         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
81875
81876         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
81877         the .tm_year member, since otherwise gcc-4.0 would now warn about
81878         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
81879
81880         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
81881         order to avoid an unsuppressible warning from gcc on 64-bit systems.
81882
81883         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
81884         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
81885         when run in a time zone for which daylight savings time is in effect
81886         for the starting date.
81887
81888         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
81889         stop us from restricting permissions of just-created absolute-named
81890         directories.
81891         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
81892         to restore initial working directory.
81893         * lib/mkdir-p.c (make_dir_parents): New parameter:
81894         different_working_dir, to tell caller if/when we change the working
81895         directory and are unable to return to the initial one.
81896         * lib/mkdir-p.h (make_dir_parents): Update prototype.
81897         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
81898         `return false'.  This fixes a bug introduced on 2004-07-30.
81899
81900         * lib/openat.c (fdopendir): Be sure to close the supplied
81901         file descriptor before returning.  This makes our replacement
81902         implementation a little closer to Solaris's, where fdopendir
81903         ties the file descriptor to the returned DIR* pointer.
81904         * lib/openat.c (unlinkat): New function.
81905         * lib/openat.h (unlinkat): Add prototype.
81906         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
81907         (openat_restore_fail): Rename from openat_restore_die.
81908         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
81909
81910         Provide an alternative to exiting immediately upon save_cwd or
81911         restore_cwd failure.  Now, an application can arrange e.g.,
81912         to perform a longjump in that case.
81913         * lib/openat.c: Include dirname.h.
81914         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
81915         (rpl_openat, fdopendir, fstatat): Call openat_save_die
81916         and openat_restore_die rather than calling error directly.
81917         Don't include "error.h" or "exitfail.h"; they're no longer needed.
81918
81919         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
81920         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
81921         define.
81922
81923         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
81924         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
81925                             int utc, int nanoseconds);
81926         Background:
81927         date should not have to allocate a megabyte of virtual memory to
81928         handle a format argument like +%1048575T.  When implemented with
81929         strftime, it must allocate such a buffer, use strftime to fill it
81930         in, print it, then free it.
81931         With fprintftime, it simply prints everything and exits.
81932         With no need for memory allocation, that's one fewer way to fail.
81933         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
81934         optional field width, not before, so we accept %9:z, not %:9z.
81935         (my_strftime): Be sure to use L_('x') for literals.
81936
81937         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
81938         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
81939         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
81940         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
81941         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
81942         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
81943         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
81944         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
81945         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
81946         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
81947         * lib/xgethostname.c, lib/xreadlink.c:
81948         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
81949
81950         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
81951         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
81952         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
81953         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81954         and don't include <sys/file.h>).
81955
81956 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
81957
81958         Sync from coreutils.
81959
81960         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
81961         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
81962         [!LDAV_DONE]: Avoid unused variable warning.
81963
81964 2005-09-21  Bruno Haible  <bruno@clisp.org>
81965
81966         * lib/unicodeio.h (unicode_to_mb): New declaration.
81967
81968 2005-09-20  Derek Price  <derek@ximbiot.com>
81969
81970         * lib/getaddrinfo.c: Don't include <netdb.h> included from
81971         getaddrinfo.h.
81972
81973 2005-09-20  Bruno Haible  <bruno@clisp.org>
81974
81975         * gnulib-tool: Remove trailing slashes from the values specified for
81976         --source-base, --m4-base, --tests-base, --aux-dir.
81977         Suggested by Simon Josefsson <jas@extundo.com>.
81978
81979 2005-09-20  Bruno Haible  <bruno@clisp.org>
81980
81981         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
81982         func_modules_to_filelist, func_import, func_create_testdir): Make all
81983         sorting results locale-independent, so that gnulib-cache.m4 doesn't
81984         change when gnulib-tool is invoked in a different locale.
81985
81986 2005-09-19  Simon Josefsson  <jas@extundo.com>
81987
81988         * m4/socklen.m4: Fix typo.
81989
81990 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81991
81992         Use a consistent style for including <config.h>.
81993         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
81994         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
81995         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
81996         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
81997         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
81998         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
81999         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
82000         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
82001         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
82002         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
82003         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
82004         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
82005         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
82006         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
82007         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
82008         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
82009         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
82010         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
82011         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
82012         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
82013         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
82014         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
82015         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
82016         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
82017         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
82018         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
82019         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
82020         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
82021         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
82022         lib/xstrtoumax.c, lib/yesno.c:
82023         Standardize inclusion of config.h.
82024         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
82025         lib/inttostr.h:  Removed inclusion of config.h from header files.
82026         * lib/inttostr.c:  Adjusted in-tree users.
82027         * lib/timespec.h: Remove superfluous warning to include config.h.
82028         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
82029         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
82030         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
82031         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
82032         config.h with HAVE_CONFIG_H.
82033
82034 2005-09-19  Jim Meyering  <jim@meyering.net>
82035
82036         * modules/pathmax (License): Change to LGPL.
82037
82038 2005-09-19  Derek Price  <derek@ximbiot.com>
82039
82040         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
82041
82042 2005-09-19  Bruno Haible  <bruno@clisp.org>
82043
82044         * gnulib-tool (import): Provide default for --tests-base.
82045
82046 2005-09-19  Bruno Haible  <bruno@clisp.org>
82047
82048         * doc/quote.texi: New file, extracted from gnulib.texi.
82049         * doc/ctime.texi: New file, extracted from gnulib.texi.
82050         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
82051         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
82052         * doc/gnulib.texi: Include them.
82053
82054 2005-09-18  Bruno Haible  <bruno@clisp.org>
82055
82056         Portability fix.
82057         * gnulib-tool (func_readlink): New function.
82058         (func_ln_if_changed): Use it.
82059
82060 2005-09-18  Bruno Haible  <bruno@clisp.org>
82061
82062         * gnulib-tool: Support --with-tests also with --import.
82063         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
82064         (func_import): Use variables $testsbase and $inctests. Emit a
82065         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
82066         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
82067         SUBDIRS += $testsdir.
82068         (func_create_testdir): Update.
82069
82070 2005-09-18  Bruno Haible  <bruno@clisp.org>
82071
82072         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
82073         instead of $dry_run.
82074         (func_cp_if_changed, func_mv_if_changed): Remove functions.
82075         (func_ln_if_changed): Don't handle dry-run here.
82076         (func_import): In dry-run mode, detect more precisely which actions
82077         would be performed, and don't use "...ing" verbs.
82078
82079 2005-09-18  Bruno Haible  <bruno@clisp.org>
82080
82081         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
82082         (func_import): Use join on two temporary files instead of three nested
82083         loops, in order to determine which files are new or old.
82084
82085 2005-09-18  Bruno Haible  <bruno@clisp.org>
82086
82087         * gnulib-tool (func_import): Comment out code that spits out the
82088         new files with --dry-run.
82089
82090 2005-09-18  Bruno Haible  <bruno@clisp.org>
82091
82092         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
82093
82094 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
82095
82096         * lib/stat-time.h: New file.
82097         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
82098         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
82099         in a different way.
82100         (timespec_cmp): New function.
82101         * lib/utimecmp.c: Include stat-time.h.
82102         (SYSCALL_RESOLUTION): Depend on whether various struct stat
82103         members exist, not on the obsolescent ST_MTIM_NSEC.
82104         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
82105
82106 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
82107
82108         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
82109
82110 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
82111
82112         * MODULES.html.sh (File system functions): Add stat-time.
82113         * modules/stat-time: New file.
82114         * modules/timespec (Files): Remove m4/st_mtim.m4; this
82115         is now done in a different way, by the stat-time module.
82116         * modules/utimecmp (Depends-on): Add stat-time.
82117
82118 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
82119
82120         * m4/st_mtim.m4: Remove.  Superseded by...
82121         * m4/stat-time.m4: New file.
82122         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
82123         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
82124
82125 2005-09-15  Derek Price  <derek@ximbiot.com>
82126
82127         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
82128
82129 2005-09-15  Derek Price  <derek@ximbiot.com>
82130
82131         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
82132         * lib/regex_internal.c: Ditto, using this...
82133         (__GNUC_PREREQ): ...new macro.
82134         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
82135         using...
82136         (__GNUC_PREREQ): ...this new macro.
82137
82138         * lib/strstr.h: Include string.h. Define strstr as a macro here.
82139
82140 2005-09-15  Derek Price  <derek@ximbiot.com>
82141             Paul Eggert  <eggert@cs.ucla.edu>
82142
82143         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
82144         changes, consolidating in...
82145         * lib/regex_internal.h: ...this file.
82146
82147 2005-09-13  Jim Meyering  <jim@meyering.net>
82148
82149         * lib/canon-host.c: Filter through gnu indent and reword comments
82150         slightly.
82151         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
82152
82153 2005-09-13  Derek Price  <derek@ximbiot.com>
82154
82155         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
82156         failure.
82157         Reported by Jim Meyering  <jim@meyering.net>.
82158
82159 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82160
82161         * lib/base64.c: Typo.
82162         (base64_encode): Put b64str in initialized data section.
82163
82164 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
82165
82166         Merge glibc and coreutils changes into gnulib, plus a few
82167         extra fixes.
82168         * lib/md5.c: Use #error rather than a string.
82169         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
82170         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
82171         (__attribute__): Define to empty for non recent-GCC.
82172         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
82173         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
82174         Renamed from their non-__ counterparts, with new macros replacing
82175         them if not _LIBC.  Add __THROW attribute.
82176         (rol): Remove.
82177         (struct md5_ctx): Align buffer if using GCC.
82178         * lib/sha1.h (struct sha1_ctx): Likewise.
82179         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
82180         The old name was backwards.
82181         (NOTSWAP): Remove; not used.
82182         (rol): New macro, moved here from md5.h.
82183         (sha1_process_block): Remove a FIXME that doesn't make sense.
82184
82185 2005-09-12  Derek Price  <derek@ximbiot.com>
82186
82187         Return usable errors from canon-host.
82188         * lib/canon-host.h: New file.
82189         * lib/canon-host.c (canon_host): Wrap...
82190         (canon_host_r): ...this new function, which now relies exclusively on
82191         getaddrinfo.
82192         (ch_strerror): New function.
82193         (last_cherror): New global.
82194         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
82195         interface.
82196         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
82197         void *.
82198         (freeaddrinfo): Free ai->ai_canonname when set.
82199
82200 2005-09-12  Derek Price  <derek@ximbiot.com>
82201
82202         Make canon-host require getaddrinfo.
82203         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
82204         AC_LIBSOURCE canon-host.h.  Call...
82205         (gl_PREREQ_CANON_HOST): ...this new function, which requires
82206         gl_GETADDRINFO.
82207         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
82208
82209 2005-09-12  Derek Price  <derek@ximbiot.com>
82210
82211         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
82212         LGPL.
82213         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
82214
82215 2005-09-12  Derek Price  <derek@ximbiot.com>
82216
82217         * lib/gai_strerror.c: Include config.h when available.  Include
82218         getaddrinfo.h before other headers to test interface.
82219         Reported by Larry Jones <lawrence.jones@ugs.com>.
82220
82221 2005-09-12  Derek Price  <derek@ximbiot.com>
82222             Paul Eggert  <eggert@cs.ucla.edu>
82223
82224         * modules/glob (Files): Add glob-libc.h.
82225
82226 2005-09-12  Derek Price  <derek@ximbiot.com>
82227             Paul Eggert  <eggert@cs.ucla.edu>
82228
82229         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
82230         glob_.h, glob-libc.h.
82231         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
82232
82233 2005-09-12  Derek Price  <derek@ximbiot.com>
82234             Paul Eggert  <eggert@cs.ucla.edu>
82235
82236         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
82237         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
82238         protecting things that should be done only in gnulib contexts.
82239         * lib/glob_.h: New file, containing only the glob things needed for
82240         gnulib.
82241         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
82242         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
82243         (glob, globfree, glob_pattern_p): Now defined simply in terms of
82244         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
82245         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
82246         and to respect the namespace rules better.
82247
82248 2005-09-08  Simon Josefsson  <jas@extundo.com>
82249
82250         * modules/socklen: New file.
82251
82252 2005-09-08  Simon Josefsson  <jas@extundo.com>
82253
82254         * m4/socklen.m4: New file.
82255
82256 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82257
82258         * modules/utimens (Files): Add m4/utimbuf.m4, since
82259         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
82260         Reported by Sergey Poznyakoff.
82261
82262 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82263
82264         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
82265         definitions, since that's the preferred style in glibc.
82266         Fix a minor spacing issue, and update copyright notice to match
82267         glibc's.
82268
82269 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82270
82271         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
82272
82273 2005-09-06  Simon Josefsson  <jas@extundo.com>
82274
82275         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
82276         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
82277
82278 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82279
82280         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
82281         warning.
82282
82283 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82284
82285         * config/srclist.txt: Add glibc bug 1302.
82286
82287 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
82288
82289         Change bitset word type from unsigned int to unsigned long int,
82290         as this has better performance on typical 64-bit hosts.
82291         Port bitset code to hosts with unusual word sizes.
82292         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
82293         (build_collating_symbol):
82294         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
82295         argument is a bitset.  This is merely a style issue, but it makes
82296         it clearer that an entire array is expected.
82297         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
82298         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
82299         Port to the case where bitset_word is not the same as unsigned int.
82300         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
82301         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
82302         Likewise.
82303         * lib/regexec.c (check_dst_limits_calc_pos_1,
82304         check_subexp_matching_top):
82305         (build_trtable, group_nodes_into_DFAstates):
82306         Likewise.
82307         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
82308         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
82309         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
82310         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
82311         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
82312         * lib/regcomp.c (optimize_subexps, lower_subexp):
82313         Work even if bitset_word has holes in its bitwise representation.
82314         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
82315         * lib/regexec.c (check_dst_limits_calc_pos_1,
82316         check_subexp_matching_top):
82317         Likewise.
82318         * lib/regex_internal.c (re_string_reconstruct):
82319         Don't assume UCHAR_MAX == 255.
82320         * lib/regex_internal.h (bitset_set_all): Likewise.
82321         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
82322         All uses changed.
82323         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
82324         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
82325         All uses changed.
82326         (BITSET_WORD_MAX): New macro.
82327         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
82328         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
82329         (bitset_empty, bitset_copy):
82330         Prefer sizeof (bitset) to multiplying it out ourselves.
82331         (bitset_not_merge): Remove; unused.
82332         (bitset_contain): Return bool, not unsigned int with one bit on.
82333         All callers changed.
82334         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
82335         alignment than re_node_set; do this by defining a new internal
82336         type struct dests_alloc and using it to allocate memory.
82337
82338 2005-09-05  Bruno Haible  <bruno@clisp.org>
82339
82340         * gnulib-tool (func_import): Fix comparison in handling of symbolic
82341         links.
82342
82343 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
82344
82345         * modules/size_max (Makefile.am): Add size_max.h
82346
82347 2005-09-04  Derek Price  <derek@ximbiot.com>
82348
82349         * gnulib-tool (func_import): Fix reversed $symbolic logic.
82350
82351 2005-09-03  Simon Josefsson  <jas@extundo.com>
82352
82353         * gnulib-tool: Fix typo.
82354
82355 2005-09-03  Simon Josefsson  <jas@extundo.com>
82356
82357         * config/srclist.txt: Add glibc bug 1293.
82358
82359 2005-09-03  Derek Price  <derek@ximbiot.com>
82360
82361         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
82362         From Larry Jones <lawrence.jones@ugs.com>.
82363
82364 2005-09-02  Simon Josefsson  <jas@extundo.com>
82365
82366         * modules/socklen: New file.
82367
82368 2005-09-02  Simon Josefsson  <jas@extundo.com>
82369
82370         * modules/havelib: New module.
82371
82372         * modules/gettext, modules/iconv, modules/lock, modules/readline:
82373         Use havelib.
82374
82375 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
82376
82377         Check for arithmetic overflow when calculating sizes, to prevent
82378         some buffer-overflow issues.  These patches are conservative, in the
82379         sense that when I couldn't determine whether an overflow was possible,
82380         I inserted a run-time check.
82381         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
82382         macros.
82383         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
82384         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
82385         (re_xnrealloc, re_x2nrealloc): New inline functions.
82386         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
82387         parse_bracket_exp):
82388         (build_equiv_class, build_charclass): Check for arithmetic overflow
82389         in size expression calculations.
82390         * lib/regex_internal.c (re_string_realloc_buffers):
82391         (build_wcs_upper_buffer, re_node_set_add_intersect):
82392         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
82393         (re_dfa_add_node, register_state): Likewise.
82394         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
82395         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
82396         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
82397         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
82398
82399 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
82400
82401         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
82402         m4/ulonglong.m4.  Problem reported by Martin Lambers.
82403
82404 2005-09-02  Bruno Haible  <bruno@clisp.org>
82405
82406         Support for lib vs. lib64 distinction on biarch platforms.
82407         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
82408         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
82409         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
82410
82411 2005-09-02  Bruno Haible  <bruno@clisp.org>
82412
82413         * gnulib-tool (import): In the other first-use case, provide defaults
82414         as well.
82415
82416 2005-09-02  Bruno Haible  <bruno@clisp.org>
82417
82418         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
82419         patches not yet found in the latest gettext release.
82420
82421 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
82422
82423         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
82424         to avoid a collision with bits/local_lim.h in glibc.
82425         All uses changed.  Problem reported by Dmitry V. Levin in
82426         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
82427
82428         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
82429         bugs in int versus size_t comparisons.
82430         (re_string_context_at): Fix bug where the code assumed that
82431         Idx is signed.
82432
82433         Use bool where appropriate.
82434         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
82435         All callers changed.
82436         (calc_eclosure_iter): Likewise, for ROOT arg.
82437         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
82438         (build_charclass_op): Likewise, for NON_MATCH arg.
82439         * lib/regex_internal.c (re_string_allocate, re_string_construct):
82440         (re_string_construct_common): Likewise, for ICASE arg.
82441         * lib/regexec.c (re_search_2_stub, re_search_stub):
82442         Likewise, for RET_LEN arg.
82443         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
82444         (set_regs): Likewise, for FL_BACKTRACK arg.
82445         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
82446         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
82447         (calc_eclosure_iter, parse_bracket_exp):
82448         Use bool for internal variables that are booleans.
82449         * lib/regexec.c (re_search_internal, check_matching,
82450         proceed_next_node):
82451         (set_regs, build_sifted_states, sift_states_bkref):
82452         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
82453         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82454         (find_collation_sequence_value):
82455         Likewise.
82456         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
82457         (re_node_set_compare):
82458         Return bool, not int. All callers changed.
82459         * lib/regexec.c (check_halt_node_context, check_dst_limits):
82460         (build_trtable, check_node_accept): Likewise.
82461         * lib/regex_internal.h: Include stdbool.h.
82462
82463         Fix bugs uncovered when converting to bool.
82464         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
82465         failure instead of charging ahead blindly.
82466         * lib/regex_internal.c (register_state): Likewise.
82467         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
82468         for freeing internal storage.
82469         (group_nodes_into_DFA_states): Use unsigned int, not int, for
82470         bitset pieces used as boolean, to avoid undefined behavior
82471         on hosts that do int overflow checking.
82472
82473 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
82474
82475         * config/srclist.txt: Add glibc bugs 1285-1287.
82476
82477 2005-09-01  Jim Meyering  <jim@meyering.net>
82478
82479         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
82480         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
82481         Require gl_STAT_MACROS, too.
82482
82483 2005-09-01  Bruno Haible  <bruno@clisp.org>
82484
82485         * gnulib-tool (import): In the first-use case, provide defaults.
82486
82487 2005-09-01  Bruno Haible  <bruno@clisp.org>
82488
82489         * gnulib-tool (func_import): Remove the .tmp files.
82490
82491 2005-09-01  Bruno Haible  <bruno@clisp.org>
82492
82493         * gnulib-tool (func_import): Fix handling of symbolic links.
82494
82495 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82496
82497         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
82498         old glibc regex code mishandles strings longer than 2**31 bytes.
82499         This patch fixes this when the regex code is used in gnulib
82500         (i.e., outside glibc).
82501
82502         This patch should not affect the use of the regex code inside
82503         glibc.  No doubt this problem also needs to be handled for glibc
82504         as well, but the result will be an incompatible change to the
82505         glibc ABI, and the old ABI will have to be supported too.  That
82506         can be the the subject for another patch.
82507
82508         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
82509         governing whether the rest of this patch is active.  By default,
82510         the macro is disabled and the patch has no effect.
82511         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
82512         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
82513         (struct re_pattern_buffer, re_search, re_search_2, re_match):
82514         (re_match_2, re_set_registers): Use the new types.
82515         * lib/regex_internal.h (Idx, re_hashval_t): New types.
82516         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
82517         New macros.
82518         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
82519         (re_string_context_at, bin_tree_t, re_dfastate_t):
82520         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
82521         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
82522         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
82523         (re_string_char_size_at, re_string_wchar_at):
82524         (re_string_elem_size_at):
82525         Use the new types and macros to port to 64-bit hosts.
82526         Use unsigned types for internal values, so that the code
82527         mostly works even for arrays larger than SSIZE_MAX.
82528         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
82529         (search_duplicated_node, calc_eclosure_iter, fetch_number):
82530         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
82531         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
82532         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
82533         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
82534         (calc_inveclosure, parse_dup_op, build_range_exp):
82535         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
82536         (fetch_number, create_token_tree, mark_opt_subexp):
82537         Likewise.
82538         * lib/regex_internal.c (re_string_construct_common,
82539         create_ci_newstate):
82540         (create_cd_newstate, re_string_allocate, re_string_construct):
82541         (re_string_realloc_buffers, build_wcs_upper_buffer):
82542         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82543         (re_string_reconstruct, re_string_peek_byte_case):
82544         (re_string_fetch_byte_case, re_string_context_at):
82545         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82546         (re_node_set_init_copy, re_node_set_add_intersect):
82547         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82548         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82549         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82550         (re_acquire_state, re_acquire_state_context, register_state):
82551         Likewise.
82552         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
82553         search_cur_bkref_entry):
82554         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
82555         (re_search_internal, re_search_2_stub, re_search_stub)
82556         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
82557         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
82558         (update_cur_sifted_state, check_dst_limits):
82559         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
82560         (check_subexp_limits, sift_states_bkref, merge_state_array):
82561         (check_subexp_matching_top, get_subexp, get_subexp_sub):
82562         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
82563         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82564         (expand_bkref_cache, check_node_accept_bytes):
82565         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
82566         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
82567         (acquire_init_state_context, check_halt_node_context):
82568         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
82569         (sift_states_backward, clean_state_log_if_needed):
82570         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
82571         (find_recover_state, transit_state_sb, transit_state_mb):
82572         (transit_state_bkref, build_trtable, match_ctx_clean):
82573         Likewise.
82574         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
82575         to work around an assumption that REG_MISSING is negative.
82576
82577         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
82578         (seek_collating_symbol_entry) [defined _LIBC]:
82579         (lookup_collation_sequence_value) [defined _LIBC]:
82580         (build_range_exp, build_collating_symbol) [defined _LIBC]:
82581         Use prototypes rather than old-style function definitions.
82582         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
82583         (transit_state_sb) [0]:
82584         (find_collation_sequence_value) [defined _LIBC]: Likewise.
82585
82586         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
82587         rm_eo.
82588
82589         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
82590         (optimize_subexps, lower_subexp):
82591         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
82592         since the signed shift might overflow.  Use 1u<<31 instead.
82593         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
82594         Likewise.
82595         * lib/regexec.c (check_dst_limits_calc_pos_1,
82596         check_subexp_matching_top): Likewise.
82597
82598         * lib/regcomp.c (optimize_subexps, lower_subexp):
82599         Use CHAR_BIT rather than 8, for clarity.
82600         * lib/regexec.c (check_dst_limits_calc_pos_1):
82601         (check_subexp_matching_top): Likewise.
82602         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
82603         have to worry about portability issues when shifting it left.
82604         Remove no-longer-needed test for table_size > 0.
82605         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
82606         in a word, as the resulting behavior is undefined.
82607         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
82608         in one case, a <= should have been an <, and in another case the
82609         whole test was missing.
82610         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
82611         the standard name CHAR_BIT.
82612         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
82613         this is not true on one's complement and signed-magnitude hosts.
82614
82615         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
82616         next_last_offset.
82617         (struct re_dfa_t): Remove unused member states_alloc.
82618         * lib/regcomp.c (init_dfa): Don't initialize unused members.
82619
82620 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82621
82622         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
82623         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
82624         and large-file glibc and in 32-bit large-file Solaris.
82625
82626 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82627
82628         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
82629         lengths fit in regoff_t; this isn't true if regoff_t is the same
82630         width as size_t.
82631         * lib/regex.c (re_search_internal): 5th arg is LAST_START
82632         (= START + RANGE) instead of RANGE.  This avoids overflow
82633         problems when regoff_t is the same width as size_t.
82634         All callers changed.
82635         (re_search_2_stub): Check for overflow when adding the
82636         sizes of the two strings.
82637         (re_search_stub): Check for overflow when adding START
82638         to RANGE; if it occurs, substitute the extreme value.
82639
82640 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82641
82642         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
82643
82644 2005-08-31  Jim Meyering  <jim@meyering.net>
82645
82646         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
82647         a pointer-to-const.
82648         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
82649         (register_state): Likewise.
82650         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
82651         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
82652         (group_nodes_into_DFAstates): Likewise.
82653
82654 2005-08-31  Jim Meyering  <jim@meyering.net>
82655
82656         * check-module: Add a FIXME comment.
82657
82658 2005-08-31  Eric Blake  <ebb9@byu.net>
82659
82660         * modules/unistd-safer (Files): Add unistd--.h.
82661         * modules/stdio-safer (Files): Add stdio--.h.
82662
82663 2005-08-31  Derek Price  <derek@ximbiot.com>
82664
82665         * lib/getdelim.c (getdelim): Return EOF on EOF.
82666         Reported by Larry Jones <lawrence.jones@ugs.com>.
82667
82668 2005-08-31  Bruno Haible  <bruno@clisp.org>
82669
82670         Avoid unnecessary diffs in the generated lib/Makefile.am.
82671         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
82672         the generated files.
82673         (func_import): Don't set cmd.
82674
82675 2005-08-31  Bruno Haible  <bruno@clisp.org>
82676
82677         * lib/strstr.c: Include <stddef.h>, for NULL.
82678         * lib/strcasestr.c: Likewise.
82679         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82680
82681 2005-08-31  Bruno Haible  <bruno@clisp.org>
82682
82683         * gnulib-tool: New option --macro-prefix.
82684         (func_import): Use macro_prefix.
82685         (import): Handle option --macro-prefix.
82686
82687 2005-08-31  Bruno Haible  <bruno@clisp.org>
82688
82689         * gnulib-tool (import): Rename most ac_* variables to cached_*.
82690         Also use new variables cached_lgpl, cached_libtool.
82691
82692 2005-08-31  Bruno Haible  <bruno@clisp.org>
82693
82694         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
82695         always instantiating them.
82696
82697 2005-08-31  Bruno Haible  <bruno@clisp.org>
82698
82699         * gnulib-tool (func_import): Read the previous cached settings
82700         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
82701         earlier added by gnulib but are now dropped. Warn when a gnulib file
82702         overwrites a non-gnulib file.
82703
82704 2005-08-31  Bruno Haible  <bruno@clisp.org>
82705
82706         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
82707         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
82708         projects that don't keep autogenerated files in CVS. Put into
82709         actioncmd only the specified modules, not the transitive closure.
82710
82711 2005-08-31  Bruno Haible  <bruno@clisp.org>
82712
82713         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
82714         Create directories that shall be filled.
82715         (import): Don't look for gl_* macros in configure.ac. Recurse across
82716         all directories containing a gnulib-cache.m4 files, if meaningful.
82717
82718 2005-08-31  Bruno Haible  <bruno@clisp.org>
82719
82720         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
82721         (import): Set seen_libtool when we see gl_LIBTOOL.
82722
82723 2005-08-31  Bruno Haible  <bruno@clisp.org>
82724
82725         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
82726         declaration macro definitions from generated gnulib.m4.
82727
82728 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
82729
82730         * lib/iconvme.h: Add prototype for iconv_alloc.
82731
82732 2005-08-29  Simon Josefsson  <jas@extundo.com>
82733
82734         * lib/iconvme.c: Fix errno.
82735
82736 2005-08-29  Bruno Haible  <bruno@clisp.org>
82737
82738         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
82739         that it works when the directory contains spaces.
82740
82741 2005-08-29  Bruno Haible  <bruno@clisp.org>
82742
82743         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
82744
82745 2005-08-29  Bruno Haible  <bruno@clisp.org>
82746
82747         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
82748         Emit more advice.
82749
82750 2005-08-29  Bruno Haible  <bruno@clisp.org>
82751         and Stepan Kasal  <kasal@ucw.cz>
82752
82753         * check-module: If more parameters are given, check each of them
82754         separately; add more exceptions, as noted by Jim Meyering.
82755         (check_module): New procedure.
82756         (%exempt_header): Now contains all exceptions.
82757
82758 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
82759
82760         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
82761
82762 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
82763
82764         * lib/iconvme.c: Split iconv_string into iconv_alloc.
82765
82766 2005-08-28  Bruno Haible  <bruno@clisp.org>
82767
82768         * m4/gnulib-tool.m4: New file.
82769
82770 2005-08-27  Jim Meyering  <jim@meyering.net>
82771
82772         * modules/unistd-safer (Files): Add pipe-safer.c.
82773         * modules/fcntl-safer (Files): Add creat-safer.c.
82774
82775 2005-08-27  Jim Meyering  <jim@meyering.net>
82776
82777         * m4/stdlib-safer.m4: New file.  From coreutils.
82778         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
82779         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
82780         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
82781         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
82782         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
82783
82784 2005-08-27  Jim Meyering  <jim@meyering.net>
82785
82786         * lib/fopen-safer.c: Merge minor changes from coreutils.
82787         * lib/dup-safer.c: Likewise.
82788         * lib/fd-safer.c: Likewise.
82789
82790         Merge from coreutils.
82791         * lib/stdio--.h: New file.
82792         * lib/stdlib--.h: New file.
82793         * lib/mkstemp-safer.c: New file.
82794
82795         GNU tar needs these.
82796         * lib/pipe-safer.c: New file.
82797         * lib/creat-safer.c: New file.
82798         * lib/fcntl--.h (creat): Define to creat_safer.
82799         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
82800         * lib/unistd--.h (pipe): Define to pipe_safer.
82801         * lib/unistd-safer.h: Declare pipe_safer.
82802
82803 2005-08-26  Simon Josefsson  <jas@extundo.com>
82804
82805         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
82806         Haible <bruno@clisp.org>.
82807
82808 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
82809
82810         * lib/regex_internal.h: Remove all references to
82811         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
82812         or better.
82813         (bitset_not, bitset_merge, bitset_not_merge):
82814         (bitset_mask, re_string_allocate, re_string_construct):
82815         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
82816         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
82817         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
82818         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
82819         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82820         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82821         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
82822         (re_acquire_state_context):
82823         Remove unnecessary forward decls.
82824         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
82825         Put __attribute at function definition,
82826         now that the function decl has been removed.
82827         * lib/regex_internal.c (re_string_peek_byte_case):
82828         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
82829         Likewise.
82830
82831 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
82832
82833         * m4/regex.m4: Add AC_PREREQ(2.50).
82834         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
82835
82836 2005-08-25  Simon Josefsson  <jas@extundo.com>
82837
82838         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
82839         __fsetlocking.
82840
82841 2005-08-25  Simon Josefsson  <jas@extundo.com>
82842
82843         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
82844         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
82845         GLIBC specific code.
82846
82847 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82848
82849         Make regex safe for g++.  This fixes one real bug (an "err"
82850         that should have been "*err").  g++ problem reported by
82851         Sam Steingold.
82852         * lib/regex_internal.h (re_calloc): New macro, consistent with
82853         re_malloc etc.  All callers of calloc changed to use re_calloc.
82854         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
82855         not int.  All callers changed.
82856         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
82857         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
82858         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
82859         (find_recover_state): Change "err" to "*err"; this fixes what
82860         appears to be a real bug.
82861         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
82862         versus int.
82863
82864 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82865
82866         * modules/regex (Depends-on): Add malloc, since the code
82867         assumes that !malloc(0) means failure.
82868
82869 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82870
82871         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
82872
82873         alloca modernization/simplification for regex.
82874         * lib/regex.c: Remove portability cruft for alloca.  This no longer
82875         needs to be at the start of the file, and can be moved into
82876         regex_internal.h and simplified.
82877         * lib/regex_internal.h: Include <alloca.h>.
82878         (__libc_use_alloca) [!defined _LIBC]: New macro.
82879         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
82880         now works outside glibc.
82881
82882 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82883
82884         * config/srclist.txt: Add glibc bugs 1241, 1245.
82885
82886 2005-08-25  Jim Meyering  <jim@meyering.net>
82887
82888         * lib/open-safer.c: Include <config.h>.
82889         Otherwise, we'd lose LARGEFILE support in any file using
82890         e.g. "fcntl--.h"
82891
82892 2005-08-25  Bruno Haible  <bruno@clisp.org>
82893
82894         * m4/minmax.m4: Require autoconf 2.52.
82895         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
82896         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
82897         alternatives of translit over the alphabet.
82898         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
82899
82900 2005-08-24  Simon Josefsson  <jas@extundo.com>
82901
82902         * tests/test-getpass.c: New file.
82903
82904 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82905
82906         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
82907         for GNU regex features.
82908
82909 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82910
82911         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
82912         * lib/regex.h (regerror): Likewise.
82913
82914         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
82915         requires this.  (The code never needed it.)
82916
82917         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
82918         All uses of recently-renamed identifiers changed to use the new,
82919         POSIX-compliant names.  The code will build and run just fine
82920         without these changes, but it's better to eat our own dog food
82921         and use the standard-conforming names.
82922
82923         * lib/regex.h: Fix a multitude of POSIX name space violations.
82924         These changes have an effect only for programs that define
82925         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
82926         do not change anything for programs compiled in the normal way.
82927         Also, there is no effect on the ABI.
82928
82929         (_REGEX_SOURCE): New macro.
82930         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
82931         defined and _GNU_SOURCE is not; this fixes a name space violation.
82932
82933         Rename the following macros to obey POSIX requirements.
82934         The old names are still visible as macros if _REGEX_SOURCE is defined.
82935         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
82936         RE_BACKSLASH_ESCAPE_IN_LISTS.
82937         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
82938         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
82939         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
82940         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
82941         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
82942         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
82943         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
82944         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
82945         (REG_INTERVALS): renamed from RE_INTERVALS.
82946         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
82947         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
82948         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
82949         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
82950         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
82951         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
82952         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
82953         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
82954         RE_UNMATCHED_RIGHT_PAREN_ORD.
82955         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
82956         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
82957         (REG_DEBUG): renamed from RE_DEBUG.
82958         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
82959         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
82960         unusual, since we can't clash with the POSIX REG_ICASE.
82961         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
82962         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
82963         (REG_NO_SUB): renamed from RE_NO_SUB.
82964         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
82965         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
82966         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
82967         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
82968         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
82969         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
82970         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
82971         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
82972         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
82973         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
82974         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
82975         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
82976         RE_SYNTAX_POSIX_MINIMAL_BASIC.
82977         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
82978         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
82979         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
82980         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
82981         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
82982         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
82983         (REG_FIXED): Renamed from REGS_FIXED.
82984         (REG_NREGS): Renamed from RE_NREGS.
82985
82986         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
82987         of other REG_* macros, since POSIX says the user is allowed to
82988         #undef these macros selectively.
82989
82990         (reg_errcode_t): Update comment stating what other tables need
82991         to be consistent.
82992
82993         Rename the following enum values to obey POSIX requirements.
82994         The old names are still visible as macros.
82995         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
82996         is not defined, since GNU is supposed to be a superset of POSIX as
82997         much as possible, and since we want reg_errcode_t to be a signed
82998         type for implementation consistency.
82999         (_REG_NOERROR): Renamed from REG_NOERROR.
83000         (_REG_NOMATCH): Renamed from REG_NOMATCH.
83001         (_REG_BADPAT): Renamed from REG_BADPAT.
83002         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
83003         (_REG_ECTYPE): Renamed from REG_ECTYPE.
83004         (_REG_EESCAPE): Renamed from REG_EESCAPE.
83005         (_REG_ESUBREG): Renamed from REG_ESUBREG.
83006         (_REG_EBRACK): Renamed from REG_EBRACK.
83007         (_REG_EPAREN): Renamed from REG_EPAREN.
83008         (_REG_EBRACE): Renamed from REG_EBRACE.
83009         (_REG_BADBR): Renamed from REG_BADBR.
83010         (_REG_ERANGE): Renamed from REG_ERANGE.
83011         (_REG_ESPACE): Renamed from REG_ESPACE.
83012         (_REG_BADRPT): Renamed from REG_BADRPT.
83013         (_REG_EEND): Renamed from REG_EEND.
83014         (_REG_ESIZE): Renamed from REG_ESIZE.
83015         (_REG_ERPAREN): Renamed from REG_ERPAREN.
83016         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
83017         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
83018         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
83019         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
83020
83021         (_REG_RE_NAME, _REG_RM_NAME): New macros.
83022         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
83023         changed.  But support the old name if the new one is not defined
83024         and if _REGEX_SOURCE.
83025
83026         Change the following member names in struct re_pattern_buffer.
83027         The old names are still supported if !_REGEX_SOURCE.
83028         The new names are always supported, regardless of _REGEX_SOURCE.
83029         (re_buffer): Renamed from buffer.
83030         (re_allocated): Renamed from allocated.
83031         (re_used): Renamed from used.
83032         (re_syntax): Renamed from syntax.
83033         (re_fastmap): Renamed from fastmap.
83034         (re_translate): Renamed from translate.
83035         (re_can_be_null): Renamed from can_be_null.
83036         (re_regs_allocated): Renamed from regs_allocated.
83037         (re_fastmap_accurate): Renamed from fastmap_accurate.
83038         (re_no_sub): Renamed from no_sub.
83039         (re_not_bol): Renamed from not_bol.
83040         (re_not_eol): Renamed from not_eol.
83041         (re_newline_anchor): Renamed from newline_anchor.
83042
83043         Change the following member names in struct re_registers.
83044         The old names are still supported if !_REGEX_SOURCE.
83045         The new names are always supported, regardless of _REGEX_SOURCE.
83046         (rm_num_regs): Renamed from num_regs.
83047         (rm_start): Renamed from start.
83048         (rm_end): Renamed from end.
83049
83050         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
83051         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
83052         Prepend __ to parameter names.
83053
83054         Undo yesterday's changes.
83055
83056 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
83057
83058         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
83059         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
83060         lib/regex.c.
83061
83062 2005-08-24  Jim Meyering  <jim@meyering.net>
83063
83064         Sync from coreutils.
83065         * m4/fcntl-safer.m4: New file.
83066
83067         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
83068         and object files for this module.
83069
83070 2005-08-24  Jim Meyering  <jim@meyering.net>
83071
83072         Sync from coreutils.
83073         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
83074
83075 2005-08-24  Jim Meyering  <jim@meyering.net>
83076
83077         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
83078         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
83079
83080 2005-08-24  Jim Meyering  <jim@meyering.net>
83081
83082         * modules/fcntl-safer: New module.
83083         * modules/fts (Depends-on): Add fcntl-safer.
83084         * MODULES.html.sh (File descriptor based Input/Output):
83085         Add fcntl-safer.
83086
83087 2005-08-24  Bruno Haible  <bruno@clisp.org>
83088
83089         Support for unit test modules.
83090         * modules/README: Mention tests modules.
83091         * modules/TEMPLATE-TESTS: New file.
83092         * gnulib-tool: New options --extract-tests-module, --with-tests and
83093         --tests-base (unused for the moment).
83094         (testsbase, inctests): New variables.
83095         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
83096         (func_verify_module): Exclude TEMPLATE-TESTS.
83097         (func_verify_nontests_module, func_verify_tests_module): New functions.
83098         (func_get_dependencies): Add implicit dependency for tests modules.
83099         (func_get_tests_module): New function.
83100         (func_modules_transitive_closure): When --with-tests was specified,
83101         include the unit tests as well, unless explicitly avoided.
83102         (func_emit_lib_Makefile_am): Ignore the tests modules here.
83103         (func_emit_tests_Makefile_am): New function.
83104         (func_create_testdir): When --with-tests was specified, emit a
83105         tests/ directory.
83106         * MODULES.html.sh (Future developments): Update.
83107
83108 2005-08-24  Bruno Haible  <bruno@clisp.org>
83109
83110         * modules/tls-tests: New file.
83111         * tests/test-tls.c: New file, from GNU gettext.
83112
83113 2005-08-24  Bruno Haible  <bruno@clisp.org>
83114
83115         * modules/lock-tests: New file.
83116         * tests/test-lock.c: New file, from GNU gettext.
83117
83118 2005-08-24  Bruno Haible  <bruno@clisp.org>
83119
83120         * lib/lock.h: Add multiple inclusion guard.
83121         * lib/tls.h: Add multiple inclusion guard.
83122
83123 2005-08-24  Bruno Haible  <bruno@clisp.org>
83124
83125         * gnulib-tool: Add support for the --aux-dir option to
83126         --create-testdir, --create-megatestdir, --test, --megatest.
83127         (func_create_testdir, func_create_megatestdir): Optionally emit a
83128         AC_CONFIG_AUX_DIR directive.
83129         (create-testdir, create-megatestdir, test, megatest): Provide a
83130         default value for $auxdir.
83131
83132 2005-08-24  Bruno Haible  <bruno@clisp.org>
83133
83134         * gnulib-tool (import): Use compound statement instead of subshell
83135         where possible.
83136
83137 2005-08-24  Bruno Haible  <bruno@clisp.org>
83138
83139         * gnulib-tool (import): Change --aux-dir default to "build-aux".
83140
83141 2005-08-24  Bruno Haible  <bruno@clisp.org>
83142
83143         * gnulib-tool (func_version): Update.
83144
83145 2005-08-24  Bruno Haible  <bruno@clisp.org>
83146
83147         * gnulib-tool (func_import, func_create_testdir,
83148         func_create_megatestdir): Quote all autoconf macro arguments.
83149
83150 2005-08-24  Bruno Haible  <bruno@clisp.org>
83151
83152         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
83153         option --force, because --force causes the aclocal.m4 of each
83154         subdirectory to be newer than the corresponding config.h.in.
83155
83156 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83157
83158         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
83159         All contents moved to gl_REGEX.
83160         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
83161         assume that it does.
83162
83163 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83164
83165         * lib/regex.h (REG_NOSYS)
83166         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
83167         Define, since POSIX requires it as of 2001.
83168         (_REG_ENOSYS)
83169         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
83170         New private symbol, used to keep the enum signed in all cases.
83171         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
83172         Youngman in
83173         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
83174
83175         * lib/regex_internal.c (re_string_skip_chars, register_state):
83176         (calc_state_hash):
83177         Remove forward decls; no longer needed now that we use prototypes.
83178         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
83179         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
83180         (clean_state_log_if_needed): Likewise.
83181
83182 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83183
83184         * config/srclist.txt: Add glibc bugs 1231-1233.
83185
83186 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83187
83188         Fix problems reported by Sam Steingold in
83189         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
83190         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
83191         assumed that reg_errcode_t is a signed type, which is not
83192         necessarily true if _XOPEN_SOURCE is not defined.
83193         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
83194         since some compilers warn about it otherwise.
83195
83196 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83197
83198         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
83199         (init_word_char, create_initial_state, duplicate_node_closure):
83200         (fetch_token, peek_token_bracket, build_range_exp):
83201         (build_collating_symbol): Remove forward decls; no longer needed
83202         now that we use prototypes.
83203
83204         * lib/regcomp.c:
83205         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
83206         (re_compile_fastmap_iter, regcomp, regerror, regfree):
83207         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
83208         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
83209         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
83210         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
83211         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
83212         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
83213         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
83214         (build_range_exp, build_collating_symbol, parse_bracket_exp):
83215         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
83216         (build_charclass, build_charclass_op, fetch_number, create_tree):
83217         (create_token_tree, mark_opt_subexp, duplicate_tree):
83218         Use prototypes rather than old-style definitions.
83219
83220         * lib/regex_internal.c:
83221         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
83222         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
83223         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
83224         (re_string_reconstruct, re_string_peek_byte_case):
83225         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
83226         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
83227         (re_node_set_init_copy, re_node_set_add_intersect):
83228         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83229         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83230         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
83231         (re_acquire_state, re_acquire_state_context, register_state):
83232         (create_ci_newstate, create_cd_newstate, free_state):
83233         Likewise.
83234         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
83235         re_search_2):
83236         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
83237         (re_search_internal, prune_impossible_nodes):
83238         (acquire_init_state_context, check_matching, static):
83239         (check_halt_node_context, check_halt_state_context, proceed_next_node):
83240         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
83241         (update_regs, sift_states_backward, build_sifted_states):
83242         (clean_state_log_if_needed, merge_state_array):
83243         (update_cur_sifted_state, add_epsilon_src_nodes):
83244         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
83245         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
83246         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
83247         (find_recover_state, check_subexp_matching_top, transit_state_mb):
83248         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
83249         (check_arrival, check_arrival_add_next_nodes):
83250         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
83251         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
83252         (check_node_accept_bytes, check_node_accept, extend_buffers):
83253         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
83254         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
83255         (sift_ctx_init):
83256         Likewise.
83257
83258         * lib/regex_internal.h:
83259         (re_string_allocate, re_string_construct, re_string_reconstruct):
83260         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
83261         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
83262         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
83263         (re_string_context_at, re_string_peek_byte_case):
83264         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
83265         is defined, since we now use prototypes always.
83266
83267         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
83268         C89 or better.  All uses removed.
83269
83270 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83271
83272         * config/srclist.txt: Add glibc bugs 1220-1227.
83273
83274 2005-08-20  Jim Meyering  <jim@meyering.net>
83275
83276         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
83277         of unused local, dfa.
83278
83279 2005-08-20  Bruno Haible  <bruno@clisp.org>
83280
83281         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
83282
83283 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83284
83285         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
83286         (re_node_set_insert_last, re_dfa_add_node):
83287         Rename local variables to avoid GCC shadowing warnings.
83288
83289 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83290
83291         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
83292         [defined lint]: Suppress bogus uninitialized-variable warnings.
83293
83294         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
83295         and let the caller return REG_ESPACE if out of space.  This
83296         removes an uninitialied-variable warning with GCC 4.0.1, and also
83297         avoids taking the address of a local variable.  All callers
83298         changed.
83299
83300 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83301
83302         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
83303         $LIBCSRC/posix/regexec.c.
83304         Add glibc bug 1217 for regcomp.c.
83305
83306 2005-08-19  Jim Meyering  <jim@meyering.net>
83307
83308         * lib/regexec.c (proceed_next_node): Redo local variables to
83309         avoid GCC shadowing warnings.
83310
83311 2005-08-18  Bruno Haible  <bruno@clisp.org>
83312
83313         * lib/strstr.c (strstr): Fix return value in multibyte case.
83314         * lib/strcasestr.c (strcasestr): Likewise.
83315
83316 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
83317
83318         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
83319
83320 2005-08-17  Jim Meyering  <jim@meyering.net>
83321
83322         Make the %s format (seconds since the epoch) work for a negative
83323         number and when used with a zero-padded field width, e.g. %015s.
83324
83325         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
83326         label so that it precedes the code to set `digits'.  Otherwise,
83327         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
83328         print `00-22'.  Now, it prints `-0022', as it should.
83329
83330 2005-08-17  Bruno Haible  <bruno@clisp.org>
83331
83332         * modules/strstr (Files): Add m4/mbrtowc.m4.
83333         (Depends-on): Add mbuiter.
83334
83335 2005-08-17  Bruno Haible  <bruno@clisp.org>
83336
83337         * modules/strcasestr: New file.
83338         * MODULES.html.sh (String handling, based on ANSI C 89): Add
83339         strcasestr.
83340
83341 2005-08-17  Bruno Haible  <bruno@clisp.org>
83342
83343         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
83344
83345 2005-08-17  Bruno Haible  <bruno@clisp.org>
83346
83347         * modules/mbuiter: New file.
83348         * MODULES.html.sh (Extended multibyte and wide character utilities):
83349         Add mbuiter.
83350
83351 2005-08-17  Bruno Haible  <bruno@clisp.org>
83352
83353         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
83354         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
83355
83356 2005-08-17  Bruno Haible  <bruno@clisp.org>
83357
83358         * m4/strcasestr.m4: New file.
83359
83360 2005-08-17  Bruno Haible  <bruno@clisp.org>
83361
83362         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
83363         * lib/strstr.c: Completely rewritten, with multibyte locale support.
83364
83365 2005-08-17  Bruno Haible  <bruno@clisp.org>
83366
83367         * lib/strcasestr.h: New file.
83368         * lib/strcasestr.c: New file.
83369
83370 2005-08-17  Bruno Haible  <bruno@clisp.org>
83371
83372         * lib/strcasecmp.c: Use mbuiter.h.
83373
83374 2005-08-17  Bruno Haible  <bruno@clisp.org>
83375
83376         * lib/mbuiter.h: New file.
83377
83378 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
83379
83380         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
83381         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
83382         and gl_GETOPT are both invoked via different paths (as happens
83383         with GNU tar CVS because it uses both argp and getopt), the former
83384         wins.
83385
83386 2005-08-16  Bruno Haible  <bruno@clisp.org>
83387
83388         * modules/tls: New file.
83389         * MODULES.html.sh (Multithreading): Add tls.
83390
83391 2005-08-16  Bruno Haible  <bruno@clisp.org>
83392
83393         * modules/strnlen1: New file.
83394         * MODULES.html.sh (String handling): Add strnlen1.
83395
83396 2005-08-16  Bruno Haible  <bruno@clisp.org>
83397
83398         * modules/strcase (Files): Add m4/mbrtowc.m4.
83399         (Depends-on): Add strnlen1, mbchar.
83400
83401 2005-08-16  Bruno Haible  <bruno@clisp.org>
83402
83403         * modules/mbiter: New file.
83404         * MODULES.html.sh (Extended multibyte and wide character utilities):
83405         Add mbiter.
83406
83407 2005-08-16  Bruno Haible  <bruno@clisp.org>
83408
83409         * modules/mbfile: New file.
83410         * MODULES.html.sh (Extended multibyte and wide character utilities):
83411         Add mbfile.
83412
83413 2005-08-16  Bruno Haible  <bruno@clisp.org>
83414
83415         * modules/mbchar: New file.
83416         * MODULES.html.sh (Extended multibyte and wide character utilities):
83417         New section.
83418
83419 2005-08-16  Bruno Haible  <bruno@clisp.org>
83420
83421         * m4/tls.m4: New file, from GNU gettext.
83422
83423 2005-08-16  Bruno Haible  <bruno@clisp.org>
83424
83425         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
83426         always.
83427         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
83428
83429 2005-08-16  Bruno Haible  <bruno@clisp.org>
83430
83431         * m4/mbiter.m4: New file.
83432
83433 2005-08-16  Bruno Haible  <bruno@clisp.org>
83434
83435         * m4/mbfile.m4: New file.
83436
83437 2005-08-16  Bruno Haible  <bruno@clisp.org>
83438
83439         * m4/mbchar.m4: New file.
83440
83441 2005-08-16  Bruno Haible  <bruno@clisp.org>
83442
83443         * lib/tls.h: New file, from GNU gettext.
83444         * lib/tls.c: New file, from GNU gettext.
83445
83446 2005-08-16  Bruno Haible  <bruno@clisp.org>
83447
83448         * lib/strnlen1.h: New file.
83449         * lib/strnlen1.c: New file.
83450
83451 2005-08-16  Bruno Haible  <bruno@clisp.org>
83452
83453         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
83454         (mbi_init): Update.
83455         (mbi_avail, mbi_advance): Let the iteration end before the terminating
83456         NUL byte, not after it.
83457
83458 2005-08-16  Bruno Haible  <bruno@clisp.org>
83459
83460         * lib/strcase.h (strcasecmp): Add note in comments.
83461         * lib/strncasecmp.c: Use code from strcasecmp.c.
83462         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
83463         (strcasecmp): Work correctly in multibyte locales.
83464
83465 2005-08-16  Bruno Haible  <bruno@clisp.org>
83466
83467         * lib/mbiter.h: New file.
83468
83469 2005-08-16  Bruno Haible  <bruno@clisp.org>
83470
83471         * lib/mbfile.h: New file.
83472
83473 2005-08-16  Bruno Haible  <bruno@clisp.org>
83474
83475         * lib/mbchar.h: New file.
83476         * lib/mbchar.c: New file.
83477
83478 2005-08-16  Bruno Haible  <bruno@clisp.org>
83479
83480         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
83481         the valid ones. Makes the comparison operations transitive:
83482         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
83483         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
83484
83485 2005-08-15  Simon Josefsson  <jas@extundo.com>
83486
83487         * modules/ssize_t (License): Change to 'unlimited'.
83488
83489         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
83490
83491 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
83492
83493         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
83494         Add comments for each pending glibc patch.
83495
83496 2005-08-15  Bruno Haible  <bruno@clisp.org>
83497
83498         * lib/regex.h (__restrict_arr): Don't define to __restrict if
83499         __cplusplus is defined.
83500
83501 2005-08-14  Jim Meyering  <jim@meyering.net>
83502
83503         Sync from coreutils.
83504
83505         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
83506         Use the hash-table-based cycle-detection code not just when
83507         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
83508         Reported by James Youngman in
83509         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
83510         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
83511         FTS_TIGHT_CYCLE_CHECK.
83512         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
83513         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
83514         once again.
83515         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
83516         * lib/fts.c (fd_safer): Remove decl.
83517         Include fcntl--.h rather than unistd-safer.h
83518         (fts_safe_changedir): Don't call fd_safer; no longer needed
83519         now that we include fcntl--.h.
83520
83521 2005-08-12  Simon Josefsson  <jas@extundo.com>
83522
83523         * modules/getndelim2: Use ssize_t module.
83524         * modules/getnline: Likewise.
83525         * modules/safe-read: Likewise.
83526         * modules/xreadlink: Likewise.
83527
83528         * modules/ssize_t: New file.
83529
83530 2005-08-12  Simon Josefsson  <jas@extundo.com>
83531
83532         * m4/readline.m4: Look for termcap, curses or ncurses if required.
83533
83534 2005-08-12  Simon Josefsson  <jas@extundo.com>
83535
83536         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83537         ssize_t.
83538
83539 2005-08-12  Simon Josefsson  <jas@extundo.com>
83540
83541         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
83542         readline, getdelim and check_version.
83543         (Support for systems lacking ISO C 99: Sizes of integer types):
83544         Add size_max.
83545
83546 2005-08-12  Bruno Haible  <bruno@clisp.org>
83547
83548         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
83549
83550 2005-08-11  Simon Josefsson  <jas@extundo.com>
83551
83552         * modules/readline: New file.
83553
83554         * modules/strnlen (Files): Add strnlen.h.
83555
83556 2005-08-11  Simon Josefsson  <jas@extundo.com>
83557
83558         * m4/readline.m4: New file.
83559
83560 2005-08-11  Simon Josefsson  <jas@extundo.com>
83561
83562         * lib/readline.h, readline.c: New file.
83563
83564 2005-08-11  Simon Josefsson  <jas@extundo.com>
83565
83566         * doc/gnulib.texi (Initial import, Finishing touches): Mention
83567         gl_AVOID.
83568
83569 2005-08-11  Bruno Haible  <bruno@clisp.org>
83570
83571         * lib/strnlen.h (strnlen): Change parameter name to match comment.
83572
83573 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
83574
83575         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
83576
83577 2005-08-10  Simon Josefsson  <jas@extundo.com>
83578
83579         * tests/test-iconvme.c: New file.
83580
83581 2005-08-10  Simon Josefsson  <jas@extundo.com>
83582
83583         * m4/strnlen.m4: New file.
83584
83585         * m4/strndup.m4: Don't check for strnlen declaration, done in
83586         strnlen.m4.
83587
83588 2005-08-10  Simon Josefsson  <jas@extundo.com>
83589
83590         * lib/strndup.c: Use strnlen.h.
83591
83592         * lib/strnlen.h: New file.
83593
83594 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83595
83596         * README: Typos.
83597
83598 2005-08-02  Simon Josefsson  <jas@extundo.com>
83599
83600         * modules/readline: New file.
83601
83602 2005-08-02  Simon Josefsson  <jas@extundo.com>
83603
83604         * modules/getdelim: New file.
83605
83606         * modules/getline: Rewrite, don't use getndelim2.
83607
83608 2005-08-02  Simon Josefsson  <jas@extundo.com>
83609
83610         * m4/getline.m4: Separate out getdelim stuff into separate module.
83611
83612         * m4/getdelim.m4: New file.
83613
83614 2005-08-02  Simon Josefsson  <jas@extundo.com>
83615
83616         * lib/getline.h, getline.c: Rewrite.
83617
83618         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
83619
83620 2005-07-31  Bruno Haible  <bruno@clisp.org>
83621
83622         * lib/lock.h (gl_lock_initializer): New macro.
83623         (gl_lock_define_initialized): Use it.
83624         (gl_rwlock_initializer): New macro.
83625         (gl_rwlock_define_initialized): Use it.
83626         (gl_recursive_lock_initializer): New macro.
83627         (gl_recursive_lock_define_initialized): Use it.
83628
83629 2005-07-30  Karl Berry  <karl@gnu.org>
83630
83631         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
83632         Report from Ben Pfaff, regarding getopt.
83633
83634 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
83635
83636         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
83637         normal way.
83638         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
83639         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
83640         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
83641         (gl_GETOPT): Use the new macros.  Most of the implementation
83642         is moved to the new macros.  This is for programs like Emacs
83643         that don't want all the functionality of gl_GETOPT.
83644
83645 2005-07-26  Bruno Haible  <bruno@clisp.org>
83646
83647         * m4/lock.m4: Update from GNU gettext.
83648
83649 2005-07-26  Bruno Haible  <bruno@clisp.org>
83650
83651         * lib/lock.h: Update from GNU gettext.
83652         * lib/lock.c: Update from GNU gettext.
83653
83654 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
83655
83656         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
83657         obsolescent AC_TRY_RUN.  Include the default includes files, for
83658         'exit'.
83659
83660 2005-07-24  Bruno Haible  <bruno@clisp.org>
83661
83662         * modules/visibility: New file.
83663         * MODULES.html.sh (Misc): Add visibility.
83664
83665 2005-07-24  Bruno Haible  <bruno@clisp.org>
83666
83667         * m4/visibility.m4: New file.
83668
83669 2005-07-24  Bruno Haible  <bruno@clisp.org>
83670
83671         * doc/visibility.texi: New file.
83672
83673 2005-07-22  Bruno Haible  <bruno@clisp.org>
83674
83675         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
83676         $(ALLOCA_H), redundant through BUILT_SOURCES.
83677         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
83678         redundant through BUILT_SOURCES.
83679         * modules/byteswap (Makefile.am): Remove explicit dependency on
83680         $(BYTESWAP_H), redundant through BUILT_SOURCES.
83681         * modules/fnmatch (Makefile.am): Remove explicit dependency on
83682         $(FNMATCH_H), redundant through BUILT_SOURCES.
83683         * modules/getopt (Makefile.am): Remove explicit dependency on
83684         $(GETOPT_H), redundant through BUILT_SOURCES.
83685         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
83686         redundant through BUILT_SOURCES.
83687         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
83688         redundant through BUILT_SOURCES.
83689         * modules/stdbool (Makefile.am): Remove explicit dependency on
83690         $(STDBOOL_H), redundant through BUILT_SOURCES.
83691         * modules/stdint (Makefile.am): Remove explicit dependency on
83692         $(STDINT_H), redundant through BUILT_SOURCES.
83693         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
83694         Remove explicit dependency on $(SYSEXITS_H).
83695         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
83696
83697 2005-07-18  Simon Josefsson  <jas@extundo.com>
83698
83699         * lib/check-version.c (check_version): Accept identical versions too.
83700
83701 2005-07-18  Bruno Haible  <bruno@clisp.org>
83702
83703         * modules/lock: New file.
83704         * MODULES.html.sh (Multithreading): New section.
83705
83706 2005-07-18  Bruno Haible  <bruno@clisp.org>
83707
83708         * m4/lock.m4: New file, from GNU gettext.
83709
83710 2005-07-18  Bruno Haible  <bruno@clisp.org>
83711
83712         * lib/lock.h: New file, from GNU gettext.
83713         * lib/lock.c: New file, from GNU gettext.
83714
83715 2005-07-18  Bruno Haible  <bruno@clisp.org>
83716
83717         * lib/lock.h (gl_once_t): New type.
83718         (gl_once_define, gl_once): New macros.
83719         * lib/lock.c (fresh_once): New variable.
83720         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
83721         functions.
83722
83723 2005-07-16  Simon Josefsson  <jas@extundo.com>
83724
83725         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
83726         workaround, suggested by Bruno.
83727
83728 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83729
83730         * modules/xalloc (Depends-on): Add xalloc-die.
83731         * modules/xvasprintf (Depends-on): Add xalloc-die.
83732
83733 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83734
83735         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
83736         with a minor change.
83737
83738 2005-07-15  Bruno Haible  <bruno@clisp.org>
83739
83740         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
83741         When using lib/poll.c, define poll as rpl_poll.
83742
83743 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
83744
83745         * modules/argp (Depends-on): Remove unlocked-io.
83746
83747 2005-07-14  Derek Price  <derek@ximbiot.com>
83748
83749         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
83750         for glob symlink bug.
83751
83752 2005-07-14  Bruno Haible  <bruno@clisp.org>
83753
83754         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
83755         Instead, test for *_unlocked function declarations directly.
83756
83757 2005-07-11  Simon Josefsson  <jas@extundo.com>
83758
83759         * modules/size_max: New file.
83760
83761         * modules/xsize: Depend on size_max module for size_max.m4.
83762
83763 2005-07-11  Simon Josefsson  <jas@extundo.com>
83764
83765         * lib/size_max.h: New file.
83766
83767 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
83768
83769         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
83770         copyright symbol and the year.
83771         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
83772         (version_etc_va): Use parameterized copyright notice.
83773         Reword to conform to the current GNU coding standards.
83774
83775 2005-07-11  Karl Berry  <karl@gnu.org>
83776
83777         * doc/gnulib.texi (Quoting): new node.
83778         (Initial import): more info, from Patrice.
83779
83780 2005-07-11  Bruno Haible  <bruno@clisp.org>
83781
83782         * gnulib-tool (func_usage): Document option --avoid.
83783         (Command line options): Handle --avoid.
83784         (func_acceptable): New function.
83785         (func_modules_transitive_closure): Use it.
83786
83787 2005-07-11  Bruno Haible  <bruno@clisp.org>
83788
83789         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
83790         Reported by Jim Meyering.
83791
83792 2005-07-10  Bruno Haible  <bruno@clisp.org>
83793
83794         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
83795         Needed when size_t is smaller than 'unsigned int'.
83796         Reported by Paul Eggert.
83797
83798 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83799
83800         * modules/argp (Depends-on): Add unlocked-io
83801
83802 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83803
83804         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
83805         block of defines.
83806
83807 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
83808
83809         * config/srclist.txt: Comment out regcomp.c, since we have a porting
83810         fix now.
83811
83812 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
83813         and Paul Eggert  <eggert@cs.ucla.edu>
83814
83815         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
83816         in wint_t, not wchar_t.  Remove now-unnecessary cast.
83817
83818 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83819
83820         * modules/regex (Files): Add lib/regex_internal.c,
83821         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
83822         (Depends-on): Add extensions.
83823         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
83824
83825 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83826
83827         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
83828         pathconf.
83829         * m4/same.m4 (gl_SAME): Likewise.
83830         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
83831
83832         * m4/regex.m4: Adjust to new libc regex implementation.
83833         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
83834         all the .c and .h parts of (the new) regex.
83835         Quote the m4 stuff better.
83836         Check for RE_ICASE bug of old gnulib.
83837         Check for REG_STARTEND of recent libc.
83838         Rename local variables from jm_* to gl_*.
83839         Quote operand of "test -f".
83840         Say "recent enough" version of libc, not "version 2".
83841         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
83842         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
83843         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
83844         Remove check for btowc, isascii.
83845         Require AM_LANGINFO_CODESET.
83846
83847 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83848
83849         * lib/regex.c, regex.h: Sync from libc.
83850         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
83851         * lib/regexec.c:
83852         New files, synced from libc, except that regex_internal.h
83853         currently has a small porting fix.
83854
83855 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83856
83857         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
83858         regex_internal.c, regexec.c.
83859         Add regex_internal.h too, but as a comment, since the libc version
83860         is currently broken in gnulib mode.
83861
83862 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
83863
83864         Support programs like Emacs that use gnulib but not gettext.
83865         * MODULES.html.sh (Internationalization functions): Add gettext-h.
83866         * modules/gettext-h: New file.
83867         * modules/gettext (Files): Remove lib/gettext.h.
83868         (Depends-on): Add gettext-h.
83869         (Makefile.am): Remove lib_SOURCES.
83870         * modules/argmatch, modules/c-stack, modules/closeout:
83871         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
83872         * modules/execute, modules/file-type, modules/getaddrinfo:
83873         * modules/getopt, modules/human, modules/javacomp:
83874         * modules/javaexec, modules/mkdir-p, modules/obstack:
83875         * modules/openat, modules/pagealign_alloc, modules/pipe:
83876         * modules/quotearg, modules/regex, modules/rpmatch:
83877         * modules/unicodeio, modules/userspec, modules/version-etc:
83878         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
83879         * modules/xsetenv:
83880         Depend on gettext-h, not gettext.
83881
83882 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
83883
83884         * gnulib-tool (func_import): Add support for 'public domain' license.
83885         * modules/alloca, modules/atexit, modules/memmove:
83886         Now public domain, not GPL.
83887         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
83888         * modules/realloc, modules/strerror, modules/strtod:
83889         Now LGPL, not GPL.
83890
83891 2005-07-05  Bruno Haible  <bruno@clisp.org>
83892
83893         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
83894         autoconf CVS. Needed for mingw.
83895
83896 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83897
83898         Remove the dependency of the strftime module on the tzset module.
83899         * modules/strftime (Depends-on): Remove dependency on tzset.
83900
83901 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83902
83903         Remove the dependency of the strftime module on the tzset module.
83904         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
83905         gl_FUNC_TZSET_CLOBBER.
83906
83907 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83908
83909         Remove the dependency of the strftime module on the tzset module.
83910         * lib/strftime.c (my_strftime)
83911         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
83912         Copy the input structure, to work around some of the bug with
83913         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
83914         Solaris releases, you should also use the tzset module, but we won't
83915         require it as a dependency any more since we don't want LGPLed code
83916         to depend on GPLed code.
83917
83918 2005-07-02  Jim Meyering  <jim@meyering.net>
83919
83920         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
83921         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
83922         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
83923         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
83924
83925 2005-07-02  Jim Meyering  <jim@meyering.net>
83926
83927         * lib/backupfile.c (backup_args): Change a `0' to NULL.
83928
83929 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
83930
83931         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
83932         declares only 'struct timespec;' (!).
83933
83934 2005-07-01  Jim Meyering  <jim@meyering.net>
83935
83936         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
83937         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
83938         * lib/save-cwd.c, tempname.c:
83939         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83940         and don't include <sys/file.h>).
83941
83942 2005-06-29  Jim Meyering  <jim@meyering.net>
83943
83944         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
83945         type name.  Use the variable name instead.
83946         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
83947         Likewise.
83948
83949 2005-06-28  Simon Josefsson  <jas@extundo.com>
83950
83951         * modules/check-version (Files): Add check-version.m4.
83952
83953 2005-06-28  Simon Josefsson  <jas@extundo.com>
83954
83955         * m4/check-version.m4: New file, suggested by Jim Meyering
83956         <jim@meyering.net>.
83957
83958 2005-06-28  Simon Josefsson  <jas@extundo.com>
83959
83960         * lib/check-version.h, lib/check-version.c: New files.
83961
83962 2005-06-28  Simon Josefsson  <jas@extundo.com>
83963
83964         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
83965         collision with global variable.  Better indentation.  Don't
83966         increment buffer pointer beyond buffer end.  Based on comments
83967         from Paul Eggert <eggert@cs.ucla.edu>.
83968
83969         * lib/base64.h: Indent.
83970
83971 2005-06-28  Simon Josefsson  <jas@extundo.com>
83972
83973         * doc/gnulib.texi (Library version handling): New section.
83974
83975 2005-06-28  Jim Meyering  <jim@meyering.net>
83976
83977         * check-module (find_included_lib_files): Hard-code another
83978         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
83979         but modules/fts-lgpl (correctly) does not list those files.
83980
83981         * modules/canonicalize (Files): Add lib/pathmax.h.
83982
83983 2005-06-25  Simon Josefsson  <jas@extundo.com>
83984
83985         * modules/check-version: New file.
83986
83987 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
83988
83989         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
83990         initializer of struct addrinfo, as an indication that we don't
83991         care how many members the structure has.
83992
83993 2005-06-24  Derek Price  <derek@ximbiot.com>
83994         and Bruno Haible  <bruno@clisp.org>
83995
83996         Remove stat module & update lstat.
83997         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
83998         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83999         * m4/stat.m4: Remove this file.
84000
84001 2005-06-24  Derek Price  <derek@ximbiot.com>
84002         and Bruno Haible  <bruno@clisp.org>
84003
84004         Remove stat module & update lstat.
84005         * lib/stat.c: Remove this file...
84006         (slash_aware_lstat): ...moving this content and its support...
84007         * lib/lstat.c (rpl_lstat): ...into here.
84008         * lib/lstat.h: New file.
84009
84010 2005-06-24  Derek Price  <derek@ximbiot.com>
84011         and Bruno Haible  <bruno@clisp.org>
84012
84013         Remove stat module & update lstat.
84014         * config/srclist.txt (libc sources): Remove stat.
84015
84016 2005-06-24  Derek Price  <derek@ximbiot.com>
84017         and Bruno Haible  <bruno@clisp.org>
84018
84019         Remove stat module & update lstat.
84020         * MODULES.html.sh (stat): Remove.
84021         * MODULES.html: Regenerated.
84022         * modules/lstat (Description): Correct function name.
84023         (Files): Add "lstat.h".
84024         (Depends-on): Remove stat, add xalloc, stat-macros.
84025         * modules/stat: Remove this file.
84026         (Include): Add "lstat.h", remove <sys/stat.h>.
84027
84028 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
84029
84030         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
84031         (ranged_convert): Don't save conversion in a temporary struct.
84032         This causes a warning with GCC 4.0.0, and anyway in the typical
84033         case it's not worth the extra 100 bytes or so of code.
84034         (ranged_convert, __mktime_internal): When calling a function via a
84035         pointer P, use P () rather than (*P) (), as we now assume C89 or
84036         better.
84037
84038 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84039
84040         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
84041         "who -r" failed to give output.  Problem reported by Tim Waugh.
84042
84043         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
84044         (xcalloc): Use it to avoid needless tests.
84045         Problem reported by Jim Meyering.
84046
84047 2005-06-20  Derek Price  <derek@ximbiot.com>
84048
84049         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
84050         unnecessary for Autoconfs > 2.59c.
84051
84052 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84053
84054         * lib/argp.h (__option_is_short): Check upper limit of
84055         __key. Isprint() requires its argument to have the value
84056         of an unsigned char or EOF.
84057
84058 2005-06-16  Jim Meyering  <jim@meyering.net>
84059
84060         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
84061         when either N or S is zero.
84062
84063 2005-06-16  Derek Price  <derek@ximbiot.com>
84064
84065         * m4/bison.m4: Declare YACC & YFLAGS precious.
84066
84067 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
84068
84069         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
84070         multibyte string or pattern, fall back on unibyte matching.
84071         Problem reported by James Youngman.
84072
84073 2005-06-08  Bruno Haible  <bruno@clisp.org>
84074
84075         * modules/csharpcomp: New file.
84076         * MODULES.html.sh (C#): Add csharpcomp.
84077
84078 2005-06-08  Bruno Haible  <bruno@clisp.org>
84079
84080         * m4/csharpcomp.m4: New file, from GNU gettext.
84081
84082 2005-06-08  Bruno Haible  <bruno@clisp.org>
84083
84084         * lib/csharpcomp.h: New file, from GNU gettext.
84085         * lib/csharpcomp.c: New file, from GNU gettext.
84086         * lib/csharpcomp.sh.in: New file, from GNU gettext.
84087
84088 2005-06-08  Bruno Haible  <bruno@clisp.org>
84089
84090         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
84091         warning on mingw.
84092
84093 2005-06-07  Derek Price  <derek@ximbiot.com>
84094
84095         Sync from CVS.
84096         * lib/glob_.h: Indent nested #ifdef.
84097
84098 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84099
84100         Sync from coreutils.
84101         Use "file name" when talking about file names, instead of "filename"
84102         or "path", as per the GNU coding standards.
84103         * lib/mkdir-p.c: Renamed from makepath.c.
84104         (make_dir_parents): Renamed from make_path.  All callers changed.
84105         * lib/mkdir-p.h: Likewise.  All includers changed.
84106         * lib/filenamecat.c: Renamed from path-concat.c.
84107         (file_name_concat): Renamed from path_concat.  All callers changed.
84108         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
84109         * lib/filenamecat.h: Likewise.  All includers changed.
84110         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
84111         in comments or local variable names.
84112         * lib/basename.c: Likewise.
84113         * lib/canonicalize.c, canonicalize.h: Likewise.
84114         * lib/dirname.c, dirname.h: Likewise.
84115         * lib/euidaccess.c: Likewise.
84116         * lib/exclude.c: Likewise
84117         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
84118         * lib/fsusage.c, fsuage.h: Likewise.
84119         * lib/fts.c, fts_.h: Likewise.
84120         * lib/getcwd.c: Likewise.
84121         * lib/getloadavg.c: Likewise.
84122         * lib/mkstemp.c: Likewise.
84123         * lib/mountlist.c, mountlist.h: Likewise.
84124         * lib/openat.c, openat.h: Likewise.
84125         * lib/readlink-stub.c: Likewise.
84126         * lib/readutmp.c, readutmp.h: Likewise.
84127         * lib/rename.c: Likewise.
84128         * lib/rmdir.c: Likewise.
84129         * lib/same.c: Likewise.
84130         * lib/savedir.c: Likewise.
84131         * lib/stripslash.c: Likewise.
84132         * lib/tempname.c: Likewise.
84133         * lib/xreadlink.c: Likewise.
84134         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
84135         All uses changed.
84136         * lib/exclude.h: Likewise.
84137
84138         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
84139         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84140         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
84141         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84142         * lib/pathmax.h: Include <limits.h> unconditionally, since other
84143         files have been getting away with it for years (MORE/BSD 4.3
84144         is extinct now).
84145         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
84146         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84147
84148         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
84149         Define to 256, not 255, as per modern POSIX.
84150
84151 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84152
84153         Sync from coreutils.
84154         Use "file name" when talking about file names, instead of "filename"
84155         or "path", as per the GNU coding standards.
84156         * MODULES.html.sh: mkdir-p renamed from makepath.
84157         filenamecat renamed from path-concat.
84158         * modules/filenamecat: Renamed from modules/path-concat.
84159         (Files): filenamecat.h and filenamecat.c renamed from
84160         path-concat.h and path-concat.c.
84161         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
84162         (Include): filenamecat.h, not path-concat.h.
84163         * modules/mkdir-p: Renamed from modules/makepath.
84164         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
84165         makepath.c.
84166         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
84167         (Include): mkdir-p.h, not makepath.h.
84168
84169 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84170
84171         Sync from coreutils.
84172         * m4/mkdir-p.m4: Renamed from makepath.m4.
84173         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
84174         Rename files from makepath.c to mkdir-p.c, and from
84175         makepath.h to mkdir-p.h.
84176         * m4/filenamecat.m4: Renamed from path-concat.m4.
84177         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
84178         Rename files from path-concat.c to filenamecat.c,
84179         and from path-concat.h to filenamecat.h.
84180         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
84181         "file name" in local variables or comments.
84182         * m4/rename.m4: Likewise.
84183
84184 2005-06-01  Bruno Haible  <bruno@clisp.org>
84185
84186         * modules/csharpexec: New file.
84187         * MODULES.html.sh (C#): New section.
84188
84189 2005-06-01  Bruno Haible  <bruno@clisp.org>
84190
84191         * m4/csharp.m4: New file, from GNU gettext.
84192         * m4/csharpexec.m4: New file, from GNU gettext.
84193
84194 2005-06-01  Bruno Haible  <bruno@clisp.org>
84195
84196         * lib/csharpexec.h: New file, from GNU gettext.
84197         * lib/csharpexec.c: New file, from GNU gettext.
84198         * lib/csharpexec.sh.in: New file, from GNU gettext.
84199
84200 2005-05-31  Derek Price  <derek@ximbiot.com>
84201             Paul Eggert  <eggert@cs.ucla.edu>
84202
84203         Sync from cvs.
84204         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
84205
84206 2005-05-31  Derek Price  <derek@ximbiot.com>
84207             Paul Eggert  <eggert@cs.ucla.edu>
84208
84209         Sync from cvs.
84210         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
84211
84212 2005-05-29  Derek Price  <derek@ximbiot.com>
84213
84214         * config/srclist.txt (glob_.h, glob.c): Add these files.
84215
84216 2005-05-29  Derek Price  <derek@ximbiot.com>
84217
84218         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
84219         * modules/glob: New file.
84220         * modules/getlogin_r: Add link to POSIX spec in description.
84221
84222 2005-05-29  Derek Price  <derek@ximbiot.com>
84223             Paul Eggert  <eggert@cs.ucla.edu>
84224
84225         * m4/glob.m4: New file.
84226
84227 2005-05-29  Derek Price  <derek@ximbiot.com>
84228             Paul Eggert  <eggert@cs.ucla.edu>
84229
84230         * lib/glob_.h, lib/glob.c: New files.
84231
84232 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84233
84234         * modules/fts (Files): Remove m4/inttypes-pri.m4.
84235         * modules/fts-lgpl (Depends-on): Remove gettext.
84236
84237 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84238
84239         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
84240         and don't require gt_INTTYPES_PRI.
84241
84242 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84243
84244         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
84245
84246         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
84247         the configuration hassle isn't worth it.
84248         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
84249         (LONGEST_MODIFIER, PRIuMAX): Remove.
84250
84251 2005-05-27  Bruno Haible  <bruno@clisp.org>
84252
84253         * lib/getlogin_r.h: Remove second include of <stddef.h>.
84254
84255 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
84256
84257         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
84258         _POSIX_PTHREAD_SEMANTICS for Solaris.
84259
84260 2005-05-25  Derek Price  <derek@ximbiot.com>
84261
84262         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
84263
84264 2005-05-25  Derek Price  <derek@ximbiot.com>
84265             Paul Eggert  <eggert@cs.ucla.edu>
84266
84267         * modules/getlogin_r, m4/getlogin_r.m4: New files.
84268         * lib/getlogin_r.c, getlogin_r.h: New files.
84269
84270 2005-05-25  Bruno Haible  <bruno@clisp.org>
84271             Derek Price  <derek@ximbiot.com>
84272
84273         * lib/getlogin_r.h: Simplify API documentation.
84274
84275 2005-05-23  Derek Price  <derek@ximbiot.com>
84276
84277         * modules/minmax (Files): Add m4/minmax.m4.
84278         (configure.ac): Add gl_MINMAX.
84279
84280 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
84281
84282         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
84283         so that unistd-safer.h (GPL'ed code) need not be included.
84284
84285 2005-05-22  Bruno Haible  <bruno@clisp.org>
84286
84287         * m4/minmax.m4: New file.
84288         Based on a patch by Derek Price <derek@ximbiot.com>.
84289
84290 2005-05-22  Bruno Haible  <bruno@clisp.org>
84291
84292         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
84293         (INT64_MIN): Fix definition.
84294         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
84295
84296         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
84297         NEED_SIGNED_INT_TYPES.
84298
84299         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
84300         HAVE_SYSTEM_INTTYPES.
84301
84302 2005-05-22  Bruno Haible  <bruno@clisp.org>
84303
84304         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
84305         Also include <sys/param.h> if it defines MIN, MAX.
84306         Based on a patch by Derek Price <derek@ximbiot.com>.
84307
84308 2005-05-21  Jim Meyering  <jim@meyering.net>
84309
84310         * modules/fts (Files): Add m4/inttypes-pri.m4.
84311         (Depends-on): Add lstat and remove gettext.  Alphabetize.
84312
84313 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84314
84315         New fts module.
84316         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
84317         (setup_dir, free_dir): New functions.
84318         (enter_dir, leave_dir): Define trivial
84319         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
84320         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
84321         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
84322         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
84323         Move to fts-cycle.c.
84324         (fts_open): Use setup_dir.
84325         (fts_close): Use free_dir.
84326         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
84327         This adds a label and some gotos, but the alternatives were messier.
84328         Check for memory allocation failure when entering a dir.
84329         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
84330         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
84331         (FTS): New member fts_cycle, that is a union that contains the
84332         old active_dir_ht and cycle_state.  All uses changed to mention
84333         fts_cycle.ht and fts_cycle.state.
84334         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
84335         fts.c, with the following changes:
84336         (setup_dir, free_dir): New functions.
84337         (enter_dir): Now returns bool.  Return true if successful, false
84338         if memory exhausted.  All callers changed.
84339         Do not bother partly cleaning up on
84340         memory allocation failure; that is free_dir's job.
84341         However, free ad if hash_insert fails, to avoid memory leak.
84342         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
84343         fts->fts_options to see which union member to use.
84344
84345 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84346
84347         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
84348         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
84349
84350 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84351
84352         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
84353
84354 2005-05-20  Jim Meyering  <jim@meyering.net>
84355
84356         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
84357         Now a macro, to pacify GCC.
84358
84359 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
84360
84361         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
84362         of -1.
84363
84364 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
84365
84366         * lib/chown.c (rpl_chown): Return -1 on failure.
84367
84368 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
84369
84370         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
84371         Don't check for stddef.h.
84372         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
84373         don't use its results.
84374         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
84375         since we include them unconditionally.  Don't require
84376         AM_STDBOOL_H, since stdbool is a prerequisite.
84377         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
84378         since we assume C89 or better.
84379         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
84380         as we don't use their results.
84381         Don't check for fchdir, memmove, memset, strrchr, as we use
84382         them unconditionally.
84383         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
84384         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
84385
84386 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
84387
84388         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
84389         Include <stddef.h> unconditionally, since we assume C89 now.
84390         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
84391         * lib/fts.c: Include fts_.h first, to check interface.
84392         Do not include intprops.h; no longer needed.
84393         Include cycle-check.h and hash.h, since fts_.h no longer does.
84394         Remove unnecessary casts of closedir to void.
84395         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
84396         decide whether to decrement nlinks.
84397         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
84398         (FTS): Use struct hash_table * instead of Hash_table, so that
84399         we no longer need to include hash.h here.
84400
84401 2005-05-18  Jim Meyering  <jim@meyering.net>
84402
84403         * modules/dirfd (License): Change to LGPL.  Most of the code
84404         is already in the public domain.
84405
84406 2005-05-18  Jim Meyering  <jim@meyering.net>
84407
84408         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
84409         Reported by Yoann Vandoorselaere.
84410
84411 2005-05-17  Jim Meyering  <jim@meyering.net>
84412
84413         * m4/fts.m4: New file, from coreutils.
84414
84415 2005-05-17  Jim Meyering  <jim@meyering.net>
84416
84417         * lib/fts.c, lib/fts_.h: New files, from coreutils.
84418
84419 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84420
84421         Sync from coreutils.
84422         * m4/unlinkdir.m4: New file.
84423
84424 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84425
84426         Sync from coreutils.
84427         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
84428         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
84429         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
84430         White space changes only.
84431         * lib/makepath.c (make_path): Port to hosts where leading "//" is
84432         special.
84433         * lib/yesno.c: Include getline.h, not ctype.h.
84434         (yesno): Don't remove leading white space; POSIX doesn't allow it.
84435         Use getline to remove arbitrary restriction on response length.
84436
84437 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84438
84439         * config/srclist-update: Spell out "Street" in FSF postal
84440         mail address; this is the style the FSF seems to prefer.
84441
84442         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
84443         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
84444         this updates FSF postal mail address.
84445
84446         Sync from coreutils.
84447         * modules/unlinkdir: New file.
84448         * modules/yesno (Depends-on): Add getline.
84449         * MODULES.html.sh (File system functions): Add unlinkdir.
84450
84451 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84452
84453         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
84454         lib/strsep.h:
84455         Change the initial comment to refer to GPL, not LGPL.
84456         gnulib-tool will change it to LGPL as needed.
84457
84458         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
84459         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
84460         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
84461         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
84462         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
84463         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
84464         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
84465         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
84466         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
84467         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
84468         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
84469         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
84470         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
84471         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
84472         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
84473         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
84474         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
84475         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
84476         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
84477         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
84478         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
84479         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
84480         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
84481         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
84482         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
84483         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
84484         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
84485         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
84486         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
84487         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
84488         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
84489         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
84490         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
84491         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
84492         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
84493         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
84494         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
84495         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
84496         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
84497         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
84498         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
84499         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
84500         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
84501         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
84502         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
84503         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
84504         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
84505         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
84506         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
84507         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
84508         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
84509         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
84510         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
84511         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
84512         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
84513         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
84514         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
84515         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
84516         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
84517         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
84518         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
84519         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
84520         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
84521         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
84522         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
84523         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
84524         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
84525         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
84526         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
84527         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
84528         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
84529         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
84530         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
84531         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
84532         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
84533         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
84534         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
84535         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
84536         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
84537         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
84538         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
84539         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
84540         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
84541         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
84542         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
84543         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
84544         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
84545         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
84546         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
84547         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
84548         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
84549         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
84550         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
84551         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
84552         lib/yesno.c, lib/yesno.h:
84553         Update FSF postal mail address.
84554
84555 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84556
84557         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
84558         tests/test-memmem.c, tests/test-stpncpy.c:
84559         Update FSF postal mail address.
84560
84561 2005-05-13  Bruno Haible  <bruno@clisp.org>
84562
84563         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
84564         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
84565         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
84566         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
84567         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
84568         Add support for 64-bit integers in the MSVC compiler.
84569
84570 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84571
84572         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
84573
84574 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
84575
84576         * gnulib-tool (func_import): Sort and uniquify recommended includes.
84577
84578 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
84579
84580         * doc/getdate.texi (General date syntax): Don't say that date
84581         date --iso-8601=ns generates acceptable dates; it doesn't yet.
84582         Problem reported by Nic Ferrier.
84583
84584 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84585
84586         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
84587         specified in ai_socktype. Fix invalid ai_protocol
84588         check. ai_protocol is usually set to 0 or depending on
84589         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
84590         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
84591         ai_socktype / ai_protocol in the returned addrinfo structure.
84592
84593 2005-05-10  Simon Josefsson  <jas@extundo.com>
84594
84595         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
84596         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84597
84598 2005-05-10  Karl Berry  <karl@gnu.org>
84599
84600         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
84601         (from http://www.gnu.org/licenses).
84602         * doc/COPYING.LIB: also rename to COPYING.LESSER.
84603         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
84604         fdl.texi suffices.
84605
84606 2005-05-10  Karl Berry  <karl@gnu.org>
84607
84608         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
84609         (COPYING.DOC): remove.
84610
84611         * config/srclist-update: new FSF address.
84612
84613 2005-05-10  Derek Price  <derek@ximbiot.com>
84614
84615         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
84616         possible.
84617
84618 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84619             Bruno Haible  <bruno@clisp.org>
84620
84621         * modules/inet_ntop: New file.
84622         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84623         inet_ntop.
84624
84625 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84626             Bruno Haible  <bruno@clisp.org>
84627
84628         * m4/inet_ntop.m4: New file.
84629
84630 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84631             Bruno Haible  <bruno@clisp.org>
84632
84633         * lib/inet_ntop.h: New file.
84634         * lib/inet_ntop.c: New file, from glibc with modifications.
84635
84636 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
84637
84638         * modules/time_r (License): Change to LGPL.
84639         * modules/extensions (License): Change to LGPL.  Actually,
84640         the license is more permissive than that, but currently gnulib-tool
84641         doesn't know how to handle more-permissive licenses.
84642
84643         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
84644         Problem reported by Dave Love.
84645
84646 2005-05-08  Jim Meyering  <jim@meyering.net>
84647
84648         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
84649         blank.
84650
84651 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
84652
84653         * modules/argmatch (Depends-on): Add stdbool.
84654         * modules/backupfile (Depends-on): Likewise.
84655         * modules/chdir-long (Depends-on): Likewise.
84656         * modules/closeout (Depends-on): Likewise.
84657         * modules/cycle-check (Depends-on): Likewise.
84658         * modules/dirname (Depends-on): Likewise.
84659         * modules/fnmatch (Depends-on): Likewise.
84660         * modules/fsusage (Depends-on): Likewise.
84661         * modules/fwriteerror (Depends-on): Likewise.
84662         * modules/getcwd (Depends-on): Likewise.
84663         * modules/getloadavg (Depends-on): Likewise.
84664         * modules/hard-locale (Depends-on): Likewise.
84665         * modules/makepath (Depends-on): Likewise.
84666         * modules/mountlist (Depends-on): Likewise.
84667         * modules/nanosleep (Depends-on): Likewise.
84668         * modules/posixtm (Depends-on): Likewise.
84669         * modules/quotearg (Depends-on): Likewise.
84670         * modules/readtokens (Depends-on): Likewise.
84671         * modules/readtokens0 (Depends-on): Likewise.
84672         * modules/readutmp (Depends-on): Likewise.
84673         * modules/save-cwd (Depends-on): Likewise.
84674         * modules/strftime (Depends-on): Likewise.
84675         * modules/userspec (Depends-on): Likewise.
84676         * modules/utimecmp (Depends-on): Likewise.
84677         * modules/xgetcwd (Depends-on): Likewise.
84678         * modules/xnanosleep (Depends-on): Likewise.
84679         * modules/xstrtod (Depends-on): Likewise.
84680         * modules/yesno (Depends-on): Likewise.
84681
84682 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
84683
84684         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
84685         needless checks.
84686
84687 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84688
84689         Merge from coreutils.  Among other things,
84690         add bulletproofing for cases where stdin, stdout, or stderr are closed.
84691         * lib/fd-safer.c: New file.
84692         * lib/fcntl-safer.h, open-safer.c: Remove.
84693         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
84694         * lib/dup-safer.c: Include unistd-safer.h first.
84695         Don't include errno.h.
84696         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
84697         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
84698         * lib/file-type.c: Rely on file-type.h change.
84699         * lib/getloadavg.c: Include unistd-safer.h.
84700         (getloadavg): Use safer open.
84701         * lib/getusershell.c: Include "stdio-safer.h".
84702         (getusershell): Use safer fopen.
84703         * lib/long-options.c (long_options): Use NULL rather than 0.
84704         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
84705         'free'.
84706         * lib/modechange.c: Likewise.
84707         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
84708         (MODE_DONE): New constant.
84709         (struct mode_change): Remove 'next' member.
84710         (make_node_op_equals): New function; like the old one of the
84711         same name, except it allocates an array.
84712         (mode_compile, mode_create_from_ref): Use it.
84713         (mode_compile): Allocate result as an array, not a linked list.
84714         Parse octal string ourself, so that we catch mistakes like "+0".
84715         (mode_adjust): Arg is an array, not a linked list.
84716         * lib/modechange.c: Include stat-macros.h, xalloc.h.
84717         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
84718         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
84719         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
84720         Remove.  This is now stat-macros.h's job.
84721         (talloc): Remove.  All callers replaced by xalloc, so that
84722         our invokers don't have to worry about reporting memory failures.
84723         (make_node_op_equals): Remove.
84724         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84725         New constants.
84726         (struct mode_change): Moved here from modechange.h.
84727         (mode_append_entry): Remove.
84728         (mode_compile): Remove MASKED_OPS arg, since it encouraged
84729         apps to have incorrect behavior.  Use simpler algorithm for head
84730         and tail.  Don't futz with umask; that's now the job of mode_adjust.
84731         Detect more invalid usages rather than having somewhat-random behavior.
84732         Don't insert an "a=" action, as that leads to incorrect behavior.
84733         (mode_compile, mode_create_from_ref): Return NULL on error instead
84734         of an enum, since now there's only one way to have an error.  All
84735         callers changed.
84736         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
84737         at the correct time.  Simplify calculation of "+u" and its ilk.
84738         Don't mishandle "+X".
84739         (mode_free): Remove "register" and localize decls.
84740         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84741         (struct mode_change): Move to modechange.c; callers don't
84742         need to see this stuff.
84743         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
84744         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
84745         (mode_change, mode_adjust): Reflect the new signatures noted above.
84746         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
84747         that might redefine system include files.
84748         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
84749         (my_usleep): Use NULL rather than (void *) 0.
84750         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
84751         Use siginterrupt to specify that system calls should be interrupted.
84752         (rpl_nanosleep): Move initialization of suspended closer to call of
84753         my_usleep.
84754         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
84755         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
84756         (desirable_utmp_entry): New function.
84757         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
84758         using x2nrealloc, to simplify logic.
84759         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
84760         size calculation.  Do not assume utmp file is a regular file.
84761         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
84762         (READ_UTMP_CHECK_PIDS): New constant.
84763         * lib/save-cwd.c: Include unistd-safer.h.
84764         (save_cwd): Use fd_safer.
84765         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
84766         [!_LIBC] Include "stat-macros.h" instead.
84767         * lib/unistd-safer.h (fd_safer): New decl.
84768
84769 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84770
84771         * modules/getloadavg (Depends-on): Add unistd-safer.
84772         * modules/getusershell (Depends-on): Add stdio-safer.
84773         * modules/lstat (Depends-on): Remove xalloc.
84774         * modules/mkstemp (Depends-on): Add stat-macros.
84775         * modules/modechange (Depends-on): Remove xstrtol.
84776         Add stat-macros, xalloc.
84777         * modules/save-cwd (Depends-on): Add unistd-safer.
84778         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
84779         * modules/unistd-safer (Files): Add lib/fd-safer.c
84780         (Makefile.am): Remove lib_SOURCES.
84781
84782         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
84783         Remove fcntl-safer; unistd-safer supersedes it.
84784
84785 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84786
84787         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
84788         AC_HEADER_STAT.
84789         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
84790         (gl_PREREQ_CHOWN): Remove.
84791         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
84792         it.  Don't require AC_HEADER_STAT.
84793         (gl_PREREQ_LSTAT): Remove.
84794         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
84795         Don't require AC_HEADER_STAT.
84796         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
84797         (gl_PREREQ_RMDIR): Remove.
84798         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
84799         mention stat-macros.h or AC_HEADER_STAT, since we'll make
84800         the stat-macros module a prerequisite.
84801         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
84802         * m4/filemode.m4 (gl_FILEMODE): Likewise.
84803         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
84804         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
84805         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
84806         variable names.
84807         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
84808         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
84809         variable prefixes.
84810         * m4/fcntl-safer.m4: Remove.
84811         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
84812         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
84813         Invoke gl_PREREQ_FD_SAFER.
84814         (gl_PREREQ_FD_SAFER): New macro.
84815         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
84816         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
84817         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
84818         Remove duplicate call to AC_LIBOBJ(readutmp).
84819         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
84820
84821         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
84822         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
84823
84824 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84825
84826         * MODULES.html.sh (Misc): Add byteswap.
84827
84828 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84829
84830         * modules/getcwd (Depends-on): Add extensions.
84831         * modules/openat (Depends-on): Likewise.
84832
84833 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84834
84835         * modules/byteswap: New file.
84836
84837 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84838
84839         * m4/byteswap.m4: New file.
84840
84841 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84842
84843         * lib/byteswap_.h: New file.
84844
84845 2005-04-25  Karl Berry  <karl@gnu.org>
84846
84847         * m4/gettext.m4: Update from GNU gettext 0.14.4.
84848
84849 2005-04-25  Albert Chin  <china@thewrittenword.com>
84850
84851         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
84852         Toolkit C bug.
84853
84854 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
84855
84856         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
84857         (func_ln_if_changed): Remove forcibly for no error message
84858         in case file does not exist.
84859
84860 2005-04-19  Simon Josefsson  <jas@extundo.com>
84861
84862         * gnulib-tool (Options): Make --symlink mean --symbolic.
84863
84864 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
84865
84866         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
84867
84868 2005-04-16  Simon Josefsson  <jas@extundo.com>
84869
84870         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
84871
84872 2005-04-15  Simon Josefsson  <jas@extundo.com>
84873
84874         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
84875
84876 2005-04-15  Simon Josefsson  <jas@extundo.com>
84877
84878         * gnulib-tool: Rename --symlink to --symbolic.
84879
84880 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
84881
84882         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
84883         symbolic links to files instead of copying/moving.  Add --aux-dir,
84884         specifying directory relative --dir where auxiliary build tools
84885         are placed.
84886
84887 2005-04-14  Bruno Haible  <bruno@clisp.org>
84888
84889         * modules/allocsa (License): Change to LGPL.
84890         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
84891
84892 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
84893
84894         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
84895         that "UTC +1 second" continues to work.  Problem reported
84896         by Dmitry V. Levin.
84897         (relunit_snumber): New rule.
84898         (relunit): Use it.
84899
84900 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
84901
84902         * lib/getdate.y (universal_time_zone_table): New constant.
84903         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
84904         universal_time_zone_table.
84905         (lookup_zone): Prefer universal_time_zone_table to
84906         local_time_zone_table, so that "GMT" time stamps are allowed in
84907         London during the summer.  Problem reported by Ian Abbott.
84908
84909 2005-04-12  Jim Meyering  <jim@meyering.net>
84910
84911         * lib/human.c (humblock): Set *options even when returning due to
84912         xstrtoumax conversion failure.  Thanks to a used-uninitialized
84913         warning from gcc-4.
84914
84915 2005-04-09  Jim Meyering  <jim@meyering.net>
84916
84917         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
84918         -Wuninitialized: initialize tm0.tm_year.
84919
84920 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
84921
84922         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
84923         count, since there's no maximum.  All uses changed.
84924         Add member dsts_seen.
84925         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
84926         not being INT_MAX.
84927         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
84928         Use pc_rels_seen to decide whether a date is absolute.
84929
84930         * lib/getdate.y (number): Don't overwrite year.
84931         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
84932         check.
84933
84934 2005-04-02  Simon Josefsson  <jas@extundo.com>
84935
84936         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
84937         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
84938
84939 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
84940
84941         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
84942         where no absolute path name can be longer than PATH_MAX.
84943
84944 2005-03-27  Jim Meyering  <jim@meyering.net>
84945
84946         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
84947
84948 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
84949
84950         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
84951         "one's complement" -> "ones' complement" in comment, as per Knuth.
84952         "value of type" -> "type or expression" in comment.
84953         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
84954
84955 2005-03-26  Jim Meyering  <jim@meyering.net>
84956
84957         Comment nits.
84958         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
84959         Correct typos: s/or/of/.
84960
84961 2005-03-26  Jim Meyering  <jim@meyering.net>
84962
84963         * modules/check-include-files: Move to ../ and rename to...
84964         * check-module: ...this.
84965
84966 2005-03-25  Jim Meyering  <jim@meyering.net>
84967
84968         * modules/xvasprintf (Files): Add xalloc.h.
84969
84970 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
84971
84972         * modules/gettext (Files): config/config.rpath ->
84973         build-aux/config.rpath
84974         * modules/iconv (Files): Likewise.
84975         Problem reported by Oskar Liljeblad.
84976
84977 2005-03-23  Jim Meyering  <jim@meyering.net>
84978
84979         * modules/check-include-files: New script to check for
84980         missing dependencies, multiple includes, etc.
84981
84982         * modules/c-strtold (Depends-on): Add xalloc.
84983         * modules/c-strtod (Depends-on): Add xalloc.
84984         * modules/hash (Depends-on): Add xalloc.
84985         (Files): Remove lib/xalloc.h.
84986
84987         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
84988         * modules/userspec (Files): Add lib/inttostr.h.
84989
84990 2005-03-23  Jim Meyering  <jim@meyering.net>
84991
84992         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
84993
84994 2005-03-22  Jim Meyering  <jim@meyering.net>
84995
84996         * modules/stat-macros: New module.
84997         * modules/canonicalize, modules/euidaccess, modules/file-type,
84998         * modules/filemode, modules/lchown, modules/makepath,
84999         * modules/rmdir, modules/stat: Depend on new stat-macros module
85000         rather than listing lib/stat-macros.h manually.
85001         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
85002
85003 2005-03-22  Jim Meyering  <jim@meyering.net>
85004
85005         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
85006
85007 2005-03-22  Bruno Haible  <bruno@clisp.org>
85008
85009         * config/srclist.txt: Replace target directory 'config' with
85010         'build-aux'.
85011         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
85012         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
85013         ../build-aux/.
85014
85015 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
85016
85017         * modules/chdir-long (Depends-on): Add mempcpy.
85018
85019         * modules/acl, modules/backupfile, modules/c-strtod,
85020         modules/c-strtold, modules/canon-host, modules/canonicalize,
85021         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
85022         modules/exclude, modules/exitfail, modules/file-type,
85023         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
85024         modules/getdate, modules/getline, modules/getpagesize,
85025         modules/getpass, modules/getugroups, modules/group-member,
85026         modules/hard-locale, modules/hash, modules/human, modules/idcache,
85027         modules/inttostr, modules/long-options, modules/makepath,
85028         modules/md5, modules/memcasecmp, modules/memcoll,
85029         modules/modechange, modules/mountlist, modules/path-concat,
85030         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
85031         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
85032         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
85033         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
85034         modules/strftime, modules/strndup, modules/strverscmp,
85035         modules/timespec, modules/unlocked-io, modules/userspec,
85036         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
85037         modules/yesno:
85038         Remove lib_SOURCES line from Makefile.am section, as this is now
85039         done automatically by the corresponding Autoconf macro.
85040
85041 2005-03-21  Jim Meyering  <jim@meyering.net>
85042
85043         Changes imported from coreutils.
85044
85045         * lib/cycle-check.c: Don't include xalloc.h.
85046
85047         * lib/path-concat.c: Don't include assert.h.
85048         (path_concat): Remove assertion that would have triggered
85049         for ABASE starting with more than one slash.
85050         Reported by Andreas Schwab.
85051
85052         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
85053         properly when ABASE is an absolute file name.
85054         Correct the description of this function.
85055         Include <assert.h>.
85056         Add an assertion and a test driver.
85057         This fixes a bug introduced on 2004-07-02.
85058         Andreas Schwab reported the resulting failure of cp --parents:
85059         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
85060
85061 2005-03-21  Jim Meyering  <jim@meyering.net>
85062
85063         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
85064         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
85065
85066 2005-03-21  Jim Meyering  <jim@meyering.net>
85067         and  Paul Eggert  <eggert@cs.ucla.edu>
85068
85069         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
85070         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
85071         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
85072         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
85073         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
85074         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
85075         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
85076         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
85077         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
85078         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
85079         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
85080         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
85081         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
85082         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
85083         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
85084         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
85085         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
85086         for these modules.
85087
85088 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
85089
85090         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
85091         (which shouldn't happen), generate nothing instead of returning 0
85092         immediately, so that nstrftime (NULL, ...) doesn't return 0.
85093
85094 2005-03-16  Bruno Haible  <bruno@clisp.org>
85095
85096         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
85097         HAVE_LONGLONG_64BIT.
85098
85099 2005-03-16  Bruno Haible  <bruno@clisp.org>
85100
85101         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
85102         HAVE_LONGLONG_64BIT.
85103
85104 2005-03-16  Bruno Haible  <bruno@clisp.org>
85105
85106         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
85107         HAVE_LONGLONG_64BIT.
85108
85109 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
85110
85111         * lib/strftime.c (my_strftime): Prepend space to format so that we can
85112         reliably distinguish strftime failure from empty output on POSIX
85113         hosts.
85114
85115 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
85116
85117         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
85118         (iconv_string): Don't guess a size-zero buffer, as that might cause
85119         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
85120         result would be 'too large', where 'too large' is (heuristically)
85121         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
85122         overflow concerns.  This will prevent some unwanted malloc failures
85123         when the inputs are very large.
85124
85125 2005-03-15  Karl Berry  <karl@gnu.org>
85126
85127         * config/srclist.txt (config.rpath): from gettext.
85128         * config/config.rpath: update.
85129
85130 2005-03-15  Bruno Haible  <bruno@clisp.org>
85131
85132         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
85133         to 'negate'.
85134
85135         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
85136         variable.
85137
85138         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
85139         results.
85140
85141 2005-03-14  Simon Josefsson  <jas@extundo.com>
85142
85143         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
85144         <fx@gnu.org>.
85145
85146 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
85147
85148         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
85149         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
85150         intprops.h.
85151         * lib/strtol.c: Likewise.
85152
85153 2005-03-14  Jim Meyering  <jim@meyering.net>
85154
85155         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
85156         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
85157         to be nonzero so that we (and caller) can detect the difference
85158         between a valid zero-length expansion and an error return, even
85159         when the underlying strftime fails before writing anything into
85160         that location.
85161
85162 2005-03-14  Bruno Haible  <bruno@clisp.org>
85163
85164         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
85165         Update from GNU gettext 0.14.3.
85166
85167 2005-03-10  Jim Meyering  <jim@meyering.net>
85168
85169         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
85170
85171 2005-03-10  Jim Meyering  <jim@meyering.net>
85172
85173         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
85174         so that this module works on systems without fchdir.
85175
85176 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
85177
85178         Factor int-properties macros into a single file, except for
85179         glibc-related files.
85180         * lib/intprops.h: New file.
85181         * lib/getloadavg.c: Include it instead of limits.h.
85182         (INT_STRLEN_BOUND): Remove.
85183         * lib/human.c: Include intprops.h.
85184         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
85185         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
85186         302/1000.
85187         * lib/inttostr.h: Include intprops.h instead of limits.h.
85188         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
85189         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
85190         for consistency with intprops.h.
85191         (time_t_is_integer, twos_complement_arithmetic): Use them.
85192         * lib/sig2str.h: Include <signal.h>, intprops.h.
85193         (INT_STRLEN_BOUND): Remove.
85194         * lib/strftime.c (TYPE_SIGNED): Remove.
85195         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
85196         * lib/strtol.c: Adjust comments to match intprops.h.
85197         * lib/userspec.c: Include intprops.h.
85198         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
85199         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
85200         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
85201         instead of rolling our own expressions.
85202         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
85203
85204         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
85205         instead of int.
85206         (my_strftime): Do not mishandle years close to INT_MAX, by doing
85207         the right thing even if adding 1900 would overflow.  Similarly
85208         for tm_mon + 1 and tm_yday + 1.
85209         Make %Y always equivalent to %C%y, and similarly for %G and %g.
85210         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
85211         (DO_SIGNED_NUMBER): New macro.
85212         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
85213
85214 2005-03-07  Bruno Haible  <bruno@clisp.org>
85215
85216         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
85217
85218 2005-03-07  Bruno Haible  <bruno@clisp.org>
85219
85220         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
85221
85222 2005-03-04  Derek R. Price  <derek@ximbiot.com>
85223
85224         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
85225         (func_import): Only replace files via --import when they have actually
85226         changed.
85227
85228 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85229
85230         * m4/mmap-anon.m4: New file.
85231         * m4/pagealign_alloc.m4: New file.
85232
85233 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85234             Bruno Haible  <bruno@clisp.org>
85235
85236         * modules/pagealign_alloc: New file.
85237         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
85238
85239 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85240             Bruno Haible  <bruno@clisp.org>
85241
85242         * lib/pagealign_alloc.h: New file.
85243         * lib/pagealign_alloc.c: New file.
85244
85245 2005-03-03  Bruno Haible  <bruno@clisp.org>
85246
85247         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
85248         Use an all-permissive copyright notice, recommended by RMS.
85249
85250 2005-03-02  Bruno Haible  <bruno@clisp.org>
85251
85252         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
85253         of AIX, the replacement has to be done only after <string.h> is
85254         included, therefore not in config.h. stpncpy.h does the replacement,
85255         and stpncpy.c uses it.
85256
85257 2005-03-02  Bruno Haible  <bruno@clisp.org>
85258
85259         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
85260         stpncpy.c uses it.
85261
85262 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85263
85264         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
85265         The workaround isn't strictly needed for POSIX conformance, and
85266         it's too much of a pain to configure and maintain.  We'll ask
85267         people to fix their kernels instead.
85268         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
85269         (NANOSLEEP_BUG_WORKAROUND): Remove.
85270         (xnanosleep): Remove the workaround.
85271
85272 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85273
85274         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
85275         Reported by Derek Price.
85276         (Include): Add "timespec.h".
85277
85278         * modules/xnanosleep (Depends-on): Remove gethrxtime.
85279
85280 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85281
85282         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
85283         to detect nanosleep bug.
85284
85285 2005-03-01  Bruno Haible  <bruno@clisp.org>
85286
85287         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
85288
85289 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
85290
85291         * modules/gethrxtime: New file.
85292         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
85293         (Depends-on): Add gethrxtime.
85294         (configure.ac): Add gl_XNANOSLEEP.
85295         (Makefile.am): Remove lib_SOURCES line.
85296
85297 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
85298
85299         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
85300         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
85301
85302 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
85303
85304         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
85305         * lib/timespec.h (gettime): Return void, since it always
85306         succeeds now.  All uses changed.
85307         * lib/gettime.c (gettime): Likewise.
85308         [HAVE_NANOTIME]: Prefer nanotime.
85309         Assume gettimeofday succeeds, as POSIX requires.
85310         Assime time () succeeds, since other code already does.
85311         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
85312         (timespec_subtract): Remove.
85313         (NANOSLEEP_BUG_WORKAROUND): New constant.
85314         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
85315         things considerably.  Use it only on GNU/Linux hosts, since the
85316         workaround shouldn't be needed elsewhere.
85317
85318 2005-02-24  Bruno Haible  <bruno@clisp.org>
85319
85320         * modules/gettext (Files): Add m4/glibc2.m4.
85321
85322 2005-02-24  Bruno Haible  <bruno@clisp.org>
85323
85324         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
85325         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
85326         * m4/progtest.m4:
85327         Update from GNU gettext 0.14.2.
85328         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
85329
85330 2005-02-24  Bruno Haible  <bruno@clisp.org>
85331
85332         * lib/localcharset.c: Update from GNU gettext 0.14.2.
85333         * lib/config.charset: Update from GNU gettext 0.14.2.
85334
85335 2005-02-24  Bruno Haible  <bruno@clisp.org>
85336
85337         * lib/gettext.h: Update from GNU gettext 0.14.2.
85338
85339 2005-02-23  Simon Josefsson  <jas@extundo.com>
85340
85341         * m4/iconvme.m4: New file.
85342
85343 2005-02-23  Jim Meyering  <jim@meyering.net>
85344
85345         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
85346         change.
85347         Thanks to Bruno Haible for catching it.
85348
85349 2005-02-22  Simon Josefsson  <jas@extundo.com>
85350
85351         * modules/iconvme: New file.
85352
85353         * MODULES.html.sh: Add iconvme.
85354
85355 2005-02-22  Simon Josefsson  <jas@extundo.com>
85356
85357         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
85358
85359 2005-02-22  Simon Josefsson  <jas@extundo.com>
85360
85361         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
85362
85363 2005-02-22  Jim Meyering  <jim@meyering.net>
85364
85365         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
85366         s/ifndef/ifdef/.
85367
85368 2005-02-20  Neil Conway  <neilc@samurai.com>
85369
85370         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
85371         returned by OSX/Darwin if the specified buffer is not large
85372         enough for the hostname.
85373
85374 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85375
85376         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
85377         pass it to _help, otherwise the latter coredumps trying to
85378         dereference state.root_argp.
85379
85380 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85381
85382         * modules/chdir-long (Depends-on): Add memrchr.
85383         * modules/memrchr (Files): Add lib/memrchr.h.
85384         (Include): "memrchr.h".
85385
85386 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85387
85388         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
85389
85390 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85391
85392         * lib/memrchr.h: New file.
85393         * lib/chdir-long.c: Include it.
85394         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
85395         Don't bother including stddef.h.
85396
85397 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
85398
85399         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
85400         inclusion.
85401         Include <sys/types.h>, for dev_t.
85402         (ME_DUMMY, ME_REMOTE): Move from here....
85403         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
85404         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
85405         Dmitry V. Levin.
85406         Include mountlist.h first, to test the interface.
85407
85408 2005-01-29  Bruno Haible  <bruno@clisp.org>
85409
85410         * lib/progname.c (program_name): Initialize.
85411         Needed when linking statically on MacOS X.
85412
85413 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
85414
85415         Sync from coreutils.
85416         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
85417         (Depends-on): Add c-strtod.
85418         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
85419
85420 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
85421
85422         Sync from coreutils.
85423         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
85424
85425         Remove files that are specific to coreutils.
85426         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
85427
85428 2005-01-28  Bruno Haible  <bruno@clisp.org>
85429
85430         * modules/javacomp: New file.
85431         * MODULES.html.sh (Java): Add javacomp.
85432
85433 2005-01-28  Bruno Haible  <bruno@clisp.org>
85434
85435         * m4/javacomp.m4: New file, from GNU gettext.
85436
85437 2005-01-28  Bruno Haible  <bruno@clisp.org>
85438
85439         * lib/javacomp.sh.in: New file, from GNU gettext.
85440         * lib/javacomp.h: New file, from GNU gettext.
85441         * lib/javacomp.c: New file, from GNU gettext.
85442
85443 2005-01-26  Simon Josefsson  <jas@extundo.com>
85444
85445         * lib/gai_strerror.c: Use GPL in header.
85446
85447 2005-01-26  Bruno Haible  <bruno@clisp.org>
85448
85449         * modules/javaexec: New file.
85450         * MODULES.html.sh (Java): Add javaexec.
85451
85452 2005-01-26  Bruno Haible  <bruno@clisp.org>
85453
85454         * m4/javaexec.m4: New file, from GNU gettext.
85455
85456 2005-01-26  Bruno Haible  <bruno@clisp.org>
85457
85458         * lib/javaexec.sh.in: New file, from GNU gettext.
85459         * lib/javaexec.h: New file, from GNU gettext.
85460         * lib/javaexec.c: New file, from GNU gettext.
85461
85462 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85463
85464         * modules/lchown (Depends-on): Remove lchown.h
85465
85466 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85467
85468         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
85469         must be defined if the header file was not found, in order
85470         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
85471
85472 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85473
85474         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
85475         initializers for struct pentry_state.
85476         (__argp_error): Check return value of __asprintf
85477         (__argp_failure): Translate error message
85478
85479         * lib/argp-parse.c: Removed braces around the expansion of N_()
85480
85481 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
85482
85483         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
85484         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
85485         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
85486         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
85487         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
85488         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
85489         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
85490         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
85491         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
85492         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
85493         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
85494         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
85495         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
85496         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
85497         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
85498         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
85499         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
85500         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
85501         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
85502         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
85503         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
85504         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
85505         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
85506         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
85507         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
85508         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
85509         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
85510         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
85511         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
85512         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
85513         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
85514         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
85515         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
85516         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
85517         xstrtol.m4, xstrtoumax.m4, yesno.m4:
85518         Use an all-permissive copyright notice, recommended by RMS.
85519
85520 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
85521
85522         * modules/chdir-long (Depends-on): Remove mempcpy.
85523
85524 2005-01-21  Jim Meyering  <jim@meyering.net>
85525
85526         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
85527         same value as for Solaris 9.
85528
85529         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
85530         component length.  This included changing the parameter to be
85531         of type `char *' rather than `char const *'.
85532         * lib/chdir-long.h (chdir_long): Update prototype.
85533
85534         * lib/openat.c (fdopendir, fstatat): New functions.
85535         * lib/openat.h: Include headers required for use of DIR and struct
85536         stat.
85537         [AT_SYMLINK_NOFOLLOW]: Define.
85538         (fdopendir, fstatat): Add prototypes.
85539
85540 2005-01-21  Bruno Haible  <bruno@clisp.org>
85541
85542         * modules/classpath: New file.
85543         * MODULES.html.sh (Java): Add classpath.
85544
85545 2005-01-21  Bruno Haible  <bruno@clisp.org>
85546
85547         * lib/classpath.h: New file, from GNU gettext.
85548         * lib/classpath.c: New file, from GNU gettext.
85549
85550 2005-01-20  Simon Josefsson  <jas@extundo.com>
85551
85552         * modules/version-etc-fsf: New file.
85553
85554 2005-01-20  Simon Josefsson  <jas@extundo.com>
85555
85556         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
85557         * lib/version-etc.c: Remove version_etc_copyright.
85558         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
85559         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
85560
85561 2005-01-20  Simon Josefsson  <jas@extundo.com>
85562
85563         * lib/base64.h (isbase64): Add.
85564
85565         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
85566         using a unsigned prototype, don't inline.
85567         (base64_decode): Use it.
85568
85569 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85570
85571         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
85572         it.
85573
85574 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85575
85576         * lib/save-cwd.c (save_cwd): Remove code to support the case
85577         where fchdir is missing or flaky.
85578
85579 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85580
85581         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
85582
85583 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
85584
85585         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
85586         AC_LIBSOURCES now does this.
85587         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
85588         with new ullong_max module.
85589
85590 2005-01-19  Bruno Haible  <bruno@clisp.org>
85591
85592         * modules/sh-quote: New file.
85593         * MODULES.html.sh (Executing programs): Add sh-quote.
85594
85595 2005-01-19  Bruno Haible  <bruno@clisp.org>
85596
85597         * lib/sh-quote.h: New file, from GNU gettext.
85598         * lib/sh-quote.c: New file, from GNU gettext.
85599
85600 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85601
85602         Merge from coreutils.
85603         * m4/ullong_max.m4: New file.
85604         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
85605         (gl_MACROS): Assume localeconv exists.
85606
85607 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85608
85609         Merge changes from coreutils, as described below in several
85610         changelogs dated today.
85611
85612         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
85613         (O_DIRECTORY): Remove; not needed here, since "." must be
85614         a directory.  All uses removed.
85615         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
85616         universal on Suns, and we also need to test for IRIX.
85617         Revamp code to use 'if' rather than '#if'.
85618         Avoid unnecessary comparison of cwd->desc to 0.
85619
85620         * lib/utimens.c (futimens): Robustify the previous patch, by checking
85621         for known valid error numbers rather than observed invalid ones.
85622
85623 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85624
85625         * modules/ullong_max: New file.
85626
85627         * modules/chdir-long, modules/openat: New files.
85628         * modules/save-cwd (Depends-on): Depend on chdir-long.
85629         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
85630
85631 2005-01-18  Jim Meyering  <jim@meyering.net>
85632
85633         Merge from coreutils.
85634         * m4/chdir-long.m4, m4/openat.m4: New files.
85635         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
85636         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
85637         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
85638         is sane and DOES follow symlinks.  Besides, testing 20 different
85639         systems found no broken chown implementations.
85640         Prompted by a change in rsync's copy of this macro.
85641         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
85642
85643         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
85644
85645         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
85646         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
85647         NULL-means-set-to-current-time semantics.
85648         Remove temporary file immediately, rather than waiting
85649         for configure's at-exit trap code to do it.
85650
85651 2005-01-18  Jim Meyering  <jim@meyering.net>
85652
85653         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85654
85655         * lib/utimens.c (futimens): Account for the fact that futimes
85656         can also fail with errno == ENOSYS or errno == ENOENT.
85657         Patch from Dmitry V. Levin.
85658
85659         Change the name of the robust chdir function from chdir to chdir_long.
85660         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
85661         (restore_cwd): Use chdir_long, not chdir.
85662         * lib/chdir-long.c: Renamed from chdir.c.
85663         * lib/chdir-long.h: Renamed from chdir.h.
85664         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
85665         Hurd.
85666
85667 2005-01-18  Bruno Haible  <bruno@clisp.org>
85668
85669         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
85670         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
85671         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
85672         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
85673         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
85674         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
85675         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
85676         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
85677         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
85678         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
85679         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
85680         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
85681         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
85682         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
85683         Use an all-permissive copyright notice, recommended by RMS.
85684
85685 2005-01-18  Bob Proulx  <bob@proulx.com>
85686
85687         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
85688         simplify offsetof() macro construct to avoid compile failure with
85689         native HP-UX 11.0 ANSI C compiler.
85690
85691 2005-01-17  Bruno Haible  <bruno@clisp.org>
85692
85693         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
85694         redundant because stpncpy.m4 takes care of it.
85695
85696 2005-01-17  Bruno Haible  <bruno@clisp.org>
85697
85698         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
85699
85700 2005-01-17  Bruno Haible  <bruno@clisp.org>
85701
85702         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
85703         used.
85704
85705 2005-01-17  Bruno Haible  <bruno@clisp.org>
85706
85707         * lib/fwriteerror.h (fwriteerror): Change specification to include
85708         fclose.
85709         * lib/fwriteerror.c: Include <stdbool.h>.
85710         (fwriteerror): At the end, close the file stream. Record whether
85711         stdout was already closed.
85712
85713 2005-01-17  Bruno Haible  <bruno@clisp.org>
85714
85715         * lib/execute.c (environ): Declare if needed.
85716         * lib/pipe.c (environ): Likewise.
85717         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
85718
85719 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85720
85721         * modules/argp: Depend on vsnprintf
85722
85723 2005-01-10  Jim Meyering  <jim@meyering.net>
85724
85725         * modules/closeout (Depends-on): Add atexit.
85726
85727 2005-01-06  Bruno Haible  <bruno@clisp.org>
85728
85729         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
85730
85731 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
85732
85733         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
85734         definitions to be after all include files, to avoid collisions.
85735         Problem reported by Bob Proulx.
85736
85737 2005-01-04  Jim Meyering  <jim@meyering.net>
85738
85739         Changes imported from coreutils.
85740         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
85741         as the mkstemp template, use a temporary directory and an
85742         8.3-friendly template to avoid trouble on systems like DJGPP.
85743         Reported by Juan M. Guerrero via Stepan Kasal.
85744         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
85745         close. Remove the temporary directory right away, rather than waiting
85746         for configure's at-exit trap code to do it.
85747         Suggestion from Stepan Kasal.
85748
85749 2005-01-01  Simon Josefsson  <jas@extundo.com>
85750
85751         * gnulib-tool: Print #include directives when --import'ing.
85752
85753 2004-12-28  Simon Josefsson  <jas@extundo.com>
85754
85755         * tests/test-base64.c: Include required header files.  Remove
85756         unused variables.
85757
85758 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85759
85760         * modules/error (Depends-on): Remove gettext.
85761
85762 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85763
85764         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
85765         not needed.  This removes a dependency on the gettext module.
85766         [defined _LIBC]: Do not include <libintl.h>; not needed.
85767
85768 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85769
85770         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
85771         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
85772
85773 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85774
85775         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
85776         HAVE_DECL_STRTOLD.
85777
85778 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85779
85780         * modules/getdate (Depends-on): Remove alloca-opt.
85781
85782 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85783
85784         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
85785
85786 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85787
85788         * lib/argp-parse.c: Include <stddef.h>.
85789         (alignof, alignto): New macros.
85790         (parser_init): Don't assume that void * is aligned sufficiently
85791         for struct option.
85792
85793         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
85794         need to extend the stack.
85795         (YYINITDEPTH): New macro, so that the initial stack isn't overly
85796         large.
85797
85798 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85799
85800         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
85801
85802 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85803
85804         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
85805         (2004-10-24) change.  Apparently this was a false alarm.
85806
85807         * modules/getdate: Depend on alloca-opt, not alloca.
85808
85809 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85810
85811         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
85812         Remove now-obsolete comment about AIX.
85813         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
85814         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
85815         (YYMAXDEPTH): New macro.
85816
85817 2004-12-18  Simon Josefsson  <jas@extundo.com>
85818
85819         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
85820
85821 2004-12-18  Bruno Haible  <bruno@clisp.org>
85822
85823         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
85824
85825 2004-12-18  Bruno Haible  <bruno@clisp.org>
85826
85827         * lib/fatal-signal.c (fatal_signals): Make non-const.
85828         (init_fatal_signals): New function.
85829         (uninstall_handlers, install_handlers): Ignore signals that were set to
85830         SIG_IGN.
85831         (at_fatal_signal): Call init_fatal_signals.
85832         (init_fatal_signal_set): Likewise. Ignore signals that were set to
85833         SIG_IGN.
85834         Reported by Paul Eggert.
85835
85836 2004-12-18  Bruno Haible  <bruno@clisp.org>
85837
85838         * doc/alloca.texi: New file.
85839         * doc/alloca-opt.texi: New file.
85840
85841 2004-12-17  Jim Meyering  <jim@meyering.net>
85842
85843         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
85844         Otherwise, install-sh could exit with improper exit status when
85845         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
85846
85847 2004-12-16  Simon Josefsson  <jas@extundo.com>
85848
85849         * tests/test-base64.c: Add license.
85850
85851 2004-12-15  Stepan Kasal  <address@hidden>
85852
85853         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
85854
85855 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
85856
85857         * modules/getcwd (Files): Add m4/d-ino.m4.
85858         Suggested by Mark D. Baushke.
85859
85860 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85861
85862         * lib/getdate.y (textint): New member "negative".
85863         (time_zone_hhmm): New function.
85864         Expect 14 shift-reduce conflicts, not 13.
85865         (o_colon_minutes): New rule.
85866         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
85867         (yylex): Set the "negative" member of signed numbers.
85868
85869 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85870
85871         * doc/getdate.texi (Time of day items, Time zone items):
85872         Describe new formats +00:00, UTC+00:00.
85873
85874 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
85875
85876         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
85877         spurious "-l"s.  Problem reported by Stepan Kasal.
85878
85879 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
85880
85881         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
85882         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
85883
85884 2004-12-04  Simon Josefsson  <jas@extundo.com>
85885
85886         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
85887         Vandoorselaere <yoann@prelude-ids.org>.
85888
85889 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85890
85891         Changes imported from coreutils.
85892         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
85893         exist.
85894         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
85895
85896 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85897
85898         Changes imported from coreutils.
85899         * lib/hard-locale.c: Assume <locale.h> exists.
85900         Include "strdup.h".
85901         (GLIBC_VERSION): New macro.
85902         (hard_locale): Assume setlocale exists.
85903         Rewrite to avoid #ifdef.
85904         Use strdup rather than malloc + strcpy.
85905         * lib/human.c: Assume <locale.h> exists.
85906         (human_readable): Assume localeconv exists.
85907
85908 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85909
85910         * modules/hard-locale (Depends-on): Add strdup.
85911
85912 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
85913
85914         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
85915         convert T2, not T.  (Imported from libc.)
85916
85917 2004-11-30  Simon Josefsson  <jas@extundo.com>
85918
85919         * modules/restrict (License): Change to LGPL.
85920
85921 2004-11-30  Simon Josefsson  <jas@extundo.com>
85922
85923         * m4/restrict.m4: Add copyright and copying conditions.
85924
85925 2004-11-30  Simon Josefsson  <jas@extundo.com>
85926
85927         * m4/base64.m4: New file.
85928
85929 2004-11-30  Simon Josefsson  <jas@extundo.com>
85930
85931         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
85932         base64.
85933
85934         * tests/test-base64.c: New file.
85935
85936         * modules/base64: New file.
85937
85938 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85939
85940         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
85941         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
85942
85943         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
85944
85945 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85946
85947         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
85948         (__getcwd.c): Don't restore errno; glibc doesn't.
85949         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
85950         first, falling back to our code only if its results look suspicious.
85951         Ensure that the resulting buffer is only as large as necessary.
85952
85953         * lib/readutmp.c: Include readutmp.h first.
85954         Include <errno.h>, since readutmp.h no longer does that.
85955         * lib/readutmp.h: Don't include <errno.h>,
85956         <sys/param.h>, <time.h>; not needed to establish interface.
85957         (errno): Remove decl.
85958         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
85959         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
85960         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
85961
85962 2004-11-28  Simon Josefsson  <jas@extundo.com>
85963
85964         * lib/base64.h, base64.c: New file.
85965
85966 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
85967
85968         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
85969
85970 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
85971
85972         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
85973         (Depends-on): Remove pathmax, same.  Add mempcpy.
85974         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
85975         (Makefile.am): Append getcwd.h to lib_SOURCES.
85976         (Include): Add getcwd.h.
85977         (Maintainer): Change from Jim Meyering to "all, glibc",
85978         since getdate now uses intended-for-glibc code.
85979         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
85980         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
85981
85982 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85983
85984         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
85985         HP's ANSI C compiler.
85986         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
85987         Declaring int functions causes warnings on some modern systems and
85988         shouldn't be needed to compile on ancient ones.
85989         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
85990         defined.
85991
85992         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
85993         with the following changes.
85994         (__set_errno): Parenthesize properly.
85995         Include <stdbool.h>.
85996         (MIN, MAX, MATCHING_INO): New macros.
85997         (__getcwd): Define with prototype, not K&R form.
85998         Use heuristics to allocate default buffer on stack if possible.
85999         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
86000         behavior, and to avoid the PATH_MAX limit when computing
86001         ../../../../...
86002         Use MATCHING_INO to compare inode number to file.
86003         Check for arithmetic overflow in size calculations.
86004         Fix bug in reallocation of dot array that caused getcwd to fail
86005         on directories nested deeper than 75.
86006         Be more careful about saving errno on error.
86007         Do not use realloc; use only free+malloc, as this is a bit
86008         more flexible and avoids a needless copy operation.
86009         Do not inspect st_dev and st_ino for symbolic links; POSIX
86010         doesn't specify the latter.
86011         Check for closedir errors.
86012         Avoid needless casts.
86013         Use "#ifdef weak_alias" around weak_alias, to be like other
86014         glibc code.
86015         The following changes to getcwd.c have effect only when used in
86016         gnulib; they have no effect inside glibc proper.
86017         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
86018         as alloca isn't used.
86019         (alloca, __alloca): Likewise.
86020         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
86021         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
86022         unconditionally, as gnulib assumes C89 or better.
86023         Do not include <sys/param.h>.
86024         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
86025         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
86026         better.
86027         (NULL) [!defined NULL]: Remove; we assume C89 or better.
86028         Include <dirent.h> in a way that is compatible with modern Autoconf.
86029         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
86030         New macros, if not already defined.
86031         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
86032         Use "_LIBC", not "defined _LIBC", for consistency.
86033         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
86034         a mempcpy module.
86035         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
86036         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
86037         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
86038         credit only to Jim Meyering and adjust the copyright dates.
86039         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
86040         <stdlib.h>, <unistd.h>, "pathmax.h".
86041         Instead, include "xgetcwd.h" (first) and "getcwd.h".
86042         (INITIAL_BUFFER_SIZE): Remove.
86043         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
86044
86045 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
86046
86047         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
86048         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
86049         Use the _ONCE methods, for efficiency.
86050         Check for fcntl.h.  In test program, include <errno.h>
86051         and <fcntl.h> if available.  Remove old K&R cruft from
86052         test program.  Check for common errors in GNU/Linux,
86053         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
86054         don't do AC_LIBOBJ, as that's getcwd.m4's job.
86055         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
86056         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
86057         name accordingly.
86058         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
86059         accommodate new getcwd.c.
86060         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
86061         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
86062         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
86063         that's all we need now.
86064
86065 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86066
86067         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
86068         argp-parse.c depends on getopt internals, that means we should
86069         always use our getopt, to be on the safe side.
86070         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
86071         order not to spoil the result of an eventual previous invocation
86072         of gl_GETOPT_SUBSTITUTE.
86073
86074 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86075
86076         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
86077         redefinition warnings. To avoid them, include the defines
86078         in `#if !defined __need_getopt ... #endif'. The only place
86079         where __getopt_argv_const is used is in definitions
86080         of getopt_long and getopt_long_only below, which are as well
86081         protected by `#ifndef __need_getopt'.
86082         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
86083         __need_getopt after including <stdio.h> and <unistd.h> These
86084         headers might have defined it.
86085
86086 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
86087
86088         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
86089
86090 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
86091
86092         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
86093         (futimens): New function, which uses futimes if available.
86094         (futimens, utimens): Support timespec==NULL, with same semantics
86095         as utime and utimens.
86096         * lib/utimens.h (futimens): New decl.
86097
86098 2004-11-23  Jim Meyering  <jim@meyering.net>
86099
86100         * lib/getopt_.h: Remove trailing blanks.
86101
86102 2004-11-23  Jim Meyering  <jim@meyering.net>
86103
86104         * lib/__fpending.c: Add comment.
86105
86106 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
86107
86108         * modules/canonicalize (Depends-on): Add xreadlink.
86109         Problem reported by James Youngman.
86110
86111 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
86112
86113         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
86114         New macros.
86115         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
86116         optopt): Use them instead of invoking ## directly; otherwise, the
86117         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
86118
86119 2004-11-19  Bruno Haible  <bruno@clisp.org>
86120
86121         * lib/strtok_r.c: Move comments from here...
86122         * lib/strtok_r.h: ... to here.
86123
86124 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
86125
86126         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
86127         implementations that mishandle size_t overflow.
86128
86129 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
86130
86131         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
86132         might fail.  Problem reported by Yoann Vandoorselaere.
86133         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
86134         implementations that mishandle size_t overflow.
86135
86136 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86137
86138         * modules/canon-host (Depends-on): Add strdup.
86139
86140 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86141
86142         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
86143
86144 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86145
86146         * lib/canon-host.c: Include "strdup.h".
86147         (canon_host): Use getaddrinfo if available, so that IPv6 works.
86148         Use strdup instead of malloc/strcpy to duplicate strings.
86149
86150         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
86151         (human_space_before_unit): New constant.
86152         * lib/human.c (human_readable): Support it.
86153
86154         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
86155         (xgetcwd): Set errno correctly when failing.
86156         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
86157         the failure is actually due to a PATH_MAX problem.
86158
86159         Further getopt changes to make it more likely that glibc will
86160         buy the changes back.
86161         * lib/getopt.c (POSIXLY_CORRECT): New constant.
86162         (getopt): Use it, so to preserve glibc semantic
86163         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
86164         when compiling for libc.
86165         * lib/getopt_.h (__getopt_argv_const): Bring it back.
86166         (getopt_long, getopt_long_only): Use it.
86167
86168         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
86169         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
86170         (getopt): Argv is now char * const *, as per standard.
86171         (_getopt_internal_r, _getopt_internal): Argv is now char **,
86172         not char *__getopt_argv_const *.
86173         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
86174         _getopt_long_only_r): Likewise.
86175         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
86176         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
86177         _getopt_long_r, _getopt_long_only_r): Likewise.
86178         * lib/getopt_.h (__getopt_argv_const): Remove.
86179         (getopt): Argv is now char * const *, as per standard.
86180
86181         * lib/getdate.y (tORDINAL): New token.
86182         (day, relunit): Allow it for relative times.
86183         (relative_time_table): Use tORDINAL for ordinals.
86184
86185 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86186
86187         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
86188         Document that "second" isn't allowed as an ordinal number.
86189
86190 2004-11-16  Jim Meyering  <jim@meyering.net>
86191
86192         * modules/closeout (Depends-on): Add fpending.
86193
86194 2004-11-15  Jim Meyering  <jim@meyering.net>
86195
86196         * lib/closeout.c: Include "__fpending.h" once again.
86197         Include <stdbool.h>.
86198         (close_stdout): Don't fail just because stdout was closed initially,
86199         since some programs don't write to stdout in the normal course of
86200         operation (other than --version and --help), and we don't want this
86201         function to make e.g. `touch file >&-' fail.
86202         But do fail if it was closed and someone has tried to write to it.
86203         E.g., `printf foo >&-' must fail.
86204
86205 2004-11-13  Jim Meyering  <jim@meyering.net>
86206
86207         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
86208
86209 2004-11-12  Simon Josefsson  <jas@extundo.com>
86210
86211         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
86212         small doc fix is still pending.
86213
86214 2004-11-11  Simon Josefsson  <jas@extundo.com>
86215
86216         * modules/strtok_r: New file.
86217
86218         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86219         strtok_r.
86220
86221 2004-11-11  Simon Josefsson  <jas@extundo.com>
86222
86223         * m4/strtok_r.m4: New file.
86224
86225         * m4/getopt.m4: Replace opterr.
86226
86227 2004-11-11  Simon Josefsson  <jas@extundo.com>
86228
86229         * lib/strtok_r.h, strtok_r.c: New file.
86230
86231 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
86232
86233         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
86234         of replacing opterr, getopt, etc.  This should handle the
86235         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
86236
86237 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
86238
86239         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
86240         we can stop lying to compilers about the constness of argv when we
86241         are compiled outside glibc.
86242         (getopt, getopt_long, getopt_long_only): Use it.
86243         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
86244         _getopt_internal, getopt): Likewise.
86245         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
86246         _getopt_long_only_r): Likewise.
86247         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
86248         _getopt_long_r, _getopt_long_only_r): Likewise.
86249
86250         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
86251         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
86252         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
86253         the other external symbols.
86254         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
86255         declaration, since the above renaming now works around collisions.
86256
86257 2004-11-11  Jim Meyering  <jim@meyering.net>
86258
86259         * lib/linebreak.c: Remove trailing blanks.
86260         * lib/alloca_.h: Likewise.
86261         * lib/acosl.c: Likewise.
86262         * lib/euidaccess.c: Likewise.
86263         * lib/allocsa.h: Likewise.
86264
86265 2004-11-10  Simon Josefsson  <jas@extundo.com>
86266
86267         * m4/getaddrinfo.m4: New file.
86268
86269 2004-11-10  Simon Josefsson  <jas@extundo.com>
86270
86271         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
86272
86273 2004-11-10  Simon Josefsson  <jas@extundo.com>
86274
86275         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86276         getaddrinfo.
86277
86278         * modules/getaddrinfo: New file.
86279
86280 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
86281
86282         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
86283
86284 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
86285
86286         * lib/mktime.c (SHR): New macro, which is a portable
86287         substitute for >> that should work even on Crays.
86288         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
86289         Problem reported by Mark D. Baushke in
86290         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
86291         * lib/getdate.y (SHR): Likewise.
86292         (tm_diff): Use it.
86293         * lib/strftime.c (SHR): Likewise.
86294         (tm_diff): Use it.
86295         * lib/quotearg.c (struct quoting_options): Use unsigned int for
86296         quote_these_too, so that right shifts are well defined.  All uses
86297         changed.
86298
86299 2004-11-10  Jim Meyering  <jim@meyering.net>
86300
86301         Ensure that no close failure goes unreported.
86302         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
86303         return early when it seems there's nothing to flush.
86304         Don't include __fpending.h.
86305
86306 2004-11-10  Jim Meyering  <jim@meyering.net>
86307
86308         * modules/closeout (Depends-on): Remove fpending.
86309
86310 2004-11-10  Jim Meyering  <jim@meyering.net>
86311
86312         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
86313
86314 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
86315
86316         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
86317         gl_FUNC_STRFTIME.
86318         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
86319         and AC_REQUIRE when possible, to avoid duplicate checks.
86320         Check for <wchar.h>.
86321
86322 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
86323
86324         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
86325
86326 2004-11-09  Bruno Haible  <bruno@clisp.org>
86327
86328         * m4/sockpfaf.m4: New file.
86329
86330 2004-11-05  Bruno Haible  <bruno@clisp.org>
86331
86332         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
86333         Reported by Mark D. Baushke <mdb@cvshome.org>.
86334
86335 2004-11-04  Bruno Haible  <bruno@clisp.org>
86336
86337         2004-09-11  Bruno Haible  <bruno@clisp.org>
86338                 * allocsa.valgrind: New file.
86339         2004-02-06  Bruno Haible  <bruno@clisp.org>
86340                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
86341                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
86342                 Reported by Christopher Seip <chris.seip@hp.com>.
86343
86344 2004-11-04  Bruno Haible  <bruno@clisp.org>
86345
86346         * modules/allocsa (Files): Add lib/allocsa.valgrind.
86347         (Makefile.am): Distribute it.
86348
86349 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
86350
86351         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
86352         with errno == ERANGE if the buffer is too small.
86353         Problem reported by Mark D. Baushke.
86354
86355 2004-11-03  Albert Chin  <china@thewrittenword.com>
86356             Paul Eggert  <eggert@cs.ucla.edu>
86357
86358         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
86359         equivalent, substitute $ac_type for equivalent type rather than
86360         blindly using uint32_t *always* which won't work if uint32_t is not
86361         available.  Define _UINT32_T to work around typedef of uint32_t if
86362         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
86363         2.5.1.
86364
86365 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86366
86367         * m4/jm-macros.m4: Sync from coreutils.
86368         (gl_MACROS): Check for mbrlen, for pathchk.
86369         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
86370
86371 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86372
86373         * lib/xreadlink.c (MAXSIZE): New macro.
86374         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
86375         size does not exceed MAXSIZE.  Avoid cast.
86376         As suggested by Mark D. Baushke in
86377         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
86378         if readlink fails with buffer size just under MAXSIZE, try again
86379         with MAXSIZE.
86380
86381 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86382
86383         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
86384
86385 2004-11-02  Derek R. Price  <derek@ximbiot.com>
86386         and  Paul Eggert  <eggert@cs.ucla.edu>
86387
86388         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
86389         (get_date): Overparenthesize to avoid GCC warning.
86390
86391 2004-11-02  Bruno Haible  <bruno@clisp.org>
86392
86393         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
86394         returns void.
86395
86396 2004-11-02  Bruno Haible  <bruno@clisp.org>
86397
86398         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
86399         function returns void.
86400
86401 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
86402
86403         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
86404         fflush_unlocked, flockfile, funlockfile, funlockfile,
86405         fputs_unlocked, putc_unlocked.
86406
86407 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
86408
86409         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
86410         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
86411         already declared.
86412
86413 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86414
86415         * modules/getdate (Files): Add doc/getdate.texi.
86416         (Depends-on): Add setenv, xalloc.
86417
86418 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86419
86420         * lib/getdate.y: Add support for TZ="foo" within a date string.
86421         Fix some bugs near time_t boundaries.  Reject dates with
86422         out-of-range components, e.g., "Sept 31".
86423         Include <stdlib.h>, "setenv.h", "xalloc.h".
86424         (ISDIGIT_LOCALE): Remove; unused.
86425         Note that the TZ and time functions used here are not reentrant.
86426         (mktime_ok, get_tz): New functions.
86427         (TZBUFSIZE): New constant.
86428         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
86429         This requires that we sometimes generate our own TZ="XXX..." setting.
86430
86431 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86432
86433         * doc/getdate.texi: New file, from coreutils with modifications for
86434         the new TZ parsing.
86435
86436 2004-10-27  Derek R. Price  <derek@ximbiot.com>
86437
86438         * lib/mktime.c (not_equal_tm): Remove redundant check.
86439
86440 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86441
86442         * modules/regex (lib_SOURCES): Add regex.c.
86443         Reported by James Youngman in
86444         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
86445
86446 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86447
86448         * lib/getdate.y: Use Bison 1.875 features, and some minor
86449         code cleanups.  This change does not affect semantics.
86450         Don't include <stdlib.h>; no longer needed.
86451         Don't include unlocked-io.h; only the "#if TEST" code uses
86452         stdio, and performance isn't crucial there.
86453         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
86454         Bison 1.875 features as described below.
86455         All uses of "PC." replaced by "pc->".
86456         (YYSTYPE): Add a forward declaration.
86457         (yylex, yyerror): Use full prototypes in forward decls.
86458         Use "%pure-parser" rather than obsolescent "%pure_parser".
86459         Use %parse-param and %lex-param instead of obsolescent
86460         YYPARSE_PARAM and YYLEX_PARAM.
86461         (meridian_table, month_and_day_table, time_units_table,
86462         relative_time_table, time_zone_table, military_table,
86463         lookup_zone, lookup_word, get_date):
86464         Use NULL instead of 0 where appropriate.
86465         (to_hour): Avoid abort (), to avoid a dependency on
86466         stdlib.h.
86467         (yyerror, yylex): Now accepts parser_control * arg.
86468         (main) [TEST]: Use '\0' rather than 0 for char.
86469
86470 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
86471
86472         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
86473
86474 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
86475
86476         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
86477         It's now the caller's responsibility to handle the case where
86478         !HAVE_GETPAGESIZE && !defined getpagesize.
86479
86480         * lib/mktime.c (leapyear): Arg is long int, not int.
86481
86482 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
86483
86484         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
86485
86486 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
86487
86488         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
86489         missing.  Problem reported by James Youngman.
86490
86491 2004-10-16  Simon Josefsson  <jas@extundo.com>
86492
86493         * gnulib-tool: Fix comments.  Fix parse problem.
86494         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
86495
86496 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
86497
86498         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
86499         implementation of getopt_long.  Problem reported by Alexander Taler in:
86500         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
86501
86502 2004-10-15  Bruno Haible  <bruno@clisp.org>
86503
86504         * gnulib-tool: Untabify. Initialize supplied_libname.
86505         (func_usage): More homogenous output.
86506         (func_modules_transitive_closure, func_modules_to_filelist,
86507         func_emit_lib_Makefile_am): New functions.
86508         (func_import): New function, extracted from big case statement. Use
86509         func_get_license, func_modules_transitive_closure,
86510         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
86511         opt_lgpl. Don't use test -a, as it's not portable.
86512         (func_create_testdir): Use func_modules_transitive_closure,
86513         func_modules_to_filelist, func_emit_lib_Makefile_am.
86514
86515 2004-10-15  Bruno Haible  <bruno@clisp.org>
86516
86517         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
86518
86519 2004-10-15  Bruno Haible  <bruno@clisp.org>
86520
86521         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
86522         the portions belonging to each module.
86523         Suggested by Derek Robert Price <derek@ximbiot.com>.
86524
86525 2004-10-12  Simon Josefsson  <jas@extundo.com>
86526
86527         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
86528         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
86529         to real functions.
86530
86531 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86532
86533         * modules/vsnprintf: New file.
86534
86535 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86536
86537         * m4/vsnprintf.m4: New file.
86538
86539 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86540
86541         * lib/vsnprintf.h: New file.
86542         * lib/vsnprintf.c: New file.
86543
86544 2004-10-11  Bruno Haible  <bruno@clisp.org>
86545
86546         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
86547         vsnprintf.
86548
86549 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
86550
86551         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
86552
86553 2004-10-07  Bruno Haible  <bruno@clisp.org>
86554
86555         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
86556         fits into the provided buffer.
86557
86558 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
86559
86560         * lib/diacrit.c, diacrit.h: Add GPL notice.
86561
86562         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
86563         notice.
86564         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
86565         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
86566         This avoids a potential constant-folding bug.
86567
86568 2004-10-05  Bruno Haible  <bruno@clisp.org>
86569
86570         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
86571         for the declaration of strsep.
86572
86573 2004-10-05  Bruno Haible  <bruno@clisp.org>
86574
86575         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
86576
86577 2004-10-04  Simon Josefsson  <jas@extundo.com>
86578
86579         * modules/memmem: New file.
86580         * tests/test-memmem.c: New file.
86581         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
86582
86583 2004-10-04  Simon Josefsson  <jas@extundo.com>
86584
86585         * m4/memmem.m4: New file.
86586
86587 2004-10-04  Simon Josefsson  <jas@extundo.com>
86588
86589         * lib/memmem.h: New file.
86590         * lib/memmem.c: New file, taken from glibc.
86591
86592 2004-10-04  Simon Josefsson  <jas@extundo.com>
86593
86594         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
86595         '#ifdef USE_UNLOCKED_IO'.
86596
86597 2004-10-04  Simon Josefsson  <jas@extundo.com>
86598
86599         * config/srclist.txt: Add memmem from glibc.
86600
86601 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86602
86603         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
86604
86605         * modules/argmatch, modules/argp, modules/closeout, modules/error,
86606         modules/exclude, modules/getdate, modules/getline,
86607         modules/getndelim2, modules/getpass, modules/getpass-gnu,
86608         modules/getusershell, modules/linebuffer, modules/md5,
86609         modules/mountlist, modules/posixtm, modules/readtokens,
86610         modules/readutmp, modules/regex, modules/sha1,
86611         modules/version-etc, modules/yesno:
86612         Remove dependency on unlocked-io.
86613
86614 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86615
86616         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
86617
86618         * m4/unlocked-io.m4: Add copyright notice.
86619         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
86620
86621 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86622
86623         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
86624         * lib/xmalloc.c (xmemdup): Likewise.
86625         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
86626         XFREE): Remove these long-obsolescent macros.
86627         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
86628         * lib/xstrdup.c: Remove.
86629
86630         * lib/regex.c (re_comp): Cast gettext return value to char *,
86631         Problem reported by Martin Neitzel via Mark D. Baushke.
86632
86633 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86634
86635         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
86636         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
86637         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
86638         regex.c, sha1.c, version-etc.c, yesno.c:
86639         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
86640         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
86641         the includer's responsibility.
86642
86643         Sync from coreutils.
86644
86645         * lib/modechange.c (mode_compile): Don't decrement a pointer that
86646         points to the start of a string, as the C Standard says the
86647         resulting behavior is undefined.
86648
86649         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
86650         simple -> simple_backups, numbered_existing ->
86651         numbered_existing_backups, numbered -> numbered_backups
86652         to avoid shadowing problems.  All uses changed.
86653         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
86654         * lib/backupfile.c (check_extension, numbered_backup):
86655         Rename locals to avoid shadowing 'basename'.
86656         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
86657         once.
86658
86659         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
86660         * lib/.cvsignore: Add getopt.h.
86661
86662 2004-10-04  Bruno Haible  <bruno@clisp.org>
86663
86664         * modules/README: New file.
86665         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
86666         not a module.
86667
86668 2004-10-02  Jim Meyering  <jim@meyering.net>
86669
86670         * lib/dirfd.h, getpagesize.h: Add copyright notice.
86671
86672 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86673
86674         * modules/strsep: New file.
86675
86676 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86677
86678         * m4/strsep.m4: New file.
86679
86680 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86681
86682         * lib/strsep.h: New file.
86683         * lib/strsep.c: New file.
86684
86685 2004-10-01  Simon Josefsson  <jas@extundo.com>
86686
86687         * lib/snprintf.c (snprintf): Handle size==0.
86688
86689 2004-10-01  Simon Josefsson  <jas@extundo.com>
86690             Bruno Haible  <bruno@clisp.org>
86691
86692         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
86693         (snprintf): Declare 'args'.
86694
86695 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
86696
86697         * lib/snprintf.c: Remove comments as to why each header is needed.
86698
86699 2004-10-01  Bruno Haible  <bruno@clisp.org>
86700
86701         * MODULES.html.sh: Add strsep.
86702
86703 2004-09-30  Simon Josefsson  <jas@extundo.com>
86704
86705         * modules/snprintf: New file.
86706
86707 2004-09-30  Simon Josefsson  <jas@extundo.com>
86708
86709         * m4/snprintf.m4: New file.
86710
86711 2004-09-30  Simon Josefsson  <jas@extundo.com>
86712
86713         * lib/snprintf.h, lib/snprintf.c: New files.
86714
86715 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86716
86717         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
86718         (hol_entry_help): Never translate an empty string.
86719         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
86720         * lib/argp.h (OPTION_NO_TRANS): New option.
86721
86722 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86723
86724         * modules/argp (Maintainer): Replace Simon Josefsson
86725         by Sergey Poznyakoff.
86726
86727 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86728
86729         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
86730         changes merged back into glibc.
86731
86732 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86733
86734         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
86735
86736 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86737
86738         * lib/xvasprintf.c: Include xalloc.h.
86739         (xvasprintf): Use xalloc_die, not xmalloc_die.
86740
86741 2004-09-29  Bruno Haible  <bruno@clisp.org>
86742
86743         * modules/alloca-opt: New file, derived from modules/alloca.
86744         * modules/allocsa: Depend on alloca-opt instead of alloca.
86745         * modules/setenv: Likewise.
86746         * modules/vasnprintf: Likewise.
86747         * MODULES.html.sh: Add alloca-opt.
86748
86749 2004-09-28  Simon Josefsson  <jas@extundo.com>
86750
86751         * gnulib-tool: New parameter --lgpl, to asseert that modules are
86752         LGPL, and to replace license template from GPL to LGPL.
86753
86754 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86755
86756         * modules/dummy: Change license to LGPL.
86757
86758 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86759
86760         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
86761
86762 2004-09-24  Simon Josefsson  <jas@extundo.com>
86763
86764         * modules/minmax (License): Change from GPL to LGPL.
86765
86766 2004-09-23  Simon Josefsson  <jas@extundo.com>
86767
86768         * gnulib-tool (--import): Typo.
86769
86770 2004-09-23  Simon Josefsson  <jas@extundo.com>
86771
86772         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
86773
86774 2004-09-22  Bruno Haible  <bruno@clisp.org>
86775
86776         * modules/*: Add 'License' field.
86777         * gnulib-tool: Accept --extract-license option.
86778         (func_get_license): New function.
86779
86780 2004-09-21  Bruno Haible  <bruno@clisp.org>
86781
86782         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
86783         Reported by Simon Josefsson.
86784
86785 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86786
86787         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
86788         gl_AC_TYPE_LONG_LONG.
86789
86790 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86791
86792         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
86793
86794 2004-09-18  Simon Josefsson  <jas@extundo.com>
86795         and  Paul Eggert  <eggert@cs.ucla.edu>
86796
86797         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
86798         calls with autoreconf.  Define GL_LIB.
86799
86800 2004-09-14  Karl Berry  <karl@gnu.org>
86801
86802         * config/srclist.txt: unsync setenv.c, sigh.
86803
86804 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86805
86806         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
86807         Problem reported by Bruno Haible in:
86808         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
86809
86810 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86811
86812         * config/srclist.txt: Comment out argp-pvh.c.
86813
86814 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
86815
86816         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
86817         in case some system header has #define'd it.  Problem reported by
86818         Soeren D. Schulze in
86819         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
86820
86821 2004-09-09  Karl Berry  <karl@gnu.org>
86822
86823         * regex.[ch]: delete from the root.  These were supposed to be
86824                 synced with emacs cvs, but this has not happened for about
86825                 a year, and anyway nothing else uses emacs regex.[ch].
86826                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
86827                 lib/regex[.ch] is untouched.
86828
86829 2004-09-09  Bruno Haible  <bruno@clisp.org>
86830
86831         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
86832
86833 2004-09-09  Bruno Haible  <bruno@clisp.org>
86834
86835         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
86836         modifications.
86837         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
86838
86839 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86840
86841         * modules/xvasprintf: New file.
86842         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
86843
86844 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86845
86846         * lib/xvasprintf.h: New file.
86847         * lib/xvasprintf.c: New file.
86848         * lib/xasprintf.c: New file.
86849
86850 2004-09-08  Bruno Haible  <bruno@clisp.org>
86851
86852         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
86853
86854 2004-09-08  Bruno Haible  <bruno@clisp.org>
86855
86856         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
86857         length is > INT_MAX.
86858         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
86859         more.
86860
86861 2004-09-08  Bruno Haible  <bruno@clisp.org>
86862
86863         * lib/stdint_.h: New file, taken from GNU clisp.
86864
86865 2004-09-08  Bruno Haible  <bruno@clisp.org>
86866             Oskar Liljeblad  <oskar@osk.mine.nu>
86867
86868         * modules/stdint: New file.
86869         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
86870
86871 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86872
86873         Import from coreutils.
86874         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
86875         strings on unbounded length.  alloca's performance benefits aren't
86876         that important here.
86877         (V_STRDUP): Remove.
86878         (parse_with_separator): New function, with most of the internals
86879         of the old parse_user_spec.  Allow user to omit both user and group,
86880         for compatibility with FreeBSD.
86881         Clone only the user name, not the entire spec.
86882         Do not set *uid, *gid unless entirely successful.
86883         Avoid memory leak in some failing cases.
86884         Fix regression for USER.GROUP reported by Dmitry V. Levin in
86885         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
86886         (parse_user_spec): Rewrite to use parse_with_separator.
86887
86888 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86889
86890         * modules/userspec: Don't depend on alloca.
86891
86892 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86893
86894         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
86895
86896 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86897
86898         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
86899         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
86900         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
86901
86902 2004-08-16  Simon Josefsson  <jas@extundo.com>
86903
86904         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
86905         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
86906         Add --dry-run for --import.
86907         Let user provided command line parameters override configure.ac
86908         settings.
86909
86910 2004-08-12  Simon Josefsson  <jas@extundo.com>
86911
86912         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
86913         as discussed with Paul Eggert in threads rooted at
86914         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
86915         and
86916         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
86917         Before, the test was empty, and relied on ELIDE_CODE in source
86918         code.)
86919         (gl_PREREQ_GETOPT): New macro.
86920         (gl_GETOPT): Use them.
86921
86922 2004-08-12  Simon Josefsson  <jas@extundo.com>
86923
86924         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
86925         * lib/getopt_.h: Renamed from getopt.h.
86926
86927 2004-08-12  Simon Josefsson  <jas@extundo.com>
86928
86929         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
86930         Change default library name from libfoo to libgnu.
86931         Now, if you have a configure.ac that says:
86932                 gl_SOURCE_BASE(gl)
86933                 gl_M4_BASE(gl/m4)
86934                 gl_MODULES(error getopt etcetera)
86935                 gl_INIT
86936         you can import all you need by running:
86937                 ../gnulib/gnulib-tool --import
86938
86939         * modules/getopt (Files): Rename getopt.h to getopt_.h.
86940         (Makefile.am): Rewrite, use logic from argz.
86941         (Include): Use <getopt.h> instead of "getopt.h".
86942
86943 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86944
86945         * modules/argp (Files): Add m4/unlocked-io.m4.
86946         (Depends-on): Add extensions.
86947
86948 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86949
86950         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
86951         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
86952         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
86953         Check for program_invocation_name, program_invocation_short_name,
86954         flockfile, funlockfile, features.h, _getopt_long_only_r.
86955
86956 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86957
86958         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
86959         its complicated substitute.
86960         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
86961         and program_invocation_name.
86962         (__argp_basename) [!_LIBC]: Remove; the only use was
86963         replaced by its body.
86964         (__argp_short_program_name): Change condition from
86965         !defined __argp_short_program_name to
86966         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
86967         to match argp-namefrob.h.
86968         (__argp_failure): Don't assume strerror_r returns char *.
86969         * lib/argp-parse.c (N_): Define unconditionally.
86970         (argp_default_options): Fill out initializers with 0 to avoid
86971         gcc warnings.
86972
86973 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86974
86975         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
86976         getopt1.c.
86977
86978 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86979
86980         Merge from coreutils.
86981
86982         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
86983
86984         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
86985         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
86986
86987 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86988
86989         Merge from coreutils.
86990
86991         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
86992         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
86993         for Reliant Unix 5.43.
86994
86995         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
86996         (union fooround): Use uintmax_t, not long int.
86997         The rest is a merge from libc:
86998         [defined _LIBC]: Include <shlib-compat.h>.
86999         (_obstack) [defined _LIBC]: Remove after 2.3.4.
87000
87001         * lib/settime.c (settime): Recode to avoid warning with
87002         Sun Forte C 6U2.
87003
87004         * lib/strverscmp.c: Convert to UTF-8.
87005
87006 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
87007
87008         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
87009         m4/uintmax_t.m4.
87010
87011 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
87012
87013         * modules/xalloc-die: New file.
87014         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
87015
87016         * modules/md5 (Files): Add m4/uint32_t.m4.
87017         * modules/sha1: Renamed from modules/sha.
87018         (Files):
87019         Rename lib/sha.h to lib/sha1.h.
87020         Rename lib/sha.c to lib/sha1.c.
87021         Rename m4/sha.m4 to m4/sha1.m4.
87022         (lib_SOURCES): Likewise.
87023         (configure.ac): Rename gl_SHA to gl_SHA1.
87024         (Include): sha.h -> sha1.h.
87025
87026 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
87027
87028         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
87029         * m4/sha1.m4: Renamed from sha.m4.
87030         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
87031
87032 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
87033
87034         * lib/obstack.h (obstack_empty_p):
87035         Don't assume that chunk->contents is suitably aligned.
87036         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
87037         Likewise. Problem reported by Benno in
87038         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
87039
87040         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
87041         readable.  This could be improved further but it'd take some work.
87042
87043 2004-08-08  Simon Josefsson  <jas@extundo.com>
87044
87045         * modules/xgethostname (Depends-on): Remove exit and error (not
87046         used).
87047
87048         * modules/getpass-gnu: Add getpass.h.
87049         (Depends-on): Add stdbool.
87050         * modules/getpass: Add getpass.h.
87051
87052 2004-08-08  Simon Josefsson  <jas@extundo.com>
87053
87054         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
87055         Check getpass declaration.
87056
87057 2004-08-08  Simon Josefsson  <jas@extundo.com>
87058
87059         * lib/xgethostname.c: Don't include error.h (not used).
87060
87061         * lib/getpass.h: Add.
87062         * lib/getpass.c: Include getpass.h first.
87063
87064 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
87065
87066         * lib/xalloc-die.c: New file.
87067         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
87068         All uses removed.
87069         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
87070         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
87071         xalloc-die.c.
87072         (_, N_, xalloc_die): Move to xalloc-die.c.
87073         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
87074         so that we needn't mess with xalloc_msg_memory_exhausted.
87075
87076         * lib/sha1.h: Renamed from sha.h.
87077         (SHA1_H): Renamed from _SHA_H.
87078         (sha1_ctx): Renamed from sha_ctx.
87079         (sha1_init_ctx): Renamed from sha_init_ctx.
87080         (sha1_process_block): Renamed from sha_process_block.
87081         (sha1_process_bytes): Renamed from sha_process_bytes.
87082         (sha1_finish_ctx): Renamed from sha_finish_ctx.
87083         (sha1_read_ctx): Renamed from sha_read_ctx.
87084         (sha1_stream): Renamed from sha_stream.
87085         (sha1_buffer): Renamed from sha_buffer.
87086         * lib/sha1.c: Likewise; renamed from sha.c.
87087         Do not include <sys/types.h>.
87088         Include <stddef.h> rather than <stdlib.h>.
87089
87090 2004-08-08  Bruno Haible  <bruno@clisp.org>
87091
87092         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
87093         FILESYSTEM_PREFIX_LEN.
87094         * lib/progreloc.c: Likewise.
87095         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
87096
87097 2004-08-06  Simon Josefsson  <jas@extundo.com>
87098
87099         * modules/progname (Depends-on): Don't depend on stdbool.
87100
87101 2004-08-06  Simon Josefsson  <jas@extundo.com>
87102
87103         * modules/getsubopt: New file.
87104         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87105         getsubopt.
87106
87107 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87108
87109         More merge from coreutils.
87110
87111         * m4/utimens.m4, m4/utimecmp.m4: New files.
87112         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
87113         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
87114         prereq.m4, sha.m4: Import changes from coreutils.
87115
87116 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87117
87118         More merge from coreutils.
87119         * modules/raise, modules/readtokens0, modules/utimens:
87120         * modules/utimecmp, module/xnanosleep: New files.
87121         * modules/strftime: Add lib/strftime.h.
87122         Change include from <time.h> to "strftime.h".
87123         * modules/yesno: Add lib/yesno.h.
87124         * modules/backupfile: Remove lib/addext.c.
87125         * modules/euidaccess: Add stat-macros.h.
87126         * modules/canonicalize, modules/euidaccess,
87127         modules/filemode, modules/lchown, modules/makepath,
87128         modules/rmdir, modules/stat: Likewise.
87129
87130 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87131
87132         Merge from tar.
87133         * lib/argp-help.c (make_hol, hol_append): Don't assume that
87134         SIZE_MAX is a valid preprocessor constant.
87135         (__argp_basename): Change from "#ifndef _LIBC"
87136         to "#ifndef __argp_short_program_name", so that
87137         we don't compile these functions for tar.
87138
87139         More merges from coreutils.
87140         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
87141         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
87142         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
87143         * lib/addext.c: Remove; no longer needed.
87144         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
87145         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
87146         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
87147         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
87148         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
87149         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
87150         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
87151         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
87152         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
87153         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
87154         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
87155         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
87156         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
87157         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
87158         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
87159         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
87160         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
87161         Import changes from coreutils.
87162
87163 2004-08-05  Simon Josefsson  <jas@extundo.com>
87164
87165         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
87166
87167 2004-08-05  Simon Josefsson  <jas@extundo.com>
87168
87169         * m4/getsubopt.m4: New file.
87170
87171 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87172
87173         Merge from coreutils.
87174
87175         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
87176         * m4/getcwd-path-max.m4: New files.
87177
87178         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
87179         FILESYSTEM_PREFIX_LEN ->
87180         FILE_SYSTEM_PREFIX_LEN.
87181         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
87182         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
87183         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
87184         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
87185
87186         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
87187         prerequisite modules now handle the DOS stuff.
87188         Don't check for unistd.h.
87189
87190 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87191
87192         Merge from coreutils.
87193
87194         * lib/.gdb-history: Remove; this doesn't belong here.
87195
87196         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
87197         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
87198         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
87199         * lib/getcwd.c: New files.
87200
87201         * lib/dirname.h: Include <stdbool.h>.
87202         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
87203         for consistency with POSIX terminology.  All uses changed.
87204         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
87205         (strip_trailing_slashes): Use bool for booleans.
87206         * lib/stripslash.c (strip_trailing_slashes): Likewise.
87207
87208         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
87209         sometimes returns a positive errno value even when it succeeds.
87210         (print_errno_message) [!LIBC]: Fall back on strerror if
87211         __strerror_r fails.
87212
87213         * lib/path-concat.c (mempcpy): Don't define if a system header defines
87214         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
87215         (longest_relative_suffix): New function.
87216         (path_concat): Use it.  Assume first argument is not NULL.
87217         Port to DOS.  Omit redundant separators.
87218         Report an error instead of returning NULL.
87219         Use mempcpy instead of memcpy.
87220         (xpath_concat): Remove: not declared or used.
87221
87222         * lib/same.h: Include <stdbool.h>
87223         (same_name): Return bool, not int.
87224         * lib/same.c (same_name): Likewise.
87225         (errno): Don't declare; we assume C89 or better now.
87226
87227         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
87228         if not already defined.
87229
87230         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
87231         * lib/dup-safer.c (errno): Likewise.
87232
87233 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87234
87235         Merge from coreutils.
87236         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
87237         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
87238         * modules/path-concat: Don't depend on strdup.
87239
87240 2004-08-03  Simon Josefsson  <jas@extundo.com>
87241
87242         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
87243         * lib/progname.h: Don't include stdbool.h.
87244
87245 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87246
87247         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
87248         * MODULES.html.sh (func_all_modules): Remove fatal.
87249
87250 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87251
87252         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
87253
87254 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87255
87256         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
87257         working.
87258
87259 2004-08-02  Simon Josefsson  <jas@extundo.com>
87260
87261         * lib/getsubopt.h: New file, with comments from Bruno Haible.
87262         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
87263         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
87264
87265 2004-08-01  Simon Josefsson  <jas@extundo.com>
87266
87267         * lib/xgetdomainname.c: Include stdlib.h, for free().
87268
87269 2004-07-19  Bruno Haible  <bruno@clisp.org>
87270
87271         * MODULES.html.sh (func_all_modules): Add dummy.
87272
87273 2004-07-16  Simon Josefsson  <jas@extundo.com>
87274
87275         * modules/dummy: New file.
87276
87277 2004-07-16  Simon Josefsson  <jas@extundo.com>
87278
87279         * lib/dummy.c: New file.
87280
87281 2004-07-16  Bruno Haible  <bruno@clisp.org>
87282
87283         * lib/backupfile.h: Add extern "C" for C++.
87284         * lib/closeout.h: Likewise.
87285         * lib/copy-file.h: Likewise.
87286         * lib/findprog.h: Likewise.
87287         * lib/full-write.h: Likewise.
87288         * lib/pathname.h: Likewise.
87289         * lib/progname.h: Likewise.
87290         * lib/stpcpy.h: Likewise.
87291         * lib/stpncpy.h: Likewise.
87292         * lib/strcase.h: Likewise.
87293         * lib/strstr.h: Likewise.
87294         * lib/xalloc.h: Likewise.
87295
87296         * lib/mbswidth.h: Add extern "C" for C++.
87297         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
87298
87299 2004-07-13  Robert Millan  <robertmh@gnu.org>
87300
87301         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
87302
87303 2004-07-09  Simon Josefsson  <jas@extundo.com>
87304
87305         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
87306         failed without this.)
87307
87308 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
87309
87310         * modules/chown (Files): Add lib/fchown-stub.c, since
87311         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
87312
87313 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
87314
87315         * lib/fchown-stub.c: New file.
87316
87317 2004-06-24  Jim Meyering  <jim@meyering.net>
87318
87319         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
87320
87321 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87322
87323         * modules/argz: Omit "#include".
87324
87325         * MODULES.html.sh (func_all_modules): Add calloc, to match
87326         2004-06-01 addition of calloc module.
87327
87328 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87329
87330         * m4/argz.m4: New file, which is autoupdated from libtool.
87331
87332 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87333
87334         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
87335         libtool.
87336
87337 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87338
87339         * config/srclist-update: Don't insist on "USA." before the
87340         close-comment, as libtool omits the period and puts the */ on a
87341         separate line.
87342         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
87343         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
87344
87345 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
87346
87347         * modules/argz: New file.
87348         * MODULES.html.sh (func_all_modules): Add argz.
87349
87350 2004-06-12  Jim Meyering  <jim@meyering.net>
87351         and  Paul Eggert  <eggert@cs.ucla.edu>
87352
87353         * modules/hash (Files): Add lib/xalloc.h.
87354         * modules/pipe (Depends-on): Add wait-process.
87355         * modules/stat (Depends-on): Add xalloc.
87356         * modules/userspec (Files): Add lib/userspec.h.
87357         * modules/xstrto
87358
87359         Upgrade from gettext-0.13.
87360         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
87361         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
87362         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
87363
87364 2004-06-10  Jim Meyering  <jim@meyering.net>
87365
87366         * lib/calloc.c: New file.
87367
87368 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
87369
87370         * lib/getdate.y (yylex): Allow space between sign and number.
87371         Problem reported by Dan Jacobson.
87372
87373 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
87374
87375         Merge from coreutils CVS.
87376
87377         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
87378         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
87379         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
87380         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
87381         xstrtol.m4: Fix copyright date and/or serial number.
87382
87383         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
87384         See if we need an fchown replacement.
87385         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
87386         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
87387         and use the replacement function if we detect either defect.
87388
87389         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
87390         gl_UTIMECMP.
87391
87392 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
87393         and  Jim Meyering  <jim@meyering.net>
87394
87395         Merge from coreutils CVS.
87396
87397         * lib/stat-macros.h: New file, with contents from file-type.h
87398         and coreutils' system.h.
87399         * lib/file-type.c: Include "stat-macros.h".
87400         * lib/file-type.h (file_type): Move all macro definitions to new file,
87401         stat-macros.h.
87402
87403         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
87404         Wrap old code with this conditional.
87405         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
87406         function that does not dereference symlinks.
87407         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
87408
87409         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
87410         dependency problems.
87411         (xreadlink): Accept new arg SIZE, for efficiency.
87412         All decls and uses changed.
87413         * lib/xreadlink.h: Include <stddef.h>, for size_t.
87414
87415         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
87416         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
87417
87418         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
87419         sysexits.h.
87420
87421 2004-06-01  Jim Meyering  <jim@meyering.net>
87422
87423         * m4/calloc.m4: New file.
87424
87425 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
87426
87427         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
87428         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
87429         Also, fix a typo in a diagnostic.
87430
87431 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
87432
87433         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
87434         or AC_FUNC_REALLOC.
87435
87436 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
87437
87438         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
87439         macros to be defined.
87440         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
87441         the allocator returns NULL because the requested size is zero.
87442
87443 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87444
87445         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
87446         var.  Add comment explaining why libc still defines it.  This
87447         merges the following patch from glibc:
87448         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
87449
87450 2004-05-20  Andreas Schwab  <schwab@suse.de>
87451
87452         * m4/free.m4: Replace free if it not known to work, not the other
87453         way round.
87454
87455 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
87456
87457         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
87458         present in glibc since revision 1.1 of this file.
87459         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
87460         obstack_alignment_mask, obstack_alloc, obstack_base,
87461         obstack_blank, obstack_blank_fast, obstack_chunk_size,
87462         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
87463         obstack_grow0, obstack_init, obstack_int_grow,
87464         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
87465         obstack_next_free, obstack_object_size, obstack_ptr_grow,
87466         obstack_ptr_grow_fast, obstack_room): Remove declarations of
87467         nonexistent functions.
87468
87469 2004-05-18  Karl Berry  <karl@gnu.org>
87470
87471         * config/srclist.txt: break link for vasnprintf.c.
87472
87473 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
87474
87475         Port obstack to the AS/400, where pointers are 16 bytes wide and
87476         you cannot cast an integer to a valid pointer.  This patch is
87477         currently waiting to be integrated into glibc; see
87478         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
87479
87480         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
87481         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
87482         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
87483         (struct obstack): temp member is now a union of a pointer and
87484         an integer, instead of an integer.  All integer uses changed.
87485         This does not affect the physical layout of struct obstack,
87486         except on hosts (like the AS/400) where the size or alignment of
87487         void * is greater than that of ptrdiff_t.
87488         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
87489         __STDC__)]: Store temporary in pointer member of union, not
87490         integer member.
87491         * lib/obstack.c: Include <stddef.h>, for offsetof.
87492         (struct fooalign): Remove; it doesn't need a name.
87493         (union fooround): Change double to long double, and add void *.
87494         (DEFAULT_ALIGNMENT): Use offsetof to compute.
87495         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
87496         not a macro.  Hence the values are always int; so remove all
87497         casts-to-int in uses.
87498
87499 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
87500
87501         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
87502         we can get this patch merged into glibc.
87503
87504 2004-05-17  Derek R. Price  <derek@ximbiot.com>
87505             Paul Eggert  <eggert@cs.ucla.edu>
87506
87507         * m4/argp: Depend on alloca.
87508
87509 2004-05-17  Derek R. Price  <derek@ximbiot.com>
87510             Paul Eggert  <eggert@cs.ucla.edu>
87511
87512         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
87513         freecoding.
87514
87515 2004-05-17  Bruno Haible  <bruno@clisp.org>
87516
87517         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
87518         precision that consists of a '.' followed by an empty digit string.
87519         Patch by Tor Lillqvist <tml@iki.fi>.
87520
87521 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
87522
87523         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
87524         for backward compatibility with older code.  We need our own
87525         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
87526         it under some other name, and our alloca.h will define it.
87527
87528 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
87529             Derek Price  <derek@ximbiot.com>
87530
87531         * lib/alloca.c: Include <alloca.h>, to get our interface.
87532         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
87533         include <alloca.h> first.  Use C89 prototype for alloca; this
87534         requires including <stddef.h> for size_t.  Use extern "C" if C++.
87535         Use #elif for simplicity, since we can assume C89 now.
87536         Don't try to source the system alloca.h since it will not be found
87537         and to prevent recursively including its replacement.
87538         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
87539         * lib/regex.c: Likewise.
87540
87541 2004-05-16  Derek Price  <derek@ximbiot.com>
87542             Paul Eggert  <eggert@cs.ucla.edu>
87543
87544         getline cleanup.  This changes the getndelim2 API: both order of
87545         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
87546         no delimiter).
87547
87548         * lib/getline.c: Don't include stddef.h or stdio.h, since our
87549         interface does that.
87550         (getline): Always use getdelim, so that we don't have two
87551         copies of this code.
87552         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
87553         if available.
87554         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
87555         (GETNDELIM2_MAXIMUM): New macro.
87556         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
87557         instead of the old practice of delim2==0.  All callers changed.
87558         Return -1 on overflow, instead of returning junk.
87559         Do not set *linesize unless allocation succeeds.
87560         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
87561         that we include sys/types.h.
87562         * lib/getnline.h: Likewise.
87563         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
87564         (getndelim2): Reorder arguments.
87565         * lib/getnline.c (getnline, getndelim):
87566         Don't discard the NMAX argument.
87567         (getnline): Invoke getndelim, to avoid code duplication.
87568         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
87569         of (size_t) -1 by callers of the getnline family.
87570
87571 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87572
87573         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
87574         Check for gettimeofday.
87575         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
87576         Check for settimeofday, stime.
87577
87578 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87579
87580         * lib/nanosleep.c (suspended): Change its type from int to
87581         sig_atomic_t volatile.
87582         (first_call): Make it private to rpl_nanosleep, and have it
87583         be zero initially as that's a bit faster.
87584         (my_usleep): Round up fractional times instead of truncating them,
87585         as this is the usual meaning for 'sleep'.
87586
87587         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
87588         doesn't work.
87589         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
87590         (ENOSYS): Define if not defined.
87591         (settime): Fall back on stime if it exists and settimeofday fails.
87592         But don't bother with fallbacks if a method fails with errno == EPERM.
87593
87594 2004-05-11  Jim Meyering  <jim@meyering.net>
87595
87596         Prior to this change, the save_cwd caller required read access to the
87597         current directory on most systems (ones with the fchdir function).
87598
87599         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
87600         fails, try write-only, and finally, resort to using xgetcwd.
87601
87602 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
87603
87604         * lib/obstack.c, obstack.h: Import changes from libc.
87605
87606 2004-04-28  Bruno Haible  <bruno@clisp.org>
87607
87608         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
87609         also implicitly appends .exe to executables.
87610         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
87611         accepts Windows pathnames.
87612         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
87613         Treat Cygwin like Windows, since it now accepts Windows pathnames.
87614         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
87615         Treat Cygwin like Windows, since it now accepts Windows pathnames.
87616         Reported by Derek Robert Price <derek@ximbiot.com>.
87617
87618 2004-04-21  Karl Berry  <karl@gnu.org>
87619
87620         * config/srclist.txt (localcharset.c): break sync.
87621
87622 2004-04-20  Paul Eggert  <eggert@twinsun.com>
87623
87624         * m4/host-os.m4: Add a copyright notice.
87625
87626 2004-04-20  Jim Meyering  <jim@meyering.net>
87627
87628         Change UTILS_ to gl_ in AC_DEFINE'd names.
87629         Change utils_- and jm_-prefixed variables, too.
87630         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
87631         UTILS_FUNC_MKDIR_TRAILING_SLASH.
87632         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
87633
87634         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
87635         Don't emit trailing blanks.
87636         Also rename jm_-prefixed variables to have gl_ prefix.
87637
87638         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
87639         Also rename jm_-prefixed variables to have gl_ prefix.
87640
87641         * m4/jm-macros.m4: Reflect the renamings.
87642         * m4/prereq.m4: Likewise.
87643
87644 2004-04-20  Jim Meyering  <jim@meyering.net>
87645
87646         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
87647         memory.
87648
87649 2004-04-20  Jim Meyering  <jim@meyering.net>
87650             Bruno Haible  <bruno@clisp.org>
87651
87652         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
87653         memory when realloc fails.
87654
87655 2004-04-19  Jim Meyering  <jim@meyering.net>
87656
87657         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
87658         now that readutmp.c may call `free (0)'.
87659
87660 2004-04-19  Bruno Haible  <bruno@clisp.org>
87661
87662         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
87663         * m4/inttypes_h.m4: Likewise.
87664         * m4/stdint_h.m4: Likewise.
87665         * m4/intmax_t.m4: Likewise.
87666         * m4/uintmax_t.m4: Likewise.
87667
87668 2004-04-18  Jim Meyering  <jim@meyering.net>
87669
87670         * m4/prereq.m4: Don't forbid jm_ prefix.
87671
87672         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
87673         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
87674         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
87675         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
87676         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
87677         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
87678         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
87679         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
87680         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
87681         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
87682         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
87683         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
87684         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
87685         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
87686         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
87687         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
87688         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
87689         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
87690         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
87691
87692 2004-04-18  Jim Meyering  <jim@meyering.net>
87693
87694         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
87695         failure, don't leak memory and do call END_UTMP_ENT.
87696
87697 2004-04-16  Jim Meyering  <jim@meyering.net>
87698
87699         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
87700         coreutils' stat program.
87701         (gl_PREREQ): Don't require jm_PREREQ_STAT.
87702
87703 2004-04-11  Paul Eggert  <eggert@twinsun.com>
87704
87705         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
87706         C89.
87707         (CHAR_BIT): Remove, since we assume C89.
87708         Include <stdint.h> if available, as per current Autoconf CVS advice.
87709
87710 2004-03-31  Jim Meyering  <jim@meyering.net>
87711
87712         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
87713         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
87714         * m4/xalloc.m4: Likewise.
87715
87716 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87717
87718         Merge from coreutils.
87719
87720         * m4/inttostr.m4: New file.
87721         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
87722         Require AM_STDBOOL_H and gl_TIMESPEC instead.
87723         Require gl_CLOCK_TIME.
87724         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
87725
87726 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87727
87728         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
87729         not bool, to be more consistent with Unix conventions.
87730         Suggested by Bruno Haible.
87731
87732         Merge from coreutils.
87733
87734         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
87735         * lib/umaxtostr.c: New files.
87736
87737         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
87738         the usual <time.h> dance.
87739         (get_date): Change signature to support fractional time stamps.
87740         All callers changed.
87741         * lib/getdate.y: Include "getdate.h" first, as we can now
87742         assume C89 and don't need to worry about 'const'.
87743         Similarly, include "unlocked-io.h" near start, not in middle.
87744         Include <limits.h>.
87745         (textint.value): Use long int rather than int.
87746         (textint.digits): Use size_t rather than int.
87747         (BILLION, LOG10_BILLION): New constants.
87748         (parser_control): New member rel_ns.  Members day_ordinal,
87749         time_zone, month, day, hour, minutes, rel_year, rel_month,
87750         rel_day, rel_hour, rel_minutes, rel_seconds
87751         are now long int, not int.  Member seconds is now struct timespec,
87752         not int.  New member timespec_seen.  Members dates_seen, days_seen,
87753         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
87754         not int.
87755         (%union.intval): Now long int, not int.
87756         New member timespec.
87757         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
87758         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
87759         (spec): Now is a timespec or an item list.
87760         (timespec, items): New nonterminals.
87761         (time, rel, relunit, number, get_date):
87762         Add support for fractional seconds.
87763         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
87764         (gmtime, localtime, mktime): Remove decls; not needed with C89.
87765         (to_hour): First arg is now long int, not int.
87766         (to_year): Returns long int, not int.
87767         Don't treat year -70 like 70.
87768         (tm_diff): Returns long int, not int.
87769         (lookup_word): Use bool instead of int when appropriate.
87770         (yylex): Use size_t for count, not int.
87771         Detect overflow when parsing large integer constants.
87772         Add support for fractions.
87773         (get_date): Make pointers 'const' if possible.
87774         Use more-portable code to detect integer overflow.
87775         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
87776         Don't use ctime; it's not reliable if the year has >4 digits.
87777
87778         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
87779         This is for compatibility with BSD.
87780
87781         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
87782         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
87783         From coreutils' system.h.
87784
87785         * lib/userspec.c: Don't include "posixver.h".
87786         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
87787         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
87788         compatible extension.  Simplify code by removing a boolean int
87789         that was always nonzero if a string was nonnull.
87790
87791 2004-03-30  Jim Meyering  <jim@meyering.net>
87792
87793         Merge from coreutils.
87794
87795         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
87796         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
87797         on some systems one must include <grp.h> before it.
87798         Reported by Christian Krackowizer.
87799
87800 2004-03-30  Jim Meyering  <jim@meyering.net>
87801
87802         Merge from coreutils.
87803
87804         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
87805
87806         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
87807         an empty input stream.
87808
87809         * lib/readtokens.c: Include <stdbool.h>.
87810         (readtoken): Use `size_t' rather than int/long.
87811         All callers adjusted.
87812         Use `bool' rather than `int' where appropriate.
87813         Use memset rather than an explicit loop.
87814         Use x2nrealloc rather than xrealloc.
87815         Allow the use of `\0' as a delimiter.
87816         (readtokens): Likewise.
87817         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
87818
87819 2004-03-30  Jim Meyering  <jim@meyering.net>
87820
87821         * m4/realloc.m4: Remove file, since now it does no more than
87822         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
87823         the `configure.ac' section of module/realloc.
87824         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
87825
87826 2004-03-30  Bruno Haible  <bruno@clisp.org>
87827
87828         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
87829         nonnull.
87830
87831 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87832
87833         Merge changes to getloadavg.c from coreutils and Emacs.
87834
87835         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
87836         Define to an expression, not to the empty string.
87837         Include cloexec.h and xalloc.h.
87838         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
87839         Use set_cloexec_flag rather than rolling our own.
87840         * lib/cloexec.c, lib/cloexec.h: New files.
87841
87842 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87843
87844         * m4/cloexec.m4: New file.
87845
87846 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87847
87848         * lib/getopt.h: Sync with libc CVS.
87849
87850 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87851             Bruno Haible  <bruno@clisp.org>
87852
87853         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
87854         mbswidth.
87855
87856 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87857             Bruno Haible  <bruno@clisp.org>
87858
87859         * lib/mbswidth.h: Include <wchar.h> only if
87860         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
87861         <wchar.h>.
87862         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
87863
87864 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87865
87866         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
87867         Sync with libc CVS.
87868         * lib/getopt_int.h: New file, also synced from libc.
87869
87870 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87871
87872         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
87873         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
87874         Bring back getopt.c, getopt.h, getopt1.c.
87875
87876 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87877
87878         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
87879         All uses changed.  Check for sa_sigaction member; this fixes
87880         a bug first reported by Jason Andrade in
87881         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87882
87883 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87884
87885         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
87886         '#if' expressions.  Unlike the code it replaces, it does not
87887         depend on (defined _SC_PAGESIZE).  However, it does depend on
87888         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
87889         first reported by Jason Andrade in
87890         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87891
87892 2004-02-25  Simon Josefsson  <jas@extundo.com>
87893
87894         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
87895
87896 2004-02-25  Simon Josefsson  <jas@extundo.com>
87897
87898         * lib/strdup.h: New file.
87899         * lib/strdup.c: Include it.
87900         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
87901         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
87902
87903 2004-02-23  Karl Berry  <karl@gnu.org>
87904
87905         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
87906         (from fencepost.gnu.org:/gd/gnuorg).
87907
87908 2004-02-23  Karl Berry  <karl@gnu.org>
87909
87910         * config/srclistvars.sh (GNUORG) [karl]: redefine.
87911         * config/srclist.txt: add maintain/standards documents.
87912
87913 2004-02-18  Bruno Haible  <bruno@clisp.org>
87914
87915         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
87916         Reported by Derek Robert Price <derek@ximbiot.com>.
87917
87918 2004-02-16  Karl Berry  <karl@gnu.org>
87919
87920         * config/mkinstalldirs, install-sh: update from automake.
87921
87922 2004-02-06  Karl Berry  <karl@gnu.org>
87923
87924         * m4/po.m4: update from gettext 0.14.1.
87925
87926 2004-02-06  Karl Berry  <karl@gnu.org>
87927
87928         * lib/config.charset: update from gettext 0.14.1.
87929
87930 2004-02-05  Paul Eggert  <eggert@twinsun.com>
87931
87932         Add comments and code, prompted by suggestions from Bruno Haible
87933         for sh-quote.
87934         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
87935         describing the enum quoting_style values.
87936         * lib/quotearg.c (quotearg_alloc): New function.
87937         (quotearg_buffer_restyled): Treat lone { and } as special.
87938         Treat = as special.  Work around bug with older shells
87939         that "see" a '\' that is really the 2nd byte of a multibyte char.
87940         Quote empty string with shell_quoting_style.
87941
87942 2004-02-03  Bruno Haible  <bruno@clisp.org>
87943
87944         * m4/pipe.m4: New file, from GNU gettext.
87945
87946 2004-02-03  Bruno Haible  <bruno@clisp.org>
87947
87948         * lib/pipe.h: New file, from GNU gettext.
87949         * lib/pipe.c: New file, from GNU gettext.
87950
87951 2004-01-27  Bruno Haible  <bruno@clisp.org>
87952
87953         * m4/execute.m4: New file, from GNU gettext.
87954
87955 2004-01-27  Bruno Haible  <bruno@clisp.org>
87956
87957         * lib/execute.h: New file, from GNU gettext.
87958         * lib/execute.c: New file, from GNU gettext.
87959         * lib/w32spawn.h: New file, from GNU gettext.
87960
87961 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87962
87963         Merge from diffutils.
87964
87965         * lib/file-type.c (file_type): Add typed memory objects.
87966         * lib/file-type.h (S_TYPEISTMO): New macro.
87967
87968         * lib/c-stack.h (c_stack_action): Remove argv argument.
87969         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
87970         (die): Don't calculate message unless segv_action returns.
87971         (get_stack_location, min_address_from_argv, max_address_from_argv,
87972         volatile stack_base, volatile_stack_size): Remove.
87973         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
87974         that every segmentation violation is a stack overflow.  (Ouch!)
87975         See Debian bug 136249 (still outstanding) for more info about why
87976         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
87977
87978 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87979
87980         Exit-status fix from coreutils.
87981
87982         Use exit_failure consistently in place of EXIT_FAILURE,
87983         so that program exit statuses are consistent on failure.
87984
87985         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
87986         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
87987         * lib/argmatch.h: Comment fix to match the above.
87988         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
87989         Now a macro referring to exit_failure, instead of a separate
87990         variable.  Include "exitfail.h" to get it.
87991         * lib/xstrtol.h: Include "exitfail.h".
87992         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
87993
87994         * lib/long-options.c (parse_long_options): Use prototype
87995         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
87996         for clarity.
87997
87998 2004-01-21  Jim Meyering  <jim@meyering.net>
87999
88000         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
88001         so as not to conflict with a different-sized __mktime_internal
88002         function in GNU libc.
88003         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
88004         Problem building statically-linked `ls' reported by Michael Brunnbauer.
88005
88006 2004-01-20  Karl Berry  <karl@gnu.org>
88007
88008         * config/config.guess: update from config.
88009
88010         * config/srclistvars.sh: GNUWWWLICENSES for karl.
88011
88012 2004-01-20  Bruno Haible  <bruno@clisp.org>
88013
88014         Safer stack allocation.
88015         * lib/setenv.c: Include allocsa.h.
88016         (alloca): Remove fallback definition.
88017         (freea): Remove macro.
88018         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
88019         instead of freea.
88020
88021 2004-01-20  Bruno Haible  <bruno@clisp.org>
88022
88023         * m4/eealloc.m4: New file, from GNU gettext.
88024
88025 2004-01-20  Bruno Haible  <bruno@clisp.org>
88026
88027         * m4/allocsa.m4: New file, from GNU gettext.
88028
88029 2004-01-20  Bruno Haible  <bruno@clisp.org>
88030
88031         * lib/xallocsa.h: New file, from GNU gettext.
88032         * lib/xallocsa.c: New file, from GNU gettext.
88033
88034 2004-01-20  Bruno Haible  <bruno@clisp.org>
88035
88036         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
88037
88038 2004-01-20  Bruno Haible  <bruno@clisp.org>
88039
88040         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
88041         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
88042         specially.
88043
88044 2004-01-20  Bruno Haible  <bruno@clisp.org>
88045
88046         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
88047         patch.
88048
88049 2004-01-20  Bruno Haible  <bruno@clisp.org>
88050
88051         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
88052
88053 2004-01-20  Bruno Haible  <bruno@clisp.org>
88054
88055         * lib/eealloc.h: New file.
88056
88057 2004-01-20  Bruno Haible  <bruno@clisp.org>
88058
88059         * lib/binary-io.h: Avoid warnings on Cygwin.
88060
88061 2004-01-20  Bruno Haible  <bruno@clisp.org>
88062
88063         * lib/allocsa.h: New file, from GNU gettext.
88064         * lib/allocsa.c: New file, from GNU gettext.
88065
88066 2004-01-18  Karl Berry  <karl@gnu.org>
88067
88068         * doc/gpl.texi, doc/lgpl.texi: new files.
88069
88070 2004-01-18  Karl Berry  <karl@gnu.org>
88071
88072         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
88073         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
88074
88075 2004-01-15  Paul Eggert  <eggert@twinsun.com>
88076
88077         Merge from coreutils.
88078
88079         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
88080         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
88081         (gl_DEFAULT_POSIX2_VERSION): Move
88082         the documentation from 'configure' into 'config.hin',
88083         so that 'configure --help' isn't burdened by it and
88084         we don't have to worry about its formatting there.
88085         Reword the documentation so that it's more succinct
88086         and can be run together into a single paragraph.
88087         * m4/same.m4 (gl_SAME): Check for pathconf.
88088
88089 2004-01-15  Paul Eggert  <eggert@twinsun.com>
88090
88091         Merge from coreutils.
88092
88093         * lib/posixver.c: Include posixver.h.
88094
88095         * lib/same.c: Include <stdbool.h>, <limits.h>.
88096         (_POSIX_NAME_MAX): Define if not defined.
88097         (MIN): New macro.
88098         (same_name): If file names are silently truncated, report
88099         that the file names are the same if they are the same after
88100         the silent truncation.
88101
88102         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
88103         conversion function.
88104         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
88105         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
88106         longer needed.
88107
88108 2004-01-15  Jim Meyering  <jim@meyering.net>
88109
88110         Merge from coreutils.
88111
88112         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
88113         if no library is required.
88114         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
88115         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
88116         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
88117         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
88118         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
88119         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
88120         value, $ac_cv_search_crypt, if it's "none required".
88121         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
88122         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
88123         not gl_FUNC_GETLOADAVG.
88124         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
88125         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
88126
88127 2004-01-15  Jim Meyering  <jim@meyering.net>
88128
88129         Merge from coreutils.
88130
88131         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
88132         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
88133         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
88134
88135         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
88136         optional configure-time default.
88137
88138         * lib/version-etc.c (version_etc_copyright): Update copyright date.
88139
88140         * lib/xreadlink.c (xreadlink): Correct outdated comment.
88141
88142 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
88143
88144         Merge from coreutils.
88145
88146         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
88147         value, $ac_cv_search_nanosleep, if it's "none required".
88148
88149 2004-01-14  Paul Eggert  <eggert@twinsun.com>
88150
88151         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
88152         with like-named macro in fnmatch.c.
88153         (EXT): Use an internal constant instead.
88154
88155         Merge fnmatch patches from glibc.
88156         * lib/fnmatch.c (mbsinit): Remove define.
88157         Add libc_hidden_ver (__fnmatch, fnmatch).
88158         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
88159         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
88160
88161 2004-01-14  Karl Berry  <karl@gnu.org>
88162
88163         * config/install-sh: update from automake.
88164
88165 2004-01-13  Karl Berry  <karl@gnu.org>
88166
88167         * config/install-sh: update from automake.
88168
88169 2004-01-09  Karl Berry  <karl@gnu.org>
88170
88171         * config/install-sh: update from automake.
88172
88173 2004-01-05  Karl Berry  <karl@gnu.org>
88174
88175         * config/config.{sub,guess}: update from config.
88176
88177 2003-12-31  Karl Berry  <karl@gnu.org>
88178
88179         * config/depcomp: update from automake.
88180
88181 2003-12-14  Karl Berry  <karl@gnu.org>
88182
88183         * lib/config.charset: update from gettext-runtime.
88184
88185 2003-12-03  Paul Eggert  <eggert@twinsun.com>
88186
88187         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
88188         Bug reported by Alfred M. Szmidt.
88189
88190 2003-12-03  Bruno Haible  <bruno@clisp.org>
88191
88192         * m4/gettext.m4: Upgrade from gettext-0.13.
88193         * m4/po.m4: Upgrade from gettext-0.13.
88194         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
88195         * m4/intmax.m4: New file, from gettext-0.13.
88196         * m4/printf-posix.m4: New file, from gettext-0.13.
88197
88198 2003-11-29  Karl Berry  <karl@gnu.org>
88199
88200         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
88201
88202 2003-11-25  Paul Eggert  <eggert@twinsun.com>
88203             Bruno Haible  <bruno@clisp.org>
88204
88205         * lib/printf-parse.h: Don't include sys/types.h.
88206         (ARG_NONE): New macro.
88207         (char_directive): Change type of *arg_index fields to size_t.
88208         * lib/printf-parse.c: Don't include sys/types.h.
88209         (SSIZE_MAX): Remove macro.
88210         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
88211         Remove unnecessary overflow check.
88212         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
88213         fields.
88214
88215 2003-11-25  Bruno Haible  <bruno@clisp.org>
88216
88217         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
88218
88219 2003-11-25  Bruno Haible  <bruno@clisp.org>
88220
88221         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
88222         gt_TYPE_SSIZE_T.
88223
88224 2003-11-24  Paul Eggert  <eggert@twinsun.com>
88225
88226         * modules/alloca: Remove dependency on xalloc.
88227
88228 2003-11-24  Paul Eggert  <eggert@twinsun.com>
88229
88230         * lib/alloca.c: Remove dependency on xalloc module.
88231         (xalloc_die): Remove.
88232         (memory_full) [!defined emacs]: New macro.
88233         [!defined emacs]: Don't include xalloc.h.
88234         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
88235         address arithmetic overflows.  Change datatypes a bit to avoid
88236         unnecessary casts.
88237
88238 2003-11-22  Jim Meyering  <jim@meyering.net>
88239
88240         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
88241         s/size/size_t/.
88242
88243 2003-11-21  Karl Berry  <karl@gnu.org>
88244
88245         * config/config.{sub,guess}: update from config.
88246
88247 2003-11-18  Karl Berry  <karl@gnu.org>
88248
88249         * config/config.{sub,guess}: update from config.
88250
88251         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
88252
88253 2003-11-17  Paul Eggert  <eggert@twinsun.com>
88254
88255         * README: Mention that S+T cannot overflow if S is the size of
88256         an existing object and T is sufficiently small.
88257
88258 2003-11-17  Jim Meyering  <jim@meyering.net>
88259
88260         On systems without utime and without a utimes function capable of
88261         dealing with a NULL struct utimbuf* argument, this utime replacement
88262         could -- in unusual circumstances -- leak a file descriptor.
88263         * lib/utime.c: Include <unistd.h> and <errno.h>.
88264         (utime_null): Be sure to close `fd' and to preserve errno.
88265         Reported by Geoff Collyer via Arnold Robbins.
88266
88267 2003-11-17  Bruno Haible  <bruno@clisp.org>
88268
88269         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
88270         (Depends-on): Add xsize.
88271
88272 2003-11-17  Bruno Haible  <bruno@clisp.org>
88273
88274         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
88275
88276 2003-11-17  Bruno Haible  <bruno@clisp.org>
88277
88278         * lib/vasnprintf.c (alloca): Remove fallback definition.
88279         (freea): Remove definition.
88280         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
88281         Reported by Paul Eggert.
88282
88283 2003-11-16  Paul Eggert  <eggert@twinsun.com>
88284             Bruno Haible  <bruno@clisp.org>
88285
88286         Protect against address arithmetic overflow.
88287         * lib/printf-args.h: Include stddef.h.
88288         (arguments): Change type of field 'count' to size_t.
88289         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
88290         'unsigned int' where appropriate.
88291         * lib/printf-parse.h: Include sys/types.h.
88292         (char_directive): Change type of *arg_index fields to ssize_t.
88293         (char_directives): Change type of fields 'count', max_*_length to
88294         size_t.
88295         * lib/printf-parse.c: Include sys/types.h and xsize.h.
88296         (SSIZE_MAX): Define fallback value.
88297         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
88298         instead of 'int' where appropriate. Check a_allocated, d_allocated
88299         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
88300         * lib/vasnprintf.c: Include xsize.h.
88301         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
88302         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
88303         overflow. Avoid wraparound when converting a width or precision from
88304         decimal to binary.
88305
88306 2003-11-16  Bruno Haible  <bruno@clisp.org>
88307
88308         Update from GNU gettext.
88309         * lib/printf-parse.c: Generalize to it can be compiled for wide
88310         strings.
88311         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
88312         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
88313         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
88314         SNPRINTF): New macros.
88315         Don't include <alloca.h> if the file is used inside libintl.
88316         (local_wcslen): New function, for Solaris 2.5.1.
88317         (VASNPRINTF): Use it instead of wcslen.
88318
88319 2003-11-16  Bruno Haible  <bruno@clisp.org>
88320
88321         * lib/xsize.h (xmax): New function.
88322         (xsum, xsum3, xsum4): Declare as "pure" functions.
88323
88324 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88325
88326         * modules/xalloc (Files): Undo latest change, since xalloc.h
88327         no longer needs SIZE_MAX or PTRDIFF_MAX.
88328
88329 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88330
88331         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
88332         gl_PTRDIFF_MAX.
88333
88334 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88335
88336         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
88337         "return", to pacify some unknown compiler.  Problem reported
88338         by Joerg Schilling.
88339
88340 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88341
88342         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
88343         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
88344         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
88345         heuristic is just as accurate as far as we know, and it removes a
88346         dependency on size_max.m4 and ptrdiff_max.m4.
88347
88348 2003-11-11  Bruno Haible  <bruno@clisp.org>
88349
88350         * modules/xsize (Files): Add m4/size_max.m4.
88351         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
88352
88353 2003-11-11  Bruno Haible  <bruno@clisp.org>
88354
88355         * m4/size_max.m4: New file.
88356         * m4/ptrdiff_max.m4: New file.
88357         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
88358         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
88359         (gl_XALLOC): Invoke it.
88360
88361 2003-11-11  Bruno Haible  <bruno@clisp.org>
88362
88363         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
88364         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
88365         defined.
88366
88367 2003-11-10  Paul Eggert  <eggert@twinsun.com>
88368
88369         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
88370         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
88371         rejected some allocations of exactly SIZE_MAX - 2 bytes.
88372         From Bruno Haible.
88373         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
88374         not (size_t) -1, since it's defined here.
88375
88376 2003-11-09  Karl Berry  <karl@gnu.org>
88377
88378         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
88379
88380 2003-11-06  Paul Eggert  <eggert@twinsun.com>
88381
88382         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
88383         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
88384         Reject sizes of exactly SIZE_MAX bytes.
88385         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
88386         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
88387
88388 2003-11-05  Bruno Haible  <bruno@clisp.org>
88389
88390         * lib/xsize.h: Include limits.h, to avoid a possible collision with
88391         SIZE_MAX defined in <limits.h> on Solaris.
88392
88393 2003-11-04  Jim Meyering  <jim@meyering.net>
88394
88395         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
88396         variable names, rather than @VAR@.
88397         * modules/poll: Likewise.
88398
88399 2003-11-04  Bruno Haible  <bruno@clisp.org>
88400
88401         * modules/xsize: New file.
88402         * modules/linebreak: Depend on xsize.
88403         * MODULES.html.sh (func_all_modules): Add xsize.
88404
88405 2003-11-04  Bruno Haible  <bruno@clisp.org>
88406
88407         * m4/xsize.m4: New file.
88408
88409 2003-11-04  Bruno Haible  <bruno@clisp.org>
88410
88411         * lib/xsize.h: New file.
88412         * lib/linebreak.c: Include xsize.h.
88413         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
88414         argument for overflow.
88415         Suggested by Paul Eggert.
88416
88417 2003-11-03  Karl Berry  <karl@gnu.org>
88418
88419         * config/config.{guess,sub}: update from config.
88420
88421 2003-11-03  Jim Meyering  <jim@meyering.net>
88422
88423         * modules/userspec (lib_SOURCES): Add userspec.h.
88424         (Include): Add "userspec.h".
88425         Improve description.
88426
88427 2003-11-03  Jim Meyering  <jim@meyering.net>
88428
88429         * lib/userspec.c: Include "userspec.h".
88430         * lib/userspec.h: New file.
88431
88432 2003-11-03  Bruno Haible  <bruno@clisp.org>
88433
88434         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
88435
88436 2003-11-03  Bruno Haible  <bruno@clisp.org>
88437
88438         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
88439         available, to avoid (extremely rare) race condition.
88440         Suggested by Paul Eggert.
88441
88442 2003-11-02  Karl Berry  <karl@gnu.org>
88443
88444         * config/srclist.txt (vasprintf.c): sync broken, sigh.
88445
88446 2003-10-31  Paul Eggert  <eggert@twinsun.com>
88447
88448         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
88449         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
88450         (read_filesystem_list): Set and use me_type_malloced.
88451         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
88452         whatever the type happens to be), for brevity and consistency.
88453         Check for size calculation overflow on Alphas running OSF/1.
88454
88455 2003-10-31  Jim Meyering  <jim@meyering.net>
88456
88457         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
88458
88459         * lib/linebuffer.c: Include <string.h> for declaration of memset.
88460
88461 2003-10-30  Paul Eggert  <eggert@twinsun.com>
88462             Bruno Haible  <bruno@clisp.org>
88463
88464         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
88465         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
88466
88467 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
88468
88469         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
88470         netbsd*-gnu*.  Suggested by Robert Millan.
88471
88472 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88473
88474         * modules/group-member: Depend on stdbool.
88475
88476 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88477
88478         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
88479
88480 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88481
88482         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
88483         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
88484         after the 'gnu' in these cases.  This fixes some bugs in the
88485         previous change, and is based on suggestions by Robert Millan.
88486
88487 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88488
88489         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
88490         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
88491         no longer needed.
88492         * lib/quotearg.c (quotearg_n_options): Use it.
88493         * lib/group-member.c: Include <stdbool.h>.
88494         (free_group_info): Arg is now const *; don't free arg.
88495         (get_group_info): Now returns bool and accepts struct group_info *,
88496         rather than returning a malloc'ed struct group_info *.
88497         All uses changed.  Check for overflow in internal size calculation.
88498
88499         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
88500         rather than xmalloc/xrealloc.
88501         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
88502         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
88503         conformance bug: the old code used a pointer after freeing the
88504         storage that it addressed.
88505         * lib/hash.c (hash_initialize): Simplify the code by using
88506         xalloc_oversized rather than doing it by hand.
88507         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
88508         the buffer preserved.  Use free and xmalloc instead.
88509         * lib/quotearg.c (quotearg_n_options): Likewise.
88510         Use a simpler test for size overflow.  Don't use xalloc_oversized
88511         because unsigned int might be wider than size_t (!); this suggests
88512         that we should switch from unsigned int to size_t for slot numbers.
88513
88514 2003-10-28  Paul Eggert  <eggert@twinsun.com>
88515
88516         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
88517         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
88518         NetBSD kernels.  Requested by Richard Stallman.
88519
88520 2003-10-27  Paul Eggert  <eggert@twinsun.com>
88521
88522         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
88523         to allocate the returned structure.  Do not allocate a subarray,
88524         as x2nrealloc will do that.
88525         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
88526         instead of xnrealloc.
88527         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
88528
88529 2003-10-27  Bruno Haible  <bruno@clisp.org>
88530
88531         * lib/stdbool_.h: Better support for BeOS.
88532
88533 2003-10-26  Paul Eggert  <eggert@twinsun.com>
88534
88535         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
88536         now uses inline.
88537
88538 2003-10-26  Paul Eggert  <eggert@twinsun.com>
88539
88540         * lib/xalloc.h (xalloc_oversized): New static inline function, for
88541         callers that want to do their own size-overflow checking.  Include
88542         <stdbool.h>, since xalloc_oversized returns bool.
88543         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
88544         to use xalloc_oversized.
88545
88546         Add two functions x2realloc, x2nrealloc, for programs that grow
88547         arrays dynamically by doubling their sizes.
88548         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
88549         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
88550         New functions.
88551
88552         Port to C99 semantics for 'inline' of external functions.
88553         Bug reported by Bruno Haible.
88554         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
88555         with the old contents of xnmalloc.
88556         (xnmalloc, xmalloc): Use it.
88557         (xnrealloc_inline): New static inline function,
88558         with the old contents of xnrealloc.
88559         (xnrealloc, xrealloc): Use it.
88560
88561         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
88562         that.
88563
88564 2003-10-26  Karl Berry  <karl@gnu.org>
88565
88566         * config/srclist.txt (COPYING.DOC): no longer available from
88567         /gd/gnuorg; don't know where the ultimate source is.
88568
88569 2003-10-25  Paul Eggert  <eggert@twinsun.com>
88570
88571         Fix several address-calculation bugs in the hash modules,
88572         plus some minor code cleanup.
88573
88574         * lib/hash.h: Include <stdbool.h>, for bool.
88575         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
88576         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
88577         hash_get_n_entries, hash_get_max_bucket_length,
88578         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
88579         hash_rehash): Use size_t rather than unsigned.
88580         * lib/hash.c (struct hash_table, hash_get_n_buckets,
88581         hash_get_n_buckets_used, hash_get_n_entries,
88582         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
88583         hash_get_entries, hash_do_for_each, hash_string, is_prime,
88584         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
88585         Likewise.
88586         (SIZE_MAX): Define if not defined.
88587         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
88588         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
88589         hash_print):
88590         Use const * when possible.
88591         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
88592         (check_tuning): Fix bug: if tuning parameters were very close to
88593         0 or 1, rounding errors could have caused subscript violations.
88594         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
88595         (hash_initialize): Add 'fail:' label
88596         to free table and return NULL, and use it to simplify code.
88597         Use calloc rather than clearing the storage ourself.
88598         (hash_initialize, hash_rehash): Check for arithmetic overflow in
88599         buffer size calculations.
88600         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
88601         Include <stddef.h>, for size_t.
88602         * lib/hash-pjw.c (hash_pjw): Likewise.
88603         Switch to method described by Bruno Haible.
88604         Include <limits.h>, for CHAR_BIT.
88605         (SIZE_BITS): New macro.
88606
88607 2003-10-23  Paul Eggert  <eggert@twinsun.com>
88608
88609         * m4/getline.m4 (AM_FUNC_GETLINE):
88610         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
88611         hosts.  Problem reported by Derek Robert Price in
88612         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
88613         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
88614         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
88615
88616 2003-10-21  Paul Eggert  <eggert@twinsun.com>
88617
88618         * lib/getndelim2.c (getndelim2): When size calculation overflows,
88619         ceiling the allocation at NMAX bytes rather than silently
88620         discarding input bytes before NMAX is reached.  This makes
88621         a difference only if NMAX exceeds SIZE_MAX / 2.
88622
88623         * lib/obstack.c: Merge from glibc.
88624         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
88625         Add libc_hidden_def (_obstack_newchunk).
88626         (_obstack_free) [! defined _LIBC]: Remove.
88627         [defined _LIBC]: Make a strong alias from obstack_free, rather than
88628         a clone of the function body.
88629         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
88630         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
88631
88632         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
88633         glibc.
88634         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
88635         arg to memcpy.
88636
88637         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
88638         (obstack_ptr_grow_fast, obstack_int_grow_fast):
88639         Don't use lvalue casts, as GCC plans to remove support for them
88640         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
88641         was also present in the non-GCC version, indicating that this
88642         code had always been buggy and had never been widely used.
88643         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
88644         Use the fast variant of each macro, rather than copying the
88645         definiens of the fast variant; that way, we'll be more likely to
88646         catch future bugs in the fast variants.
88647
88648 2003-10-20  Bruno Haible  <bruno@clisp.org>
88649
88650         * modules/wait-process: New file.
88651         * MODULES.html.sh (func_all_modules): Add wait-process.
88652
88653 2003-10-20  Bruno Haible  <bruno@clisp.org>
88654
88655         * m4/wait-process.m4: New file.
88656
88657 2003-10-20  Bruno Haible  <bruno@clisp.org>
88658
88659         * lib/wait-process.h: New file, from GNU gettext.
88660         * lib/wait-process.c: New file, from GNU gettext.
88661
88662 2003-10-19  Jim Meyering  <jim@meyering.net>
88663
88664         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
88665         HPUX 10.20.
88666
88667 2003-10-18  Karl Berry  <karl@gnu.org>
88668
88669         * config/config.guess: update from config.
88670
88671 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88672
88673         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
88674         (getgroups): First arg is int, not size_t.
88675         Don't let 'free' mangle errno.
88676
88677 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88678
88679         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
88680
88681 2003-10-16  Karl Berry  <karl@gnu.org>
88682
88683         * config/config.{guess,sub}: update from config.
88684
88685 2003-10-16  Jim Meyering  <jim@meyering.net>
88686
88687         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
88688         memcpy.
88689
88690 2003-10-15  Paul Eggert  <eggert@twinsun.com>
88691
88692         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
88693         (SIZE_MAX): Remove.
88694         (new_exclude, add_exclude_file): Initial size no longer needs to
88695         be a power of 2.
88696         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
88697         our own address arithmetic overflow checking.
88698
88699         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
88700         (fnmatch): Do not alloca more than 2000 wide characters;
88701         instead, use malloc for large buffers.
88702         Check for address arithmetic overflow, and return -1
88703         with errno set to ENOMEM in that case.
88704         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
88705         (NEW_PATTERN): Do not alloca more than 8000 bytes;
88706         instead, return -1.  Check for address arithmetic overflow.
88707
88708 2003-10-14  Paul Eggert  <eggert@twinsun.com>
88709
88710         Handle invalid suffixes and overflow independently, so that
88711         callers can treat them independently as needed.  Fix some bugs in
88712         suffix handling, e.g., "100k@" was not diagnosed as an invalid
88713         suffix for a human-readable blocksize.  The major caller-visible
88714         change is the addition of a new
88715         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
88716         that both overflow and suffix chars were found.
88717
88718         * lib/human.c (humblock): Don't check separately for invalid suffix
88719         char; that is xstrtoumax's job (now that its bug is fixed).
88720         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
88721         INTMAX_MAX]: New macros.
88722         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
88723         TYPE_MAXIMUM): New macros.
88724         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
88725         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
88726         if overflow occurs, as it's what __strtol does and it's more useful
88727         in practice.
88728         (__xstrtol): If __strtol reports some error other than ERANGE,
88729         reflect it to the caller as LONGINT_INVALID.  If it reports
88730         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
88731         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
88732         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
88733         value.
88734         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
88735         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
88736         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
88737         [defined UINTMAX_MAX]: New macros.
88738
88739 2003-10-14  Bruno Haible  <bruno@clisp.org>
88740
88741         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
88742
88743 2003-10-14  Bruno Haible  <bruno@clisp.org>
88744
88745         * m4/sig_atomic_t: New file, from GNU gettext.
88746         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
88747
88748 2003-10-14  Bruno Haible  <bruno@clisp.org>
88749
88750         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
88751         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
88752         Also use volatile where needed.
88753
88754 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88755
88756         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
88757         Change maintainer from Bruno Haible to 'all'.
88758
88759 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88760
88761         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
88762
88763 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88764
88765         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
88766         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
88767         and define in terms of the other primitives.
88768         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
88769         (SIZE_MAX): Define if not already defined.
88770         (array_size_overflow): New function.
88771         (xalloc_die): Abort instead of exiting if 'error' returns.
88772         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
88773         (xmalloc, xrealloc): Use them.
88774         (xcalloc): Check for address arithmetic overflow.
88775         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
88776         a bit faster than strcpy.
88777
88778 2003-10-10  Simon Josefsson  <jas@extundo.com>
88779
88780         * modules/argp (Depends-on): Add restrict and strcase.
88781
88782 2003-10-10  Simon Josefsson  <jas@extundo.com>
88783
88784         * m4/argp.m4: Add AC_C_INLINE.
88785
88786 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88787
88788         Merge getpass from libc, plus a few fixes.
88789
88790         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
88791         Include <stdbool.h>.
88792         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
88793         __fsetlocking to empty.
88794         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
88795         do include <bits/libc-lock.h>.
88796         Do not include <fcntl.h>; not needed.
88797         [_LIBC]: Include <wchar.h>.
88798         (NOTCANCEL_MODE): New macro.
88799         (flockfile, funlockfile) [_LIBC]: New macros.
88800         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
88801         [!_LIBC]: New macros.
88802         (call_fclose): New function.
88803         (getpass): Use it.  Save tty stream separately; this simplifies the
88804         code and makes it more reliable if stdin happens to equal stdout.
88805         Invoke __fsetlocking on tty.
88806         Handle thread cancellation if needed.
88807         Namespace cleanup (use __tcgetattr, __getline).
88808         Use bool for Booleans.
88809         [USE_IN_LIBIO]: Handle wide streams.
88810         [!_LIBC]: Unconditionally do the fseek, since we don't know what
88811         stream might go where.
88812
88813         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
88814         doesn't have to include <stdio.h> before us.
88815         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
88816         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
88817         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
88818         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
88819         if not declared, so that we can use getpass.c code from libc without
88820         rewriting it.
88821         (flockfile, ftrylockfile, funlockfile): New macros.
88822
88823 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88824
88825         * modules/getpass: Depend on stdbool.
88826
88827 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88828
88829         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
88830
88831 2003-10-07  Karl Berry  <karl@gnu.org>
88832
88833         * config/config.{guess,sub}: update from config.
88834
88835 2003-10-06  Jim Meyering  <jim@meyering.net>
88836             Bruno Haible  <bruno@clisp.org>
88837
88838         This lets translators provide better translations for the
88839         "Written by ..." part of --version output.
88840         * lib/version-etc.h: Include stdarg.h.
88841         (version_etc_copyright): Declare as readonly.
88842         (version_etc): Make this function variadic with a NULL-terminated list
88843         of author name strings.
88844         (version_etc_va): New declaration.
88845         * lib/version-etc.c: Include stdarg.h, stdlib.h.
88846         (version_etc_copyright): Declare as readonly.
88847         (version_etc_va): New function. Provide a different translatable string
88848         for each possible number of authors < 10. Abbreviate when there are 10
88849         authors or more.
88850         (version_etc): Make this function variadic. Call version_etc_va.
88851         Suggestion from Gary V. Vaughan.
88852
88853         * lib/long-options.h (parse_long_options): Change prototype: the
88854         authors string is moved to the end and becomes variadic.
88855         * lib/long-options.c: Include stdarg.h.
88856         (parse_long_options): Make this function variadic, too.
88857         Call version_etc_va, not version_etc.
88858
88859 2003-10-06  Bruno Haible  <bruno@clisp.org>
88860
88861         * modules/version-etc-2: Remove file.
88862         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
88863
88864 2003-10-06  Bruno Haible  <bruno@clisp.org>
88865
88866         * modules/fatal-signal: New file.
88867         * MODULES.html.sh (func_all_modules): Add fatal-signal.
88868
88869 2003-10-06  Bruno Haible  <bruno@clisp.org>
88870
88871         * m4/fatal-signal.m4: New file.
88872         * m4/signalblocking.m4: New file, from GNU gettext.
88873
88874 2003-10-06  Bruno Haible  <bruno@clisp.org>
88875
88876         * lib/version-etc-2.h: Remove file.
88877         * lib/version-etc-2.c: Remove file.
88878
88879 2003-10-06  Bruno Haible  <bruno@clisp.org>
88880
88881         * lib/fatal-signal.h: New file, from GNU gettext.
88882         * lib/fatal-signal.c: New file, from GNU gettext.
88883
88884 2003-10-05  Paul Eggert  <eggert@twinsun.com>
88885
88886         * README: Rework advice for preventing empty .o files.
88887         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
88888         not <sys/types.h>.
88889
88890 2003-10-04  Karl Berry  <karl@gnu.org>
88891
88892         * lib/argp*: update from libc.
88893
88894 2003-10-04  Karl Berry  <karl@gnu.org>
88895
88896         * config/config.{guess,sub}: update from config.
88897
88898 2003-10-02  Bruno Haible  <bruno@clisp.org>
88899
88900         * modules/lchown (Include): Add lchown.h.
88901         * modules/time_r (Include): Use "..." syntax.
88902         * modules/xgetdomainname (Include): Add xgetdomainname.h.
88903
88904 2003-10-01  Simon Josefsson  <jas@extundo.com>
88905
88906         * MODULES.html.sh (func_all_modules): Move gethostname from section
88907         'based on' to section 'lacking' POSIX:2001.
88908
88909 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
88910
88911         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
88912         to output mode on the same stream.
88913
88914 2003-09-29  Paul Eggert  <eggert@twinsun.com>
88915
88916         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
88917         Fix arg typo in previous patch.
88918
88919 2003-09-28  Jim Meyering  <jim@meyering.net>
88920
88921         * lib/error.c: Correct cpp indentation.
88922
88923 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88924
88925         * modules/free: New file.
88926
88927 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88928
88929         * m4/free.m4: New file.
88930
88931 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88932
88933         * lib/minmax.h (MIN, MAX)
88934         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
88935         Omit the special code that used __typeof__, since we worry that
88936         it could be more trouble than it's worth.  See:
88937         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
88938         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
88939
88940         * lib/free.c: New file.
88941
88942 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
88943
88944         Trivial fixes to Makefile.am parts of module listings.
88945         * modules/strstr: Append strstr.h to lib_SOURCES.
88946         * modules/strcase: Likewise, for strcase.h.
88947
88948 2003-09-27  Karl Berry  <karl@gnu.org>
88949
88950         * config/mkinstalldirs: update from automake.
88951
88952 2003-09-26  Paul Eggert  <eggert@twinsun.com>
88953
88954         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
88955         (error_tail): Do not loop, reallocating temporary buffer, since
88956         the output cannot contain more wide characters than the input
88957         contains bytes, the size must be big enough already.  This avoids
88958         one potential size overflow calculation.  Check for size overflow
88959         when calculating temporary buffer size.  Free temporary buffer
88960         when done, if it was allocated with malloc; this plugs a memory
88961         leak.  Remove casts from void * to pointers, that are no longer
88962         needed now that we're assuming C89 or better.
88963
88964         Merge error changes from glibc.
88965
88966         * lib/error.c, error.h: Update copyright notice header to match glibc.
88967         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
88968         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
88969         Disable cancellation while printing error.
88970         * lib/error.h: Prepend __ to parameter names.
88971
88972 2003-09-26  Jim Meyering  <jim@meyering.net>
88973
88974         * lib/error.c (error_tail): Move some declarations
88975         into inner scope where the local variables are used.
88976
88977 2003-09-26  Bruno Haible  <bruno@clisp.org>
88978
88979         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
88980         stpncpy().
88981         Don't define stpncpy through config.h; it's now done through stpncpy.h.
88982
88983 2003-09-26  Bruno Haible  <bruno@clisp.org>
88984
88985         * lib/stpncpy.h (gnu_stpncpy): New declaration.
88986         (stpncpy): Define as alias for gnu_stpncpy.
88987         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
88988
88989 2003-09-25  Simon Josefsson  <jas@extundo.com>
88990
88991         * lib/xgetdomainname.h: New file.
88992         * lib/xgetdomainname.c: New file.
88993
88994 2003-09-25  Simon Josefsson  <jas@extundo.com>
88995             Bruno Haible  <bruno@clisp.org>
88996
88997         * modules/getdomainname: New file.
88998         * modules/xgetdomainname: New file.
88999         * MODULES.html.sh (func_all_modules): Add getdomainname,
89000         xgetdomainname.
89001
89002 2003-09-25  Simon Josefsson  <jas@extundo.com>
89003             Bruno Haible  <bruno@clisp.org>
89004
89005         * m4/getdomainname.m4: New file.
89006
89007 2003-09-25  Simon Josefsson  <jas@extundo.com>
89008             Bruno Haible  <bruno@clisp.org>
89009
89010         * lib/getdomainname.h: New file.
89011         * lib/getdomainname.c: New file.
89012
89013 2003-09-25  Karl Berry  <karl@gnu.org>
89014
89015         * lib/argp-fmtstream.c, argp-help.c: update from libc.
89016
89017 2003-09-25  Karl Berry  <karl@gnu.org>
89018
89019         * config/install-sh: update from automake.
89020
89021 2003-09-25  Bruno Haible  <bruno@clisp.org>
89022
89023         * modules/version-etc-2: New file, from modules/version-etc with
89024         modifications.
89025         * MODULES.html.sh (func_all_modules): Add version-etc-2.
89026
89027 2003-09-25  Bruno Haible  <bruno@clisp.org>
89028
89029         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
89030         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
89031
89032 2003-09-24  Simon Josefsson  <jas@extundo.com>
89033
89034         * modules/xgethostname: Add xgethostname.h.
89035
89036 2003-09-24  Paul Eggert  <eggert@twinsun.com>
89037
89038         * lib/linebuffer.c (freebuffer): Don't free the argument, just
89039         the buffer associated with the argument.  Bug reported by
89040         Simon Josefsson.
89041
89042 2003-09-24  Paul Eggert  <eggert@twinsun.com>
89043
89044         * README: Document assumptions that 'int' is at least 32 bits
89045         wide, that integer arithmetic is 2's complement without overflow,
89046         that there are no holes in integer values, that adding sizes of
89047         two nonoverlapping objects can't overflow, and that all-bits-zero
89048         yields scalar zero.  Fix spelling and capitalization typos.
89049
89050 2003-09-19  Karl Berry  <karl@gnu.org>
89051
89052         * lib/argp.h: update from libc.
89053
89054 2003-09-17  Paul Eggert  <eggert@twinsun.com>
89055
89056         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
89057         to avoid spurious warnings like "AC_RUN_IFELSE was called before
89058         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
89059
89060 2003-09-17  Paul Eggert  <eggert@twinsun.com>
89061
89062         * gnulib-tool: Use "test -h", not "test -L", for portability
89063         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
89064         (tags_regexp): Remove, since \| doesn't conform to POSIX.
89065         (sed_extract_prog): Issue s commands one-by-one, rather than
89066         using \| in one s command.
89067
89068 2003-09-16  Paul Eggert  <eggert@twinsun.com>
89069
89070         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
89071         input error, instead of returning NULL the next time we are called
89072         (and therefore losing track of errno).
89073
89074 2003-09-16  Bruno Haible  <bruno@clisp.org>
89075
89076         * gnulib-tool (func_create_testdir): Warn about duplicated
89077         dependencies.
89078
89079 2003-09-15  Paul Eggert  <eggert@twinsun.com>
89080
89081         * modules/argmatch, modules/fatal, modules/obstack,
89082         modules/xalloc, modules/xgethostname: Sort dependencies by
89083         importance, not alphabetically.
89084
89085 2003-09-15  Paul Eggert  <eggert@twinsun.com>
89086
89087         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
89088         fails, so that the caller gets the proper errno.
89089
89090         * lib/readutmp.c (read_utmp): Likewise.
89091         Check for fstat error.  Close stream and free storage
89092         when failing.
89093
89094 2003-09-14  Karl Berry  <karl@gnu.org>
89095
89096         * config/srclist.txt (strdup.c): disable for c89 changes.
89097
89098 2003-09-14  Jim Meyering  <jim@meyering.net>
89099
89100         * lib/getloadavg.c: Correct cpp indentation.
89101         * lib/strdup.c: Likewise.
89102         * lib/vasnprintf.c: Likewise.
89103
89104 2003-09-14  Bruno Haible  <bruno@clisp.org>
89105
89106         * modules/fwriteerror: New file.
89107         * MODULES.html.sh (func_all_modules): Add fwriteerror.
89108
89109 2003-09-14  Bruno Haible  <bruno@clisp.org>
89110
89111         * lib/fwriteerror.h: New file.
89112         * lib/fwriteerror.c: New file.
89113
89114 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89115
89116         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
89117         modules/xgethostname, modules/xalloc: Depend on exit.
89118
89119 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89120
89121         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
89122
89123         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
89124         and AC_MINIX, too, so that their extensions are available.
89125
89126         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
89127         This macro has been superseded by gl_BACKUPFILE.
89128
89129         More patches to assume C89 or better.
89130
89131         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
89132
89133         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
89134         unconditionally.
89135         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
89136         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
89137         Include <string.h>, <stdlib.h> unconditionally.
89138         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
89139         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
89140         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
89141         headers or for string.h.
89142         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
89143         or strtoul.
89144
89145         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
89146         headers.
89147         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
89148         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89149         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
89150         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
89151         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89152         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
89153         memcpy, memset.
89154         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
89155         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
89156         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
89157         strtol.
89158         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
89159         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
89160         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
89161         strtoul.
89162
89163 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89164
89165         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
89166         * lib/obstack.c [!defined _LIBC]: Likewise.
89167         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
89168         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
89169         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
89170
89171         More changes to assume C89 or better.
89172
89173         * lib/error.c (error_tail): Assume vprintf.
89174
89175         * lib/argmatch.c (getenv): Remove decl.
89176         * lib/progreloc.c (get_full_program_name): Define via prototype.
89177         * lib/setenv.c (clearenv): Likewise.
89178         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
89179         needed.
89180         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
89181         (malloc, memcpy): Remove decls.
89182         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
89183         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
89184         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
89185         (memcpy): Remove macro.
89186         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
89187         (__P): Remove.  All uses removed.
89188         (PTR): Remove.  All uses changed to void *.
89189         (CHAR_BIT, NULL): Remove.
89190         (spaces, zeros, memset_space, memset_zero)
89191         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
89192         Remove.
89193         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
89194         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
89195         Define with prototype.
89196         Remove now-unnecessary prototype decl.
89197         (extra_args_spec): Assume ANSI C.  All uses changed.
89198         (extra_args_spec_iso): Remove.
89199         (my_strftime, emacs_strftimeu): Define via prototype.
89200         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
89201         unconditionally.
89202         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
89203         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
89204         (strtoul, strtol): Remove decls.
89205         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
89206         LONG_MAX): Remove.
89207         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
89208         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
89209         (LOCALE_PARAM_PROTO): New macro.
89210         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
89211         (INTERNAL (strtol), strtol): Define with a prototype.
89212         (PARAMS): Remove.  All uses removed.
89213         * lib/tempname.c: Include <string.h> unconditionally.
89214         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
89215         * lib/xgethostname.c (main): Define with a prototype.
89216         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
89217         Include <stdlib.h> unconditionally.
89218         (calloc, malloc, realloc, free): Remove decls.
89219         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
89220         Include <stdlib.h> unconditionally.  Sort include file names.
89221         (strtod): Remove.
89222         (xstrtod): Define with a prototype.
89223         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
89224         (strtol, strtoul): Remove decls.
89225
89226 2003-09-11  Paul Eggert  <eggert@twinsun.com>
89227
89228         More patches to assume C89 or better.
89229         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
89230         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
89231         string.h, memchr, STDC_HEADERS.
89232
89233 2003-09-11  Paul Eggert  <eggert@twinsun.com>
89234
89235         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
89236         Include <stdlib.h>, <string.h> unconditionally.
89237         Remove now-unnecessary cast to char *.
89238         * lib/strnlen.c: Include <string.h> unconditionally.
89239         * lib/yesno.c (yesno): Define with a prototype.
89240
89241 2003-09-11  Bruno Haible  <bruno@clisp.org>
89242
89243         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
89244
89245 2003-09-10  Jim Meyering  <jim@meyering.net>
89246
89247         * lib/error.c: Correct indentation of cpp directives.
89248
89249 2003-09-10  Bruno Haible  <bruno@clisp.org>
89250
89251         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
89252         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
89253         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
89254         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
89255         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
89256         <stdlib.h> and <string.h> checks.
89257         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
89258         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
89259
89260 2003-09-10  Bruno Haible  <bruno@clisp.org>
89261
89262         * lib/strcspn.c: Include <string.h> unconditionally.
89263         * lib/strpbrk.c: Include <string.h> unconditionally.
89264         * lib/strstr.c: Include <string.h> unconditionally.
89265         * lib/unicodeio.c: Include <string.h> unconditionally.
89266         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
89267         * lib/unsetenv.c: Likewise.
89268         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
89269         * lib/yesno.c: Include <stdlib.h> unconditionally.
89270         (rpmatch): Add prototype.
89271
89272 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89273
89274         More patches to assume C89 or better.
89275         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
89276         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
89277         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
89278         or for string.h.
89279         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
89280         stdlib.h.
89281         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
89282         C headers.
89283         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
89284         string.h.
89285         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
89286         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
89287         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
89288         or for string.h.
89289         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
89290         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
89291         C headers.
89292         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
89293         memcpy.
89294         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
89295         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
89296         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
89297         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
89298         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
89299         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
89300         string.h, free.
89301         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
89302         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
89303         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
89304         C headers, or for string.h.
89305         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
89306         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
89307         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
89308         headers, memory.h, stdlib.h, string.h, strings.h.
89309         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
89310         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
89311         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
89312         strchr.
89313         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
89314         headers, memory.h, string.h.
89315         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
89316         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
89317         free.
89318         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
89319         headers.
89320         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
89321         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
89322         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
89323         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
89324         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
89325
89326 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89327
89328         More K&R removal.
89329
89330         * lib/acosl.c (main): Use a prototype.
89331         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
89332         tanl.c: Likewise.
89333
89334         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
89335
89336         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
89337         (getopt, etopt_long, getopt_long_only, _getopt_internal)
89338         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
89339         with a prototype.
89340         * lib/getopt.c (const): Remove macro.
89341         Include <string.h> unconditionally.
89342         (my_index): Remove; all uses changed to strchr.
89343         (strlen): Remove decl.
89344         (exchange): Remove forward decl; no longer needed.
89345         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
89346         Define with prototype.
89347         * lib/getopt1.c (const): Remove macro.
89348         (getopt_long, getopt_long_only, main): Define with prototype.
89349
89350         * lib/getugroups.c: Include <string.h> unconditionally.
89351
89352         * lib/getusershell.c: Include <stdlib.h> unconditionally.
89353         (getusershell, setusershell, endusershell, readname, main):
89354         Define with prototypes.
89355
89356         * lib/group-member.c: Include group-member.h first.
89357         Include <stdlib.h> unconditionally.
89358
89359         * lib/hard-locale.c: Include hard-locale.h first.
89360         Include <stdlib.h>, <string.h> unconditionally.
89361
89362         * lib/hash.c (free, malloc): Remove decls.
89363         Include <stdlib.h> unconditionally.
89364
89365         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
89366         (getenv): Do not declare.
89367
89368         * lib/idcache.c: Include <string.h> unconditionally.
89369
89370         * lib/long-options.c: Include long-options.h first, to test interface.
89371         Include <stdlib.h> unconditionally.
89372
89373         * lib/makepath.c: Include makepath.h first, to test interface.
89374         Include <stdlib.h> and <string.h> unconditionally.
89375
89376         * lib/linebuffer.c: Include <stdlib.h>.
89377         (free): Remove decl.
89378
89379         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
89380         stddef.h. rpl_malloc returns void *, not char *.
89381         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
89382         prototype.
89383
89384         * lib/md5.h: Include <limits.h> unconditionally.
89385         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
89386         (__P): Remove; all uses removed.
89387         * lib/md5.c: Include "md5.h" first.
89388         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
89389         md5_buffer, md5_process_bytes, md5_process_block):
89390         Define with prototypes.
89391         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
89392         * lib/sha.c: Include "sha.h" first.
89393         Include <stdlib.h>, <string.h> unconditionally.
89394
89395         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
89396         * lib/memcmp.c (__ptr_t): Likewise.
89397         * lib/memrchr.c (__ptr_t): Likewise.
89398         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
89399         Include <string.h> unconditionally.
89400         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
89401         * lib/memchr.c: Include <stdlib.h> unconditionally.
89402         * lib/memchr.c (LONG_MAX): Remove.
89403         * lib/memrchr.c (LONG_MAX): Likewise.
89404         * lib/memchr.c (__memchr): Define via a prototype.
89405         * lib/memrchr.c (__memrchr): Likewise.
89406         * lib/memcmp.c (__P): Remove, and remove all uses.
89407         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
89408         Remove forward decls; no longer needed.
89409         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
89410         Use types required by C89 in prototype.
89411
89412         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
89413         * lib/savedir.c: Likewise.
89414         * lib/mkdir.c (free): Remove decl.
89415         * lib/rmdir.c (rmdir): Define with a prototype.
89416         * lib/savedir.c: Include savedir.h first, to test interface.
89417
89418         * lib/mktime.c (STDC_HEADERS): Remove.
89419         Include <stdlib.h>, <string.h> unconditionally.
89420
89421         * lib/modechange.c: Include <stdlib.h> unconditionally.
89422         (malloc): Remove decl.
89423
89424         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
89425         (free): Remove decl.
89426
89427         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
89428         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
89429         (This type really should be intptr_t, but that's a C99ism.)
89430         (_obstack_memcpy): Remove: all uses changed to memcpy.
89431         Include <string.h> unconditionally.
89432         (struct obstack): Assume __STDC__ for types of members
89433         chunkfun, freefun, extra_arg.
89434         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
89435         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
89436         obstack_begin, obstack_specify_allocation,
89437         obstack_specify_allocation_with_arg, obstack_chunkfun,
89438         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
89439         Remove unprototyped decls and the macros that use them.
89440         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
89441         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
89442         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
89443         (defined __STDC__ && __STDC__)]:
89444         Remove nonprototyped code.
89445         Include <stdlib.h> unconditionally.
89446         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
89447         _obstack_allocated_p, _obstack_free, obstack_free,
89448         _obstack_memory_used, print_and_abort):
89449         Define using prototypes.
89450         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
89451         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
89452         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
89453         obstack_next_free, obstack_object_size, obstack_room) [0]:
89454         Remove unused, unprototyped code.
89455
89456         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
89457
89458         * lib/physmem.c (physmem_total, physmem_available, main): Define
89459         with prototypes.
89460
89461         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
89462         (main): Define with a prototype.
89463
89464         * lib/posixver.c (getenv): Remove decl.
89465
89466         * lib/putenv.c (malloc): Returns void *, not char *.
89467         Include <string.h> unconditionally.
89468         (strchr, memcpy, NULL): Do not define.
89469
89470         * lib/readtokens.c: Include readtokens.h first, to test interface.
89471         Include <stdlib.h>, <string.h> unconditionally.
89472         (init_tokenbuffer): Define with a prototype.
89473
89474         * lib/regex.c (PARAMS): Remove.  All uses removed.
89475         All uses of _RE_ARGS removed, too.
89476         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89477         unconditionally.
89478         (bzero): Assume memset exists.
89479         (memcmp, memcpy, NULL): Remove.
89480         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
89481         char, or assignments to local vars of type signed char.
89482         (init_syntax_once, PREFIX(extract_number_and_incr),
89483         PREFIX(print_partial_compiled_pattern),
89484         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
89485         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
89486         PREFIX(regex_grow_registers), PREFIX(regex_compile),
89487         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
89488         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
89489         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
89490         wcs_compile_range, byte_compile_range, truncate_wchar,
89491         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
89492         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
89493         count_mbs_length, wcs_re_match_2_internal,
89494         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
89495         PREFIX(alt_match_null_string_p),
89496         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
89497         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
89498         regfree, PREFIX(extract_number)): Define with prototype.  Remove
89499         now-unnecessary declaration, if any.
89500         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
89501         regcomp, regexec):
89502         Remove now-unnecessary casts among pointer types.
89503         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
89504
89505         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
89506         (free): Remove decl.
89507
89508         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
89509
89510         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
89511         (free): Remove decl.
89512
89513         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
89514         * lib/xgetcwd.c: Likewise.
89515
89516         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
89517         (free): Remove decl.
89518
89519         * lib/strchrnul.c (strchrnul): Define with a prototype.
89520         Fix bug: c_in was not converted to char before searching.
89521
89522         The following changes are not K&R related:
89523
89524         * lib/group-member.h: Include <sys/types.h>, so that this file is
89525         self-contained.
89526         * lib/makepath.h: Likewise.
89527
89528         * lib/getusershell.c (readname, default_index, line_size, readname):
89529         Use size_t, not int, for sizes.
89530         (readname): If the size overflows, report an error instead of
89531         looping forever.
89532
89533 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89534
89535         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
89536         libc.
89537
89538 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89539
89540         * README: New section: portability guidelines.
89541
89542 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
89543
89544         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
89545         C89 spec.
89546
89547 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
89548
89549         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
89550
89551 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89552
89553         Assume C89 or better; remove K&R cruft.
89554         A few of these changes were first proposed by Derek Robert Price
89555         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
89556
89557         * lib/addext.c: Include <string.h> unconditionally.
89558         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
89559         Don't declare getenv or malloc.
89560
89561         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
89562         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
89563         (NULL): Remove.
89564         (find_stack_direction, alloca): Use prototypes.
89565
89566         * lib/atexit.c (atexit): Define using a prototype.
89567
89568         * lib/basename.c, dirname.c, stripslash.c:
89569         Include <string.h> unconditionally.
89570
89571         * lib/bcopy.c: Include <stddef.h>.
89572         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
89573
89574         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
89575
89576         * lib/error.h (error, error_at_line, error_print_progname)
89577         [! (defined (__STDC__) && __STDC__)]: Remove decls.
89578         * lib/error.c: Include error.h first, to check interface.
89579         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
89580         (VA_START): Remove; all uses changeed to va_start.
89581         (exit, strerror): Remove decls.
89582         (error_print_progname): Prototype uncondionally.
89583         Don't include <errno.h>; no longer needed.
89584         (private_strerror): Remove.
89585         (error_tail): Always define.
89586         (error, error_at_line): Assume C89 or better; always use prototypes.
89587         * lib/fatal.c: Include "fatal.h" first, to test interface.
89588         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
89589         (VA_START): Remove; all uses changed to va_start.
89590         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
89591         this case.
89592         (exit): Remove decl.
89593         (fatal): Prototype unconditionally.  Assume va_start works.
89594         Abort at end, to pacify gcc.
89595
89596         * lib/euidaccess.c (main): Define with a prototype.
89597
89598         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
89599
89600         * lib/exitfail.c: Include <stdlib.h> unconditionally.
89601
89602         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
89603         prototypes.
89604         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
89605         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
89606         (getenv): Remove decl.
89607         (fnmatch): Define using a prototype.
89608         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
89609         (FCT): Define using a prototype.
89610
89611         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
89612
89613         * lib/gethostname.c: Include <stddef.h>.
89614         (gethostname): Define with prototype.  Length is size_t, not int.
89615
89616 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89617
89618         Assume C89 or better; remove K&R cruft.
89619         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
89620         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
89621         string.h, getenv, malloc.
89622         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
89623         headers.
89624         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
89625         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
89626         do not check for strerror.
89627         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
89628         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
89629         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
89630         do not check for doprnt or vprintf.
89631         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
89632         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
89633
89634 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89635
89636         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
89637         getversion.c should have been removed then, but was accidentally
89638         preserved.
89639
89640         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
89641         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
89642
89643 2003-09-08  Karl Berry  <karl@gnu.org>
89644
89645         * config/config.sub, config.guess, srclistvars.sh: update from savannah
89646                 config, forget about prep.
89647
89648         * config/depcomp, missing: update from automake.
89649
89650 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89651
89652         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
89653         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89654
89655 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89656
89657         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
89658         copy_tm_result.  Bug reported by Simon Josefsson in
89659         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89660
89661 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89662
89663         * m4/time_r.m4: New file.
89664         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
89665         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
89666         is. Check for timegm declaration.
89667         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
89668         Do not check for gmtime_r.
89669         Replace mktime if __mktime_internal does not exist and if mktime
89670         hasn't been replaced already.
89671
89672 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89673
89674         * lib/time_r.c, lib/time_r.h: New files.
89675
89676         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
89677         __localtime_r.
89678         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
89679         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
89680
89681         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
89682         __gmtime_r.
89683         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
89684         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
89685         Include <time_r.h>.
89686
89687         * lib/timegm.c: Switch to glibc implementation, with the following
89688         changes:
89689         [defined HAVE_CONFIG_H]: Include <config.h>.
89690         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
89691         (__mktime_internal) [!defined _LIBC]: New decl.
89692         (__gmtime_r) [!defined _LIBC]: New macro and function.
89693         (timegm): Use a prototype, since gnulib assumes C89.
89694         Do not bother declaring tmp to be const, as it's not really usefu.
89695         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
89696         (timegm): Declare only if HAVE_DECL_TIMEGM.
89697
89698 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89699
89700         * MODULES.html.sh (func_all_modules): Add time_r.
89701         * modules/time_r: New file.
89702         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
89703         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
89704
89705 2003-09-03  Paul Eggert  <eggert@twinsun.com>
89706
89707         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
89708         Bug reported by Lute Kamstra in
89709         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
89710
89711         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
89712         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
89713         course with correspondingly smaller numbers for tomorrow and
89714         yesterday.  From Tadayoshi Funaba.  Originally installed into
89715         sh-utils on 1999-08-07, but the patch got lost (I guess during the
89716         coreutils merge?).
89717
89718 2003-08-31  Simon Josefsson  <jas@extundo.com>
89719
89720         * modules/timegm: New file.
89721         * MODULES.html.sh (func_all_modules): Add timegm.
89722
89723 2003-08-31  Simon Josefsson  <jas@extundo.com>
89724
89725         * m4/timegm.m4: New file.
89726
89727 2003-08-31  Simon Josefsson  <jas@extundo.com>
89728
89729         * lib/timegm.h: New file.
89730         * lib/timegm.c: New file.  Based on
89731         wget-1.8.2/src/http.c:mktime_from_utc.
89732
89733 2003-08-31  Karl Berry  <karl@gnu.org>
89734
89735         * lib/argp.h: update from libc.
89736
89737 2003-08-28  Bruno Haible  <bruno@clisp.org>
89738
89739         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
89740         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
89741         followed by '#define fnmatch fnmatch_posix' gives an error.
89742
89743 2003-08-28  Bruno Haible  <bruno@clisp.org>
89744
89745         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
89746         warning on QNX, which defines O_BINARY to 000000.
89747
89748 2003-08-27  Jim Meyering  <jim@meyering.net>
89749
89750         * m4/mkstemp.m4: Require that the system mkstemp be able to create
89751         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
89752         would fail after 32.  Reported by Danny Levinson.  Details here:
89753         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
89754
89755 2003-08-24  Bruno Haible  <bruno@clisp.org>
89756
89757         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
89758         MSVC7 <stdio.h> is included later.
89759
89760 2003-08-22  Simon Josefsson  <jas@extundo.com>
89761
89762         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
89763
89764 2003-08-20  Karl Berry  <karl@gnu.org>
89765
89766         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
89767
89768 2003-08-20  Bruno Haible  <bruno@clisp.org>
89769
89770         * modules/progname: New file.
89771         * MODULES.html.sh (func_all_modules): Add progname.
89772
89773 2003-08-20  Bruno Haible  <bruno@clisp.org>
89774
89775         * lib/progname.h: New file, from GNU gettext.
89776         * lib/progname.c: New file, from GNU gettext.
89777         * lib/progreloc.c: New file, from GNU gettext.
89778
89779 2003-08-19  Jim Meyering  <jim@meyering.net>
89780
89781         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
89782         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
89783
89784 2003-08-19  Bruno Haible  <bruno@clisp.org>
89785
89786         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
89787         more.
89788
89789 2003-08-19  Bruno Haible  <bruno@clisp.org>
89790
89791         * lib/xstrdup.c: Assume <string.h> exists.
89792
89793 2003-08-18  Paul Eggert  <eggert@twinsun.com>
89794
89795         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
89796         in makefile rules.
89797
89798 2003-08-18  Jim Meyering  <jim@meyering.net>
89799
89800         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
89801         * m4/lib-ld.m4: Likewise.
89802
89803 2003-08-18  Jim Meyering  <jim@meyering.net>
89804
89805         * lib/setenv.h: Indent nested cpp directive.
89806         * lib/vasnprintf.c: Remove trailing blanks.
89807
89808 2003-08-17  Simon Josefsson  <jas@extundo.com>
89809
89810         * modules/xstrndup: New file.
89811         * MODULES.html.sh (func_all_modules): Add xstrndup.
89812
89813 2003-08-17  Simon Josefsson  <jas@extundo.com>
89814
89815         * modules/argp: Fix autoconf macro name. Add more dependencies.
89816
89817 2003-08-17  Simon Josefsson  <jas@extundo.com>
89818
89819         * m4/xstrndup.m4: New file.
89820
89821 2003-08-17  Simon Josefsson  <jas@extundo.com>
89822
89823         * m4/argp.m4: New file.
89824
89825 2003-08-17  Simon Josefsson  <jas@extundo.com>
89826             Bruno Haible  <bruno@clisp.org>
89827
89828         * lib/xstrndup.h: New file.
89829         * lib/xstrndup.c: New file.
89830
89831 2003-08-17  Bruno Haible  <bruno@clisp.org>
89832
89833         * modules/strndup (Files, Include): Add lib/strndup.h.
89834
89835 2003-08-17  Bruno Haible  <bruno@clisp.org>
89836
89837         * modules/euidaccess (Files): Add lib/euidaccess.h.
89838
89839 2003-08-17  Bruno Haible  <bruno@clisp.org>
89840
89841         * lib/strndup.h: New file.
89842
89843 2003-08-17  Bruno Haible  <bruno@clisp.org>
89844
89845         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
89846         like AC_GNU_SOURCE.
89847         * modules/extensions (configure.ac): Comment out the invocation of
89848         gl_USE_SYSTEM_EXTENSIONS.
89849
89850 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89851
89852         Merges from coreutils, etc.
89853         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
89854         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
89855         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
89856         fixing a typo.
89857         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
89858         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
89859
89860 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89861
89862         Document merge from coreutils.
89863         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
89864         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
89865         * modules/utime: Add m4/utimes-null.m4.
89866
89867 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89868
89869         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
89870         space, undoing this 2003-08-12 change:
89871         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89872
89873 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89874
89875         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
89876         strtoul.c from libc, undoing this 2003-08-12 change:
89877         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89878
89879 2003-08-16  Jim Meyering  <jim@meyering.net>
89880
89881         Merges from coreutils.
89882         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
89883         prefix.  Adjust cache variables similarly.  Create 500 rather than
89884         just 300 files, to exercise bug on Darwin6.5, too.
89885         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
89886         $missing_dir.
89887         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
89888         AM_SYS_POSIX_TERMIOS.
89889         Reported by mkc@mathdogs.com.
89890         Also change use of $am_cv_sys_posix_termios
89891         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
89892         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
89893         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
89894         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
89895         in /proc/mounts until it finds one with matching device number.  This
89896         is unnecessary when the FILE argument *is* a mount point.  No stat call
89897         is necessary in that case.  So, disable the statvfs-testing code on
89898         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
89899         as RedHat bug# 84846.
89900         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89901         to 1MB, so as not to render systems with no stack size limit (e.g.,
89902         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89903         Include <unistd.h>.  On some systems,
89904         it is required for the definition of _SC_PAGESIZE.
89905
89906 2003-08-16  Jim Meyering  <jim@meyering.net>
89907
89908         Merge from coreutils.
89909         * lib/xstrtoimax.c: #else #if -> #elif.
89910         * lib/xstrtoumax.c: Likewise.
89911
89912 2003-08-16  Jim Meyering  <jim@meyering.net>
89913
89914         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
89915         * m4/utimes.m4: Removed.
89916         * m4/utimes-null.m4: Renamed from utimes.m4.
89917
89918         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89919         to 1MB, so as not to render systems with no stack size limit (e.g.,
89920         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89921         Include <unistd.h>.  On some systems,
89922         it is required for the definition of _SC_PAGESIZE.
89923
89924 2003-08-16  Jim Meyering  <jim@meyering.net>
89925         and Paul Eggert  <eggert@cs.ucla.edu>
89926
89927         Merges from coreutils, etc.
89928
89929         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
89930         using the latest version from cvs.  This avoids problems with #line
89931         directives using a vendor (Sun) compiler.
89932         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
89933         Don't set GETGROUPS_LIB here; now it's
89934         done via getgroups.m4's wrapper function.
89935         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
89936         rather than just in sh-util/configure.in, so that the
89937         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
89938         same.
89939         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
89940         AC_FUNC_GETLOADAVG where to find getloadavg.c.
89941         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
89942         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
89943         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
89944         Remove code that is now done by the newly-required macros.
89945         Append $(EXEEXT) to DF_PROG.
89946         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
89947         Do not invoke or require the following here,
89948         since prereq.m4 or some gnulib .m4 now does this for us:
89949         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
89950         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
89951         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
89952         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
89953         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
89954         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
89955         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
89956         AC_FUNC_OBSTACK.
89957         Do not replace the following functions, as this is now the job
89958         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
89959         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
89960         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
89961         atexit getpass, strdup, getpagesize.
89962         Replace 'raise'.
89963         Do not check for the following functions, as this is now the job
89964         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
89965         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
89966         setregid.
89967         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
89968         Check for sys/sysctl.h.
89969         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
89970         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
89971         of checking for ssize_t ourselves.
89972
89973         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
89974         Require every macro that gnulib/modules/* suggests for us.
89975         (jm_PREREQ_ADDEXT): New macro.
89976         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
89977         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
89978
89979         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
89980         (gl_PHYSMEM): Use it.
89981         Also check for `table' function.
89982         Check for new headers and functions.
89983         Add check for sys/sysmp.h.
89984         With suggestions from Kaveh Ghazi.
89985         Ignore headers that are present but cannot be compiled.  This
89986         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
89987         C 5.4.
89988
89989 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89990
89991         Document merge from coreutils.
89992         * modules/userspec: Depend on posixver.
89993         * modules/strftime: Depend on tzset.
89994
89995 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89996
89997         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
89998         rather than tab, after '#' in shell-script copyright notices.
89999         Suggested by Bruno Haible.
90000
90001 2003-08-15  Paul Eggert  <eggert@twinsun.com>
90002
90003         * config/srclist-update: Use three spaces, rather than tab, after '#'
90004         in shell-script copyright notices.  Suggested by Bruno Haible.
90005         Remove unnecessary parenthesization in regular expression.
90006
90007 2003-08-15  Jim Meyering  <jim@meyering.net>
90008
90009         Merge from coreutils.
90010         * lib/xgethostname.c: Include <stdlib.h>.
90011         (xghostname): Don't exit for anything other than memory-related
90012         failure; just return NULL.
90013         * lib/userspec.c: Include "posixver.h".
90014         (parse_user_spec): Accept `.' as a separator only
90015         in pre-POSIX-200112 mode.
90016         * lib/strtoimax.c: Use #elif rather than #else #if.
90017         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
90018         Remove function, now that we can rely on a working tzset function.
90019         [!_LIBC]: Ensure that the required autoconf test has been run.
90020         [!defined _NL_CURRENT && HAVE_STRFTIME]:
90021         Use underlying_strftime for %r.
90022         * lib/sha.c: Merge in some clean-up and optimization changes from
90023         glibc.
90024         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
90025         Ensure that it is a multiple of 64.
90026         Rearrange loop exit tests so as to avoid performing an
90027         additional fread after encountering an error or EOF.
90028         * lib/realloc.c: Update copyright date.
90029
90030 2003-08-15  Jim Meyering  <jim@meyering.net>
90031         and Paul Eggert  <eggert@twinsun.com>
90032
90033         Merge from coreutils.
90034         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
90035         member but strut utmpx does not.  Needed for AIX 4.3.3.
90036         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
90037
90038 2003-08-15  Jim Meyering  <jim@meyering.net>
90039         and Paul Eggert  <eggert@cs.ucla.edu>
90040
90041         Merges from coreutils, etc.
90042         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
90043         Require gl_FUNC_TZSET_CLOBBER.
90044         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
90045         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
90046         members.
90047
90048 2003-08-14  Paul Eggert  <eggert@twinsun.com>
90049
90050         Help the merge from coreutils.
90051         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
90052         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
90053         * m4/tzset.m4: Use it too.
90054
90055 2003-08-14  Paul Eggert  <eggert@twinsun.com>
90056
90057         * modules/tzset: New file.
90058
90059 2003-08-14  Jim Meyering  <jim@meyering.net>
90060
90061         Merges from coreutils.
90062         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
90063         variable names, rather than @FNMATCH_H@.
90064         * modules/alloca: Likewise for $(ALLOCA_H).
90065
90066         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
90067         the three copies of the literal target, `fnmatch.h'.
90068         * modules/alloca (alloca.h): Likewise.
90069
90070 2003-08-14  Jim Meyering  <jim@meyering.net>
90071
90072         Merge from coreutils.
90073         * m4/tzset.m4: New file.
90074         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
90075         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
90076         otherwise, AIX 5.1 systems would end up using the latter.
90077         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
90078         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
90079         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
90080         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
90081
90082 2003-08-14  Jim Meyering  <jim@meyering.net>
90083
90084         Merge from coreutils.
90085         * lib/obstack.h: Whitespace changes.
90086         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
90087         and xcalloc return values.
90088         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
90089         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
90090         hang on OSF/1 5.1 for DIR on both local and remote file systems.
90091         Reported by (and fix confirmed by) Nelson H. F. Beebe.
90092         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
90093         error from mntctl.
90094         Use mntctl's return value to drive the entry-processing loop, since
90095         we can't rely on the value of the vmt_length member in the last
90096         entry.  On some systems doing so could result in exhausting
90097         virtual memory.  Based in part on a patch from Mike Jetzer.
90098
90099 2003-08-14  Jim Meyering  <jim@meyering.net>
90100         and Paul Eggert  <eggert@twinsun.com>
90101
90102         Merges from coreutils, plus other fixes.
90103         * lib/physmem.c: Merge in portability changes from gcc/libiberty
90104         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
90105         for credits and details.  Thanks to Kaveh Ghazi for helping
90106         to keep these files in sync.
90107         (ARRAY_SIZE): Define it.
90108         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
90109         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
90110         (memcasecmp): Don't assume size_t fits in unsigned int.
90111         Remove casts and duplicate code.
90112         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
90113         (memcpy): Remove definition.
90114         Merge in some clean-up and optimization changes from glibc.
90115         [BLOCKSIZE]: Move definition to top of file.
90116         Ensure that it is a multiple of 64.
90117         Rearrange loop exit tests so as to avoid performing an
90118         additional fread after encountering an error or EOF.
90119         * lib/md5.h (md5_uintptr): Define.
90120         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
90121         return to the initial working directory.  Preserve errno
90122         for caller.
90123         * lib/idcache.c: Include "xalloc.h".
90124         (xmalloc, xrealloc): Remove decls.
90125         (getuser): Remove casts no longer required in C89.
90126         * lib/human.c: Include stdio.h, for sprintf.
90127         * lib/group-member.c: Include "xalloc.h".
90128         (xmalloc, xrealloc): Remove decls.
90129         (get_group_info): Remove casts no longer required in C89.
90130         * lib/getusershell.c (readname): Remove casts no longer required in
90131         C89.
90132         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
90133         * lib/getline.c: Whitespace fix, from coreutils.
90134
90135 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90136
90137         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
90138         Check for isascii.
90139
90140         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
90141         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
90142         Undo previous (whitespace-only) change.
90143
90144 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90145
90146         * lib/exclude.c: Include <ctype.h>
90147         (IN_CTYPE_DOMAIN): New macro.
90148         (is_space): New fn.
90149         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
90150         and empty lines.
90151
90152         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
90153         Undo previous (whitespace-only) change.
90154
90155 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90156
90157         * config/srclist-update: Change update back to the old behavior,
90158         leaving whitespace alone.  Use one 'sed' command rather than a
90159         pipeline.
90160         (fixlicense): Now a variable, not a function.
90161         (remove_trailing_blanks): Remove.
90162         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
90163         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
90164         Undo previous (whitespace-only) change.
90165
90166 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90167
90168         Merge from coreutils.
90169         * modules/euidaccess: Add lib_SOURCES, include for new
90170         file euidaccess.h
90171
90172 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90173
90174         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
90175         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
90176         Normalize leading white space and remove trailing white space.
90177
90178         Merge from coreutils
90179         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
90180
90181         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
90182         0.12.1.  These files are now being upgraded automatically by
90183         ../config/srclist-update.
90184
90185 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90186
90187         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
90188         Normalize leading white space and remove trailing white space.
90189         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
90190         notice, as per ../config/srclist-update.
90191
90192         Merge from coreutils.
90193         * lib/euidaccess.h: New file.
90194         * lib/euidaccess.c: Include it.
90195         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
90196         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
90197         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
90198
90199 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90200
90201         * config/srclist-update: Add copyright notice.
90202         (remove_id_lines, remove_trailing_blanks): New constants.
90203         (fixfile): Use them to normalize spacing a bit in copied files.
90204         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
90205         Normalize leading white space and remove trailing white space.
90206
90207         * config/texinfo.tex: Sync with texinfo.
90208
90209         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
90210         strtoul.c from libc, to merge coreutils whitespace changes.
90211
90212         * config/srclist.txt: Get the following m4 files from gettext:
90213         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
90214         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
90215         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
90216         wint_t.m4.
90217
90218 2003-08-12  Karl Berry  <karl@gnu.org>
90219
90220         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
90221         been made.
90222
90223 2003-08-11  Paul Eggert  <eggert@twinsun.com>
90224
90225         * modules/gnu-source, m4/gnu-source.m4:
90226         Remove; we're assuming Autoconf 2.54 or later now.
90227         Suggested by Bruno Haible.
90228         * MODULES.html.sh (func_all_modules): Remove gnu-source.
90229
90230 2003-08-11  Bruno Haible  <bruno@clisp.org>
90231
90232         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
90233
90234 2003-08-11  Bruno Haible  <bruno@clisp.org>
90235
90236         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
90237         (vasnprintf): Use it instead of wcslen.
90238
90239 2003-08-11  Bruno Haible  <bruno@clisp.org>
90240
90241         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
90242         value to ensure that _Bool promotes to int. Use #define for _Bool when
90243         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
90244
90245 2003-08-10  Karl Berry  <karl@gnu.org>
90246
90247         * lib/regex.h: update from libc (whitespace fix).
90248
90249 2003-08-09  Paul Eggert  <eggert@twinsun.com>
90250
90251         Merge some files from coreutils.  These changes were
90252         originally made by Jim Meyering.
90253         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
90254         many older Unixes require this.
90255         * lib/alloca.c (alloca): Remove cast to argument of free;
90256         no longer needed in C89.
90257         * lib/alloca_.h, regex.h: Fix white space to match
90258         what GNU indent does.
90259
90260 2003-08-09  Paul Eggert  <eggert@twinsun.com>
90261
90262         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
90263         apparently Emacs's Unicode mode got confused before my 2003-08-05
90264         checkin.
90265
90266 2003-08-08  Paul Eggert  <eggert@twinsun.com>
90267
90268         * m4/extensions.m4: New file.
90269         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
90270         Require gl_USE_SYSTEM_EXTENSIONS.
90271         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
90272         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
90273
90274 2003-08-08  Paul Eggert  <eggert@twinsun.com>
90275
90276         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
90277         * modules/extensions, modules/gnu-source: New files.
90278         * modules/timespec, modules/unlocked-io: Depend on extensions.
90279
90280 2003-08-07  Paul Eggert  <eggert@twinsun.com>
90281
90282         * modules/restrict: New file.
90283         * MODULES.html.sh (func_all_modules): Add restrict.
90284         * modules/regex: Depend on restrict.
90285
90286 2003-08-07  Paul Eggert  <eggert@twinsun.com>
90287
90288         * m4/restrict.m4: New file.
90289         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
90290
90291 2003-08-07  Bruno Haible  <bruno@clisp.org>
90292
90293         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
90294         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
90295
90296 2003-08-07  Bruno Haible  <bruno@clisp.org>
90297
90298         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
90299         makes the module 'getndelim2' compatible with the module 'getline'.
90300
90301 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90302
90303         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
90304         byte with "\201" to avoid glitches when editing that source file
90305         with multi-gnome-terminal.
90306
90307 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90308
90309         * lib/bumpalloc.h: Remove.
90310
90311 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90312
90313         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
90314         * modules/bumpalloc: Remove.
90315
90316 2003-08-04  Paul Eggert  <eggert@twinsun.com>
90317
90318         * lib/getloadavg.c: Change copyright notice and spacing to conform to
90319         GNU coding style.
90320
90321         Merge from coreutils.
90322         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
90323         1. From glibc.
90324         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
90325         from Karl Berry, implemented by Jim Meyering.
90326         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
90327         from Dmitry V. Levin.
90328         Remove anachronistic cast of xrealloc.
90329         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
90330         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
90331         type. Otherwise, it wouldn't compile with at least /bin/cc on
90332         ymp-cray-unicos9.0.2.X.
90333         Combine two mostly-identical uses of alloca into one.
90334         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
90335
90336 2003-08-04  Dave Love  <d.love@dl.ac.uk>
90337
90338         [From Emacs.]
90339
90340         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
90341         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
90342         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
90343         obsolete NLIST_NAME_UNION.
90344         [__GNU__]: Undef BSD and FSCALE.
90345         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
90346
90347 2003-08-03  Paul Eggert  <eggert@twinsun.com>
90348
90349         * lib/stdbool_.h (_Bool): Make it signed char, instead of
90350         an enum type, so that it's guaranteed to promote to int.  See:
90351         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
90352
90353 2003-08-03  Karl Berry  <karl@gnu.org>
90354
90355         * config/depcomp: update from automake.
90356
90357 2003-07-31  Paul Eggert  <eggert@twinsun.com>
90358
90359         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
90360         (strerror): Don't assume that a printable int fits in 14 bytes.
90361
90362 2003-07-31  Bruno Haible  <bruno@clisp.org>
90363
90364         * modules/getpass-gnu: New file.
90365         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
90366
90367 2003-07-31  Bruno Haible  <bruno@clisp.org>
90368
90369         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
90370
90371 2003-07-24  Karl Berry  <karl@gnu.org>
90372
90373         * config/missing: update from automake.
90374
90375 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
90376             Bruno Haible  <bruno@clisp.org>
90377
90378         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
90379         * lib/getline.c (getline, getdelim): Likewise.
90380         Remove _GNU_SOURCE define; now it's defined in config.h through
90381         m4/getline.m4.
90382
90383 2003-07-23  Karl Berry  <karl@gnu.org>
90384
90385         * config/config.sub: update from prep.
90386
90387 2003-07-22  Paul Eggert  <eggert@twinsun.com>
90388
90389         * modules/xalloc (Depends-on): Add exitfail.
90390         * modules/xmemcoll: Likewise.
90391
90392 2003-07-22  Paul Eggert  <eggert@twinsun.com>
90393
90394         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
90395         over-parenthesization in macros.
90396
90397         Sync with coreutils.
90398
90399         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
90400         required by C99.
90401
90402         Use `exit_failure' for xalloc and xmemcoll instead of their own
90403         private exit-failure variables.
90404         * lib/xalloc.h (xalloc_exit_failure): Remove.
90405         * lib/xmalloc.c: Likewise.  Include exitfail.h.
90406         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
90407         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
90408         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
90409         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
90410
90411 2003-07-20  Jim Meyering  <jim@meyering.net>
90412
90413         * modules/closeout (Depends-on): Add exitfail.
90414         Suggestion from Bruno Haible.
90415
90416 2003-07-19  Karl Berry  <karl@gnu.org>
90417
90418         * config/config.sub: update from prep.
90419
90420 2003-07-18  Paul Eggert  <eggert@twinsun.com>
90421
90422         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
90423         Remove.
90424         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
90425         to test that it can stand by itself.  Include "exitfail.h".
90426         Clients should set exit_failure instead.
90427         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
90428
90429 2003-07-18  Bruno Haible  <bruno@clisp.org>
90430
90431         * modules/getndelim2: New file.
90432         * modules/getline: Share files with module getndelim2.
90433         * modules/getnline: Depend on getndelim2 instead of sharing files with
90434         it. Add getnline.c to lib_SOURCES.
90435         * MODULES.html.sh (func_all_modules): Add getndelim2.
90436
90437 2003-07-18  Bruno Haible  <bruno@clisp.org>
90438
90439         * m4/getndelim2.m4: New file.
90440         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
90441         invoke gl_PREREQ_GETNDELIM2.
90442         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
90443         gl_PREREQ_GETNDELIM2.
90444         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
90445         gl_GETNDELIM2.
90446
90447 2003-07-18  Bruno Haible  <bruno@clisp.org>
90448
90449         * lib/getndelim2.h: New file.
90450         * lib/getndelim2.c: Make into a module of its own. Include config.h,
90451         getndelim2.h.
90452         (getndelim2): Make non-static. Change return type to ssize_t.
90453         * lib/getline.h: Change argument names.
90454         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
90455         * lib/getnline.c: Include getndelim2.h.
90456
90457 2003-07-18  Andreas Schwab  <schwab@suse.de>
90458
90459         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
90460
90461 2003-07-17  Karl Berry  <karl@gnu.org>
90462
90463         * config/config.sub: update from prep.
90464
90465 2003-07-17  Bruno Haible  <bruno@clisp.org>
90466
90467         * modules/getnline: New file.
90468         * modules/getline: Add lib/getndelim2.c to source file list.
90469         * MODULES.html.sh (func_all_modules): Add getnline.
90470
90471 2003-07-17  Bruno Haible  <bruno@clisp.org>
90472
90473         * m4/getnline.m4: New file.
90474
90475 2003-07-17  Bruno Haible  <bruno@clisp.org>
90476
90477         * m4/Makefile.am.in: Remove file.
90478         * m4/Makefile.am: Remove file.
90479         * m4/Makefile.in: Remove file.
90480
90481 2003-07-17  Bruno Haible  <bruno@clisp.org>
90482
90483         * lib/getnline.h: New file.
90484         * lib/getnline.c: New file.
90485         * lib/getndelim2.c: New file, extracted from getline.c.
90486         (getndelim2): Renamed from getdelim2, with added nmax argument.
90487         * lib/getline.c: Include getndelim2.c.
90488         (getdelim2): Moved out to getndelim2.c.
90489         (getline, getdelim): Update.
90490
90491 2003-07-17  Bruno Haible  <bruno@clisp.org>
90492
90493         * lib/Makefile.am: Remove file.
90494         * lib/Makefile.in: Remove file.
90495
90496 2003-07-17  Bruno Haible  <bruno@clisp.org>
90497
90498         * configure.in: Remove file.
90499         * Makefile.in: Remove file.
90500
90501 2003-07-17  Bruno Haible  <bruno@clisp.org>
90502
90503         * MODULES.html.sh: Put the </BODY> right before </HTML>.
90504
90505 2003-07-16  Karl Berry  <karl@gnu.org>
90506
90507         * config/srclist-update: was running fixlicense twice, which caused
90508                 texinfo.tex to be nullified for some reason.  Simplify,
90509                 $gplsrc is no longer needed as far as I can see?
90510
90511 2003-07-16  Jim Meyering  <jim@meyering.net>
90512
90513         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
90514
90515 2003-07-15  Paul Eggert  <eggert@twinsun.com>
90516
90517         * config/srclist.txt: Get the following files from gettext-runtime/intl
90518         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
90519         ref-del.sin.  From Bruno Haible.
90520         * config/srclist-update (fixfile): Change grep pattern again, since the
90521         previous fix didn't work (there was another trailing $).  Use
90522         '[$]' to escape the $s.
90523
90524 2003-07-15  Karl Berry  <karl@gnu.org>
90525
90526         * lib/vasnprintf.c: update from gettext.
90527
90528 2003-07-15  Karl Berry  <karl@gnu.org>
90529
90530         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
90531         gets expanded when surrounded by '$'.
90532
90533 2003-07-15  Jim Meyering  <jim@meyering.net>
90534
90535         * modules/save-cwd: Don't depend on error.  From Derek Price.
90536
90537 2003-07-15  Jim Meyering  <jim@meyering.net>
90538
90539         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
90540
90541 2003-07-14  Simon Josefsson  <jas@extundo.com>
90542
90543         * modules/mempcpy: New file.
90544         * MODULES.html.sh (func_all_modules): Add mempcpy.
90545
90546 2003-07-14  Simon Josefsson  <jas@extundo.com>
90547
90548         * m4/mempcpy.m4: New file.
90549
90550 2003-07-14  Simon Josefsson  <jas@extundo.com>
90551
90552         * lib/mempcpy.h: New file.
90553         * lib/mempcpy.c: New file.
90554
90555 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90556
90557         * modules/getdate, modules/posixtm: Depend on mktime.
90558
90559 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90560
90561         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
90562         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
90563         unicodeio.c, unicodeio.h, unlocked-io.h:
90564         Switch from LGPL to GPL.
90565
90566 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90567
90568         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
90569         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
90570         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
90571         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
90572         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
90573         updated automatically by ../config/srclist-update.  This changes
90574         their license from LPGL to GPL.
90575
90576 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90577
90578         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
90579         assumed to refer to the root of the most recent stable gettext version.
90580         * config/srclistvars.sh: Add defaults for eggert.
90581         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
90582         Match "This program" as well as "The program".  This is needed
90583         for gettext.
90584
90585 2003-07-14  Jim Meyering  <jim@meyering.net>
90586
90587         Don't emit diagnostics.  Let callers do that.
90588         * lib/save-cwd.c: Don't include "error.h".
90589         (save_cwd): Don't call error.  Ensure that errno is valid
90590         when returning nonzero.
90591
90592         * lib/save-cwd.h (restore_cwd): Update prototype.
90593         * lib/save-cwd.c (restore_cwd): Remove two parameters.
90594         Simplify.  Don't call error upon failure.  Let callers do that.
90595         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
90596         when auditing is enabled.  But don't bother updating the #if.
90597
90598 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
90599
90600         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
90601         it breaks C++ compilation.
90602         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
90603
90604 2003-07-10  Simon Josefsson  <jas@extundo.com>
90605
90606         * modules/strchrnul (Makefile.am): Add strchrnul.h.
90607
90608 2003-07-10  Jim Meyering  <jim@meyering.net>
90609
90610         * m4/clock_time.m4: Remove trailing blank.
90611         * m4/intmax_t.m4: Likewise.
90612
90613 2003-07-10  Jim Meyering  <jim@meyering.net>
90614
90615         * lib/vasnprintf.c: Remove trailing blanks.
90616         Make cpp indentation consistent.
90617
90618 2003-07-09  Paul Eggert  <eggert@twinsun.com>
90619
90620         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
90621         posixver.c, strftime.c, strnlen.c, strverscmp.c:
90622         Switch from LGPL to GPL.
90623
90624 2003-07-09  Paul Eggert  <eggert@twinsun.com>
90625
90626         * config/srclist.txt: Sort sublists.  Add
90627         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
90628         that differ from gnulib for one reason or another; we'd like this list
90629         to be smaller but for now let's document what we have.
90630
90631 2003-07-08  Paul Eggert  <eggert@twinsun.com>
90632
90633         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
90634         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
90635         and sweeter "eval x=$x".
90636         * config/srclist.txt: Get lib/argp* from glibc.
90637
90638 2003-07-07  Paul Eggert  <eggert@twinsun.com>
90639
90640         * lib/mktime.c: Fix some boundary cases and remove need for floating
90641         point.
90642
90643         Issue a compile-time diagnostic if time_t is floating point, or if
90644         two's complement arithmetic is not in effect, or if arithmetic
90645         right shift does not propagate the sign.  These assumptions were
90646         all in the original code but they weren't checked.
90647
90648         (TIME_T_MIDPOINT, verify): New macros.
90649         (__isleap): Remove; it has integer overflow problems.
90650         (leapyear): New function, without those problems.
90651         (ydhms_tm_diff): Remove; splitting into two parts.
90652         (ydhms_diff): New function, containing the arithmetic part of
90653         the old ydhms_tm_diff function.  Issue a compile-time
90654         diagnostic if we are not using C99 integer division.
90655         Avoid casts when possible.
90656         (guess_time_tm): New function, containing the checking part of
90657         the old ydhms_tm_diff function.  Return the new value, rather than
90658         the difference between it and the old.  Accept a new argument T
90659         so that *T specifies the old value.  Check for overflow in the result.
90660
90661         (__mktime_internal): Use a time_t offset, not a long int offset.
90662         This undoes the 2003-06-04 change, which is no longer needed now
90663         that we have better overflow checking.
90664         (localtime_offset): Likewise.
90665
90666         (__mktime_internal): Avoid harmful overflow on hosts where time_t
90667         and long are 64-bit but int is only 32-bit.
90668         (ydhms_diff): Use long int to store year1 and yday1.
90669         Issue a compile-time diagnostic if long int is not wide enough.
90670
90671         (__mktime_internal): Use long int to store adjusted year and yday.
90672         Use plain C rather than preprocessor commands, if that doesn't
90673         affect efficiency.
90674         Check for overflow (and try to repair) after each probe
90675         rather than checking only at the very end.  This avoids some bugs
90676         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
90677         does not equal GMT offset at maximum time).
90678         Use integer to check for overflow rather than floating point; this
90679         is more portable to non-IEEE hosts, and is a tad faster.
90680         When we detect that we are oscillating between two values,
90681         don't check whether tm_isdst has the requested value, since
90682         we already know the answer.  When tm_isdst has the wrong value,
90683         use a different heuristic to find the right one, based on the
90684         extreme values actually observed in practice in tz2003a,
90685         rather than the (overly optimistic) "previous 3 calendar quarters".
90686
90687         (not_equal_tm, print_tm, check_result): Use "const T" rather than
90688         "T const" to accommodate glibc style.
90689         (check_result): Use less-confusing report format.  "long" -> "long int.
90690         (main): Likewise.
90691         Don't loop if the iteration overflows time_t.
90692         Allow a negative step in the iteration.
90693
90694 2003-07-06  Karl Berry  <karl@gnu.org>
90695
90696         * config/depcomp: update from automake.
90697         * config/config.sub: update from prep.
90698
90699 2003-07-03  Karl Berry  <karl@gnu.org>
90700
90701         * config/config.guess: update from prep.
90702
90703 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90704
90705         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
90706         xreadlink.c now includes it unconditionally.
90707
90708 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90709
90710         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
90711         having it depend on HAVE_SYS_TYPES_H.
90712
90713 2003-07-01  Bruno Haible  <bruno@clisp.org>
90714
90715         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
90716         <sys/types.h> should be sufficient.
90717         Reported by Paul Eggert.
90718
90719 2003-06-26  Karl Berry  <karl@gnu.org>
90720
90721         * config/depcomp: update from automake.
90722
90723 2003-06-26  Bruno Haible  <bruno@clisp.org>
90724
90725         * modules/human: Depend on module stdbool.
90726
90727 2003-06-25  Bruno Haible  <bruno@clisp.org>
90728
90729         * modules/readlink: New file.
90730         * modules/xreadlink: Depend on it.
90731         * MODULES.html.sh (func_all_modules): Add readlink.
90732
90733 2003-06-25  Bruno Haible  <bruno@clisp.org>
90734
90735         * m4/readlink.m4: New file.
90736
90737 2003-06-25  Bruno Haible  <bruno@clisp.org>
90738
90739         * lib/readlink.c: New file.
90740
90741 2003-06-22  Karl Berry  <karl@gnu.org>
90742
90743         * config/srclist.txt: update mkinstalldirs from automake.
90744         * config/mkinstalldirs: update.
90745
90746 2003-06-22  Bruno Haible  <bruno@clisp.org>
90747
90748         Portability to mingw32.
90749         * m4/ssize_t.m4: New file, from GNU gettext.
90750         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
90751         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
90752
90753 2003-06-22  Bruno Haible  <bruno@clisp.org>
90754
90755         * modules/safe-read: Add m4/ssize_t.m4.
90756         * modules/xreadlink: Add m4/ssize_t.m4.
90757
90758 2003-06-20  Bruno Haible  <bruno@clisp.org>
90759
90760         Assume C89, so PARAMS isn't needed.
90761         * lib/unicodeio.h (PARAMS): Remove.
90762         * lib/unicodeio.c: Don't use PARAMS.
90763
90764 2003-06-18  Karl Berry  <karl@gnu.org>
90765
90766         * config/config.{guess,sub}: update from prep.
90767
90768 2003-06-18  Jim Meyering  <jim@meyering.net>
90769
90770         Merge changes from coreutils.
90771         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
90772         Remove explicit declarations of xmalloc and realloc.
90773         Include xalloc.h.
90774         (read_utmp): Remove anachronistic cast of xmalloc.
90775
90776 2003-06-17  Paul Eggert  <eggert@twinsun.com>
90777
90778         Assume C89, so PARAMS isn't needed.
90779         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
90780         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
90781         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
90782         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
90783         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
90784         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
90785         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
90786         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
90787         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
90788         lib/xstrtod.h, lib/xstrtol.h: Likewise.
90789         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
90790         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
90791         no longer needed. Anyway, config.h should always be included before any
90792         other file.
90793
90794 2003-06-11  Simon Josefsson  <jas@extundo.com>
90795
90796         * modules/sysexits: New file.
90797         * MODULES.html.sh (func_all_modules): Add sysexits.
90798
90799 2003-06-11  Simon Josefsson  <jas@extundo.com>
90800
90801         * lib/sysexit_.h: New file.
90802
90803 2003-06-11  Derek Price  <derek@ximbiot.com>
90804
90805         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
90806         necessary.
90807
90808 2003-06-11  Bruno Haible  <bruno@clisp.org>
90809
90810         * m4/sysexits.m4: New file.
90811
90812 2003-06-10  Simon Josefsson  <jas@extundo.com>
90813
90814         * lib/argp.h: New file, from glibc.
90815         * lib/argp-ba.c: New file, from glibc.
90816         * lib/argp-eexst.c: New file, from glibc.
90817         * lib/argp-fmtstream.c: New file, from glibc.
90818         * lib/argp-fmtstream.h: New file, from glibc.
90819         * lib/argp-fs-xinl.c: New file, from glibc.
90820         * lib/argp-help.c: New file, from glibc.
90821         * lib/argp-namefrob.h: New file, from glibc.
90822         * lib/argp-parse.c: New file, from glibc.
90823         * lib/argp-pv.c: New file, from glibc.
90824         * lib/argp-pvh.c: New file, from glibc.
90825         * lib/argp-xinl.c: New file, from glibc.
90826
90827 2003-06-10  Simon Josefsson  <jas@extundo.com>
90828
90829         * modules/strchrnul: New file.
90830
90831 2003-06-10  Simon Josefsson  <jas@extundo.com>
90832
90833         * modules/argp: New file.
90834
90835 2003-06-10  Simon Josefsson  <jas@extundo.com>
90836
90837         * m4/strchrnul.m4: New file.
90838
90839 2003-06-10  Simon Josefsson  <jas@extundo.com>
90840
90841         * lib/strchrnul.h: New file.
90842         * lib/strchrnul.c: New file.
90843
90844 2003-06-10  Bruno Haible  <bruno@clisp.org>
90845
90846         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
90847
90848 2003-06-07  Karl Berry  <karl@gnu.org>
90849
90850         * config/config.{guess,sub}: update from prep.
90851
90852 2003-06-07  Jim Meyering  <jim@meyering.net>
90853
90854         * modules/strtod: Use $(...) notation, not @...@ for
90855         AC_REPLACE'd variables.
90856         * modules/localcharset: Likewise.
90857
90858 2003-06-07  Jim Meyering  <jim@meyering.net>
90859
90860         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
90861         in place of my name in the copyright comment.
90862         Remove definition and uses of __P.
90863
90864         From coreutils.
90865         * lib/stat.c: Don't declare xmalloc explicitly.
90866         Instead, include "xalloc.h".
90867         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
90868         xrealloc, and xcalloc return values.
90869         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
90870         Improve comment.
90871         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
90872
90873 2003-06-07  Bruno Haible  <bruno@clisp.org>
90874
90875         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
90876         avoid AC_CONFIG_LINKS.
90877         * modules/fnmatch (Makefile.am): Use explicit creation rule for
90878         fnmatch.h, to avoid AC_CONFIG_LINKS.
90879         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
90880
90881 2003-06-07  Bruno Haible  <bruno@clisp.org>
90882
90883         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
90884         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
90885         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90886         directory.
90887         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
90888         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90889         directory.
90890
90891 2003-06-06  Jim Meyering  <jim@meyering.net>
90892
90893         Merge from coreutils.
90894         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
90895         Consolidate declarations and initializations of *_base* locals.
90896
90897         Merge from coreutils.
90898         This avoids a core dump on systems without GNU putenv,
90899         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
90900         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
90901         (unsetenv): New static function, from GNU libc.
90902         (rpl_putenv): Use it.
90903
90904         * lib/modechange.c: Remove trailing blanks.
90905
90906         Merge from coreutils.
90907         * lib/fsusage.c: Remove declaration of statfs.
90908         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
90909
90910         * lib/posixtm.c: Include <stdbool.h> unconditionally.
90911
90912 2003-06-06  Jim Meyering  <jim@meyering.net>
90913
90914         * lib/stdbool_.h: Renamed from stdbool.h.in.
90915
90916 2003-06-06  Jim Meyering  <jim@meyering.net>
90917             Bruno Haible  <bruno@clisp.org>
90918
90919         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
90920         Adjust Makefile.am snippet not to redirect directly to target.
90921         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
90922
90923 2003-06-05  Paul Eggert  <eggert@twinsun.com>
90924
90925         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
90926         mismatch, look in future quarters as well as past.  This fixes a
90927         bug when processing fall-backwards gaps immediately after a long
90928         period of daylight-saving time.
90929
90930         * lib/mktime.c: Assume freestanding C89 or better.
90931         (HAVE_LIMITS_H): Remove.  Assume it's 1.
90932         (__P): Remove; not used.
90933         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
90934         (mktime, not_equal_tm, print_tm, check_result,
90935         main): Use prototypes.  Use const * where appropriate.
90936         (main): Fix typo in testing code that uncovered by above changes.
90937         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
90938
90939 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90940
90941         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
90942         locale.h, localeconv.  This merges changes from coreutils.
90943
90944         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
90945         It can be removed after the next Autoconf is released.
90946         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
90947         needed.
90948
90949 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90950
90951         * lib/mktime.c: Fix Debian bug 177940
90952         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
90953         (localtime_offset): Now long int, not time_t, because we want it
90954         to be guaranteed to be signed.  All uses changed.
90955         (__mktime_internal): If overflow would occur when adding offset,
90956         don't add it.
90957
90958         Merge 'human' changes from coreutils.  Rewrite to support
90959         locale-specific notations like thousands separators.
90960         * lib/human.c: Simplify authorship notice.
90961         Include human.h immediately after config.h.
90962         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
90963         <limits.h>: Do not include, since human.h does.
90964         (SIZE_MAX, UINTMAX_MAX): New macros.
90965         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
90966         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
90967         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
90968         (power_letter): Renamed from suffixes.
90969         (generate_suffix_backwards): Remove.
90970         (adjust_value): Now takes int style (because of human.h changes)
90971         and long double value (for greater precision on some platforms).
90972         (group_number): New function.
90973         (human_readable): Use it.  Use integer options, not enum.
90974         Put the options before the sizes in the arg list.
90975         Support all the new options.
90976         The old human_readable function has been removed;
90977         use inttostr.h instead.
90978         (human_readable, default_block_size, humblock):
90979         Use uintmax_t, not int, for block sizes.
90980         (human_readable_inexact, block_size_types): Remove.
90981         (block_size_opts): New constant.
90982         (human_options): Renamed from human_block_size, with new signature
90983         that allows block sizes up to UINTMAX_MAX.  All callers changed.
90984         * lib/human.h: Add copyright and authorship notice.
90985         Include <limits.h> and <stdbool.h> unconditionally.
90986         (PARAMS): Remove.  All uses removed.
90987         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
90988         (enum human_inexact_style): Remove tag; now a nameless enum.
90989         (human_floor, human_ceiling, human_round_to_even): Now have
90990         values 2, 0, 1 rather than -1, 1, 0.
90991         (human_group_digits, human_suppress_point_zero, human_autoscale,
90992         human_base_1024, human_SI, human_B): New constants.
90993         (human_readable_inexact, human_block_size): Remove.
90994         (human_readable): Size args are now uintmax_t, not int.
90995         (human_options): New decl.
90996
90997         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
90998         unnecessary now that we assume C89 or better.  This change
90999         imported from coreutils.
91000
91001         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
91002         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
91003         in the 2003-05-30 sync from glibc.
91004
91005         .h files should stand alone, but we shouldn't include <sys/types.h>
91006         if we can get away with just <stddef.h>.
91007
91008         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
91009         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
91010         rather than <sys/types.h>, as we merely need size_t.
91011         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
91012         to get size_t.
91013         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
91014         Include <stdio.h>, to get FILE.
91015         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
91016         memcasecmp.h has included <stddef.h> and all we need is size_t.
91017         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
91018         our interface, instead of including <sys/types.h>
91019
91020 2003-06-04  Paul Eggert  <eggert@twinsun.com>
91021
91022         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
91023         now, as glibc mktime is buggy on non-glibc systems.
91024
91025 2003-06-03  Karl Berry  <karl@gnu.org>
91026
91027         * config/config.sub: update from prep.
91028
91029 2003-06-02  Paul Eggert  <eggert@twinsun.com>
91030
91031         [from coreutils]
91032         Fix some minor time-related bugs with POSIX time arguments.
91033         Some valid time stamps were being rejected (notably -1, and
91034         time stamps before 1900 on 64-bit hosts).  And some invalid
91035         time stamps were being accepted, e.g. September 31.
91036
91037         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
91038         that we can return (time_t) -1 successfully.
91039         * lib/posixtm.c: Likewise.
91040         [HAVE_STDBOOL_H]: Include <stdbool.h>.
91041         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
91042         (t): Remove static var.
91043         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
91044         of static var.  All uses changed.
91045         (year): Do not reject years before 1900; they can occur with
91046         64-bit time_t.
91047         (posix_time_parse): Do not check for out-of-range components;
91048         that is now the caller's responsibility, since our checks were
91049         only approximations.
91050         (posixtime): Use mktime to check for out-of-range components,
91051         since it knows them exactly.
91052         If mktime returns (time_t) -1, check whether an error actually occurred
91053         by invoking localtime on -1.
91054         (main) [TEST_POSIXTIME]: Check for input data errors, and report
91055         posixtime failures better.
91056         Improve the test data (in comments only).
91057
91058 2003-06-02  Karl Berry  <karl@gnu.org>
91059
91060         * config/mkinstalldirs (version): new variable.
91061         (--version): new option.
91062         (usage): improve message.
91063
91064 2003-05-30  Karl Berry  <karl@gnu.org>
91065
91066         * lib/mktime.c: update from libc.
91067
91068 2003-05-30  Bruno Haible  <bruno@clisp.org>
91069
91070         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
91071         * config/config.rpath: Upgrade to gettext-0.12.1.
91072
91073 2003-05-30  Bruno Haible  <bruno@clisp.org>
91074
91075         * m4/gettext.m4: Upgrade to gettext-0.12.1.
91076         * m4/nls.m4: New file, from gettext-0.12.1.
91077         * m4/po.m4: New file, from gettext-0.12.1.
91078         * m4/progtest.m4: Upgrade to gettext-0.12.1.
91079
91080 2003-05-30  Bruno Haible  <bruno@clisp.org>
91081
91082         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
91083         * lib/localcharset.h: Likewise.
91084         * lib/localcharset.c: Likewise.
91085
91086 2003-05-29  Karl Berry  <karl@gnu.org>
91087
91088         * config/config.rpath: update from gettext.
91089
91090 2003-05-28  Paul Eggert  <eggert@twinsun.com>
91091
91092         Assume the headers required for C89 freestanding compilers.
91093         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
91094         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
91095         * m4/human.m4 (gl_HUMAN): Likewise.
91096         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
91097         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
91098         * m4/userspec.m4 (gl_USERSPEC): Likewise.
91099         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
91100         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
91101         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
91102
91103 2003-05-28  Paul Eggert  <eggert@twinsun.com>
91104
91105         Assume the headers required for C89 freestanding compilers.
91106         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
91107         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
91108         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
91109         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
91110         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
91111         define, since <limits.h> is guaranteed to do that.
91112         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
91113         * lib/exclude.c: Include <stdbool.h> unconditionally.
91114         * lib/tempname.c: Include <stddef.h> unconditionally.
91115         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
91116         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
91117         <stddef.h> does that.
91118         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
91119         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
91120         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
91121         needed.
91122         * lib/xstrtol.c: Likewise.
91123         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
91124         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
91125
91126         * lib/addext.c (addext): Use assignment rather than cast, to avoid
91127         warnings on some platforms.
91128
91129         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
91130         arbitrarily.
91131
91132 2003-05-26  Jim Meyering  <jim@meyering.net>
91133
91134         Merge in a change from coreutils:
91135         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
91136         that is guaranteed to be `no'.  Use `no_such_member' to indicate
91137         that condition, rather than `-1' which is slightly misleading.
91138         Change the name of the cache variable to have the gl_ prefix.
91139         Prompted by a patch from Richard Dawe for DJGPP.
91140
91141 2003-05-24  Karl Berry  <karl@gnu.org>
91142
91143         * config/config.guess: update from prep.
91144
91145 2003-05-22  Karl Berry  <karl@gnu.org>
91146
91147         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
91148
91149 2003-05-20  Karl Berry  <karl@gnu.org>
91150
91151         * config/config.guess: update from prep.
91152
91153 2003-05-18  Karl Berry  <karl@gnu.org>
91154
91155         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
91156         might actually be set by the user.
91157
91158         * config/depcomp, install-sh, mdate-sh: update from automake.
91159
91160 2003-05-17  Bruno Haible  <bruno@clisp.org>
91161
91162         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
91163         invalid expansion for AC_EGREP_CPP.
91164         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
91165         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
91166         Suggested by Akim Demaille <akim@epita.fr> in
91167         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
91168
91169 2003-05-12  Jim Meyering  <jim@meyering.net>
91170
91171         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
91172         the space-padded-by-default conversion specifiers, %e, %k, %l.
91173
91174 2003-05-12  Bruno Haible  <bruno@clisp.org>
91175
91176         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
91177         the string is longer than 4 KB.
91178
91179 2003-05-11  Karl Berry  <karl@gnu.org>
91180
91181         * config/config.{guess,sub}: update from prep.
91182
91183 2003-05-09  Bruno Haible  <bruno@clisp.org>
91184
91185         * modules/error: Add m4/strerror_r.m4 to file list.
91186
91187 2003-05-03  Bruno Haible  <bruno@clisp.org>
91188
91189         Upgrade to Unicode-4.0.
91190         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
91191         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
91192         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
91193         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
91194         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
91195         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
91196         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
91197         Change width of U+E0100..U+E01EF from 1 to 0.
91198
91199 2003-04-25  Jim Meyering  <jim@meyering.net>
91200
91201         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
91202         of type size_t, not int.
91203
91204 2003-04-25  Bruno Haible  <bruno@clisp.org>
91205
91206         * lib/copy-file.c: Include <stddef.h>, for size_t.
91207
91208 2003-04-21  Paul Eggert  <eggert@twinsun.com>
91209
91210         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
91211         code which expansion is under static control.  Patch imported from
91212         Akim Demaille's patch to Bison; see
91213         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
91214
91215 2003-04-14  Bruno Haible  <bruno@clisp.org>
91216
91217         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
91218
91219 2003-04-11  Jim Meyering  <jim@meyering.net>
91220
91221         Merge changes from Coreutils.
91222
91223         2003-03-22  Jim Meyering  <jim@meyering.net>
91224
91225         * lib/strftime.c (widen): Cast alloca return value to proper type.
91226
91227         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
91228
91229         From GNU libc.
91230         * lib/strftime.c (my_strftime): Handle very large width
91231         specifications for numeric values correctly.  Improve checks for
91232         overflow.
91233
91234         2003-01-19  Jim Meyering  <jim@meyering.net>
91235
91236         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
91237         definitions.
91238         (nl_get_alt_digit) [! defined my_strftime]: Define.
91239         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
91240         _nl_get_alt_digit and _nl_get_walt_digit.
91241
91242         * lib/strftime.c (my_strftime): Merge in locale-related changes from
91243         libc. These changes have no effect outside of _LIBC.
91244
91245 2003-04-10  Bruno Haible  <bruno@clisp.org>
91246
91247         * modules/findprog: New file.
91248         * MODULES.html.sh (func_all_modules): Add it.
91249
91250 2003-04-10  Bruno Haible  <bruno@clisp.org>
91251
91252         * m4/findprog.m4: New file.
91253         * m4/eaccess.m4: New file.
91254
91255 2003-04-10  Bruno Haible  <bruno@clisp.org>
91256
91257         * lib/findprog.h: New file, from GNU gettext.
91258         * lib/findprog.c: New file, from GNU gettext.
91259
91260 2003-04-05  Jim Meyering  <jim@meyering.net>
91261
91262         Merge changes from Coreutils.
91263
91264         * lib/exclude.h (PARAMS): Remove definition and uses.
91265         * lib/exclude.c: Remove uses of `PARAMS'.
91266
91267         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
91268         Add test-cases for DOS filenames. Declare program_name.
91269         (main): Set up program_name.  Patch by Rich Dawe.
91270
91271         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
91272         error from mntctl.
91273         Use mntctl's return value to drive the entry-processing loop, since
91274         we can't rely on the value of the vmt_length member in the last
91275         entry.  On some systems doing so could result in exhausting
91276         virtual memory.  Based in part on a patch from Mike Jetzer.
91277
91278 2003-04-04  Bruno Haible  <bruno@clisp.org>
91279
91280         * modules/linebreak: New file.
91281         * MODULES.html.sh (func_all_modules): Add it.
91282
91283 2003-04-04  Bruno Haible  <bruno@clisp.org>
91284
91285         * m4/linebreak.m4: New file.
91286
91287 2003-04-04  Bruno Haible  <bruno@clisp.org>
91288
91289         * lib/linebreak.h: New file, from GNU gettext.
91290         * lib/linebreak.c: New file, from GNU gettext with slight
91291         modifications.
91292         * lib/lbrkprop.h: New file, from GNU gettext.
91293
91294 2003-04-03  Bruno Haible  <bruno@clisp.org>
91295
91296         * modules/utf8-ucs4: New file.
91297         * modules/utf16-ucs4: New file.
91298         * modules/ucs4-utf8: New file.
91299         * modules/ucs4-utf16: New file.
91300         * MODULES.html.sh (func_all_modules): Add them.
91301
91302 2003-04-03  Bruno Haible  <bruno@clisp.org>
91303
91304         * m4/utf-ucs4.m4: New file.
91305         * m4/ucs4-utf.m4: New file.
91306
91307 2003-04-03  Bruno Haible  <bruno@clisp.org>
91308
91309         * lib/utf8-ucs4.h: New file, from GNU gettext.
91310         * lib/utf16-ucs4.h: New file, from GNU gettext.
91311         * lib/ucs4-utf8.h: New file, from GNU gettext.
91312         * lib/ucs4-utf16.h: New file, from GNU gettext.
91313
91314 2003-04-02  Bruno Haible  <bruno@clisp.org>
91315
91316         * modules/binary-io: New file.
91317         * MODULES.html.sh (func_all_modules): Add it.
91318
91319 2003-04-02  Bruno Haible  <bruno@clisp.org>
91320
91321         * lib/binary-io.h: New file, from GNU gettext.
91322
91323 2003-04-01  Bruno Haible  <bruno@clisp.org>
91324
91325         * modules/pathname: New file.
91326         * MODULES.html.sh (func_all_modules): Add it.
91327
91328 2003-04-01  Bruno Haible  <bruno@clisp.org>
91329
91330         * lib/pathname.h: New file, from GNU gettext.
91331         * lib/concatpath.c: New file, from GNU gettext.
91332
91333 2003-03-30  Bruno Haible  <bruno@clisp.org>
91334
91335         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
91336
91337 2003-03-30  Bruno Haible  <bruno@clisp.org>
91338
91339         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
91340         function chown() doesn't exist.
91341
91342 2003-03-28  Bruno Haible  <bruno@clisp.org>
91343
91344         * modules/copy-file: New file.
91345         * MODULES.html.sh (func_all_modules): Add it.
91346
91347 2003-03-28  Bruno Haible  <bruno@clisp.org>
91348
91349         * m4/copy-file.m4: New file.
91350
91351 2003-03-28  Bruno Haible  <bruno@clisp.org>
91352
91353         * lib/copy-file.h: New file, from GNU gettext.
91354         * lib/copy-file.c: New file, from GNU gettext.
91355
91356 2003-03-18  Jim Meyering  <jim@meyering.net>
91357
91358         * lib/quote.c (quote_n): Fix typo in comment.
91359
91360 2003-03-18  Bruno Haible  <bruno@clisp.org>
91361
91362         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
91363         checking.
91364         * m4/onceonly_2_57.m4: Likewise.
91365
91366 2003-03-17  Bruno Haible  <bruno@clisp.org>
91367
91368         * m4/onceonly.m4: Require autoconf 2.54 or newer.
91369         (m4_quote): Remove macro.
91370         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
91371
91372 2003-03-14  Jim Meyering  <jim@meyering.net>
91373
91374         Merge changes from Coreutils.
91375         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
91376         to be const, in order to avoid warnings.
91377         (obstack_room): Likewise.
91378         (obstack_empty_p): Likewise.
91379
91380 2003-03-14  Bruno Haible  <bruno@clisp.org>
91381
91382         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
91383         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
91384
91385 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91386
91387         Merge changes from Bison.
91388         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
91389         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
91390         when compiling Bison 1.875's `bitset bset = obstack_alloc
91391         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
91392         * lib/hash.c: Include <stdbool.h> unconditionally.
91393
91394 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91395
91396         * m4/onceonly.m4 (m4_quote): New macro.
91397         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
91398         Quote AC_FOREACH variable-expansions properly.
91399
91400 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91401
91402         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
91403
91404 2003-03-09  Paul Eggert  <eggert@twinsun.com>
91405
91406         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
91407         Reported by Bruce Becker; see:
91408         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
91409
91410 2003-03-03  Paul Eggert  <eggert@twinsun.com>
91411             Bruno Haible  <bruno@clisp.org>
91412
91413         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
91414         Reported by John Hughes, see
91415         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
91416
91417 2003-02-20  Bruno Haible  <bruno@clisp.org>
91418
91419         * MODULES.html.sh (func_all_modules): Add poll.
91420
91421 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91422
91423         * modules/poll: New file.
91424
91425 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91426
91427         * lib/poll_.h: New file.
91428         * lib/poll.c: New file.
91429
91430 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91431
91432         * m4/poll.m4: New file.
91433
91434 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91435
91436         * modules/mathl: New file.
91437
91438 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91439
91440         * lib/mathl.h: New file.
91441         * lib/acosl.c: New file.
91442         * lib/asinl.c: New file.
91443         * lib/atanl.c: New file.
91444         * lib/ceill.c: New file.
91445         * lib/cosl.c: New file.
91446         * lib/expl.c: New file.
91447         * lib/floorl.c: New file.
91448         * lib/frexpl.c: New file.
91449         * lib/ldexpl.c: New file.
91450         * lib/logl.c: New file.
91451         * lib/sincosl.c: New file.
91452         * lib/sinl.c: New file.
91453         * lib/sqrtl.c: New file.
91454         * lib/tanl.c: New file.
91455         * lib/trigl.c: New file.
91456         * lib/trigl.h: New file.
91457
91458 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91459
91460         * m4/mathl.m4: New file.
91461
91462 2003-02-18  Bruno Haible  <bruno@clisp.org>
91463
91464         * MODULES.html.sh (func_all_modules): Add mathl.
91465
91466 2003-02-17  Bruno Haible  <bruno@clisp.org>
91467
91468         * modules/mkdtemp: New module.
91469         * MODULES.html.sh (func_all_modules): Add it.
91470
91471 2003-02-17  Bruno Haible  <bruno@clisp.org>
91472
91473         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
91474
91475 2003-02-17  Bruno Haible  <bruno@clisp.org>
91476
91477         * lib/mkdtemp.h: New file, from GNU gettext.
91478         * lib/mkdtemp.c: New file, from GNU gettext.
91479
91480 2003-02-02  Jim Meyering  <jim@meyering.net>
91481
91482         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
91483         e.g. glibc-2.2.93.
91484
91485 2003-01-31  Bruno Haible  <bruno@clisp.org>
91486
91487         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
91488         'rpl_rename'.
91489         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
91490         'rpl_strnlen'.
91491         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
91492         'rpl_strtod'.
91493         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
91494         'rpl_utime'.
91495
91496 2003-01-31  Bruno Haible  <bruno@clisp.org>
91497
91498         * lib/rename.c: #undef rename before defining rpl_rename.
91499         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
91500
91501 2003-01-30  Bruno Haible  <bruno@clisp.org>
91502
91503         * modules/vasnprintf, modules/vasprintf: New modules.
91504         * MODULES.html.sh (func_all_modules): Add them.
91505
91506 2003-01-30  Bruno Haible  <bruno@clisp.org>
91507
91508         * m4/signed.m4: New file, from GNU gettext.
91509         * m4/longdouble.m4: New file, from GNU gettext.
91510         * m4/wchar_t.m4: New file, from GNU gettext.
91511         * m4/wint_t.m4: New file, from GNU gettext.
91512         * m4/vasnprintf.m4: New file.
91513         * m4/vasprintf.m4: New file.
91514
91515 2003-01-30  Bruno Haible  <bruno@clisp.org>
91516
91517         * lib/printf-args.h: New file, from GNU gettext.
91518         * lib/printf-args.c: New file, from GNU gettext.
91519         * lib/printf-parse.h: New file, from GNU gettext.
91520         * lib/printf-parse.c: New file, from GNU gettext.
91521         * lib/vasnprintf.h: New file, from GNU gettext.
91522         * lib/vasnprintf.c: New file, from GNU gettext.
91523         * lib/asnprintf.c: New file, from GNU gettext.
91524         * lib/vasprintf.h: New file, from GNU gettext with modifications.
91525         * lib/vasprintf.c: New file, from GNU gettext.
91526         * lib/asprintf.c: New file, from GNU gettext.
91527
91528 2003-01-29  Bruno Haible  <bruno@clisp.org>
91529
91530         * modules/stpncpy: New module.
91531         * MODULES.html.sh (func_all_modules): Add it.
91532
91533 2003-01-29  Bruno Haible  <bruno@clisp.org>
91534
91535         * m4/stpncpy.m4: New file.
91536
91537 2003-01-29  Bruno Haible  <bruno@clisp.org>
91538
91539         * lib/stpncpy.h: New file, from GNU gettext with modifications.
91540         * lib/stpncpy.c: New file, from GNU gettext with modifications.
91541
91542 2003-01-28  Bruno Haible  <bruno@clisp.org>
91543
91544         * modules/c-ctype: New module.
91545         * MODULES.html.sh (func_all_modules): Add it.
91546
91547 2003-01-28  Bruno Haible  <bruno@clisp.org>
91548
91549         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
91550         Paul Eggert.
91551         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
91552         Paul Eggert.
91553
91554 2003-01-27  Bruno Haible  <bruno@clisp.org>
91555
91556         * modules/xsetenv: New module.
91557         * MODULES.html.sh (func_all_modules): Add it.
91558
91559 2003-01-27  Bruno Haible  <bruno@clisp.org>
91560
91561         * lib/xsetenv.h: New file, from GNU gettext.
91562         * lib/xsetenv.c: New file, from GNU gettext.
91563
91564 2003-01-23  Jim Meyering  <jim@meyering.net>
91565
91566         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
91567         from working on systems without dirfd (at least Irix and OSF1/Tru64).
91568
91569 2003-01-23  Bruno Haible  <bruno@clisp.org>
91570
91571         * modules/minmax: New module.
91572         * MODULES.html.sh (func_all_modules): Add it.
91573
91574 2003-01-23  Bruno Haible  <bruno@clisp.org>
91575
91576         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
91577         Eggert.
91578
91579 2003-01-22  Bruno Haible  <bruno@clisp.org>
91580
91581         * modules/exit: New module.
91582         * MODULES.html.sh (func_all_modules): Add it.
91583
91584 2003-01-22  Bruno Haible  <bruno@clisp.org>
91585
91586         * lib/exit.h: New file, from GNU gettext.
91587
91588 2003-01-19  Bruno Haible  <bruno@clisp.org>
91589
91590         * gnulib-tool: Recognize option --extract-maintainer.
91591         (func_get_maintainer): New function.
91592         * modules/*: Add Maintainer entry.
91593
91594 2003-01-16  Jim Meyering  <jim@meyering.net>
91595
91596         * m4/regex.m4: The `regex' struct is both input and output.
91597         Initialize it before each use.  Patch by Tim Waugh.
91598
91599 2003-01-16  Bruno Haible  <bruno@clisp.org>
91600
91601         * MODULES.html.sh: Add a table of contents. Add the module name as
91602         leftmost column. Add hyperlinks.
91603
91604 2003-01-15  Bruno Haible  <bruno@clisp.org>
91605
91606         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
91607
91608 2003-01-15  Bruno Haible  <bruno@clisp.org>
91609
91610         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
91611         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
91612         suffix.
91613
91614 2003-01-15  Bruno Haible  <bruno@clisp.org>
91615
91616         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
91617
91618 2003-01-15  Bruno Haible  <bruno@clisp.org>
91619
91620         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
91621         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
91622
91623 2003-01-14  Jim Meyering  <jim@meyering.net>
91624
91625         * lib/same.c (same_name): Tweak a comment.
91626
91627 2003-01-14  Bruno Haible  <bruno@clisp.org>
91628
91629         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
91630         when a string comparison is sufficient.
91631
91632 2003-01-14  Bruno Haible  <bruno@clisp.org>
91633
91634         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
91635         'unsigned int'.
91636
91637 2003-01-14  Bruno Haible  <bruno@clisp.org>
91638
91639         * lib/hash-pjw.c: Add comment about low quality of this function.
91640
91641 2003-01-13  Bruno Haible  <bruno@clisp.org>
91642
91643         * modules/stpcpy: Distribute lib/stpcpy.h.
91644         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
91645
91646 2003-01-13  Bruno Haible  <bruno@clisp.org>
91647
91648         * modules/*: Add a description.
91649         * modules/strpbrk: Fix Makefile.am snippet.
91650         * modules/strtoimax: Fix dependencies.
91651         * modules/strtoumax: Likewise.
91652
91653 2003-01-13  Bruno Haible  <bruno@clisp.org>
91654
91655         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
91656         * modules/alloca (Makefile.am): All object files depend on alloca.h.
91657         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
91658
91659 2003-01-13  Bruno Haible  <bruno@clisp.org>
91660
91661         * gnulib-tool (func_create_testdir): Store config/* files in the main
91662         directory.
91663         * config.rpath: Move to ...
91664         * config/config.rpath: ... here.
91665         * modules/gettext: Contains config/config.rpath, not config.rpath.
91666         * modules/iconv: Likewise.
91667
91668 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91669
91670         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91671         to avoid collisions with libcurses and libreadline.
91672
91673         * m4/getstr.m4: Remove.
91674         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
91675
91676 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91677
91678         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91679         to avoid collisions with libcurses and libreadline.
91680
91681         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
91682         * lib/getstr.h, getstr.c: Remove.
91683         * lib/getline.c: Include "getline.h", to check interface.
91684         Move body of old getstr.c here: this defines MIN_CHUNK and
91685         declares getdelim2, which is renamed from getstr.
91686         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
91687
91688         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
91689         All uses changed.
91690         * lib/linebuffer.h: Likewise.
91691         (readline): Remove backward-compatibility macro.
91692
91693 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91694
91695         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91696         to avoid collisions with libcurses and libreadline.
91697         * getstr: Remove.
91698         * MODULES.html.sh: Remove getstr.
91699         * modules/getline: Depend on unlocked-io, not getstr.
91700
91701 2003-01-12  Jim Meyering  <jim@meyering.net>
91702
91703         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
91704
91705 2003-01-10  Bruno Haible  <bruno@clisp.org>
91706
91707         * modules/alloca: Change Makefile.am requirements. Simplify Include
91708         requirements. Add lib/alloca_.h to file list.
91709
91710 2003-01-10  Bruno Haible  <bruno@clisp.org>
91711
91712         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
91713
91714 2003-01-10  Bruno Haible  <bruno@clisp.org>
91715
91716         * lib/alloca_.h: New file.
91717         * lib/getdate.y: Unconditionally include alloca.h.
91718         * lib/makepath.c: Likewise.
91719         * lib/setenv.c: Likewise.
91720         * lib/userspec.c: Likewise.
91721
91722 2003-01-09  Karl Berry  <karl@gnu.org>
91723
91724         * MODULES.html.sh: include `dirname $0` in PATH, to find
91725         gnulib-tool.
91726
91727 2003-01-09  Bruno Haible  <bruno@clisp.org>
91728
91729         * modules/stdbool: Change configure.ac, Makefile.am requirements.
91730         Simplify Include requirements. Add lib/stdbool.h.in to file list.
91731
91732 2003-01-09  Bruno Haible  <bruno@clisp.org>
91733
91734         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
91735
91736 2003-01-09  Bruno Haible  <bruno@clisp.org>
91737
91738         * lib/stdbool.h.in: New file.
91739
91740 2003-01-09  Bruno Haible  <bruno@clisp.org>
91741
91742         * gnulib-tool (func_all_modules): Ignore files ending in ~.
91743         * MODULES.html.sh: Likewise.
91744
91745 2003-01-08  Jim Meyering  <jim@meyering.net>
91746
91747         * lib/full-write.c: Undefine and define-away `const' after inclusion
91748         of errno.h, not before.  Suggestion from Bruno Haible.
91749
91750 2003-01-08  Bruno Haible  <bruno@clisp.org>
91751
91752         * modules/full-read: Depend on full-write.
91753
91754 2003-01-08  Bruno Haible  <bruno@clisp.org>
91755
91756         * lib/safe-read.c: Include specification header first, to ensure its
91757         selfcontainedness.
91758         * lib/full-write.c: Likewise.
91759
91760 2003-01-07  Jim Meyering  <jim@meyering.net>
91761
91762         * lib/full-write.c: Rework so that it may serve to define full_read,
91763         too.
91764         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
91765
91766 2003-01-07  Bruno Haible  <bruno@clisp.org>
91767
91768         * lib/strtoimax.c: Include <stdint.h> as an alternative to
91769         <inttypes.h>.
91770         * lib/xstrtol.h: Likewise.
91771         * lib/xstrtoimax.c: Likewise.
91772         * lib/xstrtoumax.c: Likewise.
91773         * lib/human.h: Likewise.
91774
91775         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
91776         on systems that have <inttypes.h> but not <stdint.h>.
91777
91778 2003-01-07  Bruno Haible  <bruno@clisp.org>
91779
91780         * MODULES.html.sh: Add copyright notice.
91781         (missed_files): Omit CVS directory entries.
91782         (func_module): Make it work with sed-3.02.
91783         * MODULES.txt: Remove file.
91784
91785 2003-01-06  Jim Meyering  <jim@meyering.net>
91786
91787         * lib/version-etc.c: Update year in translatable copyright string.
91788
91789 2003-01-03  Karl Berry  <karl@gnu.org>
91790
91791         * config/config.{guess,sub}: update from prep.
91792
91793 2003-01-02  Karl Berry  <karl@gnu.org>
91794
91795         * doc/COPYING.DOC: belatedly updated to 1.2.
91796
91797 2003-01-01  Karl Berry  <karl@gnu.org>
91798
91799         * gnulib-tool (func_verify_module): report module name $module in
91800         error message, not $1.
91801         * gnulib-tool (create-testdir): don't complain if destdir couldn't
91802         be created, only if it doesn't exist.
91803         * gnulib-tool (last_checkin_date): don't expand the $Date here.
91804
91805 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91806
91807         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
91808
91809 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91810
91811         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
91812         memcmp if strcoll doesn't work.
91813
91814 2002-12-31  Bruno Haible  <bruno@clisp.org>
91815
91816         * lib/utime.c (utime_null): No need to call ftruncate if the file was
91817         nonempty.
91818
91819 2002-12-31  Bruno Haible  <bruno@clisp.org>
91820
91821         * lib/memcoll.c (STRCOLL): New macro.
91822         (memcoll): Use it.
91823
91824 2002-12-31  Bruno Haible  <bruno@clisp.org>
91825
91826         * lib/localcharset.h: New file.
91827         * lib/localcharset.c: Include it.
91828         * lib/unicodeio.c: Likewise.
91829
91830 2002-12-31  Bruno Haible  <bruno@clisp.org>
91831
91832         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
91833         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
91834
91835 2002-12-31  Bruno Haible  <bruno@clisp.org>
91836
91837         * lib/getline.h: Include <stddef.h>, for size_t.
91838
91839         * lib/unicodeio.h: Include <stddef.h>, for size_t.
91840         * lib/unicodeio.c: Don't include <stddef.h>.
91841
91842 2002-12-31  Bruno Haible  <bruno@clisp.org>
91843
91844         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
91845         HAVE_TM_ZONE.
91846
91847 2002-12-24  Karl Berry  <karl@gnu.org>
91848
91849         * config/config.guess: update from prep.
91850
91851 2002-12-24  Bruno Haible  <bruno@clisp.org>
91852
91853         General infrasructure.
91854         * m4/README: Rewritten.
91855         * m4/onceonly.m4: New file.
91856         * m4/onceonly_2_57.m4: New file.
91857
91858         Module atexit.
91859         * m4/atexit.m4: New file.
91860
91861         Module strtod.
91862         * m4/strtod.m4: New file.
91863
91864         Module strtol.
91865         * m4/strtol.m4: New file.
91866
91867         Module strtoul.
91868         * m4/strtoul.m4: New file.
91869
91870         Module memchr.
91871         * m4/memchr.m4: New file.
91872
91873         Module memcmp.
91874         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
91875         (jm_FUNC_MEMCMP): Invoke it.
91876
91877         Module memcpy.
91878         * m4/memcpy.m4: New file.
91879
91880         Module memmove.
91881         * m4/memmove.m4: New file.
91882
91883         Module memset.
91884         * m4/memset.m4: New file.
91885
91886         Module strcspn.
91887         * m4/strcspn.m4: New file.
91888
91889         Module strpbrk.
91890         * m4/strpbrk.m4: New file.
91891
91892         Module strstr.
91893         * m4/strstr.m4: New file.
91894
91895         Module strerror.
91896         * m4/strerror.m4: New file.
91897
91898         Module mktime.
91899         * m4/mktime.m4: Renamed from jm-mktime.m4.
91900         (gl_PREREQ_MKTIME): New macro.
91901         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
91902
91903         Module malloc.
91904         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
91905         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
91906         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
91907
91908         Module realloc.
91909         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
91910         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
91911         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
91912
91913         Module strftime.
91914         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
91915         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
91916         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
91917         gl_TM_GMTOFF.
91918         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
91919
91920         Module xalloc.
91921         * m4/xalloc.m4: New file.
91922
91923         Module alloca.
91924         * m4/alloca.m4: New file.
91925
91926         Module putenv.
91927         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
91928         (jm_FUNC_PUTENV): Invoke it.
91929
91930         Module setenv.
91931         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
91932         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
91933         when invoked twice.
91934         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
91935         gt_FUNC_SETENV.
91936
91937         Module memrchr.
91938         * m4/memrchr.m4: New file.
91939
91940         Module stpcpy.
91941         * m4/stpcpy.m4: New file.
91942
91943         Module strcase.
91944         * m4/strcase.m4: New file.
91945
91946         Module strdup.
91947         * m4/strdup.m4: New file.
91948
91949         Module strnlen.
91950         * m4/strnlen.m4: New file.
91951
91952         Module strndup.
91953         * m4/strndup.m4: New file.
91954
91955         Module xstrtod.
91956         * m4/xstrtod.m4: New file.
91957
91958         Module xstrtol.
91959         * m4/xstrtol.m4: New file.
91960
91961         Module getdate.
91962         * m4/getdate.m4: New file.
91963
91964         Module unlocked-io.
91965         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
91966         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
91967         * m4/jm-glibc-io.m4n: Remove file.
91968
91969         Module long-options.
91970         * m4/long-options.m4: New file.
91971
91972         Module md5.
91973         * m4/md5.m4: New file.
91974
91975         Module sha.
91976         * m4/sha.m4: New file.
91977
91978         Module getstr.
91979         * m4/getstr.m4: New file.
91980
91981         Module getline.
91982         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
91983         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
91984         <sys/types.h>, for size_t. Use the function name gnu_getline, not
91985         simply getline. Infoke gl_PREREQ_GETLINE.
91986
91987         Module obstack.
91988         * m4/obstack.m4: New file.
91989
91990         Module hash.
91991         * m4/hash.m4: New file.
91992
91993         Module readtokens.
91994         * m4/readtokens.m4: New file.
91995
91996         Module strverscmp.
91997         * m4/strverscmp.m4: New file.
91998
91999         Module stdbool.
92000         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
92001         OSF/1.
92002
92003         Module strtoll.
92004         * m4/strtoll.m4: New file.
92005
92006         Module strtoull.
92007         * m4/strtoull.m4: New file.
92008
92009         Module strtoimax.
92010         * m4/strtoimax.m4: New file.
92011
92012         Module strtoumax.
92013         * m4/strtoumax.m4: New file.
92014
92015         Module xstrtoimax.
92016         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
92017         jm_AC_PREREQ_XSTRTOIMAX.
92018         Moved the strtol prerequisites to strtol.m4.
92019         Moved the strtoll prerequisites to strtoll.m4.
92020         Moved the strtoimax prerequisites to strtoimax.m4.
92021
92022         Module xstrtoumax.
92023         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
92024         jm_AC_PREREQ_XSTRTOUMAX.
92025         Moved the strtoul prerequisites to strtoul.m4.
92026         Moved the strtoull prerequisites to strtoull.m4.
92027         Moved the strtoumax prerequisites to strtoumax.m4.
92028
92029         Module chown.
92030         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
92031         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
92032
92033         Module dup2.
92034         * m4/dup2.m4: New file.
92035
92036         Module ftruncate.
92037         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
92038         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
92039
92040         Module getgroups.
92041         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
92042         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
92043
92044         Module gettimeofday.
92045         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
92046         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
92047         gl_PREREQ_GETTIMEOFDAY.
92048
92049         Module mkdir.
92050         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
92051         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
92052
92053         Module mkstemp.
92054         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
92055         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
92056         jm_AC_TYPE_UINTMAX_T.
92057         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
92058
92059         Module stat.
92060         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
92061         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
92062
92063         Module lstat.
92064         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
92065         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
92066
92067         Module timespec.
92068         * m4/timespec.m4 (gl_TIMESPEC): New macro.
92069         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
92070         * m4/st_mtim.m4: Indentation.
92071
92072         Module nanosleep.
92073         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
92074         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
92075         gl_PREREQ_NANOSLEEP.
92076
92077         Module regex.
92078         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
92079         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
92080         (gl_REGEX): New macro.
92081
92082         Module rename.
92083         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
92084         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
92085
92086         Module rmdir.
92087         * m4/rmdir.m4: New file.
92088
92089         Module utime.
92090         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
92091         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
92092         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
92093
92094         Module dirname.
92095         * m4/dirname.m4: New file.
92096
92097         Module getopt.
92098         * m4/getopt.m4: New file.
92099
92100         Module unistd-safer.
92101         * m4/unistd-safer.m4: New file.
92102
92103         Module fnmatch.
92104         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
92105         declaration.
92106         (gl_PREREQ_FNMATCH_EXTRA): New macro.
92107         (gl_FUNC_FNMATCH_POSIX): New macro.
92108         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
92109         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
92110         simply fnmatch.
92111
92112         Module exclude.
92113         * m4/exclude.m4: New file.
92114
92115         Module human.
92116         * m4/human.m4: New file.
92117
92118         Module acl.
92119         * m4/acl.m4: Nop.
92120
92121         Module backupfile.
92122         * m4/backupfile.m4: New file.
92123         * m4/d-ino.m4: Indentation.
92124
92125         Module fsusage.
92126         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
92127         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
92128         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
92129
92130         Module dirfd.
92131         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
92132         requirements.
92133
92134         Module euidaccess.
92135         * m4/euidaccess.m4: New file.
92136
92137         Module file-type.
92138         * m4/file-type.m4: New file.
92139
92140         Module fileblocks.
92141         * m4/fileblocks.m4: New file.
92142
92143         Module filemode.
92144         * m4/filemode.m4: New file.
92145
92146         Module isdir.
92147         * m4/isdir.m4: New file.
92148
92149         Module lchown.
92150         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
92151         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
92152
92153         Module makepath.
92154         * m4/makepath.m4: New file.
92155
92156         Module modechange.
92157         * m4/modechange.m4: New file.
92158
92159         Module mountlist.
92160         * m4/mountlist.m4: New file.
92161         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
92162         Indentation.
92163
92164         Module path-concat.
92165         * m4/path-concat.m4: New file.
92166
92167         Module pathmax.
92168         * m4/pathmax.m4: New file.
92169
92170         Module same.
92171         * m4/same.m4: New file.
92172
92173         Module save-cwd.
92174         * m4/save-cwd.m4: New file.
92175
92176         Module savedir.
92177         * m4/savedir.m4: New file.
92178
92179         Module xgetcwd.
92180         * m4/xgetcwd.m4: New file.
92181         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
92182
92183         Module xreadlink.
92184         * m4/xreadlink.m4: New file.
92185
92186         Module safe-read.
92187         * m4/safe-read.m4: New file.
92188
92189         Module safe-write.
92190         * m4/safe-write.m4: New file.
92191
92192         Module closeout.
92193         * m4/closeout.m4: New file.
92194
92195         Module stdio-safer.
92196         * m4/stdio-safer.m4: New file.
92197
92198         Module getpass.
92199         * m4/getpass.m4: New file.
92200
92201         Module getugroups.
92202         * m4/getugroups.m4: New file.
92203
92204         Module group-member.
92205         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
92206         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
92207
92208         Module idcache.
92209         * m4/idcache.m4: New file.
92210
92211         Module userspec.
92212         * m4/userspec.m4: New file.
92213
92214         Module gettime.
92215         * m4/clock_time.m4: New file.
92216         * m4/gettime.m4: New file.
92217
92218         Module settime.
92219         * m4/settime.m4: New file.
92220
92221         Module posixtm.
92222         * m4/posixtm.m4: New file.
92223
92224         Module gethostname.
92225         * m4/gethostname.m4: New file.
92226
92227         Module canon-host.
92228         * m4/canon-host.m4: New file.
92229
92230         Module gettext.
92231         * m4/codeset.m4: New file, from gettext-0.11.5.
92232         * m4/gettext.m4: New file, from gettext-0.11.5.
92233         * m4/glibc21.m4: New file, from gettext-0.11.5.
92234         * m4/iconv.m4: New file, from gettext-0.11.5.
92235         * m4/intdiv0.m4: New file, from gettext-0.11.5.
92236         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
92237         * m4/inttypes.m4: New file, from gettext-0.11.5.
92238         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
92239         * m4/isc-posix.m4: New file, from gettext-0.11.5.
92240         * m4/lcmessage.m4: New file, from gettext-0.11.5.
92241         * m4/lib-ld.m4: New file, from gettext-0.11.5.
92242         * m4/lib-link.m4: New file, from gettext-0.11.5.
92243         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
92244         * m4/progtest.m4: New file, from gettext-0.11.5.
92245         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
92246         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
92247         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
92248
92249         Module localcharset.
92250         * m4/localcharset.m4: New file.
92251
92252         Module hard-locale.
92253         * m4/hard-locale.m4: New file.
92254
92255         Module mbswidth.
92256         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
92257         onceonly macros.
92258         * m4/mbrtowc.m4: Add comment.
92259
92260         Module memcasecmp.
92261         * m4/memcasecmp.m4: New file.
92262
92263         Module memcoll.
92264         * m4/memcoll.m4: New file.
92265
92266         Module unicodeio.
92267         * m4/unicodeio.m4: New file.
92268
92269         Module rpmatch.
92270         * m4/rpmatch.m4: New file.
92271
92272         Module yesno.
92273         * m4/yesno.m4: New file.
92274
92275         Module exitfail.
92276         * m4/exitfail.m4: New file.
92277
92278         Module c-stack.
92279         * m4/c-stack.m4 (gl_C_STACK): New macro.
92280         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
92281
92282         Module error.
92283         * m4/error.m4 (gl_ERROR): New macro.
92284         (jm_PREREQ_ERROR): Use onceonly macros.
92285
92286         Module fatal.
92287         * m4/fatal.m4: New file.
92288
92289         Module getloadavg.
92290         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
92291         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
92292
92293         Module getpagesize.
92294         * m4/getpagesize.m4: New file.
92295
92296         Module getusershell.
92297         * m4/getusershell.m4: New file.
92298
92299         Module physmem.
92300         * m4/physmem.m4: New file.
92301
92302         Module posixver.
92303         * m4/posixver.m4: New file.
92304
92305         Module quotearg.
92306         * m4/quotearg.m4: New file.
92307
92308         Module quote.
92309         * m4/quote.m4: New file.
92310
92311         Module readutmp.
92312         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
92313
92314         Module sig2str.
92315         * m4/sig2str.m4: New file.
92316
92317         Other.
92318         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
92319         ulonglong.m4.
92320         * m4/intmax_t.m4: New file.
92321         * m4/d-type.m4: Indentation.
92322         * m4/jm-macros.m4: Update.
92323         * m4/prereq.m4 (jm_PREREQ): Update.
92324         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
92325         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
92326         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
92327         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
92328         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
92329         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
92330         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
92331         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
92332         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
92333         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
92334         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
92335         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
92336         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
92337         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
92338         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
92339         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
92340         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
92341         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
92342         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
92343
92344 2002-12-24  Bruno Haible  <bruno@clisp.org>
92345
92346         * MODULES.txt: Update according to m4/ changes.
92347
92348         Module gettext.
92349         * config.rpath: New file, from gettext-0.11.5.
92350
92351         * modules/*: New module descriptions.
92352         * gnulib-tool: New file.
92353         * MODULES.html.sh: New file.
92354
92355 2002-12-21  Karl Berry  <karl@gnu.org>
92356
92357         * doc/fdl.texi: update to version 1.2.
92358
92359 2002-12-19  Karl Berry  <karl@gnu.org>
92360
92361         * config/config.guess: update from prep.
92362
92363 2002-12-18  Bruno Haible  <bruno@clisp.org>
92364
92365         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
92366         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
92367
92368 2002-12-17  Bruno Haible  <bruno@clisp.org>
92369
92370         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
92371         stdlib.h, string.h.
92372
92373 2002-12-17  Bruno Haible  <bruno@clisp.org>
92374
92375         * lib/canon-host.c (strdup): Remove unused declaration.
92376
92377         * lib/fsusage.c: Include full_read.h.
92378         (get_fs_usage): Use full_read instead of safe_read.
92379
92380         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
92381
92382 2002-12-12  Karl Berry  <karl@gnu.org>
92383
92384         * config/config.guess: update from prep.
92385
92386 2002-12-11  Bruno Haible  <bruno@clisp.org>
92387
92388         * m4/setenv.m4: New file, from gettext-0.11.5.
92389
92390 2002-12-11  Bruno Haible  <bruno@clisp.org>
92391
92392         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
92393         not unsetenv().
92394         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
92395         modifications:
92396
92397         2002-12-11  Bruno Haible  <bruno@clisp.org>
92398
92399                 * setenv.c (alloca): Fall back to malloc.
92400                 (freea): New macro.
92401                 (setenv): Use freea() to free memory allocated with alloca().
92402
92403         2002-11-13  Bruno Haible  <bruno@clisp.org>
92404
92405                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
92406                 function declarations.
92407                 * unsetenv.c (unsetenv): Likewise.
92408
92409         2002-03-04  Bruno Haible  <bruno@clisp.org>
92410
92411                 Portability to AIX 4.3.3.
92412                 * unsetenv.c: New file, extracted from setenv.c.
92413                 * setenv.c: Move the unsetenv() function to unsetenv.c.
92414
92415         2001-12-20  Bruno Haible  <bruno@clisp.org>
92416
92417                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
92418                 use malloc instead. For SunOS 4.
92419
92420         2001-12-11  Bruno Haible  <bruno@clisp.org>
92421
92422                 * setenv.c: Declare alloca.
92423                 (compar_fn_t): New typedef.
92424                 (KNOWN_VALUE, STORE_VALUE): Use it.
92425
92426         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
92427         setenv.h.
92428
92429 2002-12-10  Paul Eggert  <eggert@twinsun.com>
92430
92431         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
92432         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
92433         Choose values that are less likely to collide with system fnmatch
92434         options.
92435         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
92436         defined (e.g., a pure POSIX system).
92437         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
92438         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
92439
92440 2002-12-06  Paul Eggert  <eggert@twinsun.com>
92441
92442         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
92443         a pain in practice to deal with generated m4 files.  This change
92444         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
92445
92446         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
92447         and jm-glibc-io.m4, as they are no longer a special case.
92448         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
92449         kludge and the auto-generation stuff.  Check only whether the
92450         functions are declared, not whether they exist, since older hosts
92451         that don't declare the functions can't use the optimization anyway.
92452
92453 2002-12-06  Jim Meyering  <jim@meyering.net>
92454
92455         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
92456
92457         Merge in changes from libc's misc/error.c, in preparation
92458         for the merge of gnulib's changes back into libc.
92459
92460         * lib/error.c (_): Define only if not already defined.
92461         Move definition to follow all #include directives.
92462         Include unlocked-io.h only if !_LIBC.
92463         [_LIBC]: Include <libio/libioP.h>.
92464         [USE_IN_LIBIO]: Include <libio/iolibio.h>
92465         (fflush): Tweak definition to use INTUSE.
92466         (putc): Define.
92467
92468 2002-12-05  Paul Eggert  <eggert@twinsun.com>
92469
92470         * lib/alloca.c [defined emacs]: Include "lisp.h".
92471         (xalloc_die) [defined emacs]: New macro.
92472         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
92473         [! defined emacs]: Include <xalloc.h>.
92474         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
92475         (pointer): Typedef to POINTER_TYPE *.
92476         (malloc): Remove decl; we now always use xmalloc.
92477         (alloca): Use old-style definition, since Emacs needs this.
92478         Check for arithmetic overflow when computing combined size.
92479
92480 2002-12-04  Paul Eggert  <eggert@twinsun.com>
92481
92482         Do not generate unlocked-io.h automatically, since it's easier to
92483         maintain it by hand.
92484
92485         * lib/unlocked-io.h: New file, from GNU diffutils,
92486         but with proper copyright notice and attribution.
92487         * lib/gen-uio: Remove.
92488         * lib/Makefile.am: Add copyright notice.
92489         (libfetish_a_SOURCES): Add unlocked-io.h.
92490         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
92491         (DISTCLEANFILES, io_functions): Remove macros.
92492         (EXTRA_DIST): Remove gen_uio.
92493         (unlocked-io.h): Remove rule.
92494
92495 2002-12-04  Jim Meyering  <jim@meyering.net>
92496
92497         Reflect the fact that stat.c and lstat.c are no longer generated.
92498         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
92499         (DISTCLEANFILES): Likewise.
92500         (EXTRA_DIST): Likewise.
92501         (all_local): Don't depend on stat.c or lstat.c.
92502         (stat.c, lstat.c): Remove rules.
92503         (EXTRA_DIST): Remove xstat.in.
92504
92505         * lib/xstat.in: Remove file.  Contents moved into stat.c.
92506         * lib/stat.c: New file.  Contents mostly from xstat.in.
92507         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
92508         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
92509
92510         * lib/safe-read.c: Rework so that it may serve to define safe_write,
92511         too.
92512         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
92513
92514 2002-12-03  Jim Meyering  <jim@meyering.net>
92515
92516         * lib/safe-read.c, safe-write.c: Change variable names and comments,
92517         but not semantics, to minimize the differences between these two files.
92518         (safe_read): Change comment to mention SAFE_READ_ERROR.
92519
92520         * lib/safe-read.c (IS_EINTR): Define.
92521         (safe_read): Use IS_EINTR in place of in-function cpp directives.
92522
92523 2002-12-02  Jim Meyering  <jim@meyering.net>
92524
92525         * lib/safe-read.c (EINTR): Define.
92526         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
92527         (INT_MAX): Provide fallback.
92528         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
92529
92530         * lib/safe-read.h (SAFE_READ_ERROR): Define.
92531
92532 2002-12-02  Bruno Haible  <bruno@clisp.org>
92533
92534         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
92535         Define, taken from safe-read.c.
92536         (INT_MAX): Provide fallback.
92537         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
92538         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
92539
92540         * lib/safe-read.c (EINTR): Remove definition.
92541         (safe_read): Don't use EINTR if it is absent.
92542
92543 2002-12-01  Jim Meyering  <jim@meyering.net>
92544
92545         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
92546         zero.
92547         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
92548
92549 2002-11-27  Paul Eggert  <eggert@twinsun.com>
92550
92551         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
92552         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
92553         with `if (! (value < limit)) abort ();', for readability.
92554
92555 2002-11-26  Karl Berry  <karl@gnu.org>
92556
92557         * lib/strdup.c: copy from libc again, with jim's ok.
92558         * lib/.cppi-disable: re-add strdup.c
92559
92560 2002-11-25  Karl Berry  <karl@gnu.org>
92561
92562         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
92563         instead of "strtol.c".
92564
92565 2002-11-25  Karl Berry  <karl@gnu.org>
92566
92567         * config/install-sh: update from automake for variable quoting, $0 in
92568         error msgs, etc.
92569
92570         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
92571         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
92572         entry.
92573
92574 2002-11-25  Jim Meyering  <jim@meyering.net>
92575
92576         * lib/mktime.c: Sync from libc, now that it has the latest fix.
92577
92578 2002-11-24  Karl Berry  <karl@gnu.org>
92579
92580         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
92581         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
92582
92583 2002-11-24  Jim Meyering  <jim@meyering.net>
92584
92585         Update from coreutils:
92586
92587         * lib/mktime.c: Merge in changes from libc.
92588
92589         Avoid a link-time failure on some Linux systems.
92590         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
92591         (otherwise).
92592         (__mon_yday): Declare with the STATIC attribute.
92593         (__mktime_internal): Likewise.
92594         Based on a report from Greg Schafer.
92595
92596 2002-11-23  Jim Meyering  <jim@meyering.net>
92597
92598         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
92599         Use `unsigned', not `int', as type of index.
92600
92601         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
92602
92603         * lib/fsusage.c: Remove unneeded parentheses around operands of
92604         `defined'.
92605
92606 2002-11-22  Paul Eggert  <eggert@twinsun.com>
92607
92608         * lib/quotearg.h: Allow multiple inclusion by surrounding with
92609         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
92610         so that we can be included first.
92611         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
92612         * lib/quotearg.c: Include quotearg.h immediately after config.h.
92613         No need to include stddef.h or sys/types.h any more.
92614         Surround local include files with "", not "<>".
92615         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
92616         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
92617         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
92618         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
92619         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
92620         (ISPRINT): Remove; no longer needed now that we assume C89.
92621
92622         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
92623         Preserve errno.
92624
92625         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
92626         quotearg_char): Use SIZE_MAX rather than
92627         (size_t) -1 when we are talking about "infinity".
92628
92629         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
92630
92631 2002-11-22  Paul Eggert  <eggert@twinsun.com>
92632
92633         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
92634         hint that one should use `if (! x) abort ();' rather than `assert
92635         (x);', and anyway it's one less thing to worry about configuring.
92636         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
92637         hash_rehash, hash_insert): Use abort rather than assert.
92638
92639 2002-11-22  Bruno Haible  <bruno@clisp.org>
92640
92641         * lib/safe-read.h: Assume C89. Add comments.
92642         (safe_read): Change return type to size_t.
92643         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
92644         byte counts > SSIZE_MAX correctly.
92645         * lib/safe-write.h: New file.
92646         * lib/safe-write.c: New file.
92647         * lib/full-read.h: New file.
92648         * lib/full-read.c: New file.
92649         * lib/full-write.h: Assume C89. Add comments.
92650         * lib/full-write.c: Include safe-write.h.
92651         (full_write): Rewritten to use safe_write.
92652         Suggested by Jim Meyering and Paul Eggert.
92653
92654 2002-11-21  Jim Meyering  <jim@meyering.net>
92655
92656         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
92657
92658         Merge in changes from the coreutils.
92659
92660         2002-09-25  Paul Eggert  <eggert@twinsun.com>
92661         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
92662         <stdint.h>.
92663         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
92664         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
92665         int.  Work more efficiently if X is the same width as uintmax_t.
92666         Do not compare X to -1, to avoid bogus compiler warning.
92667         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
92668         Don't assume that f_frsize and f_bsize are the same type.
92669
92670         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
92671         warning on FreeBSD.
92672
92673         * lib/makepath.c (make_path): Restore umask *before* creating the final
92674         component.
92675         (make_path): Minor reformatting.
92676
92677         * lib/xmalloc.c: Adjust to work with new autoconf macros,
92678         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
92679         HAVE_MALLOC/HAVE_REALLOC.
92680
92681         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
92682         dummy ones.  At least on GNU/Linux systems, `auto' means something
92683         else.
92684         From Michael Stone.
92685
92686 2002-11-21  Bruno Haible  <bruno@clisp.org>
92687
92688         Remove case insensitive option matching.
92689         * lib/argmatch.h (argcasematch): Remove declaration.
92690         (ARGCASEMATCH): Remove macro.
92691         (__xargmatch_internal): Remove case_sensitive argument.
92692         (XARGMATCH): Update.
92693         (XARGCASEMATCH): Remove macro.
92694         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
92695         case_sensitive argument.
92696         (argcasematch): Remove function.
92697         (__xargmatch_internal): Remove case_sensitive argument.
92698         (main): Use XARGMATCH instead of XARGCASEMATCH.
92699
92700         * lib/xmalloc.c: Change compile-time error message. Add comment about
92701         required autoconf version.
92702
92703 2002-11-20  Paul Eggert  <eggert@twinsun.com>
92704
92705         Merge argmatch cleanups from Bison.  Assume C89.
92706
92707         * lib/argmatch.c: Include config.h here, not in argmatch.h.
92708         Include stdlib.h, for EXIT_FAILURE.
92709         Always include <string.h>, since we assume C89.
92710         (EXIT_FAILURE): Remove pre-C89 bug workaround.
92711         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
92712         Include <stddef.h> instead, since it's all we need for size_t.
92713         (PARAMS): Remove.  All uses removed.
92714         (ARRAY_CARDINALITY): Do not bother to #undef.
92715         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
92716         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92717         Remove unnecessary parentheses.
92718         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92719         Insert necessary parentheses.
92720         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
92721         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
92722
92723 2002-11-19  Bruno Haible  <bruno@clisp.org>
92724
92725         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
92726         * lib/mbswidth.h: Include <stddef.h>, for size_t.
92727
92728         * lib/mbswidth.h (PARAMS): Remove macro.
92729         (mbswidth, mbsnwidth): Use ANSI C function declarations.
92730         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
92731
92732         * lib/gcd.h (PARAMS): Remove macro.
92733         (gcd): Use ANSI C function declarations.
92734         * lib/gcd.c (gcd): Likewise.
92735
92736 2002-11-15  Bruno Haible  <bruno@clisp.org>
92737
92738         * lib/strcspn.c: Include <stddef.h>.
92739         (strcspn): Use ANSI C function declaration. Change return type to
92740         size_t. Use NULL.
92741         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
92742         (strpbrk): Use NULL.
92743         * lib/strpbrk.h (PARAMS): Remove macro.
92744         (strpbrk): Use ANSI C function declaration.
92745         * lib/strstr.c: Don't include <sys/types.h>.
92746         * lib/strstr.h (PARAMS): Remove macro.
92747         (strstr): Use ANSI C function declarations.
92748
92749 2002-11-14  Karl Berry  <karl@gnu.org>
92750
92751         * config/mkinstalldirs: `do' on separate line, instead of
92752         `for var; do'.
92753
92754 2002-11-06  Bruno Haible  <bruno@clisp.org>
92755
92756         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
92757         * lib/gcd.c (gcd): Likewise.
92758
92759 2002-11-05  Bruno Haible  <bruno@clisp.org>
92760
92761         * lib/gcd.h: New file, from gettext-0.11.5.
92762         * lib/gcd.c: New file, from gettext-0.11.5.
92763
92764 2002-11-05  Bruno Haible  <bruno@clisp.org>
92765
92766         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92767         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92768         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92769         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92770
92771         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
92772         <libintl.h>.
92773         * lib/makepath.c: Include gettext.h instead of <locale.h> and
92774         <libintl.h>.
92775
92776         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
92777         * lib/human.c: Include gettext.h instead of <libintl.h>.
92778         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
92779         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
92780         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
92781         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
92782         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
92783         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
92784         (textdomain): Remove definition.
92785         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
92786
92787         * lib/long-options.c: Remove include of <libintl.h> and definition of
92788         _.
92789         * lib/same.c: Remove include of <libintl.h> and definition of _.
92790
92791 2002-11-04  Owen Taylor  <otaylor@redhat.com>
92792
92793         * lib/config.charset: A few additions for Solaris.
92794
92795 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92796
92797         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
92798         * lib/localcharset.c (locale_charset): Declare as extern "C".
92799
92800 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92801
92802         * lib/config.charset: msdos in uk_UA uses CP1125.
92803
92804 2002-11-04  Bruno Haible  <bruno@clisp.org>
92805
92806         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
92807         * lib/strcase.h: New file, from GNU gettext-0.11.5.
92808         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
92809         * lib/strstr.h: New file, from GNU gettext-0.11.5.
92810         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
92811
92812 2002-11-04  Bruno Haible  <bruno@clisp.org>
92813
92814         * lib/localcharset.c (locale_charset): Don't return an empty string.
92815
92816 2002-11-04  Bruno Haible  <bruno@clisp.org>
92817
92818         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
92819         aliases.
92820
92821 2002-11-04  Bruno Haible  <bruno@clisp.org>
92822
92823         * lib/config.charset: Update for newest glibc. Add canonical names
92824         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
92825
92826 2002-11-04  Bruno Haible  <bruno@clisp.org>
92827
92828         * lib/config.charset: Add support for NetBSD.
92829
92830 2002-11-04  Bruno Haible  <bruno@clisp.org>
92831
92832         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
92833
92834 2002-11-01  Bruno Haible  <bruno@clisp.org>
92835
92836         * configure.in: Add AC_CONFIG_AUX_DIR call.
92837         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
92838         test/Makefile.
92839         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
92840
92841 2002-09-28  Karl Berry  <karl@gnu.org>
92842
92843         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
92844         installed automake until the next release, since changes have been
92845         made.
92846
92847 2002-09-25  Karl Berry  <karl@gnu.org>
92848
92849         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
92850         * lib/getopt*: copy from libc/posix.
92851         * lib/gettext.h: copy from gettext.
92852         * lib/.cppi-disable: add strdup.c, gettext.h.
92853
92854 2002-09-25  Karl Berry  <karl@gnu.org>
92855
92856         * config/srclist.txt: enable gettext.h check.
92857         * config/config.{guess,sub}: update from prep.
92858         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
92859                 from automake 1.6.3.
92860         See srclist*.
92861
92862 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
92863
92864         * regex.c (PATFETCH): Remove the translating fetch.
92865         (PATFETCH_RAW): Rename to PATFETCH.
92866         (set_image_of_range): New fun.
92867         (SET_RANGE_TABLE_WORK_AREA): Use it.
92868         (regex_compile): Don't translate the pattern chars so eagerly.
92869         Only do it when inserting an `exactn' bytecode or when handling
92870         a char-range.
92871         (mutually_exclusive_p): Avoid empty statement.
92872
92873 2002-07-06  Jim Meyering  <meyering@lucent.com>
92874
92875         * m4/README: Don't mention Makefile.am.in.
92876         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
92877
92878 2002-07-01  Jim Meyering  <meyering@lucent.com>
92879
92880         * lib/c-stack.c: Include sys/time.h.
92881         From Volker Borchert.
92882
92883 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92884
92885         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
92886
92887 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92888
92889         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
92890         New macro.  Use it uniformly instead of
92891         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
92892         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
92893         reported by Vin Shelton.
92894
92895 2002-06-22  Paul Eggert  <eggert@twinsun.com>
92896
92897         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
92898         Do not assume SA_SIGINFO behavior.
92899         Bug reported by Jim Meyering on NetBSD 1.5.2.
92900
92901 2002-06-22  Jim Meyering  <meyering@lucent.com>
92902
92903         * m4/c-stack.m4: New file, from diffutils-2.8.2.
92904         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
92905
92906         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
92907         now that configure.ac uses AC_GNU_SOURCE.
92908         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
92909         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
92910
92911         Update to latest tools.  Suggestions from Paul Eggert.
92912         * m4/stdbool.m4: New file, from diffutils-2.8.2.
92913         * m4/gnu-source.m4: Update from diffutils-2.8.2.
92914         * m4/fnmatch.m4: Likewise.
92915         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
92916         to AC_HEADER_STDBOOL
92917
92918 2002-06-22  Jim Meyering  <meyering@lucent.com>
92919
92920         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
92921         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
92922
92923 2002-06-22  Jim Meyering  <meyering@lucent.com>
92924
92925         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
92926
92927         * lib/exitfail.c, exitfail.h: Likewise.
92928         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
92929
92930         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
92931         of fnmatch.h.
92932         (EXTRA_DIST): Add fnmatch_loop.c.
92933         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
92934
92935         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
92936         * lib/fnmatch.c: Update from diffutils-2.8.2.
92937         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
92938         * lib/fnmatch.h: Remove file.
92939
92940 2002-06-21  Jim Meyering  <meyering@lucent.com>
92941
92942         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
92943         * m4/mbrtowc.m4: Likewise.
92944
92945         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
92946         * m4/mbswidth.m4: Reflect name change:
92947         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
92948         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92949
92950         * m4/lib-link.m4: Update from gettext-0.11.2.
92951         * m4/gettext.m4: Likewise.
92952
92953         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
92954         From Alfred M. Szmidt.
92955
92956 2002-06-18  Paul Eggert  <eggert@twinsun.com>
92957
92958         * lib/file-type.h: Report an error if neither S_ISREG nor
92959         S_IFREG is defined, instead of using a test specific to glibc
92960         2.2.  This should be safe, since POSIX requires S_ISREG and
92961         Unix Version 7 had S_IFREG.  We don't need to check for
92962         <sys/types.h> since we don't use any symbols that it defines.
92963
92964 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
92965
92966         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
92967         $@-t, so that each temporary file name is unique and valid in the first
92968         8 characters, for operation under DOS.
92969
92970 2002-06-15  Paul Eggert  <eggert@twinsun.com>
92971
92972         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
92973
92974 2002-06-15  Jim Meyering  <meyering@lucent.com>
92975
92976         Work even with DJGPP 2.03, which lacks support for symlinks.
92977         From Richard Dawe.
92978         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
92979         is defined.
92980         * lib/lchown.c (S_ISLNK): Likewise.
92981
92982 2002-06-15  Jim Meyering  <meyering@lucent.com>
92983
92984         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
92985         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
92986         have been included before this file.
92987
92988 2002-06-14  Jim Meyering  <meyering@lucent.com>
92989
92990         * lib/file-type.h: Use the version from diffutils-2.8.2.
92991         * lib/file-type.c: Likewise.
92992
92993 2002-06-07  Jim Meyering  <meyering@lucent.com>
92994
92995         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
92996         They're needed at least for NetBSD 1.5.2.
92997         ($statxfs_includes): Include those same headers.
92998         ($statxfs_includes): Include sys/vfs.h if available.
92999         ($statxfs_includes): Likewise for sys/statvfs.h.
93000         Check for the following members in both structs statfs and statvfs:
93001         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
93002
93003 2002-06-01  Jim Meyering  <meyering@lucent.com>
93004
93005         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
93006         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
93007
93008 2002-05-28  Jim Meyering  <meyering@lucent.com>
93009
93010         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
93011         Reported by Volker Borchert.
93012
93013 2002-05-27  Jim Meyering  <meyering@lucent.com>
93014
93015         Fix a problem seen only on nonconforming systems whereby ls.c's
93016         use of localtime, and then of gettimeofday would cause trouble:
93017         the localtime call used to initialize rpl_gettimeofday's save
93018         mechanism would clobber ls's current local time information so
93019         that in any long listing the first file would always be listed
93020         with date 1970-01-01.  Analysis by Volker Borchert.
93021
93022         * lib/gettimeofday.c (localtime): Undefine.
93023         (rpl_localtime): New function.
93024
93025 2002-05-27  Jim Meyering  <meyering@lucent.com>
93026
93027         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
93028         localtime.
93029
93030         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
93031         use the replacement function; it wouldn't resolve at link time.
93032         Reported by Volker Borchert.
93033
93034 2002-05-22  Jim Meyering  <meyering@lucent.com>
93035
93036         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
93037         file-type.h.
93038         * lib/file-type.h: New file.
93039         * lib/file-type.c (file_type): New file/function.  Extracted from
93040         diffutils.
93041
93042 2002-04-30  Jim Meyering  <meyering@lucent.com>
93043
93044         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
93045
93046 2002-04-29  Paul Eggert  <eggert@twinsun.com>
93047
93048         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
93049
93050 2002-04-29  Paul Eggert  <eggert@twinsun.com>
93051
93052         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
93053         Do not check for alloca.h (no longer used) or stdbool.h (was never
93054         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
93055
93056 2002-04-29  Paul Eggert  <eggert@twinsun.com>
93057
93058         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
93059
93060 2002-04-29  Jim Meyering  <meyering@lucent.com>
93061
93062         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
93063         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
93064         Use AC_FUNC_STRNLEN here instead.
93065
93066         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
93067         With autoconf-2.53a, it's part of AC_PROG_CC.
93068
93069 2002-04-28  Paul Eggert  <eggert@twinsun.com>
93070
93071         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
93072         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
93073
93074 2002-04-28  Paul Eggert  <eggert@twinsun.com>
93075
93076         * lib/sig2str.h, lib/sig2str.c: New files.
93077         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
93078
93079 2002-04-28  Paul Eggert  <eggert@twinsun.com>
93080
93081         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
93082         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
93083         of 127, since 64 is the largest conceivable number for ancient
93084         nonstandard hosts.
93085         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
93086
93087 2002-04-28  Jim Meyering  <meyering@lucent.com>
93088
93089         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
93090
93091 2002-04-24  Jim Meyering  <meyering@lucent.com>
93092
93093         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
93094         (jm_PREREQ): Use it.
93095
93096         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
93097         mach/mach.h fcntl.h.
93098         Check for this function: setlocale.
93099
93100 2002-04-24  Jim Meyering  <meyering@lucent.com>
93101
93102         * lib/gettext.h: New file, from Gettext.
93103         * lib/Makefile.am (INCLUDES): Remove -I../intl.
93104         (libfetish_a_SOURCES): Add gettext.h.
93105
93106 2002-04-16  Jim Meyering  <meyering@lucent.com>
93107
93108         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
93109         ut_pid, ut_id, ut_exit.
93110
93111 2002-04-16  Jim Meyering  <meyering@lucent.com>
93112
93113         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
93114         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
93115         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
93116
93117 2002-04-12  Jim Meyering  <meyering@lucent.com>
93118
93119         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
93120         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
93121         existence of the getmntinfo function.  Needed for Darwin 5.3.
93122
93123         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
93124         This is necessary at least on Darwin 5.3.
93125
93126         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
93127         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
93128         strnlen.o in the library, and that makes some versions of ranlib
93129         object.
93130
93131 2002-04-12  Jim Meyering  <meyering@lucent.com>
93132
93133         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
93134
93135 2002-04-09  Jim Meyering  <meyering@lucent.com>
93136
93137         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
93138         to be more precise.  Rather than saying we're checking whether the
93139         function `works', say what we're testing.
93140         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
93141         Reported by Bruno Haible.
93142
93143 2002-03-10  Jim Meyering  <meyering@lucent.com>
93144
93145         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
93146         Suggestion from Santiago Vila.
93147
93148 2002-03-08  Jim Meyering  <meyering@lucent.com>
93149
93150         * lib/rename.c: Mention that this wrapper is needed also on
93151         mips-dec-ultrix4.4 systems.
93152
93153 2002-03-02  Jim Meyering  <meyering@lucent.com>
93154
93155         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
93156         not HAVE_CLOCK_SETTIME.
93157
93158 2002-02-27  Paul Eggert  <eggert@twinsun.com>
93159
93160         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
93161         Check for clock_settime.
93162
93163 2002-02-27  Paul Eggert  <eggert@twinsun.com>
93164
93165         * lib/nanosleep.h: Rename to....
93166         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
93167
93168         * lib/gettime.c: New file.
93169         * lib/settime.c: New file.
93170         * lib/stime.c: Remove.
93171
93172         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
93173         timespec.h.  Remove nanosleep.h.
93174
93175 2002-02-25  Paul Eggert  <eggert@twinsun.com>
93176
93177         * m4/acl.m4: New file.
93178         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
93179         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
93180
93181 2002-02-25  Paul Eggert  <eggert@twinsun.com>
93182
93183         * lib/acl.c, lib/acl.h: New files.
93184         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
93185
93186 2002-02-24  Jim Meyering  <meyering@lucent.com>
93187
93188         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
93189         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
93190         cause trouble.  Reported by Nelson Beebe.
93191
93192 2002-02-23  Paul Eggert  <eggert@twinsun.com>
93193
93194         * lib/path-concat.c (xpath_concat): Reorder code to pacify
93195         compilers that don't know that xalloc_die never returns.
93196
93197 2002-02-20  Jim Meyering  <meyering@lucent.com>
93198
93199         * lib/getdate.c: Regenerate using bison-1.33.
93200
93201 2002-02-17  Jim Meyering  <meyering@lucent.com>
93202
93203         * config/config.guess (main): Don't use `head -1'; it's no longer
93204         portable. Use `sed 1q' instead.
93205
93206 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
93207
93208         * m4/codeset.m4: Upgrade to gettext-0.11.
93209         * m4/gettext.m4: Upgrade to gettext-0.11.
93210         * m4/glibc21.m4: Upgrade to gettext-0.11.
93211         * m4/iconv.m4: Upgrade to gettext-0.11.
93212         * m4/isc-posix.m4: Upgrade to gettext-0.11.
93213         * m4/lcmessage.m4: Upgrade to gettext-0.11.
93214         * m4/lib-ld.m4: New file, from gettext-0.11.
93215         * m4/lib-link.m4: New file, from gettext-0.11.
93216         * m4/lib-prefix.m4: New file, from gettext-0.11.
93217         * m4/progtest.m4: Upgrade to gettext-0.11.
93218
93219 2002-02-15  Paul Eggert  <eggert@twinsun.com>
93220
93221         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
93222         (jm_PREREQ): Use it.
93223
93224 2002-02-15  Paul Eggert  <eggert@twinsun.com>
93225
93226         * lib/posixver.c, lib/posixver.h: New files.
93227         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
93228
93229 2002-02-02  Paul Eggert  <eggert@twinsun.com>
93230             Bruno Haible  <bruno@clisp.org>
93231
93232         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
93233         (fwrite_success_callback): New declaration.
93234         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
93235         print_unicode_char. Call failure callback instead of error.
93236         (fwrite_success_callback): New function.
93237         (exit_failure_callback): New function.
93238         (fallback_failure_callback): New function.
93239         (print_unicode_char): Call unicode_to_mb.
93240
93241 2002-01-26  Jim Meyering  <meyering@lucent.com>
93242
93243         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
93244         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
93245
93246 2002-01-26  Jim Meyering  <meyering@lucent.com>
93247
93248         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
93249
93250 2002-01-22  Paul Eggert  <eggert@twinsun.com>
93251
93252         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
93253
93254 2002-01-22  Jim Meyering  <meyering@lucent.com>
93255
93256         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
93257         Otherwise, some versions of automake would omit the rule that makes
93258         Makefile from Makefile.in.
93259
93260 2002-01-21  Paul Eggert  <eggert@twinsun.com>
93261
93262         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
93263         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
93264         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
93265         (memcoll): Set errno to zero if there is no error.
93266
93267         * lib/quotearg.c (quotearg_buffer_restyled):
93268         Fix bug with quoting buffers containing NUL when backslashing escapes.
93269         This bug was exposed by the other changes in this patch.
93270         (quotearg_n_options): New arg ARGSIZE.
93271         All callers changed.
93272         (quoting_options_from_style): New function.
93273         (quotearg_n_style): Use it.
93274         (quotearg_n_style_mem): New function.
93275
93276         * lib/quotearg.h (quotearg_n_style_mem): New function.
93277
93278 2002-01-19  Jim Meyering  <meyering@lucent.com>
93279
93280         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
93281         Remove useless quotes: DF_PROG="df".
93282         * m4/strnlen.m4: New file.
93283
93284 2002-01-16  Paul Eggert  <eggert@twinsun.com>
93285
93286         * lib/backupfile.c (ISDIGIT): Comment fix.
93287         * lib/getdate.y (ISDIGIT): Likewise.
93288         * lib/posixtm.c (ISDIGIT, year): Likewise.
93289         * lib/strverscmp.c (ISDIGIT): Likewise.
93290         * lib/userspec.c (ISDIGIT): Likewise.
93291
93292 2002-01-16  Jim Meyering  <meyering@lucent.com>
93293
93294         * lib/getdate.y: Add three semicolons, each just before a closing
93295         brace. Bison (as of version 1.31) no longer papers over that mistake.
93296
93297 2002-01-05  Jim Meyering  <meyering@lucent.com>
93298
93299         * lib/version-etc.c (version_etc_copyright): Update copyright year.
93300
93301 2001-12-19  Paul Eggert  <eggert@twinsun.com>
93302
93303         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
93304         not silently exit merely because the output buffer happens to
93305         have nothing pending.
93306
93307 2001-12-18  Paul Eggert  <eggert@twinsun.com>
93308
93309         See the big note in ../ChangeLog.
93310         * lib/human.c (suffixes): Prefer K to k for 1024.
93311         (generate_suffix_backwards): New function.
93312         (human_readable_inexact): Use it.
93313         * lib/xstrtol.c (__xstrtol): If there is no number but there
93314         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
93315         Accept 'K' as well as 'k'.
93316
93317 2001-12-15  Jim Meyering  <meyering@lucent.com>
93318
93319         * lib/regex.h (__restrict_arr): Update from libc.
93320
93321         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
93322         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
93323         (STREQ): Define.
93324
93325 2001-12-14  Jim Meyering  <meyering@lucent.com>
93326
93327         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
93328         Suggestion from Bruno Haible.
93329
93330 2001-12-10  Jim Meyering  <meyering@lucent.com>
93331
93332         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
93333         xrealloc, Instead, include "xalloc.h".
93334         (initbuffer): Don't cast xmalloc return value to char*.
93335         (readline): Reword comment.
93336         Don't cast xrealloc return value to char*
93337         Return NULL, not 0.
93338
93339 2001-12-09  Jim Meyering  <meyering@lucent.com>
93340
93341         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
93342         about `signed and unsigned type in conditional expression'.
93343         * lib/posixtm.c (posix_time_parse): Likewise.
93344
93345         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
93346
93347         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
93348         to avoid a pedantic warning.
93349
93350         * lib/getstr.c: Don't include assert.h.
93351         (getstr): Remove warning-evoking assertions.
93352         Return -1 if offset parameter is out of bounds.
93353         Change the type of a local from int to size_t.
93354
93355         * lib/strftime.c (my_strftime_localtime_r): Include this function
93356         definition in the `#if ! HAVE_TM_GMTOFF' block.
93357
93358         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
93359         Include xalloc.h instead.
93360
93361 2001-12-02  Jim Meyering  <meyering@lucent.com>
93362
93363         * lib/tempname.c: Don't declare getenv, thus reverting the change of
93364         2001-11-18.  It's no longer necessary, now that stdlib.h is always
93365         included.
93366
93367         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
93368         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
93369
93370 2001-11-30  Akim Demaille  <akim@epita.fr>
93371
93372         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
93373         before being defined.
93374
93375 2001-11-27  Paul Eggert  <eggert@twinsun.com>
93376
93377         * lib/quotearg.h (quotearg_n, quotearg_n_style):
93378         First arg is int, not unsigned.
93379         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
93380         (SIZE_MAX, UINT_MAX): New macros.
93381         (quotearg_n_options): Abort if N is negative.
93382         Avoid overflow check on hosts where size_t is 64 bits and int
93383         is 32 bits, as overflow is impossible there.
93384         Fix off-by-one typo that caused unnecessary reallocation.
93385
93386 2001-11-27  Jim Meyering  <meyering@lucent.com>
93387
93388         * lib/tempname.c: Merge with version from libc.
93389         * lib/regex.c: Likewise.
93390
93391         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
93392         systems for which STDC_HEADERS is 0, it was not included, resulting in
93393         a warning about an integer-to-pointer conversion problem with getenv.
93394         Reported by Volker Borchert.
93395
93396 2001-11-26  Jim Meyering  <meyering@lucent.com>
93397
93398         * lib/gtod.h: Remove file.
93399         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
93400         * lib/gettimeofday.c: Don't include gtod.h.
93401         (GTOD_init): Remove function.
93402         (rpl_gettimeofday): Do its job here instead, rather than aborting.
93403         Suggestion from Volker Borchert.
93404
93405 2001-11-23  Jim Meyering  <meyering@lucent.com>
93406
93407         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
93408         it.
93409         * lib/hash.c (struct hash_table): Define it here instead.
93410
93411 2001-11-22  Jim Meyering  <meyering@lucent.com>
93412
93413         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
93414
93415 2001-11-20  Jim Meyering  <meyering@lucent.com>
93416
93417         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
93418         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
93419
93420 2001-11-19  Jim Meyering  <meyering@lucent.com>
93421
93422         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
93423         directory.  Use "conftestXXXXXX" as the template.
93424         Suggestion from Paul Eggert.
93425
93426         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
93427         immediately, so the test doesn't mistakenly hit the max-open-files
93428         limit.
93429
93430 2001-11-18  Paul Eggert  <eggert@twinsun.com>
93431
93432         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
93433         (TEMPORARIES): New macro.
93434         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
93435         removes an artificial limitation (e.g. HP-UX 10.20, where
93436         TMP_MAX is 17576).
93437
93438 2001-11-18  Jim Meyering  <meyering@lucent.com>
93439
93440         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
93441
93442 2001-11-18  Jim Meyering  <meyering@lucent.com>
93443
93444         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
93445         on SunOS 4.
93446
93447         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
93448         files will be created before anything else.
93449
93450 2001-11-17  Paul Eggert  <eggert@twinsun.com>
93451
93452         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
93453         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
93454
93455 2001-11-17  Jim Meyering  <meyering@lucent.com>
93456
93457         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
93458         Prompted by a report from Bob Proulx.
93459
93460         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
93461         Instead, require UTILS_FUNC_MKSTEMP.
93462
93463 2001-11-17  Jim Meyering  <meyering@lucent.com>
93464
93465         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
93466         Now, that's done as part of AC_FUNC_STRTOD.
93467
93468 2001-11-17  Jim Meyering  <meyering@lucent.com>
93469
93470         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
93471         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
93472         rather than group writable.  Patch by Juan F. Codagnone.
93473
93474         * lib/readtokens.c: Remove explicit declarations of xmalloc and
93475         xrealloc, Instead, include "xalloc.h".
93476
93477         * lib/mountlist.c: Include unlocked-io.h after all system headers.
93478         Remove explicit declarations of xmalloc, xrealloc,
93479         and xstrdup.  Instead, include "xalloc.h".
93480
93481         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
93482         unlocked-io.h.
93483         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
93484         Likewise.
93485         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
93486
93487         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
93488         Reported by Padraig Brady.
93489
93490         * lib/mkstemp.c: #undef mkstemp.
93491         Include config.h.
93492         (rpl_mkstemp): Rename from mkstemp.
93493         Protoize.
93494
93495 2001-11-16  Jim Meyering  <meyering@lucent.com>
93496
93497         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
93498         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
93499         determine the amount of total physical memory, use pstat_getstatic.
93500         HPUX-11 doesn't define _SC_PHYS_PAGES.
93501         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
93502         If sysconf couldn't be used to determine the amount of available
93503         physical memory, use both pstat_getstatic and pstat_getdynamic.
93504         Based on a patch from Bob Proulx.
93505
93506 2001-11-10  Jim Meyering  <meyering@lucent.com>
93507
93508         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
93509         (jm_PREREQ): Use it.
93510
93511 2001-11-09  Jim Meyering  <meyering@lucent.com>
93512
93513         * m4/jm-macros.m4: Require autoconf-2.52f.
93514         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
93515         Use these AC_-prefixed names, not the AM_-prefixed ones.
93516
93517         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
93518
93519 2001-11-05  Jim Meyering  <meyering@lucent.com>
93520
93521         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
93522
93523 2001-11-04  Jim Meyering  <meyering@lucent.com>
93524
93525         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
93526         $DEFS.
93527
93528 2001-11-03  Jim Meyering  <meyering@lucent.com>
93529
93530         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
93531         of AC_DEFUN.
93532
93533         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
93534         know the name of the variable in the macro definition.
93535
93536 2001-11-03  Jim Meyering  <meyering@lucent.com>
93537
93538         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
93539         in argmatch_to_argument call.
93540
93541         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
93542         argument.
93543
93544         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
93545         e.g., a fault due to an attempt to free a NULL pointer.
93546
93547 2001-11-01  Jim Meyering  <meyering@lucent.com>
93548
93549         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
93550         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
93551
93552 2001-11-01  Jim Meyering  <meyering@lucent.com>
93553
93554         * lib/dirfd.c, lib/dirfd.h: New files.
93555         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
93556
93557         * lib/hash.c (hash_print) [TESTING]: Clean up.
93558
93559 2001-10-22  Paul Eggert  <eggert@twinsun.com>
93560
93561         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
93562         to avoid a warning if -Wall.
93563
93564 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
93565
93566         * README: New file
93567         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
93568         (per RMS's instructions, this is now the canonical source)
93569         * lgpl/, gpl/: New directories.
93570
93571 2001-10-21  Paul Eggert  <eggert@twinsun.com>
93572
93573         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
93574
93575 2001-10-21  Jim Meyering  <meyering@lucent.com>
93576
93577         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
93578         this code would end up calling gettext even in packages built
93579         with --disable-nls.
93580         * lib/getopt.c (_): Likewise.
93581         * lib/regex.c (_): Likewise.
93582
93583 2001-10-20  Paul Eggert  <eggert@twinsun.com>
93584
93585         * m4/error.m4 (jm_PREREQ_ERROR):
93586         Do not invoke AC_CHECK_FUNCS with strerror_r, as
93587         AC_FUNC_STRERROR_R does that.
93588         Check for strerror declaration.
93589
93590         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
93591         are supposed to have them these days.
93592         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
93593         Merge changes from latest Autoconf CVS.
93594         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
93595         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
93596         POSIX decided to standardize on the int flavor of strerror_r.
93597
93598 2001-10-20  Paul Eggert  <eggert@twinsun.com>
93599
93600         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
93601         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
93602         Use strerror_r that is only a macro, even if it is not a function.
93603         (strerror): Check for HAVE_DECL_STRERROR before declaring.
93604         (private_strerror): Use prototypes, not old-style function definition.
93605         (print_errno_message): New function.
93606         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
93607         char*-flavored one.
93608         (error_tail, error, error_at_line): Use it.
93609
93610 2001-10-11  Jim Meyering  <meyering@lucent.com>
93611
93612         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
93613         and quote_n (1, ... to avoid clobbering a buffer.
93614
93615 2001-10-05  Jim Meyering  <meyering@lucent.com>
93616
93617         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
93618         hash-pjw.h.
93619         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
93620         * lib/hash-pjw.h: New file.
93621
93622 2001-09-30  Jim Meyering  <meyering@lucent.com>
93623
93624         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
93625         `struct fsstat' has the `f_fstypename' member.
93626         Use that to define FS_TYPE, which is now used to make
93627         the getfsstat link test tighter.
93628
93629 2001-09-30  Jim Meyering  <meyering@lucent.com>
93630
93631         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
93632         Include <sys/ucred.h>, for Apple Darwin.
93633         Include sys/mount.h and sys/fs_types.h only if available.
93634         (FS_TYPE): Define.
93635         (read_filesystem_list): Use FS_TYPE.
93636
93637 2001-09-29  Paul Eggert  <eggert@twinsun.com>
93638
93639         * lib/exclude.c (excluded_filename): 0 -> false, since it's
93640         a boolean context.
93641
93642 2001-09-29  Jim Meyering  <meyering@lucent.com>
93643
93644         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93645         [one-argument getmntent function]): Include stdio.h before mntent.h.
93646         SunOS 4.1.x needs it for the declaration of `FILE'.
93647         Patch by Volker Borchert.
93648
93649         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93650         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
93651         sys/fs_types.h, and make the link-test for getfsstat guard #include
93652         directives with appropriate #if HAVE_*_H tests so that we can
93653         detect getfsstat on Apple Darwin1.3.7 systems.
93654         Reported by Nelson Beebe.
93655         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
93656
93657 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93658
93659         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93660         #defines strtoimax.  Also treat the other strto* functions
93661         like strtoimax.
93662
93663         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93664         Check for strtoul and strtoumax,
93665         as those declarations are made even in the signed case.
93666         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
93667         Likewise, for strtol and strtoimax.
93668
93669 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93670
93671         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93672         #defines strtoimax.  Also treat the other strto* functions
93673         like strtoimax.
93674
93675         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
93676         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
93677         (strtoimax, strtoumax): Do not declare if already defined as a macro.
93678
93679 2001-09-26  Jim Meyering  <meyering@lucent.com>
93680
93681         Most macros in unlocked-io.h had the wrong number of arguments.
93682         * lib/gen-uio: New script.
93683         (USE_UNLOCKED_IO): Define to 1 if not already defined.
93684         * lib/unlocked-io.hin: Remove file.
93685         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
93686         rather than trying to embed it here.
93687         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
93688         Reported by Padraig Brady.
93689
93690 2001-09-25  Volker Borchert  <bt@teknon.de>
93691
93692         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
93693         `result'.
93694
93695 2001-09-24  Jim Meyering  <meyering@lucent.com>
93696
93697         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
93698
93699 2001-09-23  Jim Meyering  <meyering@lucent.com>
93700
93701         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
93702         instead of the mere test for existence of mntent.h.  The latter
93703         would get a false-positive on AIX 3.4 systems.
93704         In the outer getmntent if-block, don't die if neither of the getmntent
93705         tests succeeds.  Instead, just fall through and continue with the
93706         remaining tests.
93707
93708 2001-09-23  Jim Meyering  <meyering@lucent.com>
93709
93710         * lib/mountlist.c: Remove useless parentheses in #if directives.
93711         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
93712         the deprecated MOUNTED symbol is no longer defined in mntent.h.
93713
93714 2001-09-22  Jim Meyering  <meyering@lucent.com>
93715
93716         * m4/gettext.m4: New file.  From gettext.
93717         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
93718         * m4/progtest.m4: Likewise
93719         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
93720         * m4/glibc21.m4: Likewise.
93721
93722         * m4/libintl.m4: Remove.  No longer used.
93723
93724 2001-09-22  Jim Meyering  <meyering@lucent.com>
93725
93726         * lib/localcharset.c: Update from latest gettext.
93727         * lib/config.charset: Likewise.
93728
93729 2001-09-20  Jim Meyering  <meyering@lucent.com>
93730
93731         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
93732         strtoimax.
93733         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
93734         strtoumax.
93735
93736 2001-09-20  Jim Meyering  <meyering@lucent.com>
93737
93738         * lib/xstrtol.c (strtoimax): Guard declaration with
93739         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
93740         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
93741         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
93742         (strtoumax): Likewise, for completeness (it wasn't necessary).
93743
93744 2001-09-17  Paul Eggert  <eggert@twinsun.com>
93745
93746         * lib/strtoimax.c (HAVE_LONG_LONG):
93747         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
93748         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
93749         to work around bug in IBM C compiler.
93750
93751 2001-09-17  Jim Meyering  <meyering@lucent.com>
93752
93753         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
93754         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
93755         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
93756         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
93757         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
93758         whenever the right hand side need not be expanded by the shell.
93759
93760 2001-09-16  Paul Eggert  <eggert@twinsun.com>
93761
93762         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
93763         library.  It's not correct, as some older glibcs are buggy.
93764         fnmatch wasn't fixed until glibc 2.2.
93765
93766         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
93767         special shell magic here.
93768
93769 2001-09-16  Jim Meyering  <meyering@lucent.com>
93770
93771         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
93772         * m4/jm-macros.m4: Require it.
93773
93774 2001-09-16  Jim Meyering  <meyering@lucent.com>
93775
93776         * lib/mkdir.c: New file.
93777
93778 2001-09-15  Jim Meyering  <meyering@lucent.com>
93779
93780         * m4/jm-macros.m4: Check for help2man.
93781
93782 2001-09-11  Jim Meyering  <meyering@lucent.com>
93783
93784         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
93785         The body, by Paul Eggert, was moved here from configure.in.
93786         * m4/jm-macros.m4: Require UTILS_HOST_OS.
93787
93788 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93789
93790         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
93791         (jm_PREREQ): Use it.
93792
93793 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93794
93795         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
93796         Use ssize_t, not int, to store result of readlink.
93797         Check for ssize_t overflow as well as size_t overflow,
93798         as POSIX says the result of readlink is implementation-defined
93799         when ssize_t overflows.
93800         Remove unnecessary cast to char*.
93801         Use free+malloc instead of realloc, as the storage doesn't need
93802         to be preserved and it's clearer and can be more efficient that way.
93803         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
93804         * lib/xreadlink.h (xreadlink): Update prototype.
93805
93806 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93807
93808         * lib/xgetcwd.c: Revert some of the previous change; intead,
93809         fix the HAVE_GETCWD_NULL code to behave more like the
93810         !HAVE_GETCWD_NULL code used to.
93811
93812         Include "xalloc.h".
93813         (xgetcwd): Do not return NULL when memory is exhausted; instead,
93814         invoke xalloc_die.
93815
93816 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93817
93818         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
93819         sys/param.h, as pathmax.h includes them.
93820
93821 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93822
93823         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
93824         (jm_PREREQ_XGETCWD): New macro.
93825
93826         * m4/getcwd.m4: New file.
93827
93828 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93829
93830         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
93831         like the HAVE_GETCWD_NULL code.
93832         Include pathmax.h if not HAVE_GETCWD.
93833         Do not include xalloc.h.
93834         (INITIAL_BUFFER_SIZE): New symbol.
93835         Do not use xmalloc / xrealloc, since the caller is responsible for
93836         handling errors.  Preserve errno around `free' during failure.
93837         Do not overrun buffer when using getwd.
93838
93839 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93840
93841         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
93842         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
93843         getcwd (NULL, 0).
93844
93845 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93846
93847         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
93848         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
93849         spotted by Jim Meyering.
93850
93851 2001-09-03  Jim Meyering  <meyering@lucent.com>
93852
93853         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
93854         failure.
93855
93856 2001-09-02  Jim Meyering  <meyering@lucent.com>
93857
93858         * lib/error.c: Update from GNU libc.
93859
93860 2001-09-01  Jim Meyering  <meyering@lucent.com>
93861
93862         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
93863         Used by df.
93864
93865 2001-09-01  Jim Meyering  <meyering@lucent.com>
93866
93867         * lib/xreadlink.c: New file.
93868         * lib/xreadlink.h: New file.
93869         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
93870         xreadlink.h.
93871
93872         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
93873         doesn't conflict with sparc Solaris 7's definition in
93874         /usr/include/sys/int_types.h.
93875
93876         * lib/exclude.c: Use `""', not `<>' to #include non-system header
93877         files.
93878         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
93879         and strncasecmp as r-values.  Unixware didn't have declarations.
93880
93881 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93882
93883         * lib/xstrtol.h: Add copyright notice.
93884         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
93885         LONGINT_INVALID_SUFFIX_CHAR.
93886
93887 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93888
93889         * lib/xstrtol.c (strtoimax): New decl.
93890
93891 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93892
93893         * lib/xgetcwd.c: Don't include pathmax.h.
93894         Include stdlib.h and unistd.h if available.
93895         Include xalloc.h.
93896         (xmalloc, xstrdup, free): Remove decls.
93897         (xgetcwd): Don't assume sizes fit in unsigned.
93898         Check for overflow when computing sizes.
93899         Simplify reallocation code.
93900
93901 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93902
93903         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
93904         a directory's st_size can have an arbitrary value, so the old
93905         usage could waste an arbitrary amount of memory.  All uses
93906         changed.
93907         * lib/savedir.h: Update prototype.
93908
93909 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93910
93911         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
93912
93913         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
93914         old strtoimax.c.
93915
93916         Also, make the following further changes to make this file's
93917         configuration more similar to that of strtol.c:
93918         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
93919         (strtoumax, uintmax_t, strtoull, strtol): Remove.
93920         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
93921         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
93922         changed to signed values.
93923
93924         And make the following changes as well:
93925         Fix copyright notice, as 1999 was missing.
93926         (verify): New macro.
93927         (strtoimax): Check sizes at compile-time, not run-time.
93928         Prefer strtol to strtoll if both work.
93929         (main): Remove; it was not that useful and was a pain to maintain.
93930
93931         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
93932
93933 2001-08-31  Jim Meyering  <meyering@lucent.com>
93934
93935         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
93936         Use an initial, malloc'd, buffer of length 128 rather than
93937         a statically allocated one of length 1024.
93938
93939 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93940
93941         Simplify code, partly by assuming autoconf 2.52 semantics.
93942
93943         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
93944
93945         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
93946         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
93947         All uses removed.
93948         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
93949         Move AC_REQUIRE to next-to-top level, to avoid confusion.
93950         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
93951         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
93952         jm_AC_HEADER_INTTYPES_H.
93953         * m4/jm-macros.m4 (jm_MACROS): Likewise.
93954
93955         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
93956
93957         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93958         Quote first arg of AC_DEFUN.
93959         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
93960         since they are needed to parse the include file even if we need
93961         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
93962         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
93963         but with opposite signedness.
93964
93965 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93966
93967         Merge 'exclude' changes from tar 1.13.22.
93968         This fixes one or two unlikely storage allocation overflow bugs,
93969         but doesn't change user-visible behavior otherwise.
93970
93971 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93972
93973         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
93974         (jm_PREREQ_EXCLUDE): New macro.
93975
93976 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93977
93978         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
93979         tm to be declared.
93980
93981 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93982
93983         * lib/hash.c: Remove '2001' from copyright notice.
93984
93985 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93986
93987         * lib/full-write.h: New file.
93988         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
93989         * lib/full-write.c: Correct credits, as cccp.c no longer
93990         exists and anyway it was so heavily changed from the old cccp
93991         code as to be unrecognizable.  Include full-write.h.
93992         (full_write): Return size_t, with short writes meaning failure.
93993         All callers changed.  This fixes a bug with large buffers
93994         on 64-bit hosts.
93995         * lib/utime.c: Include full-write.h.
93996
93997 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93998
93999         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
94000         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
94001         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
94002         Include if available.
94003         (<xalloc.h>): Include
94004         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
94005         (verify): New macro.  Use it to verify that EXCLUDE macros do not
94006         collide with FNM macros.
94007         (struct patopts): New struct.
94008         (struct exclude): Use it, as exclude patterns now come with options.
94009         (new_exclude): Support above changes.
94010         (new_exclude, add_exclude_file):
94011         Initial size must now be a power of two to simplify overflow checking.
94012         (free_exclude, fnmatch_no_wildcards): New function.
94013         (excluded_filename): No longer requires options arg, as the options
94014         are determined by add_exclude.  Now returns bool, not int.
94015         (excluded_filename, add_exclude):
94016         Add support for the fancy new exclusion options.
94017         (add_exclude, add_exclude_file): Now takes int options arg.
94018         Check for arithmetic overflow when computing sizes.
94019         (add_exclude_file): xrealloc might modify errno, so don't
94020         realloc until after errno might be used.
94021
94022         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
94023         New macros.
94024         (free_exclude): New decl.
94025         (add_exclude, add_exclude_file): Now takes int options arg.
94026         (excluded_filename): No longer requires options arg, as the options
94027         are determined by add_exclude.  Now returns bool, not int.
94028
94029 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94030
94031         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
94032
94033 2001-08-27  Jim Meyering  <meyering@lucent.com>
94034
94035         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
94036
94037         * lib/version-etc.c (N_): Remove definition.
94038         Revert most of last change.
94039         Instead, simply don't mark the `Copyright...' string for translation.
94040         Based on advice from Paul Eggert.
94041
94042         * lib/strtoxmax.c: Tweak comment.
94043
94044 2001-08-26  Jim Meyering  <meyering@lucent.com>
94045
94046         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
94047
94048         * m4/xstrtoimax.m4: New file.
94049         * m4/xstrtoumax.m4: Add comments explaining why we
94050         AC_REPLACE_FUNCS(strtol).
94051
94052 2001-08-26  Jim Meyering  <meyering@lucent.com>
94053
94054         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
94055         of copyright with `%s' so translators don't get an untranslated
94056         message in 2002.
94057         (COPYRIGHT_YEAR): Define.
94058         (version_etc): Use fprintf rather than fputs.
94059         Suggestion from Ulrich Drepper.
94060
94061         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
94062
94063         * lib/strtoll.c: New file, from GNU libc.
94064         * lib/xstrtoimax.c: New file.
94065
94066         * lib/xstrtol.h: Add xstrtoimax.
94067         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
94068         * lib/strtoimax.c: New file.  Likewise, but first define
94069         STRTOUXMAX_SIGNED.
94070
94071         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
94072         ...
94073         * lib/strtoxmax.c: ... then renamed to this.
94074
94075 2001-08-18  Paul Eggert  <eggert@twinsun.com>
94076
94077         * m4/inttypes.m4: Add AC_PREREQ(2.13).
94078         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
94079         (jm_AC_TYPE_INTMAX_T): New macro.
94080         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
94081
94082         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
94083
94084         * m4/longlong.m4: Renamed from ulonglong.m4.
94085         * m4/inttypes.m4: Renamed from inttypes_h.m4.
94086         * m4/uintmax_t.m4: Removed.
94087
94088 2001-08-13  Paul Eggert  <eggert@twinsun.com>
94089
94090         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
94091         Port to Solaris 8, where 'sed' requires a space after the 'r'
94092         command, and where sh dislikes "$/".  Clean up the spacing a bit.
94093         Redirect output to $tmp just once.
94094
94095 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
94096
94097         * lib/addext.c (<errno.h>): Include.
94098         (errno): Declare if not defined.
94099         (addext): Work correctly when pathconf returns -1 and leaves
94100         errno alone because there is no limit.  Also, work even if
94101         pathconf returns a value greater than SIZE_MAX.
94102
94103 2001-08-12  Jim Meyering  <meyering@lucent.com>
94104
94105         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
94106         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
94107         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
94108         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
94109         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
94110         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
94111         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
94112         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
94113         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
94114         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
94115         utime.m4, utimes.m4, xstrtoumax.m4:
94116         Quote the first argument in each use of AC_DEFUN.
94117
94118 2001-08-12  Jim Meyering  <meyering@lucent.com>
94119
94120         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
94121         Simply `return getcwd (NULL, 0);'.
94122         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
94123         Use 1300 as initial value for length, not PATH_MAX.
94124
94125         * lib/pathmax.h: Clean up cpp syntax.
94126
94127 2001-08-12  Jim Meyering  <meyering@lucent.com>
94128
94129         * lib/gettimeofday.c: New file.
94130         * lib/gtod.h: New file.
94131         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
94132
94133 2001-08-05  Jim Meyering  <meyering@lucent.com>
94134
94135         * m4/jm-macros.m4: Require autoconf-2.52.
94136
94137 2001-08-04  Jim Meyering  <meyering@lucent.com>
94138
94139         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
94140         stmt, to get in sync with glibc.
94141
94142 2001-08-03  Paul Eggert  <eggert@twinsun.com>
94143
94144         The following changes are from gettext 0.10.39 as maintained by
94145         Bruno Haible.
94146
94147         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
94148         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
94149         with inverted sense.  All uses changed.
94150
94151         * lib/mbswidth.c: Don't include <limits.h>.
94152         Include <stdlib.h> and <string.h> unconditionally.
94153         (iswcntrl, mbsinit, ISCNTRL): New macros.
94154         (mbsnwidth): Use K&R style function declarations.
94155         Don't bother checking for MB_LEN_MAX == 1, since the compiler
94156         can optimize it when MB_CUR_MAX == 1.
94157         The width of control characters is zero, not 1.
94158
94159 2001-08-03  Paul Eggert  <eggert@twinsun.com>
94160
94161         The following changes are from gettext 0.10.39 as maintained by
94162         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
94163
94164         * m4/codeset.m4: Upgrade to serial AM1.
94165         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
94166         all uses changed.  Quote first arg of AC_DEFUN.
94167         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
94168
94169         * m4/iconv.m4: Upgrade to serial AM2.
94170         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
94171         Add --with-libconv-prefix.
94172         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
94173         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
94174         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
94175         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
94176         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
94177
94178         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
94179         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
94180         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
94181         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
94182         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
94183         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
94184         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
94185         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
94186         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
94187
94188         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
94189         string.h any more.
94190
94191         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
94192         not the default value.
94193
94194         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
94195         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
94196         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
94197         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
94198         Also check for iswcntrl, used for wcwidth fallback.
94199         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
94200         to Autoconf 2.13.
94201
94202 2001-08-03  Jim Meyering  <meyering@lucent.com>
94203
94204         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
94205         as it was in the original.  Reported by Paul Eggert.
94206
94207 2001-07-16  Jim Meyering  <meyering@lucent.com>
94208
94209         * m4/gettimeofday.m4: New file.
94210         Prompted by a report from Bernhard Baehr.
94211
94212 2001-07-15  Jim Meyering  <meyering@lucent.com>
94213
94214         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
94215         stuff. Now it's in ../Makefile.cfg.
94216
94217 2001-07-15  Jim Meyering  <meyering@lucent.com>
94218
94219         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
94220         (BUILT_SOURCES): Add unlocked-io.h.
94221         (io_functions): Define.
94222         (unlocked-io.h): New rule.
94223         (DISTCLEANFILES): Add unlocked-io.h.
94224         (all-local): Depend on unlocked-io.h, to ensure it is created.
94225
94226         * lib/unlocked-io.hin: New file
94227
94228         * lib/regex.c: Update from glibc.
94229
94230 2001-07-05  Jim Meyering  <meyering@lucent.com>
94231
94232         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
94233         recommendation.
94234         (libfetish_a_SOURCES): Put all .h files here instead.
94235         Remove a thus-exposed (better checks in automake) duplicate and
94236         two unnecessary .h files.
94237
94238 2001-07-04  Jim Meyering  <meyering@lucent.com>
94239
94240         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
94241         that generates jm-glibc-io.m4 so that it doesn't trigger any make
94242         distcheck failure.
94243
94244 2001-07-02  Jim Meyering  <meyering@lucent.com>
94245
94246         The following changes were prompted by suggestions from Bruno Haible.
94247
94248         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
94249         is now generated.
94250         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
94251         definition of EXTRA_DIST.
94252         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
94253         ensure that the generated file is created/updated whenever the list
94254         of $(unlocked_functions) is changed.
94255         (jm-glibc-io.m4): New rule.
94256         (unlocked-io.h): New rule -- currently unused.
94257
94258 2001-06-24  Jim Meyering  <meyering@lucent.com>
94259
94260         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
94261         unmatched right bracket, rather than kludging it with an extra,
94262         falsely-matching quote in a comment.  Patch by Akim Demaille.
94263
94264 2001-06-11  Jim Meyering  <meyering@lucent.com>
94265
94266         * lib/regex.c: Update from GNU libc.
94267
94268 2001-05-27  Jim Meyering  <meyering@lucent.com>
94269
94270         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
94271         Check for ut_type in struct utmp.
94272
94273 2001-05-27  Jim Meyering  <meyering@lucent.com>
94274
94275         * lib/readutmp.h (UT_TYPE): Define.
94276
94277 2001-05-24  Jim Meyering  <meyering@lucent.com>
94278
94279         * lib/argmatch.c: Include "quote.h".
94280         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
94281         quote function.  Reported by Göran Uddeborg.
94282
94283 2001-05-22  Jim Meyering  <meyering@lucent.com>
94284
94285         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
94286         now that we use the package-supplied version unconditionally.
94287         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
94288
94289 2001-05-21  Jim Meyering  <meyering@lucent.com>
94290
94291         * m4/regex.m4: Change a couple backticks to single quotes to avoid
94292         shell syntax errors.
94293
94294 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
94295
94296         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
94297
94298 2001-05-20  Paul Eggert  <eggert@twinsun.com>
94299
94300         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
94301         Don't bother to check library strftime, since
94302         we'll be using our own my_strftime function anyway.
94303         Define my_strftime instead of strftime.
94304
94305 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
94306
94307         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
94308         which is not yet declared.
94309
94310 2001-05-15  Jim Meyering  <meyering@lucent.com>
94311
94312         * m4/regex.m4: Use proper quoting so brackets appear in the test
94313         program.
94314         Reported by, and with help from, Bruno Haible.
94315
94316 2001-05-13  Jim Meyering  <meyering@lucent.com>
94317
94318         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
94319         undefined.
94320
94321 2001-05-11  Paul Eggert  <eggert@twinsun.com>
94322
94323         dirname code cleanup.  base_name now behaves more compatibly
94324         with POSIX basename when given file names that have trailing
94325         slashes, and similarly for dir_name.  Add new primitives
94326         base_len and dir_len.  Put the directory-name-related decls
94327         into dirname.h.
94328
94329         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
94330         * lib/backupfile.c (base_name): Likewise.
94331         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
94332         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
94333         * lib/makepath.c (strip_trailing_slashes): Likewise.
94334         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
94335         ISSLASH): Likewise.
94336         * lib/rename.c (strip_trailing_slashes): Likewise.
94337         * lib/same.c (base_name): Likewise.
94338         * lib/stripslash.c (ISSLASH): Likewise.
94339
94340         * lib/addext.c: Include <dirname.h> after size_t is defined.
94341         * lib/backupfile.c: Likewise.
94342
94343         * lib/addext.c (addext): Use base_len to trim redundant
94344         trailing slashes instead of doing it ourselves.
94345         But do not trim the last slash if it is not redundant.
94346
94347         * lib/backupfile.c (find_backup_file_name,
94348         max_backup_version): Use base_len instead of rolling it ourselves.
94349         Handle the case of "" and (on DOS) "C:" correctly.
94350
94351         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
94352         needed. Include <string.h>, <dirname.h>.
94353         (base_name): Allow file names ending in slashes, other than names
94354         that are all slashes.  In this case, return the basename followed
94355         by the slashes.  This is more general, and can be used in places
94356         where the original base_name purposely had an assertion failure.
94357         (base_len): New function.
94358
94359         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
94360         Do not include <assert.h>; no longer needed.
94361         Include xalloc.h.
94362         (memrchr): Remove decl.
94363         (dir_name_r): Remove.
94364         (dir_len): Renamed from dirlen.  All callers changed.
94365         Rewrite in terms of base_name, for simplicity and consistency.
94366         (dir_name): Never return NULL.  All callers changed.
94367         Do not include <stdlib.h> in test program; no longer needed.
94368         return 0; is fine for test program.
94369
94370         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
94371         New macros.
94372         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
94373
94374         * lib/path-concat.c (path_concat): Use base_len to compute
94375         base length, not strlen; this means we cannot rely on memcpy
94376         to null-terminate.
94377
94378         * lib/same.c (STREQ): Remove.
94379         (same_name): Handle the case where the basename ends in trailing '/'.
94380
94381         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
94382         a slash was stripped.  Do not strip the last slash after a
94383         file system prefix.
94384
94385 2001-05-11  Paul Eggert  <eggert@twinsun.com>
94386
94387         * lib/Makefile.am (libfetish_a_SOURCES):
94388         Add strftime.c, since we now compile it on all hosts.
94389
94390         * lib/strftime.c (my_strftime):
94391         Define to nstrftime if emacs, but only if my_strftime is not defined.
94392         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
94393         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
94394         Add one more extra argument: a nanoseconds value.
94395         All uses changed.
94396         (ns): New macro.
94397         (my_strftime function): Add %N format.
94398         (emacs_strftimeu): Renamed from emacs_strftime,
94399         with extra ut argument.
94400
94401 2001-05-09  Paul Eggert  <eggert@twinsun.com>
94402
94403         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
94404
94405 2001-04-21  Jim Meyering  <meyering@lucent.com>
94406
94407         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
94408         doesn't interfere.
94409
94410 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
94411
94412         * m4/ftruncate.m4: Check for chsize.
94413         Link with ftruncate.o unconditionally if ftruncate is missing.
94414         This was required when cross-compiling to i586-mingw32msvc.
94415
94416 2001-04-08  Jim Meyering  <meyering@lucent.com>
94417
94418         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
94419         recomputed; that's necessary when the offset spans a DST transition.
94420         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
94421
94422 2001-04-02  Jim Meyering  <meyering@lucent.com>
94423
94424         * lib/regex.h, regex.c: Update from GNU libc.
94425
94426 2001-03-24  Jim Meyering  <meyering@lucent.com>
94427
94428         * m4/jm-macros.m4: Require autoconf-2.49d.
94429
94430 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
94431
94432         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
94433
94434 2001-03-19  Paul Eggert  <eggert@twinsun.com>
94435
94436         * lib/version-etc.c (version_etc_copyright): Update to 2001.
94437
94438 2001-03-17  Jim Meyering  <meyering@lucent.com>
94439
94440         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
94441         now that the version in autoconf is equivalent.
94442         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
94443
94444         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
94445         Suggestion from Akim Demaille.
94446
94447         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
94448         (jm_PREREQ_TEMPNAME): New function.
94449
94450 2001-03-16  Paul Eggert  <eggert@twinsun.com>
94451
94452         * lib/tempname.c (uint64_t): Define to uintmax_t if
94453         not defined, and if UINT64_MAX is not defined.
94454         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
94455         Reported by John David Anglin.
94456
94457 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
94458
94459         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
94460         resolve alias if codeset is empty.
94461         * lib/config.charset (BeOS): Use wildcard syntax.
94462
94463 2001-03-13  Jim Meyering  <meyering@lucent.com>
94464
94465         * lib/path-concat.c (path_concat)
94466         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
94467         concatenating e.g., `C:' and `foo'.
94468         From Bruno Haible.
94469
94470 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
94471
94472         * lib/localcharset.c (locale_charset): Don't use
94473         setlocale(LC_CTYPE,NULL). Don't return NULL.
94474         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
94475
94476 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
94477
94478         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
94479         support for DOS/DJGPP.
94480
94481 2001-03-01  Paul Eggert  <eggert@twinsun.com>
94482
94483         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
94484         lacks mkstemp.  Compile our own tempname.c if we compile our own
94485         mkstemp.c, as mkstemp relies on tempname.
94486
94487 2001-03-01  Jim Meyering  <meyering@lucent.com>
94488
94489         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
94490         AH_VERBATIM really does output its argument verbatim.
94491
94492 2001-02-28  Paul Eggert  <eggert@twinsun.com>
94493
94494         * lib/Makefile.am (libfetish_a_SOURCES):
94495         Add dup-safer.c, fopen-safer.c.
94496         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
94497
94498         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
94499         * lib/unistd-safer.h: New files.
94500
94501 2001-02-25  Paul Eggert  <eggert@twinsun.com>
94502
94503         The mkstemp replacement is taken from glibc 2.2.2, with some
94504         portability fixes for use outside glibc, as follows:
94505
94506         * lib/tempname.c (struct_stat64): New macro.
94507         (direxists, __gen_tempname): Use it.
94508         This avoids a portability problem with Solaris 8.
94509
94510         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
94511         (<stddef.h>, <stdint.h>, <string.h>):
94512         Include only if STDC_HEADERS || _LIBC.
94513         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
94514         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
94515         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
94516         (__set_errno): Define this macro if <errno.h> doesn't.
94517         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
94518         Define these macros if <stdio.h> doesn't.
94519         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
94520         Define these macros if <sys/stat.h>
94521         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
94522         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
94523         __xstat64): Define if not _LIBC.
94524         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
94525         (__gen_tempname): Invoke gettimeofday only if
94526         HAVE_GETTIMEOFDAY || _LIBC;
94527         otherwise, fall back on plain "time".
94528         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
94529
94530         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
94531
94532         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
94533
94534 2001-02-18  Paul Eggert  <eggert@twinsun.com>
94535
94536         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
94537
94538 2001-02-17  Paul Eggert  <eggert@twinsun.com>
94539
94540         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
94541         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
94542         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
94543         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94544
94545 2001-02-17  Paul Eggert  <eggert@twinsun.com>
94546
94547         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
94548         Remove workaround macros for hosts that have mbrtowc but not
94549         mbstate_t, as we now insist on proper declarations for both
94550         before using mbrtowc.
94551
94552 2001-02-17  Jim Meyering  <meyering@lucent.com>
94553
94554         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
94555         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
94556         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
94557         UnixWare 7.1.1.
94558
94559         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
94560         rather than AC_CACHE_VAL.
94561
94562 2001-02-17  Jim Meyering  <meyering@lucent.com>
94563
94564         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
94565         around included file name.
94566
94567         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
94568
94569         * lib/strftime.c: Update from GNU libc (the only changes were to
94570         comments).
94571
94572 2001-02-17  Jim Meyering  <meyering@lucent.com>
94573
94574         * lib/regex.c: Update from libc.
94575
94576 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
94577
94578         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
94579         clash.
94580
94581 2001-02-16  Paul Eggert  <eggert@twinsun.com>
94582
94583         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
94584         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
94585         Reported by Mark Hounschell via Paul Eggert.
94586
94587 2001-02-07  Jim Meyering  <meyering@lucent.com>
94588
94589         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
94590
94591 2001-02-05  Jim Meyering  <meyering@lucent.com>
94592
94593         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
94594         it includes the patch required for `large file' support with at least
94595         HP-UX's 10.20 /bin/cc.
94596
94597 2001-02-03  Jim Meyering  <meyering@lucent.com>
94598
94599         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
94600         AS_IF, now that it works once again (mysteriously).
94601         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
94602
94603 2001-01-30  Jim Meyering  <meyering@lucent.com>
94604
94605         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
94606         * m4/chown.m4: Rename conftestchown to conftest.chown.
94607         * m4/rename.m4: s/conftestdir/conftest.d1/ and
94608         s/conftestdir2/conftest.d2/.
94609         * m4/utimes.m4: s/conftestdata/conftest.data/
94610         Inspired by Pavel Roskin's change in autoconf.
94611
94612 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
94613
94614         * lib/config.charset: Update for FreeBSD 4.2.
94615
94616 2001-01-27  Jim Meyering  <meyering@lucent.com>
94617
94618         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
94619         a use of AS_IF.
94620         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
94621
94622 2001-01-26  Jim Meyering  <meyering@lucent.com>
94623
94624         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
94625         quotearg.c includes it.
94626
94627 2001-01-26  Jim Meyering  <meyering@lucent.com>
94628
94629         * lib/quotearg.c: Include stddef.h.
94630         * lib/quote.c: Include stddef.h.
94631         Reported by Axel Kittenberger.
94632
94633         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
94634         line in double quotes so that it evokes a better diagnostic.
94635         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
94636         Reported by Axel Kittenberger.
94637
94638 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
94639
94640         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
94641         as if it was a `charset'.
94642
94643 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94644
94645         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
94646         has const.
94647
94648 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94649
94650         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
94651         to avoid a warning.  Add back 'const' to inptr.
94652
94653 2001-01-20  Jim Meyering  <meyering@lucent.com>
94654
94655         Be sure that headers are checked before used in code compiled
94656         for the type checks.
94657         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
94658         In place of that, invoke jm_CHECK_ALL_TYPES.
94659         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
94660         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
94661         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
94662         The check for ssize_t was mistakenly run before the test for unistd.h.
94663
94664         The configure-time check for stdbool.h was missing.
94665         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
94666         (jm_PREREQ_HASH): New function.
94667
94668 2001-01-17  Jim Meyering  <meyering@lucent.com>
94669
94670         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
94671         for autoconf-2.49c.
94672         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
94673
94674 2001-01-16  Jim Meyering  <meyering@lucent.com>
94675
94676         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
94677         From Bruno Haible.
94678
94679 2001-01-14  Jim Meyering  <meyering@lucent.com>
94680
94681         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
94682         foo and bar.  Create conftestdir/ in the script, not in the C code.
94683         Remove directories in the script, not in the C code.
94684         Remove conftestdir{,2} before trying to create the directory.
94685         Make the entire configure script fail if the mkdir fails.
94686
94687 2001-01-14  Jim Meyering  <meyering@lucent.com>
94688
94689         * lib/rename.c: New file.  From Volker Borchert.
94690         Include stdlib.h, string.h or strings.h, and xalloc.h.
94691         Use strip_trailing_slashes rather than open-coding it.
94692
94693 2001-01-03  Paul Eggert  <eggert@twinsun.com>
94694
94695         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
94696
94697 2001-01-03  Jim Meyering  <meyering@lucent.com>
94698
94699         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
94700         of local `inptr' to avoid warning with some system declarations of
94701         iconv.
94702
94703 2001-01-02  Volker Borchert  <bt@teknon.de>
94704
94705         * m4/rename.m4: New file.
94706         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
94707
94708 2001-01-01  Jim Meyering  <meyering@lucent.com>
94709
94710         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
94711         even on systems with utmpx.h.  It's necessary for the declaration of
94712         utmp's ut_user member.  Reported by Andreas Jaeger.
94713
94714         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
94715         available. They are required for the declarations of getgrgid and
94716         getpwuid resp.
94717         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
94718         Reported by Andreas Jaeger.
94719
94720 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
94721
94722         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
94723         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
94724         so `make install' also works in VPATH builds.
94725
94726 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
94727
94728         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
94729         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
94730         can be used in subdirectories.
94731
94732 2000-12-29  Paul Eggert  <eggert@twinsun.com>
94733
94734         * lib/modechange.c: Do not assume that mode_t uses the
94735         traditional octal encoding.  E.g. "chmod 1 FOO" should set
94736         the other-execute bit of FOO even if S_IXOTH != 1.
94737
94738         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
94739         WOTH, XOTH, ALLM): New macros.
94740         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
94741          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
94742         Use them.
94743         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
94744         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
94745         (mode_compile):
94746         No need to use uintmax_t; unsigned long is long enough.
94747         Don't bother to get suffix since we don't use it.
94748
94749 2000-12-26  Jim Meyering  <meyering@lucent.com>
94750
94751         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
94752         better with autoheader.
94753
94754 2000-12-24  Jim Meyering  <meyering@lucent.com>
94755
94756         * lib/hash.c (is_prime): Return explicit boolean values.
94757         (hash_get_first): Return NULL to appease Irix5.6's 89.
94758         Reported by Nelson Beebe.
94759
94760 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
94761
94762         * lib/localcharset.c (locale_charset): Add support for Win32.
94763
94764 2000-12-18  Paul Eggert  <eggert@twinsun.com>
94765
94766         * lib/physmem.h, lib/physmem.c: New files.
94767
94768         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
94769         (noinst_HEADERS): Add physmem.h.
94770
94771         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
94772         't' for compatibility with Solaris 8 sort.
94773
94774 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
94775
94776         * lib/config.charset: Add support for BeOS.
94777
94778 2000-12-17  Jim Meyering  <meyering@lucent.com>
94779
94780         * m4/dos.m4 (jm_AC_DOS): New file and macro.
94781         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
94782
94783 2000-12-16  Jim Meyering  <meyering@lucent.com>
94784
94785         This bug had a serious impact on chown: `chown N:M FILE' (for integer
94786         N and M) would have treated it like `chown N:N FILE'.
94787
94788         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
94789
94790 2000-12-16  Jim Meyering  <meyering@lucent.com>
94791
94792         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
94793         SHELLS_FILE to a file name that's useful on djgpp systems.
94794         Include stdlib.h.
94795         (ADDITIONAL_DEFAULT_SHELLS): Define.
94796         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
94797         Based mostly on a patch from Prashant TR.
94798
94799 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
94800
94801         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
94802         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
94803         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
94804
94805 2000-12-08  Andreas Schwab  <schwab@suse.de>
94806
94807         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
94808         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
94809
94810 2000-12-07  Jim Meyering  <meyering@lucent.com>
94811
94812         * lib/stripslash.c (ISSLASH): Define.
94813         (strip_trailing_slashes): Use ISSLASH rather than comparing against
94814         `/'.
94815         From Prashant TR.
94816
94817         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
94818         (dir_name_r): Declare this function as static.
94819         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
94820         manifest itself on a name containing a mix of slashes and
94821         backslashes.
94822         Make this function work with names starting with a DOS-style
94823         drive letter and colon prefix.
94824         (dir_name): Append `.' if necessary.
94825         Based mostly on patches from Prashant TR and Eli Zaretskii.
94826
94827         * lib/dirname.h (dir_name_r): Remove prototype.
94828
94829 2000-12-06  Paul Eggert  <eggert@twinsun.com>
94830
94831         * m4/off_t-format.m4: Remove this file.
94832         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
94833
94834 2000-12-06  Jim Meyering  <meyering@lucent.com>
94835
94836         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
94837         replacement strtoull, we may well need the replacement strtoul, too.
94838         Check for declarations of strtoul and strtoull.
94839         Check for strtol.  Mainly as a cue to cause automake to include
94840         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
94841         Check for limits.h -- strtol.c needs it.
94842
94843 2000-12-05  Jim Meyering  <meyering@lucent.com>
94844
94845         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
94846
94847 2000-12-04  Jim Meyering  <meyering@lucent.com>
94848
94849         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
94850         Also include memory.h, stdlib.h, unistd.h if appropriate.
94851         Reported by Andreas Jaeger (conflicting declaration of malloc).
94852
94853 2000-12-02  Jim Meyering  <meyering@lucent.com>
94854
94855         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
94856         * m4/jm-macros.m4 (jm_MACROS): require it.
94857
94858 2000-12-02  Jim Meyering  <meyering@lucent.com>
94859
94860         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
94861
94862 2000-12-01  Paul Eggert  <eggert@twinsun.com>
94863
94864         * lib/memrchr.c: Include <config.h> before any system include file.
94865
94866 2000-11-30  Jim Meyering  <meyering@lucent.com>
94867
94868         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
94869
94870 2000-11-30  Jim Meyering  <meyering@lucent.com>
94871
94872         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
94873
94874 2000-11-29  Paul Eggert  <eggert@twinsun.com>
94875
94876         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
94877
94878 2000-11-26  Jim Meyering  <meyering@lucent.com>
94879
94880         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
94881
94882 2000-11-22  Paul Eggert  <eggert@twinsun.com>
94883
94884         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
94885         size of (size_t) -1; it's not portable.
94886
94887 2000-11-17  Jim Meyering  <meyering@lucent.com>
94888
94889         * lib/strstr.c: Update from GNU libc.
94890
94891 2000-11-17  Akim Demaille  <akim@epita.fr>
94892
94893         * lib/obstack.h: Formatting changes.
94894         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
94895         prevent type checking.
94896         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
94897         cast the value to (void *): assigning a `foo *' to a `void *'
94898         variable is valid.
94899         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
94900
94901 2000-11-16  Jim Meyering  <meyering@lucent.com>
94902
94903         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
94904
94905 2000-11-11  Jim Meyering  <meyering@lucent.com>
94906
94907         * lib/error.c: Add a couple #includes, merging from GNU libc version.
94908
94909 2000-11-10  Jim Meyering  <meyering@lucent.com>
94910
94911         * lib/obstack.h: Update from GNU libc.
94912         * lib/obstack.c: Likewise.
94913
94914 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
94915
94916         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
94917
94918 2000-11-06  Paul Eggert  <eggert@twinsun.com>
94919
94920         * lib/getusershell.c (setusershell): Use rewind rather than
94921         fseek/fseeko, to avoid configuration hassles with fseeko.
94922         Don't bother opening SHELLS_FILE if shellstream is NULL;
94923         it's not necessary.
94924
94925 2000-11-05  Jim Meyering  <meyering@lucent.com>
94926
94927         * lib/makepath.h (make_dir): Declare.
94928         * lib/makepath.c (make_dir): Remove `static' attribute.
94929         Tweak a comment.
94930
94931 2000-11-04  Jim Meyering  <meyering@lucent.com>
94932
94933         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
94934
94935 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
94936
94937         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
94938         last one in a bucket, advance to the next bucket.
94939
94940 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
94941
94942         * lib/fnmatch.c: Do not comment out all the code if we are using
94943         the GNU C library, because in some cases we are replacing buggy
94944         code in the GNU C library itself.
94945
94946 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
94947
94948         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
94949         (regex_compile): Catch bogus \(\1\).
94950
94951 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94952
94953         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
94954         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
94955         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
94956
94957 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94958
94959         * lib/error.h, getline.h, modechange.h:
94960         Remove "2000" from Copyright line, as the file hasn't been
94961         changed this year other than in the copyright notice.
94962
94963         * lib/xalloc.h: Add "2000" to Copyright line, as this file
94964         was changed this year.
94965
94966 2000-10-29  Jim Meyering  <meyering@lucent.com>
94967
94968         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
94969         renaming.
94970         * m4/ls-mntd-fs.m4: Likewise
94971
94972 2000-10-29  Jim Meyering  <meyering@lucent.com>
94973
94974         * lib/xstat.in: Fix grammar in comment.
94975
94976 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
94977
94978         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
94979         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
94980         doesn't define __restrict_arr.
94981
94982 2000-10-28  Jim Meyering  <meyering@lucent.com>
94983
94984         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
94985         (jm_PREREQ_MEMCHR): New function.
94986
94987 2000-10-28  Jim Meyering  <meyering@lucent.com>
94988
94989         * lib/memchr.c: Update from libc.
94990         Adjust for portability:
94991         [HAVE_STDLIB_H]: Include stdlib.h.
94992         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
94993         Undef __memchr, too.
94994         [!weak_alias]: Define __memchr to memchr.
94995
94996         * lib/regex.c: Update from libc.
94997         * lib/regex.h: Likewise.
94998         * lib/getopt1.c: Likewise.
94999         * lib/memcmp.c: Likewise.
95000
95001         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
95002         Avoid using fseek, when possible -- it's broken by design.
95003         Patch by Ulrich Drepper.
95004
95005 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
95006
95007         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
95008         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
95009         Giving in to popular pressure to shut up the compiler with casts.
95010
95011 2000-10-26  Jim Meyering  <meyering@lucent.com>
95012
95013         * lib/strftime.c: Update from libc.
95014
95015 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
95016
95017         * regex.c: More `unsigned char' -> `re_char' changes.
95018         Also change several `int' into `re_wchar_t'.
95019         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
95020         (PUSH_FAILURE_POINTER): Don't cast any more.
95021         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
95022         We want GCC to complain, since this piece of code makes
95023         re_match non-reentrant, which *should* be fixed.
95024         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
95025         (EXTEND_BUFFER): Use RETALLOC.
95026         (SET_LIST_BIT): Don't cast.
95027         (re_wchar_t): New type.
95028         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
95029         that those two functions will always properly return.
95030         (IMMEDIATE_QUIT_CHECK): Cast to void.
95031         (analyse_first): Use recursion rather than an explicit stack.
95032         (re_compile_fastmap): Can't fail anymore.
95033         (re_search_2): Don't check re_compile_fastmap for failure.
95034         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
95035         Now also sets the new value (passed in a new argument).
95036         (re_match_2_internal): Use it.
95037         Also, use a new var `reg' of type size_t when looping through regs
95038         rather than reuse the inappropriate `mcnt'.
95039
95040 2000-10-25  Jim Meyering  <meyering@lucent.com>
95041
95042         * lib/obstack.c: Update from libc.
95043
95044 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
95045
95046         * regex.c (regex_compile): Change the way of handling a range from
95047         a char less than 256 to a char not less than 256.
95048
95049 2000-10-24  Andrew Innes  <andrewi@gnu.org>
95050
95051         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
95052         NT-Emacs only.
95053         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
95054         so that re_search functions only quit when callers expect them to.
95055
95056 2000-10-23  Jim Meyering  <meyering@lucent.com>
95057
95058         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
95059         wrong.  That set_locale call must not have any side effects.
95060         From Paul Eggert.
95061
95062 2000-10-22  Jim Meyering  <meyering@lucent.com>
95063
95064         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
95065         [CYCLIC]: Remove now-unused definition.
95066
95067         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
95068         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
95069         Suggestion from Ulrich Drepper.
95070
95071 2000-10-21  Jim Meyering  <meyering@lucent.com>
95072
95073         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
95074         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
95075         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
95076
95077 2000-10-21  Jim Meyering  <meyering@lucent.com>
95078
95079         * lib/dirname.c (memrchr): Declare if necessary.
95080         (dir_name): Remove the restriction that there be no
95081         trailing slashes.  Now, this code skips past them, effectively
95082         ignoring them.
95083         [TEST_DIRNAME] (main): New unit tests.
95084
95085         * lib/memrchr.c: New file from GNU libc.
95086         Undef __memrchr, too.
95087         [!weak_alias]: Define __memrchr to memrchr.
95088         Guard weak_alias use with `#ifdef weak_alias'.
95089
95090 2000-10-21  Jim Meyering  <meyering@lucent.com>
95091
95092         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
95093         (dir_name): Use dir_name_r.
95094         * lib/dirname.h (dir_name_r): Declare it.
95095
95096 2000-10-17  Jim Meyering  <meyering@lucent.com>
95097
95098         * lib/quote.h (PARAMS): Define and use.
95099         Reported by Akim Demaille.
95100
95101         * lib/getopt.c: Update from libc.
95102
95103 2000-10-16  Jim Meyering  <meyering@lucent.com>
95104
95105         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
95106         setlocale.
95107         From Jan Fedak.
95108
95109 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
95110
95111         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
95112
95113 2000-09-25  Jim Meyering  <meyering@lucent.com>
95114
95115         * lib/md5.h (rol): Define (from GnuPG).
95116
95117         * lib/sha.c: Give credit (GnuPG) where due.
95118         (M): Use rol rather than open-coding it.
95119         Add a FIXME comment.
95120
95121 2000-09-21  Jim Meyering  <meyering@lucent.com>
95122
95123         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
95124         Reported by Michael Stone.
95125
95126 2000-09-20  Jim Meyering  <meyering@lucent.com>
95127
95128         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
95129         (noinst_HEADERS): Add sha.h.
95130         Based on code from Scott G. Miller and from GnuPG.
95131
95132 2000-09-18  Jim Meyering  <meyering@lucent.com>
95133
95134         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
95135         LIBS. Otherwise, everyone ends up linking with -lelf for some
95136         configurations.
95137         Reported by Mike Stone.
95138
95139 2000-09-15  Jim Meyering  <meyering@lucent.com>
95140
95141         * lib/regex.c: Update from libc.
95142
95143 2000-09-10  Jim Meyering  <meyering@lucent.com>
95144
95145         * lib/getopt.c (_getopt_internal): Update from glibc.
95146
95147 2000-09-09  Jim Meyering  <meyering@lucent.com>
95148
95149         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
95150         think it should be used as a general replacement for isascii.
95151         * lib/fnmatch.c: Likewise.
95152         * lib/mbswidth.c: Likewise
95153         * lib/regex.c: Likewise.
95154
95155         Don't use atoi.
95156         * lib/userspec.c: Include sys/param.h and limits.h.
95157         Include xstrtol.h.
95158         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
95159         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
95160         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
95161         UID, GID.  Check range.
95162
95163 2000-09-06  Jim Meyering  <meyering@lucent.com>
95164
95165         * lib/getopt.c (_getopt_internal): Update from glibc.
95166
95167 2000-08-30  Jim Meyering  <meyering@lucent.com>
95168
95169         * lib/strftime.c: Merge in changes from GNU libc.
95170
95171 2000-08-26  Jim Meyering  <meyering@lucent.com>
95172
95173         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
95174         * m4/fpending.m4: New file.
95175
95176 2000-08-26  Jim Meyering  <meyering@lucent.com>
95177
95178         * lib/closeout.c: Include "__fpending.h".
95179         (close_stdout_status): Return right away if there's nothing to flush.
95180
95181         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
95182         * lib/__fpending.c: New file.
95183         * lib/__fpending.h: New file.
95184
95185 2000-08-20  Jim Meyering  <meyering@lucent.com>
95186
95187         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
95188         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
95189         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
95190
95191 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
95192
95193         Improve fileutils installation on systems where running
95194         programs (like install) can't be unlinked.
95195         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
95196         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
95197
95198 2000-08-07  Paul Eggert  <eggert@twinsun.com>
95199
95200         Standardize on "memory exhausted" instead of "Memory exhausted"
95201         or "virtual memory exhausted".
95202         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
95203         "virtual memory exhausted".
95204         * lib/same.c (same_name): Invoke xalloc_die instead of printing
95205         our own message.
95206         * lib/userspec.c (parse_user_spec): Likewise.
95207         * lib/bumpalloc.h: comment fix
95208         * lib/same.c, userspec.c: Include xalloc.h.
95209
95210         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
95211         not char *const and pointing to a constant array.
95212         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
95213         (xrealloc): Comment fix.
95214
95215         * lib/userspec.c (parse_user_spec):
95216         Don't translate a message until just before returning,
95217         to avoid unnecessary translation.
95218
95219 2000-08-07  Jim Meyering  <meyering@lucent.com>
95220
95221         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
95222         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
95223         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
95224         getgroups.c, gethostname.c, getopt.h, group-member.c,
95225         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
95226         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
95227         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
95228         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
95229         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
95230         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
95231         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
95232         yesno.c: Back out Copyright date changes for each file with no change
95233         this year.  This eases coordination with other programs using the same
95234         source code modules.  From Paul Eggert.
95235
95236 2000-08-06  Paul Eggert  <eggert@twinsun.com>
95237
95238         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
95239         not char, for compatibility with glibc 2.1.3 strftime.c.
95240
95241 2000-08-03  Greg McGary  <greg@mcgary.org>
95242
95243         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
95244         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
95245         (EXTEND_BUFFER): Use them.
95246
95247 2000-08-01  Jim Meyering  <meyering@lucent.com>
95248
95249         * lib/dirname.c (ISSLASH): Define.
95250         (BACKSLASH_IS_PATH_SEPARATOR): Define.
95251         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
95252         both `\' and `/' may be use as path separators.
95253         Based on a patch from Prashant TR.
95254
95255 2000-07-31  Paul Eggert  <eggert@twinsun.com>
95256
95257         * lib/quotearg.c (quotearg_n_options): Don't make the initial
95258         slot vector a constant, since it might get modified.
95259
95260 2000-07-31  Jim Meyering  <meyering@lucent.com>
95261
95262         * lib/xmalloc.c: Use `virtual memory exhausted', not
95263         `Memory exhausted'.
95264         * lib/obstack.c (print_and_abort): Likewise.
95265
95266 2000-07-30  Paul Eggert  <eggert@twinsun.com>
95267
95268         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
95269         buffer, so that the caller can always quote one small
95270         component of a "memory exhausted" message in slot 0.
95271         From a suggestion by Jim Meyering.
95272
95273 2000-07-30  Jim Meyering  <meyering@lucent.com>
95274
95275         * lib/makepath.c (make_path): Quote the other instance, too.
95276
95277         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
95278         (STATIC_BUF_SIZE): Define.
95279         (quotearg_n_options): Use only statically allocated storage when
95280         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
95281         than STATIC_BUF_SIZE.
95282
95283 2000-07-29  Jim Meyering  <meyering@lucent.com>
95284
95285         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
95286         * lib/dirname.c (dir_name): Likewise.
95287
95288         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
95289         `/'.
95290
95291         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
95292         (dir_name): Assert that there are no trailing slashes.
95293
95294 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
95295
95296         * lib/mbswidth.h (mbswidth): Add a flags argument.
95297         (mbswidth): New declaration.
95298         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
95299         * lib/mbswidth.c (mbswidth): Add a flags argument.
95300         (mbsnwidth): New function.
95301
95302 2000-07-24  Jim Meyering  <meyering@lucent.com>
95303
95304         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
95305
95306 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95307
95308         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
95309
95310 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95311
95312         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
95313         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
95314         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
95315         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
95316         invoke multibyte primitives.
95317
95318 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95319
95320         * lib/quotearg.c:
95321         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
95322         so that mbstate_t is always defined.
95323
95324         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
95325         be 1 in at least one GCC installation, and this configuration
95326         error is likely to be common.  Ignoring MB_LEN_MAX hurts
95327         performance on hosts that have mbrtowc but have only unibyte
95328         locales, but I assume these hosts are rare.
95329
95330 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95331
95332         * lib/mbswidth.c (_XOPEN_SOURCE):
95333         Don't define; this causes problems on Solaris 7.
95334         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
95335
95336 2000-07-23  Jim Meyering  <meyering@lucent.com>
95337
95338         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
95339         too: getgrgid, getpwuid, getuid.
95340
95341 2000-07-23  Jim Meyering  <meyering@lucent.com>
95342
95343         * lib/basename.c (base_name): Add an assertion.
95344
95345 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
95346
95347         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
95348         shadow its mbsinit function.
95349
95350 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
95351
95352         * lib/mbswidth.h: New file.
95353         * lib/mbswidth.c: New file.
95354         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
95355         (noinst_HEADERS): Add mbswidth.h.
95356
95357 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
95358
95359         * lib/config.charset: Add support for FreeBSD. Improve support for
95360         HP-UX and IRIX 6.
95361
95362 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
95363
95364         * m4/mbswidth.m4: New file.
95365         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
95366
95367 2000-07-15  Jim Meyering  <meyering@lucent.com>
95368
95369         * lib/makepath.c: Include quote.h.
95370         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
95371         corresponding argument in a `quote (...)' call.
95372         Give better diagnostics.
95373
95374         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
95375         (noinst_HEADERS): Add quote.h.
95376
95377         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
95378         from tar's src/misc.c.
95379         * lib/quote.h: New file.  Prototypes for same.
95380
95381 2000-07-14  Paul Eggert  <eggert@twinsun.com>
95382
95383         From a suggestion by Bruno Haible.
95384         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
95385         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
95386         to decide whether to define the BeOS workaround macro;
95387         this adjusts to the change to AC_MBSTATE_T.
95388
95389 2000-07-14  Jim Meyering  <meyering@lucent.com>
95390
95391         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
95392         jm_AC_TYPE_UINTMAX_T.
95393
95394 2000-07-13  Paul Eggert  <eggert@twinsun.com>
95395
95396         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
95397
95398         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
95399         quotearg_buffer_restyled): Add support for
95400         clocale_quoting_style.  Undo previous change to
95401         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
95402         and "{RIGHT QUOTATION MARK}" msgids.
95403
95404 2000-07-10  Paul Eggert  <eggert@twinsun.com>
95405
95406         From a suggestion by Bruno Haible.
95407         * m4/mbstate_t.m4 (AC_MBSTATE_T):
95408         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
95409         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
95410         and mbstate_t, to a single-part test that simply defines mbstate_t.
95411         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
95412         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
95413
95414 2000-07-10  Jim Meyering  <meyering@lucent.com>
95415
95416         * m4/strerror_r.m4: Mirror the correction made in autoconf.
95417
95418         * m4/gnu-source.m4: Output to confdefs.h directly.
95419         Suggestion from Akim Demaille.
95420
95421 2000-07-09  Paul Eggert  <eggert@twinsun.com>
95422
95423         The old behavior of quoting `like this' doesn't look good with
95424         newer, ISO-style fonts.  See:
95425         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
95426
95427         Instead, quote "like this" by default.  Let the translator
95428         tailor the locale-specific quoting behavior by providing
95429         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
95430
95431         * lib/quotearg.c (N_): New macro.
95432         (gettext_default): New function.
95433         (quotearg_buffer_restyled): Use
95434         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
95435         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
95436
95437 2000-07-09  Jim Meyering  <meyering@lucent.com>
95438
95439         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
95440         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
95441
95442         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
95443         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
95444
95445 2000-07-09  Jim Meyering  <meyering@lucent.com>
95446
95447         * lib/Most files: Update copyright dates to include 2000.
95448
95449 2000-07-08  Jim Meyering  <meyering@lucent.com>
95450
95451         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
95452         if not defined.
95453         (xgethostname): Remove now-unnecessary #ifdef.
95454         Move declaration of `err' into loop where it's used.
95455
95456 2000-07-05  Paul Eggert  <eggert@twinsun.com>
95457         and Bruno Haible  <haible@clisp.cons.org>
95458
95459         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
95460         only if the test for an object-type mbstate_t fails.  This
95461         prevents us from mistakenly reporting that mbstate_t is a
95462         system object type after we "#define mbstate_t int" to work
95463         around its lack.
95464
95465 2000-07-05  Paul Eggert  <eggert@twinsun.com>
95466         and Bruno Haible  <haible@clisp.cons.org>
95467
95468         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
95469
95470 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95471
95472         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
95473         to strerror_r.
95474         Include <ctype.h> for use of isalpha.
95475
95476 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95477
95478         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
95479         by allocating a larger buffer. Test the gethostname return value for
95480         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
95481         returns an error and ENAMETOOLONG isn't defined.
95482
95483 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95484
95485         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
95486         dimension.
95487
95488 2000-07-04  Jim Meyering  <meyering@lucent.com>
95489
95490         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
95491         of the deprecated AC_CHECKING.
95492
95493 2000-07-04  Jim Meyering  <meyering@lucent.com>
95494
95495         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
95496         Reported by Bruno Haible.
95497
95498 2000-07-04  Jim Meyering  <meyering@lucent.com>
95499
95500         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
95501         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
95502         lacks mbrtowc.
95503
95504 2000-07-03  Paul Eggert  <eggert@twinsun.com>
95505
95506         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
95507         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
95508
95509 2000-07-03  Paul Eggert  <eggert@twinsun.com>
95510         and Bruno Haible  <haible@clisp.cons.org>
95511
95512         * lib/quotearg.c (mbrtowc):
95513         Assign to *pwc, and return 1 only if result is nonzero.
95514         (iswprint): Use ISPRINT when substituting our own mbrtowc.
95515
95516 2000-07-03  Jim Meyering  <meyering@lucent.com>
95517
95518         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
95519
95520 2000-07-03  Jim Meyering  <meyering@lucent.com>
95521
95522         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
95523         This is necessary to get a definition of e.g., UTMP_FILE on
95524         HP-UX 10.20.
95525         From Bob Proulx.
95526
95527 2000-07-02  Jim Meyering  <meyering@lucent.com>
95528
95529         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
95530
95531         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
95532         AC_LIBOBJ(function_name).
95533         * m4/chown.m4: Likewise.
95534         * m4/fnmatch.m4: Likewise.
95535         * m4/ftruncate.m4: Likewise.
95536         * m4/getgroups.m4: Likewise.
95537         * m4/getline.m4: Likewise.
95538         * m4/group-member.m4: Likewise.
95539         * m4/jm-macros.m4: Likewise.
95540         * m4/lstat.m4: Likewise.
95541         * m4/malloc.m4: Likewise.
95542         * m4/memcmp.m4: Likewise.
95543         * m4/nanosleep.m4: Likewise.
95544         * m4/putenv.m4: Likewise.
95545         * m4/realloc.m4: Likewise.
95546         * m4/regex.m4: Likewise.
95547         * m4/stat.m4: Likewise.
95548         * m4/strftime.m4: Likewise.
95549
95550 2000-07-02  Jim Meyering  <meyering@lucent.com>
95551
95552         * lib/quotearg.c (mbstate_t): Don't define here.
95553
95554 2000-07-02  Jim Meyering  <meyering@lucent.com>
95555
95556         * lib/nanosleep.c (SIGCONT): Define if not already defined.
95557
95558 2000-07-01  Jim Meyering  <meyering@lucent.com>
95559
95560         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
95561
95562 2000-07-01  Jim Meyering  <meyering@lucent.com>
95563
95564         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
95565         problem.
95566
95567 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
95568
95569         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
95570         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
95571
95572 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
95573
95574         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
95575         per change in ../m4/ls-mntd-fs.m4.
95576         (read_filesystem_list): Ignore symbolic links.
95577
95578 2000-06-29  Jim Meyering  <meyering@lucent.com>
95579
95580         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
95581         for declaration of strcmp.
95582
95583         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
95584
95585         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
95586         Avoid warning by casting result to `char *' to remove `const'.
95587
95588 2000-06-28  Jim Meyering  <meyering@lucent.com>
95589
95590         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
95591         included by quotearg.c, for which we perform this test.  From
95592         Bruno Haible.
95593
95594 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
95595
95596         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
95597         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
95598         <utmpx.h> exists, put readutmp.o into LIBOBJS.
95599
95600 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
95601
95602         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
95603
95604 2000-06-26  Paul Eggert  <eggert@twinsun.com>
95605
95606         savedir now sets errno on failure and invokes xmalloc to get memory.
95607         Fix a couple of other minor bugs while we're at it.
95608
95609         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
95610         (NAMLEN): Remove macro.
95611         (malloc, realloc): Remove decls.
95612         (stpcpy): Likewise.
95613         ("xalloc.h"): Include.
95614         (NAME_SIZE_DEFAULT): New macro.
95615         (savedir): Use xmalloc / xrealloc to allocate memory.
95616         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
95617         Skip "" directory entries.
95618         Use strlen to calculate directory entry length, since the old method
95619         is rarely used these days and isn't worth supporting.
95620         Don't use a pointer after freeing it.
95621         Check for integer overflow when calculating allocation size.
95622         Use memcpy to copy entries, instead of stpcpy.
95623         Set errno properly when returning NULL.
95624         Check for readdir error.
95625
95626 2000-06-26  Jim Meyering  <meyering@lucent.com>
95627
95628         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
95629
95630 2000-06-25  Jim Meyering  <meyering@lucent.com>
95631
95632         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
95633         Linux header bug when _XOPEN_SOURCE is defined to 500.
95634
95635 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95636
95637         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
95638         deficiency.
95639
95640 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95641
95642         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
95643         Include xalloc.h.
95644         Don't include <stdlib.h>.  Don't declare malloc, realloc.
95645
95646 2000-06-24  Jim Meyering  <meyering@lucent.com>
95647
95648         * m4/strerror_r.m4: Revive this file -- to try out an experimental
95649         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
95650         for which strerror does return char*, but which lacks a conveniently
95651         accessible declaration of the function.  If the compile-test says
95652         strerror_r doesn't work, then resort to a `run'-test that works on
95653         BeOS and segfaults on DEC Unix.
95654
95655 2000-06-24  Jim Meyering  <meyering@lucent.com>
95656
95657         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
95658
95659 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95660
95661         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
95662         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
95663
95664 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95665
95666         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
95667         (mbrtowc, mbstate_t): Define substitutes if
95668         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
95669         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
95670         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
95671
95672 2000-06-23  Jim Meyering  <meyering@lucent.com>
95673
95674         * m4/afs.m4: Add missing AC_MSG_RESULT.
95675         Reported by Bruno Haible.
95676
95677         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
95678         Suggestion from Bruno Haible.
95679
95680 2000-06-23  Jim Meyering  <meyering@lucent.com>
95681
95682         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
95683
95684 2000-06-21  Jim Meyering  <meyering@lucent.com>
95685
95686         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
95687
95688 2000-06-21  Jim Meyering  <meyering@lucent.com>
95689
95690         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
95691         (noinst_HEADERS): Add getstr.h.
95692
95693         * lib/getline.c (getstr): Move into a separate file.
95694         * lib/getstr.c (getstr): New file, extracted from getline.c, with
95695         the following changes: new parameter, delim2; both delim[12]
95696         parameters have type `int', not `char'.  The latter would lose
95697         with 8-bit delimiters.
95698         * lib/getstr.h: New file.
95699
95700 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95701
95702         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
95703         than 1024, return a memory chunk of least possible size, instead
95704         of size PATH_MAX + 2. In the loop, increment the size proportionally.
95705         Use free/xmalloc instead of xrealloc to avoid copying for very long
95706         paths.
95707
95708 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95709
95710         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
95711         the empty string.
95712
95713 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95714
95715         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
95716         address, not strdup.  Include <stdlib.h> and don't declare free().
95717
95718 2000-06-19  Jim Meyering  <meyering@lucent.com>
95719
95720         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
95721
95722 2000-06-18  Jim Meyering  <meyering@lucent.com>
95723
95724         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
95725
95726         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
95727         `checking whether...' message to be consistent with that of the
95728         lstat test.
95729
95730 2000-06-18  Jim Meyering  <meyering@lucent.com>
95731
95732         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
95733         Besides, these days every porting target provides a mkdir function.
95734
95735         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
95736         needed. (this snippet comes from src/system.h).
95737
95738 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
95739
95740         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
95741
95742 2000-06-15  Paul Eggert  <eggert@twinsun.com>
95743
95744         * lib/human.c (adjust_value): New function.
95745         (human_readable_inexact): Apply rounding style even when
95746         printing approximate values.
95747
95748 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95749
95750         * lib/human.c (human_readable_inexact): Allow an input block
95751         size that is not a multiple of the output block size, and vice versa.
95752         Reported by Piergiorgio Sartor.
95753
95754 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95755
95756         * lib/getdate.y (get_date): Apply relative times after time
95757         zone indicator, not before.  Reported by Todd A. Jacobs.
95758
95759 2000-06-13  Jim Meyering  <meyering@lucent.com>
95760
95761         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
95762
95763         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
95764
95765 2000-06-12  Paul Eggert  <eggert@twinsun.com>
95766
95767         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
95768
95769 2000-06-12  Jim Meyering  <meyering@lucent.com>
95770
95771         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
95772         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
95773         optional argument.
95774         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
95775         the optional argument, `lib'.
95776
95777 2000-06-08  Jim Meyering  <meyering@lucent.com>
95778
95779         * m4/largefile.m4: Remove file (now that it's part of autoconf).
95780
95781 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95782
95783         Rewrite largefile configuration so that we don't need to run
95784         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
95785         AC_CANONICAL_HOST in configure.in -- jmm]
95786
95787         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
95788         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
95789         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
95790         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
95791         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
95792         All uses changed.
95793         Instead of inspecting the output of getconf, try to compile the
95794         test program without and with the macro definition.
95795         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
95796         for getconf.  Instead, check for the needed flags by compiling
95797         test programs.
95798
95799 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95800
95801         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
95802
95803 2000-06-04  Jim Meyering  <meyering@lucent.com>
95804
95805         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
95806         SunOS 4.1.4 for which gid_t is an unsigned type.
95807
95808 2000-06-03  Jim Meyering  <meyering@lucent.com>
95809
95810         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
95811         now that autoconf requires that.
95812
95813         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
95814         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
95815         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
95816
95817 2000-06-03  Jim Meyering  <meyering@lucent.com>
95818
95819         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
95820
95821 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95822
95823         * m4/glibc21.m4: New file.
95824         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
95825
95826 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95827
95828         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
95829         newer, don't install charset.alias.
95830         * lib/config.charset: Change the Linux/glibc rules so they become empty
95831         on glibc-2.1 or newer.
95832
95833 2000-06-02  Jim Meyering  <meyering@lucent.com>
95834
95835         * lib/mountlist.c: Back out last change.  Instead, do this...
95836         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
95837         me_dummy member using the same `ignore'-testing code.
95838         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
95839         fs_type strings.
95840         From Mark D. Roth.
95841
95842 2000-05-29  Jim Meyering  <meyering@lucent.com>
95843
95844         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
95845         mounts with the `ignore' attribute.  Based on a patch from
95846         Mark D. Roth.
95847
95848 2000-05-28  Jim Meyering  <meyering@lucent.com>
95849
95850         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
95851         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95852         * m4/stat.m4: Likewise.
95853         * m4/lstat.m4: Likewise.
95854         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
95855
95856         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
95857         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
95858
95859 2000-05-26  Jim Meyering  <meyering@lucent.com>
95860
95861         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
95862
95863 2000-05-24  Jim Meyering  <meyering@lucent.com>
95864
95865         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
95866         autoconf requires that.
95867         * m4/lib-check.m4: Likewise.
95868         * m4/jm-macros.m4: Likewise.
95869         * m4/strftime.m4: Likewise.
95870
95871         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
95872         AC_CHECK_DECLS, now that autoconf requires that.
95873
95874 2000-05-22  Jim Meyering  <meyering@lucent.com>
95875
95876         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95877         * m4/lstat.m4: Likewise.
95878
95879 2000-05-22  Jim Meyering  <meyering@lucent.com>
95880
95881         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
95882
95883 2000-05-20  Jim Meyering  <meyering@lucent.com>
95884
95885         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
95886         (jm_PREREQ): Use it.
95887
95888 2000-05-18  Jim Meyering  <meyering@lucent.com>
95889
95890         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
95891         back, too, since it may have been modified by allocate_entry.
95892         (hash_delete): Rewrite to use neither the assignment operator
95893         nor the comma operator in an if-expression.
95894
95895 2000-05-15  Paul Eggert  <eggert@twinsun.com>
95896
95897         * lib/closeout.c:
95898         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
95899         Remove; no longer needed.
95900         "quotearg.h": Add include.
95901         (file_name): Do not bother to explicitly initialize to NULL; it's less
95902         efficient on some hosts.
95903         (close_stdout_status): Remove test as to whether stdout was already
95904         closed; it breaks for the case "echo x | sort >&-".
95905         Quote file name colons.
95906         Do not assume that _("write error") lacks format strings.
95907
95908 2000-05-15  Jim Meyering  <meyering@lucent.com>
95909
95910         * lib/version-etc.c (version_etc_copyright): Update the copyright
95911         string used in all --version output.
95912
95913 2000-05-14  Jim Meyering  <meyering@lucent.com>
95914
95915         * lib/closeout.c (close_stdout_set_file_name): New function.
95916         (close_stdout_status): Use new file-scoped global.
95917         Return right away if fstat says the stdout file descriptor is invalid.
95918         * lib/closeout.h (close_stdout_set_file_name): Declare.
95919
95920 2000-05-10  Jim Meyering  <meyering@lucent.com>
95921
95922         * lib/closeout.c [default_exit_status]: New file-scoped variable.
95923         (close_stdout_set_status): New function.
95924         * lib/closeout.h (close_stdout_set_status): Declare.
95925
95926 2000-05-09  Jim Meyering  <meyering@lucent.com>
95927
95928         * m4/gettext.m4: Rename this...
95929         * m4/libintl.m4: ...to this.
95930
95931 2000-05-08  Jim Meyering  <meyering@lucent.com>
95932
95933         * lib/long-options.c: Don't include closeout.h.
95934         (parse_long_options): Don't call close_stdout for --version.
95935
95936 2000-05-06  Paul Eggert  <eggert@twinsun.com>
95937
95938         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
95939         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
95940         2.1.3 bug.  This avoids a clash when files like regex.c define
95941         _GNU_SOURCE.
95942
95943 2000-05-06  Jim Meyering  <meyering@lucent.com>
95944
95945         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
95946         (AC_REPLACE_FUNCS): Add strnlen.
95947
95948         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
95949         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
95950
95951         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
95952         AC_SEARCH_LIBS call for nanosleep.
95953         (LIB_NANOSLEEP): Set and AC_SUBST.
95954
95955 2000-05-06  Jim Meyering  <meyering@lucent.com>
95956
95957         * lib/strnlen.c: Undefine __strnlen and strnlen.
95958         [!weak_alias]: Define __strnlen to strnlen.
95959
95960         * lib/atexit.c: New file, from libiberty.
95961
95962 2000-05-06  Jim Meyering  <meyering@lucent.com>
95963
95964         * lib/closeout.c (close_stdout_status): Also check for errors on the
95965         stderr stream.
95966
95967 2000-05-05  Jim Meyering  <meyering@lucent.com>
95968
95969         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
95970         AC_SEARCH_LIBS call for clock_gettime.
95971         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
95972
95973         * m4/search-libs.m4: Update from autoconf.
95974
95975         su doesn't work on Solaris 2.6.
95976         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
95977         <shadow.h>.  Reported by Dragos Harabor.
95978
95979 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
95980
95981         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
95982         memcpy instead of xmalloc, xrealloc, path_concat.
95983         (locale_charset): Treat empty environment variables as absent.
95984         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
95985
95986 2000-05-04  Jim Meyering  <meyering@lucent.com>
95987
95988         * lib/getopt.c: Update from glibc.
95989         * lib/obstack.c: Likewise.
95990         * lib/obstack.h: Likewise.
95991         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
95992         file
95993
95994         * lib/regex.h: Likewise.
95995         * lib/strndup.c: Likewise.
95996         * lib/strnlen.c: New file, from glibc.
95997
95998 2000-05-03  Jim Meyering  <meyering@lucent.com>
95999
96000         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
96001
96002 2000-05-02  Paul Eggert  <eggert@twinsun.com>
96003
96004         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
96005         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
96006         compile-time test, rather than inspecting host and OS, to
96007         decide whether to define _LARGEFILE_SOURCE.
96008
96009 2000-05-01  Jim Meyering  <meyering@lucent.com>
96010
96011         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
96012
96013         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
96014         Based on a patch from Bruno Haible.
96015
96016 2000-05-01  Jim Meyering  <meyering@lucent.com>
96017
96018         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
96019
96020 2000-04-29  Jim Meyering  <meyering@lucent.com>
96021
96022         * lib/path-concat.c: Declare strdup only if it's not defined.
96023         * lib/canon-host.c: Likewise.
96024
96025 2000-04-28  Jim Meyering  <meyering@lucent.com>
96026
96027         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
96028         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
96029         is included first, then limits.h is included by locale.h by libintl.h.
96030         From John David Anglin.
96031
96032 2000-04-25  Jim Meyering  <meyering@lucent.com>
96033
96034         * lib/makepath.c (S_IRWXUGO): Define.
96035         (make_path): Always perform explicit chmod if MODE specifies any
96036         of the `special' permission bits.  Prompted by a bug report against
96037         install from Mate Wierdl and Joost van Baal.
96038
96039 2000-04-18  Jim Meyering  <meyering@lucent.com>
96040
96041         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
96042         (jm_PREREQ): Use it.
96043
96044 2000-04-18  Jim Meyering  <meyering@lucent.com>
96045
96046         * lib/README: New file.
96047
96048         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
96049         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
96050
96051 2000-04-17  Jim Meyering  <meyering@lucent.com>
96052
96053         Get it right :-)
96054         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
96055         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
96056         Suggestion from Akim Demaille.
96057
96058 2000-04-17  Jim Meyering  <meyering@lucent.com>
96059
96060         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
96061         the definition of it to rpl_strftime also defined-away the system's
96062         declaration.
96063
96064 2000-04-15  Jim Meyering  <meyering@lucent.com>
96065
96066         Use `C' to denote so-called `contiguous' files, the same way
96067         that tar does.
96068         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
96069         (ftypelet): Use S_ISCTG.
96070         From Michael Deutschmann.
96071
96072 2000-04-14  Jim Meyering  <meyering@lucent.com>
96073
96074         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
96075         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
96076         clobbered.
96077
96078 2000-04-14  Jim Meyering  <meyering@lucent.com>
96079
96080         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
96081
96082 2000-04-13  Jim Meyering  <meyering@lucent.com>
96083
96084         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
96085         AH_VERBATIM to insert required #ifndef into config.h.in.
96086         Suggestion from Akim Demaille.
96087
96088 2000-04-12  Jim Meyering  <meyering@lucent.com>
96089
96090         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
96091         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
96092         Christian Krackowizer.
96093
96094         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
96095         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
96096         (AC_SYS_LARGEFILE): Require.
96097         (AM_C_PROTOTYPES): Require.
96098
96099 2000-04-08  Jim Meyering  <meyering@lucent.com>
96100
96101         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
96102         names don't conflict.  Reported by Eli Zaretskii.
96103
96104 2000-04-07  Jim Meyering  <meyering@lucent.com>
96105
96106         * lib/putenv.c: Move inclusion of errno.h so it follows that of
96107         sys/types.h, to work around system header problems on AIX 3.2.5.
96108         From Bruno Haible.
96109
96110 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
96111
96112         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
96113         bug.  Deal with the different error behavior of Irix iconv.
96114
96115 2000-04-05  Paul Eggert  <eggert@twinsun.com>
96116
96117         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
96118         IRIX if the installer said otherwise.
96119
96120 2000-04-05  Jim Meyering  <meyering@lucent.com>
96121
96122         Portability tweaks required for ultrix4.3.
96123         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
96124         (jm_CHECK_DECLS): Add getutent to the list of functions.
96125         (_jm_DECL_HEADERS): Add utmpx.h.
96126         From John David Anglin.
96127
96128         * m4/strftime.m4: Back out the 2000-04-02 change.
96129         Instead of that change, simply undefine putenv in the test program.
96130
96131 2000-04-05  Jim Meyering  <meyering@lucent.com>
96132
96133         Portability tweaks required for ultrix4.3.
96134         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
96135         getutent.
96136         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
96137         * lib/canon-host.c: Declare strdup.
96138         * lib/path-concat.c: Likewise.
96139         From John David Anglin.
96140
96141 2000-04-04  Jim Meyering  <meyering@lucent.com>
96142
96143         Be more DOS 8.3-friendly.
96144         * lib/ref-add.sin: Renamed from ref-add.sed.in.
96145         * lib/ref-del.sin: Renamed from ref-del.sed.in.
96146         * lib/Makefile.am: Reflect renaming.
96147         Reported by Eli Zaretskii.
96148
96149         Use a temporary file name that won't clash with `charset.alias'
96150         in the DOS 8.3 name space.
96151         * lib/Makefile.am (charset_tmp): Define.
96152         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
96153         (uninstall-local): Likewise.
96154         Reported by Eli Zaretskii.
96155
96156 2000-04-03  Jim Meyering  <meyering@lucent.com>
96157
96158         * m4/gettext.m4: Fix typo in comment.
96159
96160         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
96161         textutils/configure.in).  Suggestion from Paul Eggert.
96162         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
96163
96164 2000-04-02  Paul Eggert  <eggert@twinsun.com>
96165
96166         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
96167         variable in the shell rather than using putenv, which isn't
96168         portable.  This avoids the configure-time inter-test dependency
96169         on the potentially-renamed putenv function.
96170
96171 2000-03-30  Paul Eggert  <eggert@twinsun.com>
96172
96173         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
96174         before checking struct stat.st_blksize, so that
96175         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
96176
96177 2000-03-29  Paul Eggert  <eggert@twinsun.com>
96178
96179         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
96180         since strftime.c uses HAVE_STRFTIME to decide whether to use
96181         the underlying strftime.
96182
96183 2000-03-29  Paul Eggert  <eggert@twinsun.com>
96184
96185         * lib/time/strftime.c (my_strftime): Make sure we call the system
96186         strftime, not ourselves, when invoking the underlying strftime.
96187
96188 2000-03-24  Jim Meyering  <meyering@lucent.com>
96189
96190         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
96191         (charset_alias): Define.
96192         (install-exec-local): Factor out common code.
96193         (uninstall-local): Split lines longer than 80.
96194         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
96195         (SUFFIXES): Define.
96196         (.sed.in.sed): New rule.  Don't redirect directly to $@.
96197         (CLEANFILES): Add ref-add.sed and ref-del.sed.
96198
96199 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
96200
96201         * lib/config.charset: Output a line containing "Packages using this
96202         file".
96203         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
96204         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
96205         ref-del.sed): New rules.
96206
96207 2000-03-17  Jim Meyering  <meyering@lucent.com>
96208
96209         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
96210         Otherwise, include <strings.h>
96211
96212 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
96213
96214         * lib/unicodeio.c (utf8_wctomb): New function.
96215         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
96216         format instead of in UCS-4 with platform dependent endianness.
96217
96218 2000-03-10  Jim Meyering  <meyering@lucent.com>
96219
96220         * m4/lib-check.m4: Look for getspnam in -lgen, too.
96221         From Marco Franzen.
96222
96223 2000-03-07  Paul Eggert  <eggert@twinsun.com>
96224
96225         * lib/savedir.c (savedir): Work even if directory size is
96226         negative; this can happen with some screwy NFS configurations.
96227
96228 2000-03-06  Jim Meyering  <meyering@lucent.com>
96229
96230         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
96231         if it's NULL (because we ran out of memory).  From Bruno Haible.
96232
96233 2000-03-05  Jim Meyering  <meyering@lucent.com>
96234
96235         * lib/localcharset.c ("path-concat.h"): Include.
96236         (get_charset_aliases): Use path_concat instead of ANSI string
96237         concatenation.
96238
96239         * lib/unicodeio.h (PARAMS): Define.
96240         Use it to guard prototype.
96241
96242 2000-03-04  Jim Meyering  <meyering@lucent.com>
96243
96244         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
96245         for lib/localcharset.c.
96246
96247 2000-03-04  Jim Meyering  <meyering@lucent.com>
96248
96249         * lib/Makefile.am (install-exec-local): Create $(libdir) before
96250         installing into it.
96251         (uninstall-local): Uncomment this rule so `make distcheck' works
96252         once again.
96253
96254         * lib/unicodeio.c (<errno.h>): Include it.
96255         (errno): Declare if not defined.
96256
96257         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
96258
96259         * lib/config.charset: New version, incorporating remarks from a linux
96260         i18n mailing list.  From Bruno Haible.
96261
96262 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
96263
96264         * m4/codeset.m4: New file.
96265         * m4/iconv.m4: New file.
96266         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
96267
96268 2000-03-03  Jim Meyering  <meyering@lucent.com>
96269
96270         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
96271
96272 2000-03-02  Jim Meyering  <meyering@lucent.com>
96273
96274         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
96275         the messages come out on separate lines.
96276
96277         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
96278         rather than jm_CHECK_DECLARATIONS.
96279         * m4/decl.m4: Remove now-unused file.
96280
96281         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
96282         geteuid.
96283
96284 2000-03-02  Jim Meyering  <meyering@lucent.com>
96285
96286         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
96287
96288 2000-03-01  Jim Meyering  <meyering@lucent.com>
96289
96290         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
96291         * lib/unicodeio.c: Likewise.
96292
96293 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
96294
96295         * lib/config.charset: New file.
96296         * lib/localcharset.c: New file.
96297         * lib/unicodeio.h, lib/unicodeio.c: New files.
96298         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
96299         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
96300         (noinst_HEADERS): Add unicodeio.h.
96301         (all-local, install-exec-local, charset.alias): New targets.
96302
96303 2000-02-28  Paul Eggert  <eggert@twinsun.com>
96304
96305         * lib/quotearg.c (ALERT_CHAR): New macro.
96306         (quotearg_buffer_restyled): Use it.
96307
96308 2000-02-27  Jim Meyering  <meyering@lucent.com>
96309
96310         * m4/check-decl.m4: Add getenv to the list.
96311
96312 2000-02-27  Jim Meyering  <meyering@lucent.com>
96313
96314         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
96315         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
96316
96317         * lib/backupfile.c: Guard inclusion of stdlib.h with
96318         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
96319         Declare malloc if needed.
96320
96321         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
96322         `#ifndef HAVE_DECL..'
96323         now that autoconf always defines the HAVE_DECL_ symbols.
96324         * lib/human.c: Likewise.
96325         * lib/same.c: Likewise.
96326         * lib/strtoumax.c: Likewise.
96327
96328         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
96329         declaration check was not run.
96330         * lib/hash.c: Likewise.
96331         * lib/human.c: Likewise.
96332         * lib/same.c: Likewise.
96333         * lib/strtoumax.c: Likewise.
96334
96335         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
96336         `.', then first look up the entire `.'-containing string as a login
96337         name.
96338
96339 2000-02-23  Jim Meyering  <meyering@lucent.com>
96340
96341         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
96342         in place of my hack.
96343
96344 2000-02-18  Paul Eggert  <eggert@twinsun.com>
96345
96346         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
96347         (textint): New typedef.
96348         (parser_control): Member year changed from int to textint.
96349         All uses changed.
96350         (YYSTYPE): Removed; replaced by %union with int and textint members.
96351         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
96352         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
96353         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
96354         (tSNUMBER, tUNUMBER): Now of type <textintval>.
96355         (date, number, to_year): Use width of number in digits, not its value,
96356         to determine whether it's a 2-digit year, or a 2-digit time.
96357         (yylex): Store number of digits of numeric tokens.
96358         Reported by John Kendall.
96359
96360         (parser_control): Changed from struct parser_control to typedef (for
96361         consistency).  All uses changed.
96362
96363         (tID): Removed; not used.
96364         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
96365
96366 2000-02-14  Paul Eggert  <eggert@twinsun.com>
96367
96368         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
96369         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
96370
96371 2000-02-12  Jim Meyering  <meyering@lucent.com>
96372
96373         * lib/userspec.c (ISDIGIT): Define it.
96374         (isdigit): Remove definition.
96375         (is_number): Use ISDIGIT, not isdigit.
96376         <libintl.h>: Include.
96377         (_ and N_): Define.
96378         (parse_user_spec): Mark translatable strings.
96379
96380 2000-02-10  Jim Meyering  <meyering@lucent.com>
96381
96382         With these changes, nanosleep.[ch] are finally enough like the other
96383         lib/* replacement files to compile on a few more losing systems.
96384
96385         * lib/nanosleep.h: Don't include config.h.
96386         Remove prototype from declaration of nanosleep.
96387         (PARAMS): Remove now-unneeded definition.
96388         * lib/nanosleep.c: #undef nanosleep.
96389         (rpl_nanosleep): Rename from nanosleep.
96390
96391 2000-02-10  Jim Meyering  <meyering@lucent.com>
96392
96393         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
96394         gnu_nanosleep to rpl_nanosleep.
96395
96396 2000-02-09  Jim Meyering  <meyering@lucent.com>
96397
96398         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
96399         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
96400
96401 2000-02-08  Akim Demaille  <akim@epita.fr>
96402
96403         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
96404         `[' and `]' and remove uses of `changequote'.
96405         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
96406         (AC_SYS_LARGEFILE): Likewise.
96407         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
96408         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
96409         of changequote.
96410         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
96411         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
96412         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
96413         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
96414
96415 2000-02-05  Jim Meyering  <meyering@lucent.com>
96416
96417         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
96418         Remove explicit use of AC_HEADER_TIME.  It is required by
96419         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
96420         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
96421         in autoconf whereby the expansion of the latter ended up preceding
96422         the expansion of its prerequisite, AC_HEADER_TIME.
96423         Reported by Volker Borchert.
96424
96425 2000-02-03  Jim Meyering  <meyering@lucent.com>
96426
96427         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
96428
96429 2000-02-03  Jim Meyering  <meyering@lucent.com>
96430
96431         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
96432         rather than with `#if HAVE_UTMPNAME'.
96433
96434 2000-02-02  Jim Meyering  <meyering@lucent.com>
96435
96436         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
96437         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
96438         Reported by Eli Zaretskii.
96439
96440 2000-02-01  Jim Meyering  <meyering@lucent.com>
96441
96442         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
96443
96444 2000-01-31  Jim Meyering  <meyering@lucent.com>
96445
96446         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
96447         functions.  Add the time.h and sys/time.h headers along with the
96448         AC_REQUIRE'ment of AC_HEADER_TIME.
96449
96450 2000-01-31  Jim Meyering  <meyering@lucent.com>
96451
96452         * lib/nanosleep.h (nanosleep): Guard declaration with
96453         `#if ! HAVE_DECL_NANOSLEEP'.
96454         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
96455         the declaration in that vendor's sys/timers.h.
96456         Reported by Christian Krackowizer.
96457
96458         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
96459         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
96460         (ISPRINT): Likewise.
96461         Reported by Tom Tromey.
96462
96463 2000-01-30  Jim Meyering  <meyering@lucent.com>
96464
96465         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
96466
96467         * m4/prereq.m4 (utmp_includes): Define.
96468         Check for ut_user and ut_name members in both struct utmpx
96469         and struct utmp.
96470
96471 2000-01-30  Jim Meyering  <meyering@lucent.com>
96472
96473         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
96474         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
96475         header files where only utmpx.ut_user is declared.
96476
96477         * lib/readutmp.h (UT_USER): Define.
96478
96479 2000-01-29  Jim Meyering  <meyering@lucent.com>
96480
96481         * m4/lib-check.m4: New file containing library-related checks from
96482         fileutils and sh-utils (textutils had none).
96483
96484 2000-01-28  Jim Meyering  <meyering@lucent.com>
96485
96486         * m4/perl.m4: Change format of warning message to look more like that
96487         from the missing script.  Suggestion from François Pinard.
96488
96489 2000-01-25  Jim Meyering  <meyering@lucent.com>
96490
96491         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
96492         well as time.h in the compile check.
96493         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
96494         Fix typo in cross-compiling case: s/yes/no/.
96495
96496 2000-01-23  Jim Meyering  <meyering@lucent.com>
96497
96498         * m4/jm-macros.m4: Move df-related tests here from
96499         fileutils/configure.in
96500
96501         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
96502         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
96503
96504         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
96505         s/space/ac_fsusage_space/.
96506         (jm_FILE_SYSTEM_USAGE): Take two parameters.
96507
96508         * m4/ftruncate.m4: New file (derived from part of
96509         fileutils/configure.in).
96510         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
96511         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
96512
96513         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
96514         AC_SUBST these here, rather than just in sh-util/configure.in, so
96515         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
96516         all the same.
96517         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
96518         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
96519         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
96520         (AC_SUBST(POW_LIBM)): Likewise.
96521         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
96522
96523 2000-01-23  Jim Meyering  <meyering@lucent.com>
96524
96525         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
96526         obstack.c.
96527
96528 2000-01-22  Jim Meyering  <meyering@lucent.com>
96529
96530         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
96531
96532         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
96533
96534         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
96535         configure.in
96536         (AC_CHECK_HEADERS): Likewise for sh-utils.
96537         (AC_CHECK_HEADERS): Likewise for textutils.
96538         Merge the three lists of headers.
96539
96540         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
96541         from fileutils' configure.in.
96542
96543         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
96544         code. Moved tests into their own function (_jm_DECL_HEADERS) in
96545         check-decl.m4.
96546
96547         * m4/check-decl.m4: Use #if rather than #ifdef.
96548         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
96549         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
96550         (_jm_DECL_HEADERS): Define new function.
96551         (jm_CHECK_DECLARATIONS): Require it.
96552
96553 2000-01-22  Jim Meyering  <meyering@lucent.com>
96554
96555         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
96556         [! HAVE_DECL_STRTOULL]: Declare strtoull.
96557         Required for some AIX systems.  Reported by Christian Krackowizer.
96558         [TESTING] (main): New function.
96559
96560         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
96561         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
96562         letters.
96563
96564         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
96565         iswprint.
96566
96567         * lib/strverscmp.c (ISDIGIT): Define.
96568         (strverscmp): Use ISDIGIT, not isdigit.
96569
96570 2000-01-19  Jim Meyering  <meyering@lucent.com>
96571
96572         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
96573         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
96574         defines `struct timespec' in <sys/time.h>
96575
96576         * m4/c-bs-a.m4: Remove uses of changequote altogether.
96577         Thanks to Akim for explaining.
96578
96579 2000-01-17  Paul Eggert  <eggert@twinsun.com>
96580
96581         * lib/nanosleep.c (nanosleep):
96582         Don't use SA_INTERRUPT to decide whether to call sigaction, as
96583         POSIX.1 doesn't require SA_INTERRUPT and some systems
96584         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
96585         it's been part of POSIX.1 since day 1 (in 1988).
96586
96587 2000-01-17  Jim Meyering  <meyering@lucent.com>
96588
96589         * lib/interlock: Remove unused file.  Reported by François Pinard.
96590
96591 2000-01-16  Paul Eggert  <eggert@twinsun.com>
96592
96593         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
96594         alert, backslash, formfeed, and vertical tab unnecessarily in
96595         shell quoting style.
96596
96597 2000-01-16  Jim Meyering  <meyering@lucent.com>
96598
96599         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
96600         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
96601         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
96602         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
96603
96604 2000-01-16  Jim Meyering  <meyering@lucent.com>
96605
96606         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
96607         because the latter didn't work.
96608
96609 2000-01-15  Jim Meyering  <meyering@lucent.com>
96610
96611         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
96612         (AC_REPLACE_FUNCS): Add memcpy and memset.
96613         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
96614         Add strpbrk.
96615         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
96616
96617 2000-01-12  Jim Meyering  <meyering@lucent.com>
96618
96619         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
96620         (jm_PREREQ): Use it.
96621         (jm_PREREQ_READUTMP): New macro.
96622         (jm_PREREQ): Use it.
96623
96624 2000-01-11  Paul Eggert  <eggert@twinsun.com>
96625
96626         Quote multibyte characters correctly.
96627         * m4/c-bs-a.m4: New file.
96628         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
96629         (jm_PREREQ): Use it.
96630
96631 2000-01-11  Paul Eggert  <eggert@twinsun.com>
96632
96633         * m4/uintmax_t.m4: Port to autoconf 2.13.
96634
96635 2000-01-08  Jim Meyering  <meyering@ascend.com>
96636
96637         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
96638         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
96639
96640 2000-01-04  Jim Meyering  <meyering@ascend.com>
96641
96642         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
96643         jm_STRUCT_DIRENT_D_TYPE.
96644         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
96645         jm_STRUCT_DIRENT_D_INO.
96646         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
96647         jm_STRUCT_UTIMBUF.
96648         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
96649         renamings.
96650         * m4/utime.m4: Likewise.
96651
96652         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
96653         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
96654
96655 2000-01-03  Paul Eggert  <eggert@twinsun.com>
96656
96657         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
96658         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
96659
96660 2000-01-02  Jim Meyering  <meyering@ascend.com>
96661
96662         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
96663         remember if this is necessary.
96664
96665 1999-12-26  Jim Meyering  <meyering@ascend.com>
96666
96667         * m4/jm-macros.m4: Use it here.
96668         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
96669
96670 1999-12-23  Jim Meyering  <meyering@ascend.com>
96671
96672         * m4/jm-macros.m4: Check for clock_gettime (moved from
96673         fileutils/configure.in)
96674         Check for gettimeofday.
96675
96676 1999-12-20  Jim Meyering  <meyering@ascend.com>
96677
96678         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
96679         autoconf-2.14a-1999-12-20.
96680
96681 1999-12-19  Jim Meyering  <meyering@ascend.com>
96682
96683         * m4/lstat-slash.m4: New file.
96684         * m4/jm-macros.m4: Use the new macro:
96685         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96686
96687 1999-12-07  Jim Meyering  <meyering@ascend.com>
96688
96689         * m4/perl.m4: Require that File::Compare be available, too.
96690         Too many systems seem to lack it.
96691
96692         * m4/strftime.m4: Add checks for most of the cpp macros tested in
96693         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
96694
96695 1999-11-18  Paul Eggert  <eggert@twinsun.com>
96696
96697         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
96698         problem with the QNX 4.25 shell, which doesn't propagate exit
96699         status of failed commands inside shell assignments.
96700
96701 1999-11-17  Jim Meyering  <meyering@ascend.com>
96702
96703         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
96704
96705 1999-11-07  Jim Meyering  <meyering@ascend.com>
96706
96707         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
96708
96709 1999-11-06  Jim Meyering  <meyering@ascend.com>
96710
96711         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
96712         * m4/jm-macros.m4 (jm_MACROS): Use it here.
96713
96714 1999-11-05  Jim Meyering  <meyering@ascend.com>
96715
96716         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
96717         configure.in of textutils, fileutils, and sh-utils into this one
96718         (shared between those packages) file.
96719         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
96720         AC_STRUCT_ST_BLKSIZE.
96721
96722 1999-11-03  Jim Meyering  <meyering@ascend.com>
96723
96724         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
96725         of AC_CHECK_TYPE checks includes unistd.h.
96726         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
96727         Suggestion from Akim Demaille.
96728
96729 1999-10-30  Jim Meyering  <meyering@ascend.com>
96730
96731         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
96732         m4-quoted string.
96733         * m4/ls-mntd-fs.m4: Likewise.
96734         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
96735         * m4/jm-winsz1.m4: Likewise.
96736
96737         * m4/const.m4: Remove file, since the fix made it into the experimental
96738         version of autoconf.
96739         * m4/mktime.m4: Likewise.
96740
96741         * m4/check-type.m4: Remove file, now that the latest version of
96742         AC_CHECK_TYPE takes a third arg to specify additional #includes.
96743
96744         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
96745         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
96746         AC_CHECK_TYPE.
96747
96748 1999-10-04  Jim Meyering  <meyering@ascend.com>
96749
96750         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
96751
96752 1999-09-22  Paul Eggert  <eggert@twinsun.com>
96753
96754         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
96755         2.95.1 bug with HP-UX 10.20.
96756
96757 1999-09-17  Jim Meyering  <meyering@ascend.com>
96758
96759         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
96760         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
96761         due to missing strdup (against sh-utils-2.0).
96762
96763 1999-08-29  Jim Meyering  <meyering@ascend.com>
96764
96765         * m4/jm-macros.m4: Require jm_BISON.
96766         * m4/bison.m4: New file.
96767
96768 1999-08-17  Paul Eggert  <eggert@twinsun.com>
96769
96770         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
96771         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
96772
96773 1999-08-05  Jim Meyering  <meyering@ascend.com>
96774
96775         * m4/getline.m4: Rename test file from conftestdata to conftest.data
96776         to avoid conflicts with `conftest' on 8+3 filesystems.
96777         Suggestion from Eli Zaretskii.
96778
96779 1999-08-04  Jim Meyering  <meyering@ascend.com>
96780
96781         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
96782         fileutils and sh-utils (textutils's getline test was inadequate).
96783         (AM_FUNC_GETLINE): Run this test.
96784         (AC_CHECK_FUNCS): Check for getdelim.
96785         Reported by Bob Proulx.
96786
96787 1999-08-02  Jim Meyering  <meyering@ascend.com>
96788
96789         * m4/jm-macros.m4: Add a comment.
96790
96791 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96792
96793         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
96794         <inttypes.h> defines strtoumax as a macro (and not as a
96795         function).
96796
96797 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96798
96799         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
96800         that we can shift, multiply and divide unsigned long long
96801         values; Ultrix cc can't do it.
96802
96803 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96804
96805         * m4/mktime.m4: New file, which is a preview of what should appear
96806         in the next public autoconf release.
96807
96808 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96809
96810         * m4/lfs.m4: Remove this file.
96811         * m4/largefile.m4: New file.  It contains the old contents of
96812         lfs.m4, except that all names with prefix AC_LFS have been
96813         changed to use the prefix AC_SYS_LARGEFILE instead, to be
96814         compatible with future autoconf versions.  Also, some minor m4
96815         quoting problems have been fixed.
96816
96817 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96818
96819         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
96820         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
96821         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
96822         and simplify the shell code.
96823
96824 1999-08-01  Jim Meyering  <meyering@ascend.com>
96825
96826         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
96827         m4.
96828
96829 1999-07-20  Jim Meyering  <meyering@ascend.com>
96830
96831         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
96832
96833 1999-07-15  Jim Meyering  <meyering@ascend.com>
96834
96835         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
96836
96837 1999-05-22  Jim Meyering  <meyering@ascend.com>
96838
96839         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
96840
96841 1999-05-20  Jim Meyering  <meyering@ascend.com>
96842
96843         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
96844         Add a colon after each `then' in case $4 is empty.
96845
96846 1999-05-16  Jim Meyering  <meyering@ascend.com>
96847
96848         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
96849
96850 1999-05-10  Jim Meyering  <meyering@ascend.com>
96851
96852         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
96853
96854         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
96855         AC_FUNC_MKTIME.
96856
96857 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
96858
96859         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
96860
96861 1999-05-04  Paul Eggert  <eggert@twinsun.com>
96862
96863         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
96864         not CPPFLAGS, so that linking works correctly in IRIX.
96865
96866 1999-04-30  Paul Eggert  <eggert@twinsun.com>
96867
96868         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
96869
96870 1999-04-20  Paul Eggert  <eggert@twinsun.com>
96871
96872         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
96873         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
96874         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
96875         jm_AC_TYPE_UNSIGNED_LONG_LONG.
96876         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
96877
96878         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
96879
96880 1999-04-20  Jim Meyering  <meyering@ascend.com>
96881
96882         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
96883         AC_REPLACE xstroull if necessary.  From Paul Eggert.
96884         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
96885
96886 1999-04-18  Jim Meyering  <meyering@ascend.com>
96887
96888         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
96889         * m4/jm-macros.m4: Use it.
96890
96891 1999-04-06  Jim Meyering  <meyering@ascend.com>
96892
96893         * m4/strftime.m4: Remove test for %f.
96894
96895 1999-03-29  Jim Meyering  <meyering@ascend.com>
96896
96897         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
96898         superset of the AC_TYPE_* checks in the textutils, fileutils,
96899         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
96900         AC_TYPE_PID_T.
96901
96902 1999-03-28  Jim Meyering  <meyering@ascend.com>
96903
96904         * m4/jm-macros.m4: Define GNU_PACKAGE here.
96905         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
96906         replaced e.g., in the *.sh files of the sh-utils.
96907
96908 1999-03-20  Jim Meyering  <meyering@ascend.com>
96909
96910         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
96911         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
96912         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
96913
96914 1999-03-19  Jim Meyering  <meyering@ascend.com>
96915
96916         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
96917
96918 1999-03-12  Jim Meyering  <meyering@ascend.com>
96919
96920         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
96921
96922 1999-03-07  Jim Meyering  <meyering@ascend.com>
96923
96924         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
96925         declared.
96926
96927 1999-02-17  Jim Meyering  <meyering@ascend.com>
96928
96929         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
96930         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
96931
96932 1999-02-07  Jim Meyering  <meyering@ascend.com>
96933
96934         * m4/group-member.m4: New file -- extracted from sh-utils'
96935         configure.in.
96936
96937         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
96938         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
96939
96940 1999-02-06  Jim Meyering  <meyering@ascend.com>
96941
96942         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
96943         * m4/fnmatch.m4: Likewise.
96944         * m4/getgroups.m4: Likewise.
96945         * m4/lstat.m4: Likewise.
96946         * m4/malloc.m4: Likewise.
96947         * m4/putenv.m4: Likewise.
96948         * m4/realloc.m4: Likewise.
96949         * m4/regex.m4: Likewise.
96950         * m4/stat.m4: Likewise.
96951         * m4/strftime.m4: Likewise.
96952         Suggestion from Alain Magloire.
96953
96954         * m4/chown.m4: Use `.$ac_objext', not `.o'.
96955         * m4/fnmatch.m4: Likewise.
96956         * m4/getgroups.m4: Likewise.
96957         * m4/getline.m4: Likewise.
96958         * m4/lstat.m4: Likewise.
96959         * m4/malloc.m4: Likewise.
96960         * m4/memcmp.m4: Likewise.
96961         * m4/putenv.m4: Likewise.
96962         * m4/realloc.m4: Likewise.
96963         * m4/regex.m4: Likewise.
96964         * m4/stat.m4: Likewise.
96965         * m4/strftime.m4: Likewise.
96966         Suggestion from Alain Magloire.
96967
96968         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
96969         an argument.
96970
96971         * m4/regex.m4: Add a run-time Test for proper operation of
96972         re_compile_pattern.
96973
96974 1999-01-31  Jim Meyering  <meyering@ascend.com>
96975
96976         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
96977
96978 1999-01-30  Jim Meyering  <meyering@ascend.com>
96979
96980         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
96981
96982         * m4/jm-mktime.m4: Make this a wrapper around the official
96983         AM_FUNC_MKTIME rather than my private copy, now that the official one
96984         is up to date.
96985         * m4/mktime.m4: Remove file.
96986
96987         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
96988         * m4/uptime.m4: Likewise.
96989         * m4/uintmax_t.m4: Likewise.
96990
96991 1999-01-28  Jim Meyering  <meyering@ascend.com>
96992
96993         * m4/jm-macros.m4: Use jm_AFS.
96994         * m4/afs.m4: New file (from fileutils' configure.in).
96995
96996         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
96997         * m4/chown.m4: Likewise.
96998         * m4/d-ino.m4: Likewise.
96999         * m4/d-type.m4: Likewise.
97000         * m4/fnmatch.m4: Likewise.
97001         * m4/getgroups.m4: Likewise.
97002         * m4/gettext.m4: Likewise.
97003         * m4/jm-mktime.m4: Likewise.
97004         * m4/jm-winsz2.m4: Likewise.
97005         * m4/lcmessage.m4: Likewise.
97006         * m4/ls-mntd-fs.m4: Likewise.
97007         * m4/malloc.m4: Likewise.
97008         * m4/memcmp.m4: Likewise.
97009         * m4/putenv.m4: Likewise.
97010         * m4/realloc.m4: Likewise.
97011         * m4/st_mtim.m4: Likewise.
97012         * m4/strftime.m4: Likewise.
97013
97014 1999-01-16  Jim Meyering  <meyering@ascend.com>
97015
97016         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
97017         (ARGMATCH_DIE_DECL): Define.
97018
97019 1999-01-12  Jim Meyering  <meyering@ascend.com>
97020
97021         * m4/Makefile.am.in: Rewrite to avoid using fmt.
97022         Reported by Lars Hecking.
97023
97024 1999-01-10  Jim Meyering  <meyering@ascend.com>
97025
97026         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
97027         gross kludge.
97028         * m4/inttypes_h.m4: Likewise.
97029         * m4/lstat.m4: Likewise.
97030         * m4/malloc.m4: Likewise.
97031         * m4/readdir.m4: Likewise.
97032         * m4/realloc.m4: Likewise.
97033         * m4/st_dm_mode.m4: Likewise.
97034         * m4/stat.m4: Likewise.
97035         * m4/utimbuf.m4: Likewise.
97036         * m4/utimes.m4: Likewise.
97037
97038         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
97039         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
97040         comments in config.h.in are meaningful.
97041
97042         * m4/jm-macros.m4: Require autoconf-2.13 here.
97043
97044         * m4/regex.m4: By default, don't use the included regex.c on systems
97045         with glibc 2.  Suggestion from Uli Drepper.
97046
97047 1999-01-02  Jim Meyering  <meyering@ascend.com>
97048
97049         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
97050
97051 1998-12-18  Jim Meyering  <meyering@ascend.com>
97052
97053         * m4/Makefile.am.in (Makefile.am): Simplify rule.
97054         Based on a suggestion from Lars Hecking.
97055
97056 1998-11-16  Paul Eggert  <eggert@twinsun.com>
97057
97058         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
97059
97060 1998-11-16  Jim Meyering  <meyering@ascend.com>
97061
97062         * m4/lfs.m4: Double-quote the `uname...` expression.
97063
97064 1998-11-14  Jim Meyering  <meyering@ascend.com>
97065
97066         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
97067         * m4/stat.m4: Likewise.
97068
97069 1998-11-03  Jim Meyering  <meyering@ascend.com>
97070
97071         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
97072         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
97073
97074 1998-10-18  Jim Meyering  <meyering@ascend.com>
97075
97076         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
97077
97078 1998-10-17  Jim Meyering  <meyering@ascend.com>
97079
97080         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
97081         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
97082         calls for those previously hard-coded headers.  Instead, take a new
97083         parameter.
97084         (jm_CHECK_DECLARATIONS): Reflect interface change.
97085         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
97086         (jm_CHECK_DECL_LOCALTIME_R): New macro.
97087
97088         * m4/mktime.m4: Test for spring-forward gap before long-running test.
97089
97090 1998-10-14  Jim Meyering  <meyering@ascend.com>
97091
97092         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
97093         instead of "TZ=America/Vancouver".  From Paul Eggert.
97094
97095 1998-10-11  Jim Meyering  <meyering@ascend.com>
97096
97097         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
97098         This adds a test for a recently added compatibility fix for mktime.c.
97099         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
97100
97101 1998-09-27  Jim Meyering  <meyering@ascend.com>
97102
97103         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
97104
97105         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
97106         ../configure.in, including a change from Gordon Matzigkeit to allow
97107         cross-compiling for the Hurd.
97108
97109         * m4/glibc.m4: New file/macro to test for the GNU C Library
97110         versions 1 and 2.  From Gordon Matzigkeit.
97111         Indent.
97112
97113 1998-09-21  Jim Meyering  <meyering@ascend.com>
97114
97115         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
97116
97117 1998-08-18  Paul Eggert  <eggert@twinsun.com>
97118
97119         Port nanosecond-resolution times to UnixWare 2.1.2 and
97120         pedantic Solaris 2.6.
97121
97122         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
97123         AC_STRUCT_ST_MTIM.
97124         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
97125         Generate name of ns member, instead of just 1 or undef.
97126         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
97127
97128 1998-08-15  Jim Meyering  <meyering@ascend.com>
97129
97130         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
97131         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
97132         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
97133         instead of jm_TYPE_SSIZE_T.
97134
97135 1998-08-12  Jim Meyering  <meyering@ascend.com>
97136
97137         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
97138
97139 1998-08-02  Jim Meyering  <meyering@ascend.com>
97140
97141         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
97142         in acconfig.h manually.
97143
97144 1998-07-31  Paul Eggert  <eggert@twinsun.com>
97145
97146         * m4/st_mtim.m4: New file.
97147
97148 1998-07-28  Jim Meyering  <meyering@ascend.com>
97149
97150         * m4/utimes.m4: Undef stat.
97151
97152 1998-07-25  Jim Meyering  <meyering@ascend.com>
97153
97154         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
97155         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
97156
97157 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
97158
97159         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
97160         uid and gid actually remain unchanged.
97161
97162 1998-07-07  Jim Meyering  <meyering@ascend.com>
97163
97164         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
97165
97166 1998-07-04  Jim Meyering  <meyering@ascend.com>
97167
97168         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
97169         to prove that this macro can be used in packages without regex.c.
97170
97171 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
97172
97173         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
97174         is to be used.
97175
97176 1998-07-03  Jim Meyering  <meyering@ascend.com>
97177
97178         * m4/gettext.m4: Add -lintl if it's found to be necessary.
97179
97180         * m4/gettext.m4: New file -- from gettext-0.10.35.
97181         * m4/lcmessage.m4: Likewise.
97182         * m4/progtest.m4: Likewise.
97183
97184         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
97185         * m4/jm-macros.m4: Require the new macro.
97186
97187 1998-06-29  Jim Meyering  <meyering@ascend.com>
97188
97189         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
97190         for the definition of NGROUPS (used in a system header included
97191         by sys/mount.h).
97192
97193 1998-06-28  Jim Meyering  <meyering@ascend.com>
97194
97195         * m4/ls-mntd-fs.m4: New file.
97196         * m4/fstypename.m4: New file.
97197
97198         * m4/jm-macros.m4: Require the new macro.
97199         * m4/jm-glibc-io.m4: New file.
97200
97201 1998-05-19  Jim Meyering  <meyering@ascend.com>
97202
97203         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
97204         * m4/lchown.m4: New file.
97205
97206         * m4/Makefile.am.in: New file.
97207         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
97208
97209 1998-05-14  Jim Meyering  <meyering@ascend.com>
97210
97211         * m4/Makefile.am (EXTRA_DIST): Add them.
97212         * m4/jm-macros.m4: New file.
97213         * m4/utimbuf.m4: New file.
97214
97215 1998-05-12  Jim Meyering  <meyering@ascend.com>
97216
97217         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
97218
97219 1998-05-11  Jim Meyering  <meyering@ascend.com>
97220
97221         * m4/isc-posix.m4: New file.
97222
97223 1998-05-10  Jim Meyering  <meyering@ascend.com>
97224
97225         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
97226
97227 1998-05-09  Jim Meyering  <meyering@ascend.com>
97228
97229         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
97230         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
97231         with automake.
97232
97233         * m4/ssize_t.m4: New file.
97234         * m4/mktime.m4: Remove file -- the new automake has this now.
97235
97236 1998-04-26  Jim Meyering  <meyering@ascend.com>
97237
97238         * m4/assert.m4: New file.
97239         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
97240
97241 1998-04-05  Jim Meyering  <meyering@ascend.com>
97242
97243         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
97244         (jm_PREREQ): Use it here.
97245
97246 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
97247
97248         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
97249         in acconfig.h.
97250
97251 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
97252
97253         * m4/prereq.m4: New file.
97254         * m4/error.m4: New file.
97255         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
97256
97257 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
97258
97259         * m4/getline.m4: Don't set am_cv_func_working_getline before the
97260         cache-check for the same variable -- that defeated the purpose of
97261         the test; the test program was never run.  This was a problem only
97262         on systems with losing getline functions -- HP-UX 10.20 is one.
97263         Reported by Bjorn Helgaas.
97264
97265 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
97266
97267         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
97268
97269 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
97270
97271         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
97272
97273         * m4/const.m4: New file.  Use an initializer in this declaration
97274         typedef int charset[2]; const charset x;
97275         Reported by Bob Glickstein.
97276
97277 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
97278
97279         * m4/chown.m4: Fix reversed types on -1 args to chown.
97280         From Kaveh Ghazi.
97281
97282 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
97283
97284         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
97285         Add lseek and memchr.
97286
97287         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
97288         T.E.Dickey <dickey@clark.net> said that some older preprocessors
97289         have a 20-character limit on names.
97290
97291 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
97292
97293         * m4/inttypes_h.m4: New file.
97294         * m4/uintmax_t.m4: New file.
97295         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
97296
97297
97298         -----
97299
97300         Local Variables:
97301         coding: utf-8
97302         End:
97303
97304         Copyright (C) 1997-2012 Free Software Foundation, Inc.
97305
97306         Copying and distribution of this file, with or without
97307         modification, are permitted provided the copyright notice
97308         and this notice are preserved.